/* Shared interaction language. Geometry canvases retain their own dimensions. */
:root{--ui-radius:16px;--ui-press:120ms;--ui-enter:220ms;--ui-ease:cubic-bezier(.2,.8,.2,1)}
.btn{border-radius:12px;min-height:44px;height:auto;padding:10px 15px;line-height:1.25;text-decoration:none}
.btn.quiet{font-weight:600}.icon-btn{min-width:44px;min-height:44px;border-radius:12px}
.btn,.icon-btn,.hub-row,.nav-item,.profile-context{transition:background-color var(--ui-press),box-shadow var(--ui-press),transform var(--ui-press)}
button:active:not(:disabled),a.btn:active,.hub-row:active{transform:translateY(1px)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #738947;outline-offset:3px}
.app-sidebar{gap:22px;padding:20px 12px}.app-sidebar .nav-item{border-radius:12px}
.app-sidebar .nav-item.selected{box-shadow:none}.app-sidebar .main-nav{gap:5px}
.app-sidebar .sidebar-bottom{gap:3px}.app-sidebar .app-version{background:transparent;color:var(--muted)}
.account-top,.topbar{height:auto;min-height:56px;padding:8px 24px;gap:12px}
.account-top>.row{min-width:0;gap:12px}.account-top .account-return{font-size:13px;text-decoration:none;display:flex;gap:6px;align-items:center}
.breadcrumb{min-width:0;gap:8px}.breadcrumb>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.account-content.company-page,.content-page:not(.home-page){padding:24px;max-width:1200px;margin-inline:auto}
.account-content .company-panel>h1{margin-bottom:18px}.company-error:empty{display:none}
.project-head{padding:18px 24px 0}.project-head h1{font-size:25px}.project-head .tabs{margin-top:16px;gap:6px}
.project-head .tab{padding:10px 16px 12px;min-height:44px;border-bottom-width:3px}
.project-meta{flex-wrap:wrap;gap:8px}.project-meta .demo-label{display:none}
.ux-details{border:1px solid var(--line);border-radius:12px;background:#fff;margin-block:12px;padding:0 14px}
.ux-details>summary{display:flex;align-items:center;gap:8px;min-height:48px;cursor:pointer;font-weight:600;list-style:none;padding:10px 0;font-size:14px}
.ux-details>summary::-webkit-details-marker{display:none}.ux-details>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto;flex:none;transition:transform var(--ui-press)}
.ux-details[open]>summary::after{transform:rotate(225deg)}.ux-details[open]{padding-bottom:12px}
.hub-group{margin-top:24px;min-width:0}.hub-group>h2,.hub-group>.section-head{margin-bottom:10px}.hub-group h2{font-size:18px}
.hub-list{border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;overflow:hidden}
.hub-row{min-height:70px;display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;color:var(--ink);text-decoration:none;min-width:0}
.hub-row+.hub-row{border-top:1px solid var(--line)}.hub-row>.icon{width:17px;height:17px;color:var(--muted)}
.hub-icon{display:grid;place-items:center;background:#f1f4e8;border-radius:12px;flex:0 0 40px;height:40px;color:#475f31}
.hub-label{display:grid;gap:4px;flex:1;min-width:0}.hub-label strong{font-size:15px;font-weight:700;overflow-wrap:anywhere;line-height:1.3}.hub-label small{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.hub-empty{padding:20px;font-size:14px;color:var(--muted)}
.menu-hub{max-width:760px}.menu-hub>.hub-row{border:1px solid var(--line);border-radius:var(--ui-radius)}
.menu-hub>.hub-row .hub-icon{background:var(--action);color:var(--ink)}
.home-page{max-width:1200px;padding:32px 28px 40px;margin:auto}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.home-heading h1{font-size:30px;margin:6px 0}.home-heading .muted{font-size:14px}.home-date{font-size:13px;color:var(--muted);text-transform:capitalize}
.avatar-link{width:46px;height:46px;border-radius:50%;background:var(--action);display:grid;place-items:center;text-decoration:none;color:var(--ink);font-size:20px;font-weight:800;flex:none}
.home-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px}
.home-continue{border-radius:20px;background:#202829;color:#fff;padding:24px;position:relative;overflow:hidden}
.home-continue-label{display:flex;gap:8px;align-items:center;color:#d6f676;font-size:13px;font-weight:600}.home-continue-label .icon{width:18px;height:18px}
.home-continue h2{font-size:25px;margin:14px 0 8px;overflow-wrap:anywhere}.home-continue p{color:#d1d7cf;font-size:14px;line-height:1.5;margin-bottom:20px}.home-continue .btn{min-width:140px}
.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.home-shortcuts a{border:1px solid var(--line);border-radius:16px;padding:14px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:#fff;color:var(--ink);text-decoration:none;min-width:0}
.home-shortcuts .icon{margin-bottom:4px;color:#526535}.home-shortcuts strong{font-size:14px;font-weight:700}.home-shortcuts small{font-size:11px;color:var(--muted);line-height:1.3}
.home-tasks{margin-top:0}.home-calm{padding:24px 18px;display:grid;justify-items:start;gap:10px}.home-calm>.icon{color:#607541;width:28px;height:28px}.home-calm strong{font-size:16px}.home-calm p,.home-cache{font-size:13px;color:var(--muted);line-height:1.4}.home-cache{padding:12px 14px;background:#fff3df}
.home-all{display:flex;gap:6px;align-items:center;padding:12px 4px;font-size:14px;text-decoration:none;font-weight:600}
.live-estimate .live-estimate-modes{display:flex;flex-wrap:nowrap;padding:4px;background:#e9ebe3;border-radius:13px;gap:3px;max-width:520px;margin:10px 0 16px}.live-estimate-modes .btn{flex:1;min-width:0;min-height:40px;background:transparent;border:0;border-radius:10px;padding:8px;font-size:13px;font-weight:600}.live-estimate-modes .btn.active{background:#fff;box-shadow:0 1px 4px #20282912;color:var(--ink)}.live-estimate .live-estimate-channels{gap:4px;margin:10px 0}.live-estimate-channels .btn{min-height:40px;border-radius:10px;padding:8px 14px}.live-estimate .live-estimate-total{margin:12px 0 16px;gap:4px}.live-estimate .estimate-type-filter{margin:14px 0}.estimate-type-filter>small{font-size:11px}.live-estimate .estimate-explainer{font-size:12px;max-width:680px;line-height:1.5}.estimate-explainer>summary{min-height:36px;padding-block:8px;cursor:pointer}.estimate-line-tools{font-size:12px;margin-top:6px}.estimate-line-tools>summary{min-height:36px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--accent);font-weight:600;list-style:none}.estimate-line-tools>summary::after{content:'⌄'}.estimate-line-tools[open]>summary::after{content:'⌃'}.estimate-line-tools>div{display:flex;gap:4px;flex-wrap:wrap}.estimate-line-tools .btn{font-size:12px;min-height:40px;padding:8px}.estimate-tools{width:100%;margin-block:8px}.live-document-action{display:flex;justify-content:flex-end}.live-estimate .ux-estimate-line{padding:12px 0}.live-estimate .ux-estimate-line>div>strong{font-size:14px;line-height:1.35}
.catalog-top-actions .catalog-tools{position:relative}.catalog-tools>summary{list-style:none}.catalog-tools>summary::-webkit-details-marker{display:none}
.live-estimate-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.live-estimate-heading>p{margin:0;flex:1;min-width:0}.live-estimate-heading .live-document-action{flex:none}.live-estimate .ux-estimate-line{padding:12px}.live-estimate .estimate-type-filter>label{display:flex;align-items:center;gap:8px;font-size:12px}.live-estimate .estimate-type-filter select{min-height:44px;max-width:100%}
.catalog-tools-body{position:absolute;right:0;top:calc(100% + 8px);z-index:12;background:white;padding:8px;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px #20282920;min-width:200px;display:grid;gap:4px}.catalog-tools-body .btn{justify-content:flex-start}
.catalog-top-actions{flex-wrap:nowrap!important}.catalog-v13 .section-head{align-items:center}.catalog-v13 .section-head .small{display:none}
.catalog-tools>summary.btn{min-width:44px;padding:10px;display:flex;justify-content:center}.catalog-top-actions .catalog-tools .icon{display:block;width:20px;height:20px}.catalog-search{display:block}
.catalog-v13 .catalog-controls{display:block}.catalog-filter-panel{margin:8px 0}.catalog-filter-panel>summary{min-height:42px;padding-block:9px;font-size:13px}.catalog-filter-panel .icon{width:17px;height:17px}.catalog-filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.catalog-filter-fields>label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.catalog-filter-fields select{width:100%;min-width:0;height:44px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:white}.catalog-filter-checks{grid-column:1/-1;display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.catalog-filter-checks label{min-height:44px;display:flex;align-items:center;gap:6px}.catalog-filter-checks input{width:18px;height:18px}.catalog-filter-panel .catalog-breadcrumb,.catalog-filter-panel .catalog-subgroups{grid-column:1/-1}.catalog-filter-panel .catalog-mobile-category{display:grid}
#local-form-drafts{font-size:12px!important;min-height:36px!important;margin:8px 14px!important;width:auto!important;max-width:calc(100% - 28px)!important;white-space:normal!important}
#device-data-status{font-size:13px;line-height:1.4;border-radius:12px}
dialog{overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:20px;scroll-padding-bottom:100px}
dialog::backdrop{background:#17232366;backdrop-filter:blur(3px)}
dialog>h2{font-size:22px;letter-spacing:-.3px;line-height:1.25}.dialog-close{min-height:44px;min-width:44px;border-radius:50%}
.dialog-actions{gap:8px;padding:12px 0 max(16px,env(safe-area-inset-bottom));margin-top:18px;background:#fff}
.field,.company-field{line-height:1.4}.field input,.field select,.field textarea,.company-field input,.company-field select,.company-field textarea{border-radius:12px}
@media(hover:hover) and (pointer:fine){.hub-row:hover,.home-shortcuts a:hover{background:#f6f8f0}.btn:not(:disabled):hover{box-shadow:0 2px 7px #2028290b}}
@media(min-width:1100px){.shell{grid-template-columns:204px minmax(0,1fr)}.app-sidebar{padding-inline:14px}.app-sidebar .nav-item{padding-inline:14px}.brand-word{font-size:23px}}
@media(max-width:900px){.home-columns{grid-template-columns:1fr}.home-tasks{margin-top:4px}.home-page{max-width:760px}}
@media(max-width:700px){
 .live-estimate .ux-estimate-line>div:first-child{grid-column:1/-1;grid-row:1}.live-estimate .estimate-quantity{grid-column:1;grid-row:2}.live-estimate .estimate-line-amount{grid-column:2;grid-row:2}.live-estimate .ux-estimate-line{gap:4px 10px}.live-estimate .estimate-line-tools{margin-top:0}.live-estimate .estimate-line-tools>summary{min-height:44px}.live-estimate .live-estimate-modes .btn,.live-estimate .live-estimate-channels .btn{min-height:44px}.live-estimate-heading>.small{font-size:12px}.live-estimate .estimate-type-filter{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.live-estimate .estimate-type-filter>small{flex-basis:100%}
 .shell{grid-template-columns:minmax(0,1fr)}.shell>.app-sidebar{display:none}
 .main:not(:has(.workspace)):not(:has(.drawing-create-workspace)){padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .mobile-nav.app-mobile{padding:6px 8px max(6px,env(safe-area-inset-bottom));gap:2px;background:#fffffff5;border-top:1px solid #dde2d1;backdrop-filter:blur(16px)}
 .app-mobile>.nav-item{height:54px;min-height:54px;border-radius:14px;gap:4px;font-size:10px;position:relative}
 .app-mobile .nav-text{font-size:11px}.app-mobile .nav-item{isolation:isolate}.app-mobile .nav-item.selected{background:transparent;box-shadow:none}.app-mobile .nav-item.selected::before{content:'';position:absolute;top:2px;left:50%;transform:translateX(-50%);width:48px;height:29px;border-radius:10px;background:var(--action);z-index:-1}.app-mobile .nav-item.selected .icon{background:none;padding:0;margin:0}
 .app-mobile .icon{width:20px;height:20px}.app-mobile .nav-item:active{background:#f0f4e4}
 .account-top,.topbar{padding:5px 14px;min-height:52px}.account-top>.row>.account-return{display:none}
 .account-top>a{font-size:13px;max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .breadcrumb{gap:4px}.breadcrumb>b,.breadcrumb>.icon,.topbar>.row>.badge{display:none}.breadcrumb .btn{padding-inline:6px;min-height:40px}
 .saved{font-size:10px;max-width:126px;text-align:left;line-height:1.35}.saved .icon{width:15px;height:15px;flex:none}
 .account-content.company-page,.content-page:not(.home-page){padding:18px 14px 20px;margin:0;max-width:100%}
 .account-content .company-panel>h1{font-size:25px;margin-bottom:16px}.section-head{gap:10px}.section-head h1{font-size:25px}
 .project-head{padding:14px 14px 0}.project-head h1{font-size:23px;overflow-wrap:anywhere}.project-head .head-action{display:none}.project-head .tabs{margin-top:12px;gap:4px}.project-head .tab{padding:10px 12px;flex:1;font-size:13px}
 .project-meta{font-size:12px;gap:8px}.project-meta .row{gap:5px;min-width:0}.project-meta .badge{font-size:10px}
 .home-page{padding:22px 14px 24px}.home-heading{margin-bottom:18px;gap:12px}.home-heading h1{font-size:27px}.home-heading .muted{font-size:13px}.home-date{font-size:12px}
 .home-continue{padding:20px;border-radius:18px}.home-continue h2{font-size:23px}.home-continue p{font-size:13px;margin-bottom:16px}.home-shortcuts{gap:8px;margin-top:12px}.home-shortcuts a{padding:13px 10px;gap:5px}.home-shortcuts strong{font-size:13px}.home-shortcuts small{font-size:11px}
 .home-columns{gap:18px}.hub-group{margin-top:20px}.hub-row{padding:12px;gap:10px;min-height:68px}.hub-label strong{font-size:15px}.hub-label small{font-size:12px}
 .home-tasks{margin-top:0}.home-calm{padding:20px}.home-heading .avatar-link{width:44px;height:44px}
 dialog[open]:not(.assembly-dialog):not(.document-dialog):not(.property-sheet):not(.chat-dialog):not(.identity-recovery-dialog){position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;max-height:calc(100dvh - 24px);border:0;border-radius:22px 22px 0 0;padding:22px 18px 0;box-shadow:0 -12px 45px #17232320}
 dialog>h2{font-size:21px;padding-right:40px}.dialog-actions .btn{min-height:48px}.dialog-actions>.primary{flex:1}
 .field input,.field select,.field textarea,.company-field input,.company-field select,.company-field textarea{font-size:16px!important;min-height:46px}
 .catalog-top-actions .btn{min-height:44px}.catalog-tools-body{right:0}.catalog-tabs{gap:6px}.catalog-tabs .btn{padding-inline:12px}
}
@media(prefers-reduced-motion:no-preference){
 dialog[open]:not(.assembly-dialog):not(.property-sheet){animation:svodra-panel-in var(--ui-enter) var(--ui-ease)}
 .ux-details[open]>:not(summary),.catalog-tools[open]>.catalog-tools-body{animation:svodra-detail-in 160ms ease-out}
 @keyframes svodra-panel-in{from{opacity:.5;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
 @keyframes svodra-detail-in{from{opacity:.5;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){.btn,.icon-btn,.hub-row,.nav-item,.profile-context{transition:none}dialog[open],.ux-details[open]>:not(summary){animation:none!important}button:active,a.btn:active,.hub-row:active{transform:none}}

.home-reminders>strong{display:block;padding:14px 16px 2px;font-size:13px;color:var(--muted)}.home-reminders+.hub-row{border-top:1px solid var(--line)}
