:root{--paper:#FAF6F0;--white:#FFFFFF;--soft:#F0E6DB;--ink:#292523;--muted:#625850;--primary:#A63E22;--hover:#7C2D18;--accent:#E99A62;--line:#D7C5B3;--border:#8C7563;--success:#275B3C;--danger:#A12C2C;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:1;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.18;letter-spacing:-1.35px;font-weight:650}h2{font-size:20px;line-height:1.3;letter-spacing:-.4px}h3{font-size:15px}small{font-size:12px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid transparent;border-radius:9px;font-weight:600;font-size:13px;line-height:1.3;background:transparent;white-space:nowrap}.button.primary{background:var(--primary);color:var(--white);border-color:var(--primary)}.button.primary:hover{background:var(--soft)}.button.secondary{background:var(--white);border-color:var(--line);color:var(--primary)}.button.secondary:hover{background:var(--soft)}.button.quiet{color:var(--muted)}.button.quiet:hover{background:var(--soft);color:var(--ink)}.button.danger,.danger{color:var(--danger)}.button.danger{background:var(--soft)}.wide{width:100%}.icon-button{width:34px;height:34px;border:0;border-radius:8px;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--soft);color:var(--primary)}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.5px;color:var(--muted);line-height:1.5}.eyebrow span{font-weight:450;color:var(--muted)}.pill{display:inline-flex;font-size:11px;font-weight:650;background:var(--soft);color:var(--primary);border-radius:30px;padding:5px 10px}.fineprint{font-size:11px;color:var(--muted);line-height:1.65}.notice{padding:13px 15px;background:var(--soft);border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:12px;line-height:1.65}.brand{display:flex;align-items:center;gap:11px;font-size:26px;letter-spacing:-1px;font-weight:650;line-height:1.1}.brand>.icon{width:38px;height:38px;padding:7px;border:1px solid var(--line);border-radius:9px;color:var(--accent)}.brand small{display:block;margin-top:5px;font-size:10px;font-weight:400;color:var(--muted);letter-spacing:.3px}.initial-loading,.load-error{padding:15vh 8vw}.load-error h1{margin-bottom:20px}.load-error a{display:block;margin-top:24px;text-decoration:underline}
/* Brand sizing keeps the full product name readable inside the narrow sidebar. */
.sidebar .brand>span{min-width:0}
/* Exact Instagram artwork, shared by login, navigation, print and favicon. */
.brand-mark{display:block;width:38px;height:38px;flex:0 0 auto;object-fit:contain;border-radius:8px}
.sidebar .brand>.brand-mark{width:32px;height:32px}
.print-brand>.brand-mark{width:28px;height:28px;border-radius:5px;print-color-adjust:exact;-webkit-print-color-adjust:exact}
@media(max-width:360px){.sidebar .brand>.brand-mark{width:28px;height:28px}}
/* Login */
.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-story{padding:54px 9%;background:var(--ink);color:var(--white);display:flex;flex-direction:column;justify-content:space-between;gap:70px;position:relative;overflow:hidden}.auth-story:after{content:"";position:absolute;width:310px;height:390px;right:-170px;top:190px;border:1px solid #FFFFFF0c;box-shadow:20px 20px 0 1px #FFFFFF06,40px 40px 0 1px #FFFFFF04;transform:rotate(-12deg);pointer-events:none}.auth-story .eyebrow{color:var(--muted);margin-bottom:22px}.auth h1{font-size:clamp(34px,4vw,58px);font-weight:500;line-height:1.2;letter-spacing:-2px}.auth h1 em{font-style:normal;color:var(--accent)}.auth-description{margin-top:28px;line-height:1.9;color:var(--muted);font-size:14px}.auth-trust{display:flex;gap:10px;color:var(--muted);font-size:12px;align-items:center}.auth-form{display:grid;place-items:center;padding:60px 36px;background:var(--paper)}.auth-form-inner{width:100%;max-width:350px}.auth-form h2{font-size:30px;letter-spacing:-1px;margin:22px 0 12px}.auth-form .muted{margin-bottom:25px;font-size:13px}.auth-form .notice{margin-bottom:22px}.auth-form .fineprint{margin-top:24px}.auth-form form{display:grid;gap:18px}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
/* App shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{background:var(--ink);color:var(--muted);padding:33px 22px 22px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar .brand{font-size:25px}.workspace{display:flex;align-items:center;gap:10px;padding:17px 0 24px;margin-top:36px;border-bottom:1px solid #FFFFFF12;font-size:12px}.workspace-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--soft);color:var(--muted)}.workspace strong{font-weight:500;display:block}.workspace small{font-size:10px;color:var(--muted)}.sidebar nav{display:flex;flex-direction:column;gap:7px;margin-top:24px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;font-size:13px;color:var(--muted)}.nav-link.active{background:var(--soft);color:var(--muted);font-weight:650}.nav-link.active .icon{stroke-width:1.9}.nav-link>span{margin-left:auto;background:#29252318;font-size:10px;border-radius:4px;padding:1px 6px}.nav-link:hover:not(.active){background:#FFFFFF08;color:var(--muted)}.sidebar-bottom{margin-top:auto}.local-note{display:flex;gap:10px;margin-bottom:23px;color:var(--muted);font-size:11px;line-height:1.5}.local-note .icon{width:16px;height:16px;margin-top:2px}.local-note small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.sidebar .button{font-size:11px;padding-left:0;color:var(--muted)}.main{min-width:0;display:flex;flex-direction:column}.topbar{height:77px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:var(--paper)}.breadcrumb{font-size:11px;color:var(--muted);display:flex;gap:12px}.breadcrumb>span{color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.mode-dot{width:5px;height:5px;border-radius:50%;background:var(--soft)}.avatar{display:grid;place-items:center;width:31px;height:31px;margin-left:17px;border-radius:50%;border:1px solid var(--line);color:var(--muted);background:var(--soft);font-size:11px}.demo-banner{padding:7px 42px;background:var(--soft);border-bottom:1px solid var(--line);color:var(--muted);font-size:10px}.content{padding:38px 42px 50px;max-width:1500px;width:100%;margin:auto auto 0;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:32px}.page-heading h1{margin:7px 0 9px}.page-heading p:not(.eyebrow){color:var(--muted);font-size:13px}.heading-dot{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{background:var(--white);border:1px solid var(--line);padding:20px 23px;border-radius:var(--radius)}.stat-title{display:flex;align-items:center;justify-content:space-between;gap:5px;color:var(--muted);font-size:11px}.stat-title .icon{width:17px;height:17px;color:var(--muted)}.stat>strong{display:block;font-size:35px;font-weight:500;line-height:1.3;margin:9px 0 3px;letter-spacing:-1px}.stat>small{font-size:10px;color:var(--muted)}.list-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.list-toolbar{display:flex;gap:15px;align-items:center;justify-content:space-between;min-height:76px;padding:16px 22px}.tabs{display:flex;gap:4px}.tab{border:0;background:none;font-size:11px;font-weight:550;color:var(--muted);padding:8px 11px;border-radius:7px;white-space:nowrap}.tab.selected{background:var(--soft);color:var(--muted)}.search{display:flex;align-items:center;gap:8px;max-width:240px;width:100%;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--muted)}.search .icon{width:15px;height:15px}.search input{width:100%;border:0;background:transparent;font-size:10px;padding:0;min-width:0;color:var(--ink)}.search input:focus{outline:none}.table-heading,.job-row{display:grid;grid-template-columns:minmax(210px,1fr) 75px 150px 105px 16px;gap:18px;align-items:center;padding:15px 24px}.table-heading{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:9px;letter-spacing:.3px}.job-row{min-height:111px;border-bottom:1px solid var(--line)}.job-row:last-child{border-bottom:0}.job-row:hover{background:var(--paper)}.job-row>.icon{width:16px;height:16px;color:var(--muted)}.job-identity{display:flex;gap:13px;align-items:center;min-width:0}.object-icon{background:var(--soft);border:1px solid var(--line);color:var(--muted);width:43px;height:47px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.object-icon .icon{width:21px;height:21px}.job-identity strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.job-identity small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.row-address{display:block;font-size:9px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.opening-count{font-size:16px;color:var(--muted)}.opening-count small{font-size:9px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:6px;width:max-content;font-size:10px;border-radius:5px;padding:5px 8px;background:var(--soft);color:var(--muted);font-weight:500;white-space:nowrap}.badge>span{width:4px;height:4px;background:currentColor;border-radius:50%}.badge.measured{background:var(--soft);color:var(--muted)}.badge.reviewed{background:var(--soft);color:var(--muted)}.badge.sent{background:var(--soft);color:var(--muted)}.badge.completed{background:var(--soft);color:var(--muted)}.badge.archived{background:var(--soft);color:var(--muted)}.row-date{font-size:10px;color:var(--muted)}.tip{display:flex;gap:12px;padding:20px 1px;color:var(--muted);font-size:10px;line-height:1.8}.tip .icon{width:17px;height:17px;color:var(--muted);margin-top:2px}.tip strong{font-weight:550;color:var(--muted)}.app-footer{padding:20px 42px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.empty{padding:60px 25px;text-align:center}.empty-icon{width:64px;height:64px;display:grid;place-items:center;background:var(--soft);color:var(--muted);border-radius:18px;margin:0 auto 18px}.empty-icon .icon{width:30px;height:30px}.empty h2{font-size:20px;margin:10px 0}.empty p{max-width:410px;margin:0 auto 22px;font-size:12px;line-height:1.8;color:var(--muted)}
/* Detail */
.back-link{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);margin-bottom:22px}.back-link .icon{width:14px;height:14px}.detail-heading{align-items:flex-start;margin-bottom:28px}.detail-heading h1{font-size:30px;max-width:700px;overflow-wrap:anywhere}.detail-heading p:not(.eyebrow){display:flex;align-items:center;gap:5px}.detail-heading .icon{width:15px;height:15px}.heading-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:24px}.detail-primary{min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.section-heading h2{font-size:18px}.section-heading p{color:var(--muted);font-size:11px;margin-top:3px}.count-label{font-size:11px;font-weight:500;color:var(--muted);margin-left:5px}.opening-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.opening-card{background:var(--white);border:1px solid var(--line);border-radius:13px;overflow:hidden;min-width:0}.opening-card-head{display:flex;align-items:center;gap:9px;padding:11px 16px;border-bottom:1px solid var(--line);font-size:10px}.opening-card-head>.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.opening-code{font-size:12px;font-weight:600}.opening-card-head .icon-button{width:27px;height:27px}.opening-card-head .icon-button .icon{width:14px;height:14px}.opening-drawing{display:block;width:100%;height:205px;padding:12px 16px;background:var(--paper)}.dim-label{font-size:11px;fill:var(--muted);font-family:inherit}.diagram-caption{font-size:7px;fill:var(--muted);font-family:inherit}.opening-card-body{padding:16px}.opening-kind{font-size:9px;letter-spacing:.2px;color:var(--muted);margin-bottom:3px}.opening-card h3{font-size:24px;font-weight:550;letter-spacing:-.8px}.opening-card h3 span{font-size:17px;color:var(--muted);font-weight:400}.opening-card h3 small{font-size:10px;color:var(--muted);font-weight:450;letter-spacing:0}.configuration{margin:9px 0 14px;color:var(--muted);font-size:10px;line-height:1.7;min-height:32px;white-space:pre-wrap;overflow-wrap:anywhere}.production-line{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted)}.production-line strong{font-size:10px;font-weight:500;color:var(--muted);text-align:right}.opening-notes{font-size:10px;white-space:pre-wrap;margin:12px 0;color:var(--muted);overflow-wrap:anywhere}.opening-card-actions{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:9px;color:var(--muted)}.opening-card-actions>span{display:flex;align-items:center;gap:5px}.opening-card-actions .icon{width:13px;height:13px}.opening-card-actions .button{font-size:9px;min-height:28px;padding:6px 0}.photo-strip{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}.photo-strip:empty{display:none}.photo-strip img{width:46px;height:39px;object-fit:cover;border-radius:5px}.incomplete{display:inline-block;margin:4px 0;color:var(--muted);font-size:9px;background:var(--soft);padding:2px 5px;border-radius:3px}.info-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:16px}.info-card>.eyebrow{font-size:9px;margin-bottom:16px}.info-card>.badge{margin-bottom:9px}.status-help{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:16px}.info-card .button{font-size:11px}.info-card .button.quiet{min-height:30px;padding:7px}.client-name{font-size:15px;display:block;overflow-wrap:anywhere}.info-card>.muted{font-size:11px;margin-top:4px;overflow-wrap:anywhere}.info-divider{height:1px;background:var(--line);margin:17px 0}.info-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:10px;margin:0}.info-card dt{color:var(--muted)}.info-card dd{color:var(--muted);text-align:right;margin:0;overflow-wrap:anywhere}.job-notes{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.job-notes h3{font-size:10px;color:var(--muted);font-weight:500}.job-notes p{margin-top:8px;font-size:11px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.tip.vertical{display:block;padding:4px 8px;font-size:10px}.tip.vertical p{margin-top:7px}.history-panel{margin-top:28px;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:18px 20px}.history-panel h2{font-size:14px;display:flex;align-items:center;gap:7px}.history-panel h2 .icon{width:15px;height:15px}.history-panel .muted{font-size:9px}.event{border-top:1px solid var(--line)}.event summary{display:flex;align-items:center;gap:8px;list-style:none;padding:13px 0;font-size:10px;cursor:pointer}.event summary::-webkit-details-marker{display:none}.event-dot{width:5px;height:5px;border-radius:50%;background:var(--soft);flex-shrink:0}.event strong{font-weight:500}.event-version{font-size:9px;color:var(--muted)}.event time{margin-left:auto;font-size:9px;color:var(--muted);white-space:nowrap}.event-detail{font-size:10px;color:var(--muted);padding:4px 0 15px;white-space:pre-wrap;overflow-wrap:anywhere}.change-grid{display:grid;grid-template-columns:130px minmax(0,1fr);gap:6px}.change-grid dd{margin:0}.change-grid del{color:var(--muted)}.client-row{display:flex;align-items:center;gap:15px;padding:19px 24px;border-top:1px solid var(--line)}.client-initial{background:var(--soft);color:var(--muted);width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font-size:13px}.client-description{flex:1;min-width:0}.client-description strong{font-size:13px;display:block}.client-description small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.client-description p{font-size:10px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.client-row>.muted{font-size:10px}.client-row .button{font-size:11px}
/* Forms */
label{display:grid;gap:7px;font-size:11px;color:var(--muted);font-weight:500}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--white);min-height:42px;padding:10px 12px;color:var(--ink);font-size:13px;transition:border-color .15s;min-width:0}input::placeholder,textarea::placeholder{color:var(--muted);font-size:11px}textarea{resize:vertical;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:3px solid var(--primary);outline-offset:3px}input[type="file"]{font-size:11px;padding:10px;background:var(--white)}input[type="date"]{min-width:0;max-width:100%;appearance:none}.form-error{font-size:12px;color:var(--danger);line-height:1.7;white-space:pre-wrap}.form-error:empty{display:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-section-title{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:21px;margin-top:3px}.form-section-title h3{font-size:14px}.form-section-title span{font-size:10px;color:var(--muted)}.field-help{font-size:11px;color:var(--muted);line-height:1.6;margin-top:-6px}.production-fields{border:1px dashed var(--line);background:var(--paper);padding:16px;border-radius:10px}.production-fields h3{font-size:13px}.production-fields p{font-size:10px;color:var(--muted);margin:4px 0 13px}.measurements label{font-size:10px}.measurements input{font-variant-numeric:tabular-nums}.measurements label:nth-child(2),.measurements label:nth-child(5){color:var(--muted)}dialog{border:0;border-radius:16px;padding:0;max-width:500px;width:calc(100% - 30px);max-height:calc(100dvh - 50px);box-shadow:0 25px 100px #29252333;color:var(--ink);background:var(--white)}dialog::backdrop{background:#29252370;backdrop-filter:blur(3px)}dialog.wide-modal{max-width:620px}.modal-header{padding:23px 25px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.modal-header h2{font-size:20px}.modal-header p{font-size:11px;margin-top:4px}.modal-body{padding:24px 25px;display:grid;gap:18px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 25px;border-top:1px solid var(--line);background:var(--paper);position:sticky;bottom:0}.modal-body .button.danger{width:max-content;margin-top:10px;font-size:11px}.photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.photo-gallery:empty{display:none}.photo-gallery figure{margin:0;border:1px solid var(--line);border-radius:9px;overflow:hidden}.photo-gallery img{display:block;width:100%;height:170px;object-fit:cover;background:var(--soft)}.photo-gallery figcaption{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:7px 9px;font-size:9px;color:var(--muted)}.photo-gallery figcaption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-gallery .icon{width:15px;height:15px}.upload-zone{border:1px dashed var(--line);background:var(--paper);border-radius:10px;padding:20px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:9px}.upload-zone>.icon{width:27px;height:27px;color:var(--muted)}.upload-zone span{font-size:10px;color:var(--muted)}.upload-zone input{max-width:300px}.toast{position:fixed;bottom:23px;left:50%;transform:translate(-50%,15px);max-width:calc(100% - 32px);padding:12px 20px;border-radius:10px;background:var(--soft);color:var(--white);box-shadow:0 9px 35px #29252333;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;font-size:12px;z-index:100}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{background:var(--soft)}
/* Printable saved revision */
.print-layout{max-width:1000px;margin:0 auto;padding:20px}.print-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.print-toolbar>span{font-size:11px;color:var(--muted)}.print-sheet{background:var(--white);border:1px solid var(--line);box-shadow:0 10px 30px #29252308;padding:42px 50px;border-radius:5px}.print-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:25px;border-bottom:2px solid var(--primary)}.print-brand{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:650;margin-bottom:15px}.print-header h1{font-size:29px;letter-spacing:-.5px}.print-header p{color:var(--muted);font-size:11px;margin-top:6px}.print-meta{line-height:1.9;text-align:right}.print-header .badge{float:right;margin-bottom:10px}.print-object{margin:25px 0;font-size:12px;overflow-wrap:anywhere}.print-object h2{font-size:21px;margin-bottom:8px}.print-object dl{display:grid;grid-template-columns:100px 1fr;gap:5px;margin:15px 0}.print-object dt{color:var(--muted)}.print-object dd{margin:0}.print-object>p{white-space:pre-wrap}.print-warning{font-size:10px;line-height:1.7;color:var(--muted);background:var(--paper);padding:13px 15px;margin-bottom:27px;border:1px solid var(--line)}.print-opening{padding:0 0 28px;margin-top:25px;border-bottom:1px solid var(--line);break-inside:avoid}.print-opening-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.print-opening-title h2{font-size:18px}.print-opening-title h2 span{font-size:13px;color:var(--muted);margin-left:8px;font-weight:450}.print-opening-title>strong{font-size:11px;font-weight:500;color:var(--muted)}.print-opening-content{display:grid;grid-template-columns:1fr 1fr;gap:30px}.print-opening .opening-drawing{height:270px;padding:5px}.dimensions-table{border-collapse:collapse;width:100%;font-size:10px}.dimensions-table th{text-align:left;border-bottom:1px solid var(--line);padding:7px 8px;color:var(--muted);font-weight:550}.dimensions-table th:last-child,.dimensions-table td:last-child{text-align:right}.dimensions-table td{padding:6px 8px;border-bottom:1px solid var(--line)}.print-product{font-size:10px;background:var(--soft);border:1px solid var(--line);padding:11px;margin-top:14px}.print-product strong{font-weight:550}.print-product p{margin-top:5px;color:var(--muted)}.print-opening>p{font-size:11px;margin-top:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.print-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.print-photos figure{margin:0;break-inside:avoid}.print-photos img{width:100%;height:130px;object-fit:contain;border:1px solid var(--line)}.print-photos figcaption{font-size:9px;color:var(--muted);overflow-wrap:anywhere;margin-top:4px}.print-footer{font-size:10px;color:var(--muted);margin-top:30px;line-height:1.8}.print-footer p+p{margin-top:22px}

/* P1 Terracotta Workshop. Temporary mark geometry and existing typography retained. */
.button,.nav-link,.job-row{text-decoration:none}
.button.primary:hover:not(:disabled),.button.primary:active:not(:disabled){background:var(--hover);border-color:var(--hover);color:var(--white)}
.button.secondary{border-color:var(--border)}
.button.secondary:hover,.button.quiet:hover,.icon-button:hover{background:var(--soft)}
.button.danger{background:var(--paper);border-color:var(--danger)}
.button:disabled{background:var(--soft);border-color:var(--border);color:var(--muted);opacity:1}
.eyebrow,.pill,.back-link{color:var(--primary)}
.notice{background:var(--soft);color:var(--ink)}
.brand>.icon{border-color:var(--border);color:var(--primary)}
.brand small{color:var(--soft)}
.auth-story{color:var(--paper)}
.auth-story .brand>.icon,.sidebar .brand>.icon{color:var(--accent);border-color:var(--accent)}
.auth-story .eyebrow{color:var(--accent)}
.auth-description,.auth-trust{color:var(--soft)}
.sidebar{color:var(--paper)}
.sidebar .brand{color:var(--paper);text-decoration:none}
.workspace-avatar{background:var(--soft);color:var(--ink)}
.workspace small,.local-note,.local-note small,.sidebar .button{color:var(--soft)}
.nav-link{color:var(--paper)}
.nav-link.active{background:var(--accent);color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.nav-link:hover:not(.active){background:#FFFFFF08;color:var(--paper)}
.sidebar .button:hover{background:var(--soft);color:var(--ink)}
.sidebar :focus-visible,.auth-story :focus-visible{outline-color:var(--accent)}
.nav-link.active:focus-visible{outline-color:var(--accent);box-shadow:0 0 0 3px var(--ink)}
.mode-dot{background:var(--primary)}
.heading-dot{color:var(--primary)}
.demo-banner{background:var(--soft);color:var(--ink)}
.tab.selected{background:var(--accent);color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.tab.selected:focus-visible{outline-color:var(--ink)}
.search,input,select,textarea{border-color:var(--border)}
.search:focus-within{outline:3px solid var(--primary);outline-offset:3px}
.search input:focus{outline:none}
.job-row{color:var(--ink)}
.job-row:hover{background:var(--paper)}
.badge,.badge.archived{background:var(--soft);color:var(--muted)}
.badge.measured{background:var(--accent);color:var(--ink)}
.badge.reviewed{background:var(--paper);color:var(--success)}
.badge.sent,.badge.completed{background:var(--soft);color:var(--ink)}
.dim-label{fill:var(--ink)}
.diagram-caption{fill:var(--muted)}
.incomplete{background:var(--accent);color:var(--ink)}
.event-dot{background:var(--primary)}
.measurements label:nth-child(2),.measurements label:nth-child(5){color:var(--primary)}
.production-fields,.upload-zone{border-color:var(--border)}
.toast{background:var(--success);color:var(--white)}
.toast.error{background:var(--danger)}
.print-warning,.print-product{background:var(--soft);color:var(--ink)}
.print-header{border-color:var(--primary)}

@media(min-width:1500px){.content{padding-top:45px}.opening-drawing{height:245px}.detail-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:1190px){.app-shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 16px 20px}.sidebar .brand{font-size:23px}.brand>.icon{width:34px;height:34px}.content{padding:29px 26px 40px}.topbar{padding:0 26px}.demo-banner{padding-left:26px}.table-heading,.job-row{grid-template-columns:minmax(180px,1fr) 50px 120px 70px 14px;gap:10px;padding-left:19px;padding-right:19px}.badge{font-size:9px}.detail-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.info-card{padding:17px}.opening-grid{gap:12px}.opening-card-body{padding:13px}.opening-card h3{font-size:21px}.production-line{flex-direction:column;gap:3px}.production-line strong{text-align:left}.page-heading h1{font-size:31px}.detail-heading h1{font-size:27px}.stats{gap:12px}.stat{padding:17px}.list-toolbar{padding:16px;flex-wrap:wrap}.search{max-width:220px}.stat>small{font-size:9px}}
@media(max-width:980px){.detail-layout{grid-template-columns:minmax(0,1fr)}.job-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px;order:-1}.job-sidebar .tip{display:none}.info-card{margin:0}.detail-heading{flex-wrap:wrap}.heading-actions{justify-content:flex-start}.table-heading{display:none}.job-row{grid-template-columns:minmax(200px,1fr) 120px 14px;gap:10px}.opening-count,.row-date{display:none}.stat>small{display:none}.stat-title{font-size:10px}.stat-title .icon{display:none}.stat>strong{font-size:30px}.tabs{width:100%}.search{max-width:none}.auth-story{padding:38px 9%}.page-heading h1{font-size:29px}}
@media(max-width:740px){.app-shell{display:block}.sidebar{position:static;height:auto;padding:18px 20px 0;display:block}.sidebar .brand{font-size:21px}.brand small{display:none}.brand>.icon{width:31px;height:31px;padding:5px}.sidebar .workspace,.sidebar-bottom{display:none}.sidebar nav{margin-top:19px;flex-direction:row;gap:8px;padding-bottom:12px}.nav-link{flex:1;padding:9px 11px;font-size:12px}.nav-link>.icon{width:17px;height:17px}.nav-link>span{margin-left:0}.topbar{height:50px;padding:0 20px}.breadcrumb{font-size:9px;gap:7px}.topbar-right{font-size:8px}.avatar{margin-left:4px;width:25px;height:25px;font-size:9px}.demo-banner{padding:7px 20px;font-size:9px}.content{padding:28px 20px 30px}.page-heading{align-items:flex-start;gap:17px;margin-bottom:24px}.page-heading h1{font-size:27px;letter-spacing:-1px}.page-heading p:not(.eyebrow){font-size:11px;max-width:230px}.page-heading>.button{font-size:0;width:42px;padding:10px;margin-top:18px;flex-shrink:0}.page-heading>.button .icon{width:20px;height:20px}.eyebrow{font-size:9px;letter-spacing:1.2px}.stats{gap:8px;margin-bottom:22px}.stat{padding:13px 12px;border-radius:11px}.stat-title{font-size:9px;min-height:27px;line-height:1.4;max-width:75px}.stat>strong{font-size:29px;margin-top:3px}.list-panel{border-radius:12px}.list-toolbar{padding:14px}.tabs{gap:1px;justify-content:space-between}.tab{font-size:10px;padding:7px 10px}.search input{font-size:11px}.job-row{grid-template-columns:minmax(0,1fr) 16px;gap:12px;padding:18px 15px;position:relative;min-height:120px;align-items:start}.job-row>.badge{grid-column:1;margin-left:53px;margin-top:-5px;width:max-content}.job-row>.icon{grid-column:2;grid-row:1;align-self:center}.job-identity{gap:10px}.job-identity strong{font-size:12px}.job-identity small{font-size:10px}.object-icon{width:43px}.row-address{max-width:230px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tip{font-size:9px}.app-footer{padding:17px 20px;font-size:8px}.empty{padding:42px 20px}.empty h2{font-size:18px}.empty p{font-size:11px}.detail-heading h1{font-size:28px}.detail-heading{gap:17px}.heading-actions{gap:6px;width:100%}.heading-actions .button{font-size:11px}.job-sidebar{grid-template-columns:1fr}.job-sidebar .info-card:nth-child(2){display:none}.info-card>.eyebrow{margin-bottom:9px}.info-card>.badge{margin-bottom:6px}.info-card{padding:17px}.status-help{font-size:10px;margin-bottom:12px}.info-card .button.primary{width:auto;min-height:35px}.info-card .button.quiet{width:auto;margin-left:6px;font-size:10px}.opening-grid{grid-template-columns:minmax(0,1fr);gap:20px}.opening-card-head{font-size:11px;padding:12px 17px}.opening-code{font-size:14px}.opening-drawing{height:230px}.opening-card-body{padding:18px}.opening-kind{font-size:10px}.opening-card h3{font-size:28px}.configuration{font-size:12px;min-height:0}.production-line{flex-direction:row;font-size:10px;padding:12px 0}.production-line strong{font-size:11px}.opening-card-actions{font-size:10px}.opening-card-actions .button{font-size:10px}.history-panel{padding:16px}.history-panel .section-heading{align-items:flex-start;gap:5px}.history-panel h2{font-size:13px}.history-panel .muted{font-size:8px;max-width:70px;text-align:right}.event summary{gap:6px;font-size:9px}.event time{font-size:8px}.client-row{padding:17px 14px;flex-wrap:wrap;gap:10px}.client-description strong{font-size:12px}.client-row>.muted{font-size:9px}.client-row .button{font-size:0;width:30px;padding:5px;min-height:30px}.client-row .button .icon{width:16px;height:16px}.client-initial{width:31px;height:31px;flex-shrink:0}.back-link{margin-bottom:16px}.auth{display:block}.auth-story{padding:27px 25px 29px;gap:30px}.auth h1{font-size:32px;letter-spacing:-1.3px}.auth-story .eyebrow{margin-bottom:12px;font-size:8px}.auth-description,.auth-trust{display:none}.auth-form{padding:30px 25px 45px}.auth-form h2{font-size:25px;margin-top:14px}.auth-form .muted{font-size:12px;margin-bottom:18px}.auth-form-inner{max-width:400px}.auth-form .notice{font-size:11px}.auth .brand{font-size:24px}.modal-header{padding:18px 19px}.modal-header h2{font-size:18px}.modal-body{padding:20px 19px;gap:17px}.modal-footer{padding:14px 19px}.form-grid{gap:12px}label{font-size:10px}input,select,textarea{font-size:16px;min-height:44px;padding:10px}input::placeholder,textarea::placeholder{font-size:11px}.form-section-title{align-items:flex-start}.form-section-title h3{font-size:13px}.form-section-title span{font-size:9px}.production-fields{padding:13px}.production-fields h3{font-size:12px}.production-fields .form-grid{gap:10px}.field-help{font-size:10px}.modal-body .button.danger{max-width:100%;font-size:10px}.photo-gallery img{height:125px}.print-layout{padding:12px}.print-toolbar{flex-wrap:wrap}.print-toolbar>span{order:3;font-size:10px}.print-toolbar .button{font-size:11px}.print-sheet{padding:24px 20px}.print-header{flex-direction:column;gap:15px}.print-header .badge{float:none}.print-meta{text-align:left}.print-opening-content{grid-template-columns:1fr}.print-opening .opening-drawing{height:200px}.print-opening-title{align-items:flex-start}.print-opening-title>strong{max-width:110px;font-size:10px}.print-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.print-photos img{height:110px}.print-header h1{font-size:25px}.print-object h2{font-size:19px}.print-footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.sidebar .brand{font-size:19px;letter-spacing:-.5px;gap:8px}
.sidebar .brand>span{white-space:nowrap}
.sidebar .brand>.icon{width:30px;height:30px;padding:5px}
@media(min-width:741px) and (max-width:1190px){.sidebar .brand{font-size:18px}}
@page{size:A4;margin:14mm 13mm}
@media print{body{background:var(--white);color:var(--ink);font-size:10pt}.print-layout{max-width:none;padding:0;margin:0}.print-toolbar,.toast,dialog{display:none!important}.print-sheet{border:0;box-shadow:none;padding:0;border-radius:0}.print-header{display:flex;flex-direction:row;padding-bottom:15px;break-inside:avoid}.print-header h1{font-size:25px}.print-header .badge{float:right}.print-meta{text-align:right;font-size:9px!important}.print-brand{font-size:15px;margin-bottom:10px}.print-object{margin:16px 0;font-size:10px}.print-object h2{font-size:18px}.print-warning{font-size:9px;padding:9px;margin-bottom:18px}.print-opening{margin-top:20px;padding-bottom:22px;break-inside:auto}.print-opening-title{break-after:avoid}.print-opening-content{grid-template-columns:1fr 1fr;gap:25px;break-inside:avoid}.print-opening .opening-drawing{height:240px}.print-opening>p{font-size:10px}.print-opening-title h2{font-size:16px}.print-opening-title>strong{max-width:none;font-size:10px}.print-photos{grid-template-columns:repeat(3,minmax(0,1fr));break-inside:avoid}.print-photos img{height:110px}.print-footer{break-inside:avoid;font-size:9px}.print-sheet .notice{font-size:9px}.badge,.print-warning,.print-product,.opening-drawing{-webkit-print-color-adjust:exact;print-color-adjust:exact}a{color:inherit;text-decoration:none}}

/* The language control changes labels in place; it does not recreate forms. */
.language-switch{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}
.language-switch button{font:inherit;font-size:11px;font-weight:600;line-height:1.3;padding:7px 9px;min-height:32px;border:1px solid var(--border);border-radius:6px;background:var(--white);color:var(--ink)}
.language-switch button:hover{background:var(--soft)}
.language-switch button.selected{background:var(--accent);color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.language-switch button.selected:focus-visible{outline-color:var(--ink)}
.sidebar>.language-switch{margin-top:18px}
.sidebar .language-switch button{background:var(--ink);color:var(--paper);border-color:var(--border)}
.sidebar .language-switch button:hover{background:var(--soft);color:var(--ink)}
.sidebar .language-switch button.selected{background:var(--accent);color:var(--ink)}
.sidebar .language-switch button:focus-visible{outline-color:var(--accent)}
.auth-form-inner>.language-switch{display:flex;justify-content:flex-end;margin-bottom:16px}
.modal-header{flex-wrap:wrap}
.modal-header>.language-switch{order:2;margin-left:auto}
.modal-header>.icon-button{order:3}
.print-toolbar{flex-wrap:wrap}
.print-toolbar>.language-switch{margin-left:auto}
.upload-zone{position:relative}
.file-picker{position:absolute;width:1px!important;height:1px;min-height:0!important;padding:0!important;opacity:0;overflow:hidden;clip-path:inset(50%)}
.file-choice-label{display:inline-block;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:var(--white);color:var(--primary)!important}
.upload-zone:focus-within{outline:3px solid var(--primary);outline-offset:3px}
@media(max-width:740px){
  .sidebar>.language-switch{position:absolute;top:17px;right:16px;margin:0}
  .sidebar .brand{max-width:calc(100% - 94px)}
  .sidebar .brand>span{font-size:16px}
  .language-switch button{font-size:10px;padding:7px}
  .modal-header{gap:10px}
  .modal-header>h2{flex-basis:100%}
  .modal-header>.language-switch{margin-left:0}
  .modal-header>.icon-button{margin-left:auto}
  .topbar-right{flex-shrink:0}
  .breadcrumb{flex-wrap:wrap}
  .heading-actions .button{white-space:normal}
  .print-opening-title>strong{overflow-wrap:anywhere}
}
@media(max-width:360px){
  .sidebar{padding-left:14px;padding-right:14px}
  .sidebar .brand{gap:5px}
  .sidebar .brand>.icon{width:25px;height:25px;padding:3px}
  .sidebar .brand>span{font-size:14px}
  .content{padding-left:14px;padding-right:14px}
  .topbar,.demo-banner{padding-left:14px;padding-right:14px}
  .topbar-right{font-size:7px}
  .avatar{margin-left:0}
  .tabs{flex-wrap:wrap;justify-content:flex-start}
  .tab{padding-left:7px;padding-right:7px}
  .production-line{flex-wrap:wrap}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .form-grid.measurements{grid-template-columns:repeat(2,minmax(0,1fr))}
  .print-layout{padding:8px}
  .print-sheet{padding:20px 14px}
  .print-header h1{font-size:23px}
}
@media print{.language-switch{display:none!important}}

/* Saved construction views share exactly the same model as the editor. */
.opening-card>.construction-drawing{display:block;width:100%;height:270px;background:var(--paper)}
.construction-details{margin-bottom:14px;font-size:11px;line-height:1.6}
.construction-details>summary{cursor:pointer;color:var(--primary);font-weight:600}
.construction-details[open]>summary{margin-bottom:10px}
.construction-details,.print-construction-summary,.history-before{overflow-wrap:anywhere}
.print-opening-content>.construction-drawing{width:100%;height:320px;align-self:start}
.print-construction-summary{font-size:11px;line-height:1.65;padding:14px 0;border-top:1px solid var(--line)}
.print-construction-summary ul,.construction-details ul{padding-left:20px;margin:8px 0}
.history-before{color:var(--muted);padding-bottom:8px;border-bottom:1px dashed var(--line);margin-bottom:8px}
.change-grid dd{min-width:0}
.construction-modal .modal-header{position:sticky;top:0;z-index:5;background:var(--white);border-bottom:1px solid var(--line)}

/* Mobile opening workflow keeps a single live form across all three screens. */
.opening-form-section{display:grid;gap:18px;min-width:0}
.opening-mobile-tabs{display:none}
.opening-inline-photos{display:grid;gap:12px;min-width:0}
.opening-inline-photos [hidden]{display:none!important}
.opening-inline-photos h3{font-size:15px}
.opening-inline-photos [data-photo-count]{font-size:11px;color:var(--muted)}
.opening-photo-actions{display:flex;flex-wrap:wrap;gap:8px}
.opening-photo-actions .button{white-space:normal;min-height:44px}
.opening-photo-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.opening-photo-gallery:empty,.opening-photo-queue:empty{display:none}
.opening-photo-gallery a{display:grid;gap:5px;min-width:0;font-size:11px;overflow-wrap:anywhere}
.opening-photo-gallery img{width:100%;height:110px;object-fit:cover;border:1px solid var(--line);border-radius:9px}
.opening-photo-queue{display:grid;gap:12px}
.opening-queued-photo{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;background:var(--paper);padding:12px;border:1px solid var(--line);border-radius:10px}
.opening-queued-photo>img{width:80px;height:80px;object-fit:cover;border-radius:6px}
.opening-queued-photo strong,.opening-queued-photo p{font-size:11px;overflow-wrap:anywhere}
.opening-queued-photo .opening-photo-actions{margin-top:8px}
.opening-queued-photo .button{font-size:11px}
@media(max-width:700px){
  dialog.construction-modal{inset:var(--opening-viewport-top,0px) 0 auto;position:fixed;margin:0;width:100%;max-width:none;height:var(--opening-viewport-height,100dvh);max-height:100dvh;border-radius:0;overflow:hidden}
  .construction-modal .mobile-opening-form{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%;min-height:0}
  .construction-modal .mobile-opening-form>.modal-header{position:relative;top:auto;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;gap:8px;min-height:64px;flex-wrap:wrap}
  .construction-modal .modal-header h2{font-size:17px;max-width:calc(100% - 54px);overflow-wrap:anywhere;order:0;flex:1}
  .construction-modal .modal-header>.icon-button{order:1;width:44px;height:44px}
  .construction-modal .modal-header .language-switch{order:2;margin:0}
  .construction-modal .language-switch button{min-width:44px;min-height:44px;font-size:12px}
  .opening-mobile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 10px;background:var(--paper);border-bottom:1px solid var(--line);z-index:4}
  .opening-mobile-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:5px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:11px;line-height:1.25;font-weight:600;overflow-wrap:anywhere}
  .opening-mobile-tabs button>span{font-size:9px;letter-spacing:1px}
  .opening-mobile-tabs button[aria-pressed="true"]{color:var(--primary);background:var(--white);border-color:var(--border)}
  .construction-modal .mobile-opening-form>.modal-body{display:block;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:16px 14px;-webkit-overflow-scrolling:touch;scroll-padding:16px}
  .mobile-opening-form .opening-form-section{gap:16px;margin-bottom:18px}
  .mobile-opening-form[data-mobile-tab="construction"] [data-opening-panel]:not([data-opening-panel="construction"]),
  .mobile-opening-form[data-mobile-tab="dimensions"] [data-opening-panel]:not([data-opening-panel="dimensions"]),
  .mobile-opening-form[data-mobile-tab="photos"] [data-opening-panel]:not([data-opening-panel="photos"]){display:none}
  .construction-modal .mobile-opening-form>.modal-footer{position:relative;bottom:auto;padding:10px 14px calc(10px + env(safe-area-inset-bottom));z-index:6;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:10px}
  .construction-modal .modal-footer .button{min-height:48px;font-size:14px}
  .mobile-opening-form input,.mobile-opening-form select,.mobile-opening-form textarea{min-height:48px;font-size:16px}
  .mobile-opening-form label{font-size:12px}
  .mobile-opening-form .form-grid{gap:12px}
  .mobile-opening-form .modal-body>.form-error{margin:16px 0 0;padding:12px;border:1px solid var(--danger);background:var(--white);border-radius:8px}
  .mobile-opening-form .form-section-title{padding-top:0;border-top:0}
  .mobile-opening-form .measurements label{font-size:12px}
  .opening-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opening-photo-actions>.button{flex:1;min-height:48px;font-size:12px}
  .opening-queued-photo{grid-template-columns:56px minmax(0,1fr);gap:10px;padding:10px}
  .opening-queued-photo>img{width:56px;height:70px}
  .opening-card-head .icon-button{width:44px;height:44px}
  .opening-card-actions .button{min-height:44px;padding:8px}
}
@media(max-width:740px){.print-opening-content>.construction-drawing{height:270px}.print-construction-summary{font-size:10px}}
@media print{.print-opening-content>.construction-drawing{height:260px;break-inside:avoid}.print-construction-summary{font-size:8pt;break-inside:auto}.print-construction-summary li{break-inside:avoid}}

/* Layout refinement: reachable information, readable controls and bounded scrolling. */
html{scrollbar-gutter:stable}
body:has(dialog[open]){overflow:hidden}
.row-date-label{display:none}
.client-visit-card>summary{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:7px 10px;cursor:pointer;list-style:none;min-height:44px}
.client-visit-card>summary::-webkit-details-marker{display:none}
.client-visit-card>summary>span{font-size:10px;font-weight:650;letter-spacing:1px;color:var(--primary)}
.client-visit-card>summary>strong{grid-column:1;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.client-visit-card>summary>.icon{grid-column:2;grid-row:1 / 3;align-self:center;transition:transform .15s}
.client-visit-card[open]>summary>.icon{transform:rotate(90deg)}
.client-visit-content{border-top:1px solid var(--line);padding-top:15px;margin-top:13px}
.client-visit-content>.client-name{display:none}
.client-visit-content>.muted{overflow-wrap:anywhere}
.client-visit-content .info-divider{margin:14px 0}
.job-identity>div:last-child,.client-description strong{min-width:0;overflow-wrap:anywhere}
.event summary{min-height:44px}
.event summary::after{content:'+';color:var(--primary);font-size:17px;line-height:1;width:15px;flex-shrink:0;text-align:center}
.event[open]>summary::after{content:'−'}
.event-detail:empty{padding:0}
.modal-body{overscroll-behavior:contain}
dialog{overscroll-behavior:contain}
.modal-header>h2,.modal-header>div:not(.language-switch){min-width:0;overflow-wrap:anywhere}
.modal-footer .button{white-space:normal}
.opening-card-head>.opening-code{overflow-wrap:anywhere;max-width:50%}
.photo-strip a{display:block;min-width:46px;min-height:44px}
.photo-strip img{display:block;aspect-ratio:46/39}
.photo-gallery figure{min-width:0}
.photo-gallery figcaption{gap:8px}
.photo-gallery figcaption>span{min-width:0;overflow-wrap:anywhere;white-space:normal}
@media screen and (max-width:740px){
  .sidebar{position:relative;padding:14px 16px 0}
  .sidebar>.language-switch{top:10px;right:14px}
  .sidebar .brand{min-height:44px;max-width:calc(100% - 104px)}
  .sidebar .brand>span{font-size:16px}
  .sidebar nav{margin-top:9px;padding:0 52px 12px 0;gap:6px}
  .sidebar .nav-link{min-height:44px;font-size:13px;padding:9px 10px;gap:8px}
  .sidebar-bottom{display:block;position:absolute;right:14px;bottom:12px;margin:0}
  .sidebar-bottom .local-note{display:none}
  .sidebar .sidebar-bottom .button{width:44px;min-height:44px;padding:10px;font-size:0;border:1px solid var(--border)}
  .sidebar .sidebar-bottom .button .icon{width:20px;height:20px}
  .language-switch button{min-width:44px;min-height:44px;font-size:12px}
  .topbar{display:none}
  .demo-banner{font-size:11px;line-height:1.5;padding:9px 16px}
  .content{padding:24px 16px 30px}
  .page-heading{gap:14px;flex-wrap:wrap;margin-bottom:22px}
  .page-heading>div{min-width:0;flex:1}
  .page-heading h1{font-size:28px;line-height:1.18;letter-spacing:-.8px;overflow-wrap:anywhere}
  .page-heading p:not(.eyebrow){font-size:13px;max-width:none}
  .page-heading>.button{font-size:13px;width:auto;min-height:46px;margin-top:0;padding:11px 14px}
  .page-heading:not(.detail-heading)>.button{flex-basis:100%}
  .eyebrow{font-size:10px}
  .stats{gap:8px;margin-bottom:20px}
  .stat{padding:12px 10px}
  .stat-title{font-size:11px;min-height:32px;max-width:none}
  .stat>strong{font-size:28px}
  .tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:3px}
  .tab{font-size:11px;min-height:44px;padding:8px 4px;white-space:normal;overflow-wrap:anywhere}
  .list-toolbar{padding:12px;gap:12px}
  .search{padding:10px 12px;min-height:48px}
  .search input{font-size:16px;min-height:26px}
  .search input::placeholder{font-size:13px}
  .job-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:16px;min-height:0}
  .job-identity{grid-column:1 / -1;grid-row:1;padding-right:25px;align-items:flex-start}
  .job-identity strong{font-size:14px;line-height:1.4}
  .job-identity small{font-size:12px}
  .row-address{font-size:11px;white-space:normal;max-width:none;line-height:1.5}
  .job-row>.icon{grid-row:1;grid-column:2;justify-self:end;align-self:start;margin-top:12px}
  .job-row>.badge{grid-column:1;grid-row:2;margin:0 0 0 53px;max-width:100%;white-space:normal;font-size:11px}
  .opening-count{display:block;grid-column:2;grid-row:2;font-size:13px;text-align:right}
  .opening-count small{font-size:11px}
  .row-date{display:block;grid-column:1 / -1;margin-left:53px;font-size:12px;line-height:1.5}
  .row-date-label{display:inline;margin-right:6px;color:var(--muted);font-size:11px}
  .row-date-label::after{content:':'}
  .badge{font-size:11px}
  .back-link{font-size:13px;min-height:44px;margin-bottom:10px}
  .heading-actions{flex-basis:100%;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px}
  .detail-heading>.heading-actions{flex:0 0 100%}
  .heading-actions .button{font-size:13px;min-height:46px}
  .job-sidebar{gap:12px}
  .job-sidebar .info-card:nth-child(2){display:block}
  .info-card{padding:16px}
  .status-help{font-size:12px;line-height:1.6}
  .info-card .button.primary,.info-card .button.quiet{min-height:44px;font-size:12px;white-space:normal}
  .info-card .button.quiet{margin-left:0}
  .info-card dl{font-size:12px}
  .job-notes p{font-size:12px}
  .section-heading h2{font-size:19px}
  .section-heading p{font-size:12px}
  .section-heading>.button{min-height:44px;white-space:normal}
  .opening-card-head{padding:10px 14px}
  .opening-card-head .icon-button,.icon-button{min-width:44px;width:44px;height:44px}
  .opening-card-head .icon-button .icon{width:18px;height:18px}
  .opening-card-head>.muted{font-size:12px}
  .opening-card-body{padding:16px}
  .opening-kind,.opening-notes{font-size:12px}
  .construction-details{font-size:12px}
  .construction-details>summary{min-height:44px;display:flex;align-items:center;gap:8px}
  .construction-details>summary::before{content:'+';font-size:18px}
  .construction-details[open]>summary::before{content:'−'}
  .production-line,.production-line strong{font-size:12px;flex-wrap:wrap}
  .opening-card-actions,.opening-card-actions .button{font-size:12px}
  .opening-card-actions .button{min-height:44px;white-space:normal}
  .history-panel h2{font-size:15px}
  .history-panel .muted{font-size:10px;max-width:80px}
  .event summary{display:grid;grid-template-columns:6px minmax(0,1fr) auto 15px;gap:6px 8px;padding:12px 0;font-size:12px}
  .event-version{font-size:11px}
  .event time{grid-column:2 / 4;grid-row:2;margin:0;font-size:11px}
  .event summary::after{grid-column:4;grid-row:1 / 3}
  .event-detail{font-size:12px}
  .change-grid{grid-template-columns:minmax(0,1fr);gap:4px}
  .change-grid dt{font-weight:600}
  .change-grid dd{margin-bottom:10px}
  .client-row{display:grid;grid-template-columns:36px minmax(0,1fr) 44px;gap:8px 10px;padding:16px 12px}
  .client-description strong{font-size:14px}
  .client-description small,.client-description p{font-size:12px}
  .client-row>.muted{grid-column:2;grid-row:2;font-size:11px}
  .client-row .button{grid-column:3;grid-row:1 / 3;width:44px;min-height:44px}
  .client-row .button .icon{width:18px;height:18px}
  label,.measurements label{font-size:12px}
  .modal-header{padding:14px 16px;gap:8px}
  .modal-header>h2{flex-basis:auto;flex:1;order:0;font-size:18px}
  .modal-header>.language-switch{order:2;margin:0}
  .modal-header>.icon-button{order:1;margin:0}
  .modal-body{padding:18px 16px}
  .modal-footer .button{min-height:46px;font-size:14px}
  .photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-gallery figcaption{font-size:12px}
  .fineprint,.field-help{font-size:12px}
  .app-footer{font-size:11px;gap:16px;flex-wrap:wrap;padding:16px}
  .toast{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:none;width:auto;font-size:13px;overflow-wrap:anywhere;transform:translateY(15px)}
  .toast.visible{transform:translateY(0)}
  .tip{font-size:11px}
}
@media screen and (max-width:360px){
  .sidebar .brand{gap:5px}
  .sidebar .brand>span{font-size:14px}
  .sidebar .brand>.icon{width:24px;height:24px}
  .sidebar .nav-link{font-size:12px;padding:9px 7px;gap:6px}
  .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tab{white-space:nowrap}
  .construction-modal .mobile-opening-form>.modal-footer{grid-template-columns:minmax(118px,1fr) minmax(0,1.4fr)}
  .page-heading h1{font-size:26px}
  .opening-count{font-size:12px}
  .job-row>.badge,.row-date{margin-left:0}
  .event summary{font-size:11px}
}
@media screen and (max-height:500px){
  dialog{max-height:calc(100dvh - 16px)}
  .construction-modal .modal-header{padding-top:8px;padding-bottom:8px;min-height:52px}
  .construction-modal .opening-mobile-tabs{padding-top:4px;padding-bottom:4px}
  .construction-modal .opening-mobile-tabs button{min-height:44px;flex-direction:row;gap:5px}
  .construction-modal .opening-mobile-tabs button>span{display:none}
}
@media screen and (max-width:1000px) and (max-height:520px){
  dialog .language-switch button,dialog .icon-button{min-width:44px;min-height:44px}
  dialog .button{min-height:44px}
  dialog input,dialog select,dialog textarea{font-size:16px;min-height:44px}
}
