:root{--accent: #0f7774;--accent-dark: #173f43;--accent-hover: #0b625f;--accent-soft: #e5f2f1;--bg: #eef2f1;--border: #d7ddda;--border-strong: #aab5b0;--danger: #b33a2f;--warning: #a5661f;--ink: #16201e;--muted: #65716d;--panel: #ffffff;--panel-subtle: #f6f8f7;--shadow: 0 1px 2px rgba(22, 32, 30, .05);--font-display: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;color:var(--ink);background:var(--bg);font-family:Hiragino Sans,Yu Gothic UI,Yu Gothic,Meiryo,system-ui,sans-serif;font-synthesis:none;letter-spacing:0;text-rendering:optimizeLegibility}h1,h2,h3{font-feature-settings:"palt"}a,button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,opacity .16s ease}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);margin:0;min-width:320px;overscroll-behavior-y:contain}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh;padding:0 clamp(16px,3vw,36px) 48px}.topbar{align-items:center;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;margin:0 auto;max-width:1440px;min-height:76px;padding:16px 2px 14px}.brand-lockup{align-items:center;display:flex;gap:12px;min-width:0}.brand-lockup img{height:38px;width:38px}.topbar-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.topbar h1,.summary-header h2,.section-heading h2{letter-spacing:0;margin:0}.topbar h1{font-family:var(--font-display);font-size:24px;font-weight:700;line-height:1.25}.eyebrow{color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.14em;margin:0 0 6px;text-transform:uppercase}.status-pill,.done-badge{align-items:center;background:transparent;border:0;border-radius:0;color:#344054;display:inline-flex;font-size:13px;font-weight:700;gap:8px;padding:4px 0}.account-panel{background:transparent;border:0;border-radius:0;display:grid;gap:0;margin:0 auto 24px;max-width:1440px;padding:0}.view-tabs{align-items:stretch;background:transparent;border:0;border-bottom:1px solid var(--border);display:flex;gap:28px;justify-content:space-between;overflow-x:auto;scrollbar-width:thin}.view-tabs-primary,.view-tabs-utility{display:flex;flex:0 0 auto}.view-tabs-utility{margin-left:auto}.view-tabs button,.view-tabs a{align-items:center;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--ink);display:inline-flex;font-weight:600;gap:8px;flex:0 0 auto;min-height:48px;padding:11px 14px 9px;text-decoration:none}.view-tabs-utility a{color:var(--muted);font-size:13px;font-weight:600;padding-inline:10px}.login-form button,.signed-in-box button,.inbox-header button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:4px;color:#26333f;display:inline-flex;font-weight:600;gap:8px;min-height:40px;padding:9px 12px;text-decoration:none}.signed-in-box>button{background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;padding-inline:2px}.view-tabs button.active{background:transparent;border-bottom-color:var(--accent);color:var(--accent-dark)}.view-tabs button.active svg{color:var(--accent)}.login-form{display:grid;gap:10px;grid-template-columns:minmax(180px,1fr) minmax(150px,.8fr) minmax(120px,.5fr) auto}.auth-switch{display:flex;gap:8px;grid-column:1 / -1}.auth-switch button{background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:#26333f;font-weight:700;min-height:36px;padding:7px 10px}.auth-switch button.active{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}.register-profile-grid{display:grid;gap:10px;grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr))}.login-form label{display:grid;gap:5px}.login-form span,.signed-in-box span{color:var(--muted);font-size:12px;font-weight:600}.login-form input,.login-form select{background:#fff;border:1px solid var(--border-strong);border-radius:6px;min-height:40px;padding:8px 10px}.login-form button{align-self:end;background:var(--ink);color:#fff;justify-content:center}.signed-in-box{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;display:flex;gap:12px;justify-content:space-between;padding:11px 2px 12px}.signed-in-box div{display:grid;gap:3px}.signed-in-box .approval-waiting{background:#fff8e8;border:1px solid #ead6a4;border-radius:6px;flex:1 1 420px;gap:7px;padding:9px 11px}.approval-waiting .warning{color:#6f5418;margin:0}.approval-waiting span{color:#6f5418;line-height:1.5}.approval-waiting a{color:inherit;font-weight:700}.approval-waiting button{justify-self:start}.signed-out-box{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto auto;padding:11px 2px 12px}.signed-out-box div{display:grid;gap:3px}.signed-out-box span{color:var(--muted);font-size:12px;font-weight:600}.signed-out-box small{color:var(--muted);font-size:12px}.signed-out-box a{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:#26333f;display:inline-flex;font-weight:600;gap:8px;min-height:40px;padding:9px 2px;text-decoration:none}.signed-out-box a:first-of-type{background:var(--accent);border-bottom-color:var(--accent);color:#fff;justify-content:center;padding-inline:12px}.status-message{background:#eff6ff;border:1px solid #bfdbfe;border-radius:4px;color:#1e3a5f;font-size:13px;font-weight:600;margin:0;padding:9px 10px}.auth-page{background:var(--bg);color:var(--ink);display:grid;grid-template-columns:minmax(0,.95fr) minmax(420px,.7fr);min-height:100vh}.auth-visual{background:#101828;color:#fff;display:grid;min-height:100vh;padding:clamp(28px,5vw,72px)}.auth-back-link{align-items:center;align-self:start;color:#d0d5dd;display:inline-flex;font-weight:700;gap:8px;text-decoration:none}.auth-visual h1{font-family:var(--font-display);font-size:clamp(38px,5vw,56px);font-weight:600;letter-spacing:.02em;line-height:1.2;margin:0 0 20px}.auth-visual span{color:#e4e7ec;display:block;font-size:17px;font-weight:400;line-height:2;max-width:640px}.auth-feature-list{align-self:end;display:grid;gap:12px;max-width:560px}.auth-feature-list p{align-items:center;border-top:1px solid rgba(255,255,255,.18);display:flex;gap:10px;font-size:17px;font-weight:600;margin:0;padding-top:14px}.auth-feature-list svg{color:#a8c3e8;flex:0 0 auto}.auth-form-panel{align-content:center;background:var(--panel);display:grid;gap:14px;padding:clamp(24px,4vw,56px)}.auth-form-header{align-items:center;display:flex;gap:12px;margin-bottom:10px}.auth-form-header svg{color:var(--accent)}.auth-form-header h2{font-family:var(--font-display);font-size:28px;font-weight:600;letter-spacing:.02em;margin:0}.auth-lab-fields{border-top:1px solid var(--border);display:grid;gap:12px;margin-top:4px;padding-top:16px}.compact-heading{padding-bottom:4px}.compact-heading h2{font-size:17px}.auth-submit{align-items:center;background:var(--ink);border:1px solid var(--ink);border-radius:6px;color:#fff;display:inline-flex;font-weight:700;gap:9px;justify-content:center;min-height:48px;padding:12px 16px}.auth-submit:disabled{cursor:not-allowed;opacity:.6}.auth-field-note{background:#f2f4f7;border-left:3px solid var(--accent);color:var(--muted);font-size:13px;line-height:1.6;margin:0;padding:9px 11px}.auth-reset-button{align-items:center;background:transparent;border:0;color:var(--accent-dark);display:inline-flex;font-weight:700;gap:7px;justify-self:start;padding:4px 0}.auth-reset-button:disabled{opacity:.55}.auth-complete-link{color:var(--accent-dark);font-weight:700;text-align:center;text-decoration:none}.auth-page-switch{border-top:1px solid var(--border);margin-top:4px;padding-top:14px}.auth-page-switch a{color:var(--accent-dark);font-weight:700;text-decoration:none}.admin-page{background:#f5f6f3;color:#1b2930;min-height:100vh}.admin-topbar{align-items:center;background:#fff;border-bottom:1px solid #d8dfda;display:flex;justify-content:space-between;min-height:78px;padding:14px clamp(20px,4vw,64px)}.admin-brand{align-items:center;color:var(--accent-dark);display:inline-flex;font-family:var(--font-display);font-size:20px;font-weight:700;gap:8px;text-decoration:none}.admin-topbar p{color:#65736f;font-size:12px;margin:4px 0 0}.admin-topbar-actions,.admin-row-actions,.admin-statuses{align-items:center;display:flex;gap:8px}.admin-topbar-actions>span{color:#52635f;font-size:13px;font-weight:700;margin-right:4px}.admin-topbar button,.admin-row-actions button{align-items:center;background:#fff;border:1px solid #bfcac5;border-radius:5px;color:#294946;display:inline-flex;font-size:13px;font-weight:700;gap:6px;justify-content:center;min-height:36px;padding:7px 10px}.admin-topbar button:hover,.admin-row-actions button:hover{background:#edf4f1}.admin-topbar .admin-signout{color:#8a3d3d}.admin-topbar button:disabled,.admin-row-actions button:disabled{cursor:wait;opacity:.55}.admin-content{margin:0 auto;max-width:1440px;padding:38px clamp(20px,4vw,64px) 64px}.admin-heading,.admin-section-header{align-items:end;display:flex;gap:20px;justify-content:space-between}.admin-heading h1,.admin-section-header h2{color:#1b2930;font-family:var(--font-display);letter-spacing:0;margin:4px 0 0}.admin-heading h1{font-size:30px}.admin-section-header h2{font-size:22px}.admin-heading .eyebrow,.admin-section-header .eyebrow{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.08em;margin:0}.admin-message{background:#e7f4ed;border-left:3px solid #258365;color:#15553f;font-size:13px;font-weight:700;margin:0;max-width:420px;padding:10px 12px}.admin-metrics{display:grid;gap:1px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:28px;overflow:hidden}.admin-metric{background:#fff;border:1px solid #d8dfda;display:grid;gap:7px;min-height:156px;padding:18px}.admin-metric svg{color:#0d716a}.admin-metric>span,.admin-metric small{color:#65736f;font-size:12px;font-weight:700}.admin-metric strong{color:#1b2930;font-size:27px;line-height:1.1}.admin-security{align-items:center;background:#fff;border:1px solid #cbd5cf;display:flex;gap:24px;justify-content:space-between;margin-top:20px;padding:18px 20px}.admin-security-status{align-items:flex-start;display:flex;gap:12px}.admin-security-status>svg{color:#176343;margin-top:3px}.admin-security-status .eyebrow{color:var(--accent);font-size:11px;font-weight:800;margin:0}.admin-security-status h2{color:#1b2930;font-family:var(--font-display);font-size:18px;letter-spacing:0;margin:3px 0 0}.admin-security-status span,.admin-security-actions p{color:#65736f;font-size:12px;line-height:1.6}.admin-security-status span{display:block;margin-top:5px}.admin-security-actions{align-items:flex-end;display:flex;flex-direction:column;gap:8px;max-width:430px}.admin-security-actions>button{align-items:center;background:#fff;border:1px solid #9eada7;border-radius:5px;color:#294946;display:inline-flex;font:inherit;font-size:13px;font-weight:700;gap:6px;justify-content:center;min-height:36px;padding:7px 10px}.admin-security-actions details{color:#52635f;font-size:12px;text-align:right}.admin-security-actions summary{cursor:pointer;font-weight:700}.admin-security-actions p{margin:8px 0 0;text-align:left}.admin-section{border-top:1px solid #cbd5cf;margin-top:42px;padding-top:20px}.admin-section-header>div>span{color:#65736f;display:block;font-size:13px;line-height:1.6;margin-top:8px}.admin-section-header input{background:#fff;border:1px solid #bfcac5;border-radius:5px;color:#263936;font:inherit;font-size:14px;min-height:42px;padding:9px 11px;width:min(100%,320px)}.admin-account-count{color:#53625e;font-size:13px;font-weight:800}.admin-account-filters{align-items:end;display:grid;gap:10px;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,.7fr)) auto;margin-top:18px}.admin-order-filters{align-items:end;display:grid;gap:10px;grid-template-columns:minmax(260px,1fr) minmax(150px,220px) auto;margin-top:18px}.admin-order-filters label{color:#53625e;display:grid;font-size:11px;font-weight:800;gap:5px}.admin-order-filters input,.admin-order-filters select,.admin-order-filters>button{background:#fff;border:1px solid #bfcac5;border-radius:5px;color:#263936;font:inherit;font-size:13px;min-height:40px;padding:8px 10px;width:100%}.admin-order-filters>button{color:#52635f;cursor:pointer;font-weight:700;white-space:nowrap}.admin-order-filters .admin-account-search input{padding-left:34px}.admin-account-filters label{color:#53625e;display:grid;font-size:11px;font-weight:800;gap:5px}.admin-account-filters input,.admin-account-filters select,.admin-account-filters>button{background:#fff;border:1px solid #bfcac5;border-radius:5px;color:#263936;font:inherit;font-size:13px;min-height:40px;padding:8px 10px;width:100%}.admin-account-filters>button{color:#52635f;cursor:pointer;font-weight:700;white-space:nowrap}.admin-account-search{align-items:center;display:flex!important;position:relative}.admin-account-search svg{color:#71807c;left:11px;pointer-events:none;position:absolute}.admin-account-search input{padding-left:34px}.admin-account-search .sr-only{clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.admin-table-wrap{background:#fff;border:1px solid #d8dfda;margin-top:20px;overflow-x:auto}.admin-table{border-collapse:collapse;min-width:1100px;width:100%}.admin-table th{background:#eef2ef;color:#53625e;font-size:11px;letter-spacing:.04em;padding:11px 14px;text-align:left}.admin-table td{border-top:1px solid #e0e6e2;color:#2a3936;font-size:13px;padding:13px 14px;vertical-align:middle}.admin-table td:first-child{min-width:220px}.admin-table td strong,.admin-table td span,.admin-table td small{display:block}.admin-orders-table{min-width:880px}.admin-orders-table td:first-child{min-width:190px}.admin-order-deadline strong{font-size:13px!important}.admin-order-deadline.overdue strong{color:#a6362a}.admin-order-deadline.today strong{color:#9b5c00}.admin-order-deadline.soon strong{color:#176343}.admin-order-status{border:1px solid #b8c6c0;border-radius:999px;color:#3f5550!important;display:inline-flex!important;font-size:12px;font-weight:800;margin:0!important;padding:5px 9px;white-space:nowrap}.admin-order-status[data-status=sent]{background:#f4f5f4}.admin-order-status[data-status=designing],.admin-order-status[data-status=approved]{background:#eef3f8;border-color:#aebed0;color:#315474!important}.admin-order-status[data-status=in_progress]{background:#fff5df;border-color:#dbc28c;color:#755211!important}.admin-order-status[data-status=completed],.admin-order-status[data-status=shipped]{background:#eaf5ef;border-color:#a9c9b6;color:#276044!important}.admin-orders-loading{color:#65736f;font-size:12px;margin:10px 0 0}.admin-table td strong{color:#1b2930;font-size:14px}.admin-table td span,.admin-table td small{color:#65736f;margin-top:3px}.admin-table td:nth-child(2){align-items:center;display:table-cell;white-space:nowrap}.admin-table td:nth-child(2) svg{color:#0d716a;margin-right:5px;vertical-align:-3px}.admin-statuses{align-items:flex-start;flex-wrap:wrap}.admin-statuses span{border-radius:999px;font-size:11px;margin:0;padding:4px 7px;white-space:nowrap}.admin-statuses .approved{background:#dff2e7;color:#176343}.admin-statuses .pending{background:#fff0cf;color:#875f18}.admin-statuses .active{background:#dff2e7;color:#176343}.admin-statuses .suspended{background:#f8dddd;color:#8a3535}.admin-statuses .contract{background:#edf0ee;color:#53625e}.admin-statuses .administrator{background:#e4edf6;color:#315577}.admin-row-actions{flex-wrap:wrap}.admin-row-actions button{font-size:12px;min-height:32px}.admin-row-actions .admin-account-open{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}.admin-table-empty{color:#65736f!important;padding:30px 16px!important;text-align:center}.admin-account-pagination{align-items:center;display:flex;justify-content:flex-end;margin-top:12px}.admin-account-pagination>span{color:#65736f;font-size:12px;margin-right:12px}.admin-account-pagination>div{display:flex;gap:5px}.admin-account-pagination button{align-items:center;background:#fff;border:1px solid #bfcac5;border-radius:4px;color:#294946;display:inline-flex;height:34px;justify-content:center;width:36px}.admin-account-pagination button:disabled{opacity:.4}.admin-issue-total{align-items:center;background:#e6ebe8;border-radius:999px;color:#52635f;display:inline-flex;font-size:13px;font-weight:800;height:34px;justify-content:center;min-width:34px;padding:0 9px}.admin-issue-total.active{background:#f4e2d2;color:#8a4f25}.admin-issues-empty{color:#65736f;font-size:13px;margin:18px 0 0}.admin-issue-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.admin-issue-group{border-top:1px solid #d8dfda;min-width:0;padding:15px 18px 15px 0}.admin-issue-group:nth-child(2n){border-left:1px solid #d8dfda;padding-left:18px}.admin-issue-group>header{align-items:center;color:#334b47;display:grid;gap:8px;grid-template-columns:20px 1fr auto}.admin-issue-group>header svg{color:#a35d2b}.admin-issue-group>header span{color:#8a4f25;font-size:12px;font-weight:800}.admin-issue-group>button,.admin-issue-group li>button{background:transparent;border:0;color:#176960;cursor:pointer;font:inherit;font-size:12px;font-weight:800;padding:0;text-align:left}.admin-issue-group>button{margin-top:12px}.admin-issue-group ul{list-style:none;margin:10px 0 0;padding:0}.admin-issue-group li{align-items:start;border-top:1px solid #e4e8e5;color:#52635f;display:flex;font-size:12px;gap:12px;justify-content:space-between;padding:9px 0}.admin-issue-group li:first-child{border-top:0}.admin-issue-group li div,.admin-issue-group li button,.admin-issue-group li button>span{min-width:0}.admin-issue-group li button{align-items:center;display:flex;justify-content:space-between;width:100%}.admin-issue-group li strong,.admin-issue-group li small{display:block;overflow-wrap:anywhere}.admin-issue-group li small{color:#71807c;margin-top:3px}.admin-issue-group li>span,.admin-issue-group li b{flex:0 0 auto;font-size:11px}.admin-issue-group.critical p{color:#7c3939;font-size:12px;line-height:1.6;margin:10px 0 0}.admin-activity-section{max-width:820px}.admin-activity-list{list-style:none;margin:18px 0 0;padding:0}.admin-activity-list li{align-items:center;border-top:1px solid #dce4df;display:grid;gap:10px;grid-template-columns:20px minmax(0,1fr) auto;padding:13px 0}.admin-activity-list svg{color:#267964}.admin-activity-list span{color:#52635f;font-size:13px}.admin-activity-list strong{color:#273a37}.admin-activity-list time{color:#7a8783;font-size:12px}.admin-dialog-backdrop{align-items:center;background:#1420228c;display:flex;inset:0;justify-content:center;overflow-y:auto;padding:24px;position:fixed;z-index:1200}.admin-approval-dialog{background:#fff;border:1px solid #aebbb5;box-shadow:0 18px 48px #18282733;max-height:calc(100vh - 48px);overflow-y:auto;padding:24px;width:min(100%,680px)}.admin-approval-dialog>header{align-items:flex-start;border-bottom:1px solid #dce4df;display:flex;justify-content:space-between;padding-bottom:16px}.admin-approval-dialog .eyebrow{color:var(--accent);font-size:11px;font-weight:800;margin:0}.admin-approval-dialog h2{color:#1b2930;font-family:var(--font-display);font-size:22px;letter-spacing:0;margin:4px 0 0}.admin-approval-dialog>header button{align-items:center;background:transparent;border:0;color:#52635f;display:inline-flex;height:36px;justify-content:center;width:36px}.admin-approval-profile{display:grid;gap:1px;grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}.admin-approval-profile>div{background:#f1f4f2;min-width:0;padding:10px 12px}.admin-approval-profile .wide{grid-column:1 / -1}.admin-approval-profile dt{color:#65736f;font-size:11px;font-weight:700}.admin-approval-profile dd{color:#263936;font-size:13px;margin:4px 0 0;overflow-wrap:anywhere}.admin-approval-dialog form,.admin-approval-dialog fieldset,.admin-approval-note{display:flex;flex-direction:column}.admin-approval-dialog form{gap:18px}.admin-approval-dialog fieldset{border:0;gap:10px;margin:0;padding:0}.admin-approval-dialog legend,.admin-approval-note{color:#334b47;font-size:13px;font-weight:700}.admin-approval-dialog legend{margin-bottom:9px}.admin-approval-dialog fieldset label{align-items:flex-start;background:#f7f8f6;border:1px solid #d8dfda;color:#334b47;display:flex;font-size:13px;gap:9px;line-height:1.5;padding:10px 12px}.admin-approval-dialog fieldset input{height:17px;margin:1px 0 0;width:17px}.admin-approval-note{gap:7px}.admin-approval-note textarea{border:1px solid #aebbb5;border-radius:5px;color:#263936;font:inherit;font-size:14px;min-height:86px;padding:10px 11px;resize:vertical}.admin-approval-note small{color:#65736f;font-size:11px;font-weight:400;line-height:1.5}.admin-approval-actions{display:flex;gap:10px;justify-content:flex-end}.admin-approval-actions button{align-items:center;background:#fff;border:1px solid #aebbb5;border-radius:5px;color:#294946;display:inline-flex;font:inherit;font-size:13px;font-weight:700;gap:6px;justify-content:center;min-height:40px;padding:8px 12px}.admin-approval-actions .primary{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}.admin-approval-actions button:disabled{cursor:wait;opacity:.55}.admin-account-backdrop{padding:28px}.admin-account-dialog{background:#fff;border:1px solid #aebbb5;box-shadow:0 18px 48px #18282738;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);max-height:calc(100vh - 56px);width:min(100%,980px)}.admin-account-dialog-header{align-items:flex-start;display:flex;justify-content:space-between;padding:20px 24px 17px}.admin-account-dialog-header .eyebrow{color:var(--accent);font-size:11px;font-weight:800;margin:0}.admin-account-dialog-header h2{color:#1b2930;font-family:var(--font-display);font-size:23px;letter-spacing:0;margin:3px 0 0;overflow-wrap:anywhere}.admin-account-dialog-header span{color:#65736f;display:block;font-size:12px;margin-top:5px}.admin-account-dialog-header button{align-items:center;background:transparent;border:0;color:#52635f;display:inline-flex;height:38px;justify-content:center;width:38px}.admin-account-tabs{border-bottom:1px solid #cbd5cf;border-top:1px solid #dce4df;display:flex;gap:4px;padding:0 24px}.admin-account-tabs button{align-items:center;background:transparent;border:0;border-bottom:3px solid transparent;color:#65736f;display:inline-flex;font:inherit;font-size:13px;font-weight:800;gap:6px;min-height:48px;padding:0 12px}.admin-account-tabs button.active{border-bottom-color:var(--accent);color:var(--accent-dark)}.admin-account-error{background:#fcecec;border-bottom:1px solid #e9caca;color:#8a3535;font-size:12px;font-weight:700;margin:0;padding:10px 24px}.admin-account-dialog-body{min-height:0;overflow-y:auto;padding:0 24px 26px}.admin-account-panel>section{border-top:1px solid #dce4df;padding:22px 0}.admin-account-panel>section:first-child{border-top:0}.admin-account-panel h3,.admin-billing-history h4{align-items:center;color:#263936;display:flex;font-family:var(--font-display);gap:7px;letter-spacing:0;margin:0 0 15px}.admin-account-panel h3{font-size:17px}.admin-billing-history h4{font-size:14px}.admin-account-panel h3 svg,.admin-billing-history h4 svg{color:#0d716a}.admin-account-profile{display:grid;gap:1px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.admin-account-profile>div{background:#f1f4f2;min-width:0;padding:10px 12px}.admin-account-profile .wide{grid-column:1 / -1}.admin-account-profile dt{color:#65736f;font-size:11px;font-weight:700}.admin-account-profile dd{color:#263936;font-size:13px;margin:4px 0 0;overflow-wrap:anywhere}.admin-account-usage{display:grid;gap:1px;grid-template-columns:repeat(4,minmax(0,1fr))}.admin-account-usage>div{background:#f5f7f5;display:grid;gap:7px;min-height:88px;padding:12px}.admin-account-usage span{color:#65736f;font-size:11px;font-weight:700}.admin-account-usage strong{color:#1b2930;font-size:16px;overflow-wrap:anywhere}.admin-suspension-record{background:#fcecec;border-left:3px solid #a64d4d;color:#733333;font-size:12px;margin:14px 0 0;padding:10px 12px}.admin-operations-form,.admin-billing-form{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.admin-operations-form label,.admin-billing-form label,.admin-suspend-section label,.admin-notes-panel form>label{color:#53625e;display:grid;font-size:12px;font-weight:800;gap:6px}.admin-operations-form input,.admin-operations-form select,.admin-billing-form input,.admin-billing-form select,.admin-suspend-section textarea,.admin-notes-panel textarea{background:#fff;border:1px solid #aebbb5;border-radius:5px;color:#263936;font:inherit;font-size:13px;min-height:40px;padding:8px 10px;width:100%}.admin-billing-form .wide{grid-column:span 2}.admin-operations-form button,.admin-billing-form button,.admin-notes-panel form button,.admin-suspend-section button{align-items:center;align-self:end;background:var(--accent-dark);border:1px solid var(--accent-dark);border-radius:5px;color:#fff;display:inline-flex;font:inherit;font-size:12px;font-weight:800;gap:6px;justify-content:center;min-height:40px;padding:8px 12px}.admin-operations-form button:disabled,.admin-billing-form button:disabled,.admin-notes-panel form button:disabled,.admin-suspend-section button:disabled{opacity:.5}.admin-billing-history{margin-top:24px;overflow-x:auto}.admin-billing-history>p{color:#65736f;font-size:12px}.admin-billing-history table{border-collapse:collapse;min-width:610px;width:100%}.admin-billing-history th,.admin-billing-history td{border-top:1px solid #dce4df;color:#52635f;font-size:12px;padding:9px 10px;text-align:left}.admin-billing-history th{background:#eef2ef;font-size:11px}.admin-billing-history td button{background:transparent;border:0;color:#176960;font:inherit;font-weight:800}.admin-notes-panel form,.admin-suspend-section form{display:grid;gap:10px}.admin-notes-panel textarea,.admin-suspend-section textarea{min-height:92px;resize:vertical}.admin-notes-panel form>small{color:#7c5b36;font-size:11px;line-height:1.5}.admin-notes-panel form button,.admin-suspend-section button{justify-self:start}.admin-suspend-section button{background:#8a3d3d;border-color:#8a3d3d}.admin-notes-list{list-style:none;margin:0;padding:0}.admin-notes-list li{border-top:1px solid #dce4df;padding:14px 0}.admin-notes-list li:first-child{border-top:0}.admin-notes-list p{color:#334b47;font-size:13px;line-height:1.65;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.admin-notes-list span,.admin-notes-list .empty{color:#71807c;display:block;font-size:11px;margin-top:6px}.admin-empty,.admin-empty-activity{color:#62716d;text-align:center}.admin-empty{align-items:center;background:#f5f6f3;display:flex;flex-direction:column;gap:12px;justify-content:center;min-height:100vh;padding:24px}.admin-empty h1{color:#203531;font-family:var(--font-display);font-size:28px;margin:0}.admin-empty p{font-size:14px;margin:0;max-width:440px}.admin-empty>svg{color:#0d716a}.admin-mfa-page{justify-content:flex-start;padding-top:clamp(52px,9vh,104px)}.admin-mfa-page .eyebrow{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:0;margin:0}.admin-mfa-form,.admin-mfa-enrollment{align-items:stretch;display:flex;flex-direction:column}.admin-mfa-form{background:#fff;border:1px solid #cbd5cf;gap:10px;margin-top:12px;padding:22px;text-align:left;width:min(100%,430px)}.admin-mfa-enrollment{align-items:center;gap:14px}.admin-mfa-enrollment ol{color:#52635f;font-size:13px;line-height:1.7;margin:0;padding-left:22px;width:100%}.admin-mfa-enrollment img{background:#fff;border:1px solid #d8dfda;height:210px;padding:8px;width:210px}.admin-mfa-enrollment details{border-top:1px solid #e0e6e2;color:#52635f;font-size:12px;padding-top:12px;width:100%}.admin-mfa-enrollment details p{margin-top:8px}.admin-mfa-enrollment code{background:#eef2ef;color:#203531;display:block;overflow-wrap:anywhere;padding:9px;-webkit-user-select:all;user-select:all}.admin-mfa-form label{color:#334b47;font-size:13px;font-weight:700;margin-top:4px}.admin-mfa-form input{border:1px solid #aebbb5;border-radius:5px;color:#1b2930;font:inherit;font-size:24px;letter-spacing:0;min-height:48px;padding:8px 12px;text-align:center}.admin-mfa-primary,.admin-mfa-signout{align-items:center;border-radius:5px;display:inline-flex;font:inherit;font-size:14px;font-weight:700;gap:7px;justify-content:center;min-height:42px;padding:9px 14px}.admin-mfa-primary{background:var(--accent-dark);border:1px solid var(--accent-dark);color:#fff}.admin-mfa-primary:disabled{cursor:wait;opacity:.55}.admin-mfa-signout{background:transparent;border:0;color:#52635f}.admin-mfa-error{background:#f9e9e7;border-left:3px solid #a64b43;color:#7f302a;font-size:13px;padding:9px 10px;text-align:left}.admin-primary-link,.admin-secondary-link{align-items:center;border-radius:5px;display:inline-flex;font-size:14px;font-weight:700;gap:7px;margin-top:6px;min-height:42px;padding:9px 13px;text-decoration:none}.admin-primary-link{background:var(--accent-dark);color:#fff}.admin-secondary-link{border:1px solid #aebbb5;color:var(--accent-dark)}.spin{animation:admin-spin 1s linear infinite}@keyframes admin-spin{to{transform:rotate(360deg)}}.session-loading{align-items:center;background:var(--bg);color:var(--muted);display:flex;flex-direction:column;gap:10px;justify-content:center;min-height:100vh}.session-loading strong{color:var(--ink);font-family:var(--font-display);font-size:28px}.workspace{align-items:start;display:grid;gap:24px;grid-template-columns:minmax(0,1fr) 360px;margin:0 auto;max-width:1440px}.inbox-pane{background:var(--panel);border:0;border-radius:0;border-top:2px solid var(--ink);box-shadow:none;margin:0 auto;max-width:1440px;padding:24px 28px 30px}.lab-dashboard{display:grid;gap:18px;margin:0 auto;max-width:1440px}.lab-create-callout{align-items:center;background:var(--accent-soft);border:0;border-left:3px solid var(--accent);border-radius:0;box-shadow:none;display:flex;gap:18px;justify-content:space-between;padding:18px 20px}.lab-create-callout h2{color:var(--accent-dark);font-size:18px;margin:0 0 6px}.lab-create-callout p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.lab-create-callout button{align-items:center;background:var(--accent);border:1px solid var(--accent);border-radius:4px;color:#fff;display:inline-flex;flex:0 0 auto;font-weight:700;gap:8px;min-height:42px;padding:9px 14px}.profile-pane{background:var(--panel);border:0;border-radius:0;border-top:1px solid var(--border-strong);box-shadow:none;display:grid;gap:16px;padding:20px}.collapsible-profile-pane{display:block;padding:0}.collapsible-profile-pane details>summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between;list-style:none;min-height:64px;padding:12px 20px}.collapsible-profile-pane details>summary::-webkit-details-marker{display:none}.collapsible-profile-pane details>summary>div{display:grid;gap:3px;min-width:0}.collapsible-profile-pane details>summary strong{color:var(--ink);font-size:15px}.collapsible-profile-pane details>summary span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.collapsible-profile-pane details>summary>span{border:1px solid var(--border-strong);border-radius:5px;color:var(--ink);flex:0 0 auto;font-weight:700;margin-left:16px;padding:7px 10px}.collapsible-profile-pane details[open]>summary{border-bottom:1px solid var(--border)}.profile-pane-content{display:grid;gap:16px;padding:20px}.profile-grid{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.inline-actions{margin-top:0;max-width:280px}.inbox-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.inbox-header h2{font-family:var(--font-display);font-size:22px;font-weight:600;margin:0}.empty-state{background:var(--panel-subtle);border:1px solid var(--border);border-radius:8px;color:var(--muted);font-weight:600;margin:0;padding:24px;text-align:center}.order-table{border:1px solid var(--border);border-radius:8px;overflow:hidden}.order-list-pagination{align-items:center;border-top:1px solid var(--border);display:flex;justify-content:space-between;padding:10px 12px}.order-list-pagination>span,.order-list-pagination strong{color:var(--muted);font-size:12px}.order-list-pagination>div{align-items:center;display:flex;gap:10px}.order-list-pagination button{background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);min-height:36px;padding:6px 12px}.order-list-pagination button:disabled{cursor:not-allowed;opacity:.45}.order-row{align-items:center;display:grid;gap:12px;grid-template-columns:minmax(150px,1.35fr) 150px minmax(130px,1fr) 82px 112px 138px;min-height:42px;padding:5px 12px}.order-row+.order-row{border-top:1px solid var(--border)}.order-row.header{background:#eef2f6;color:#475467;font-size:12px;font-weight:700;letter-spacing:0}.order-row .order-primary{font-size:15px;font-weight:700}.order-row .order-patient,.order-row .order-set-date>span{font-size:16px}.order-row .order-patient small,.order-row .order-set-date small,.order-row .order-clinic small{color:var(--muted);display:block;font-size:10px;font-weight:600}.order-row .order-received-date{color:var(--muted);font-size:11px}.order-row span,.order-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-row-actions{display:flex;gap:6px;min-width:0}.order-status-cell{min-width:0}.order-status-cell .status-select{width:100%}.order-overview-open,.order-instruction-edit{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:var(--accent-dark);display:inline-flex;flex:1;font-size:12px;font-weight:700;gap:5px;justify-content:center;min-height:34px;padding:6px 8px}.order-overview-open:hover,.order-instruction-edit:hover{background:var(--accent-soft);border-color:var(--accent)}.order-instruction-edit{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}.order-instruction-edit:hover{background:var(--accent);color:#fff}.deadline{align-items:flex-start;display:flex;flex-direction:column;gap:2px}.deadline small{border-radius:4px;color:var(--muted);font-size:10px;font-weight:700;line-height:1.4;padding:1px 4px}.deadline-today small,.deadline-urgent small{background:#fff1d6;color:#8a4b08}.deadline-overdue small{background:#fee4e2;color:#b42318}.deadline-soon small{background:#eef4ff;color:#1849a9}.recruit-site{background:#f5f5f3;color:var(--ink);min-height:100vh}.recruit-nav{align-items:center;background:#fffffff7;border-bottom:1px solid var(--border);display:flex;gap:20px;justify-content:space-between;min-height:64px;padding:11px clamp(18px,5vw,64px);position:sticky;top:0;z-index:10}.recruit-brand{color:var(--ink);display:inline-grid;font-family:var(--font-display);font-size:21px;font-weight:700;line-height:1;text-decoration:none}.recruit-brand span{color:var(--accent);font-family:Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,system-ui,sans-serif;font-size:11px;font-weight:600;letter-spacing:0;margin-top:5px}.recruit-nav nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.recruit-nav nav a{align-items:center;border-radius:3px;color:#475467;display:inline-flex;font-size:14px;font-weight:600;min-height:38px;padding:8px 12px;text-decoration:none}.recruit-nav nav a:hover{color:var(--ink)}.recruit-nav nav a.recruit-nav-primary{background:var(--accent-dark);border:1px solid var(--accent-dark);color:#fff;padding:8px 18px}.recruit-nav nav a.recruit-nav-primary:hover{background:var(--accent-hover);color:#fff}.recruit-landing{align-items:flex-end;background-position:center 46%;background-size:cover;display:flex;min-height:min(520px,calc(100svh - 64px));overflow:hidden;padding:clamp(40px,6vw,78px) clamp(18px,5vw,64px);position:relative}.recruit-landing:before{background:#141c2194;content:"";inset:0;position:absolute}.recruit-landing-copy{color:#fff;max-width:680px;position:relative;z-index:1}.recruit-landing-copy p{align-items:center;color:#ffffffe0;display:flex;font-size:14px;font-weight:600;gap:0;letter-spacing:0;margin:0 0 12px}.recruit-landing-copy h1{font-family:var(--font-display);font-size:clamp(32px,4vw,46px);font-weight:700;letter-spacing:0;line-height:1.3;margin:0 0 16px;max-width:900px}.recruit-landing-copy span{color:#f2f4f7;display:block;font-size:clamp(15px,1.6vw,17px);font-weight:400;line-height:1.85;max-width:640px}.recruit-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.recruit-primary-link,.recruit-secondary-link,.lead-form button{align-items:center;border-radius:0;display:inline-flex;font-weight:700;gap:8px;justify-content:center;min-height:44px;padding:10px 16px;text-decoration:none}.recruit-primary-link{background:#fff;border:1px solid #ffffff;color:var(--ink)}.recruit-primary-link:hover{background:var(--accent-soft);border-color:var(--accent-soft)}.lead-form button{background:var(--accent-dark);border:1px solid var(--accent-dark);color:#fff}.lead-form button:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.lead-form button:disabled{cursor:wait;opacity:.65}.recruit-secondary-link{background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.68);border-radius:0;color:#fff;padding-inline:4px}.recruit-secondary-link:hover{background:transparent;border-color:#fff;color:#fff}.recruit-summary{background:#fff;border:0;border-bottom:1px solid var(--border);border-radius:0;box-shadow:none;display:grid;grid-template-columns:repeat(3,1fr);margin:0;max-width:none;padding:0 max(24px,calc((100vw - 1200px)/2));transform:none}.recruit-summary div{min-height:94px;padding:20px 24px}.recruit-summary div+div{border-left:1px solid var(--border)}.recruit-summary strong{color:var(--accent-dark);display:block;font-size:13px;letter-spacing:0;margin-bottom:7px}.recruit-summary p{font-size:16px;font-weight:700;line-height:1.55;margin:0}.recruit-detail,.recruit-entry-section{margin:0 auto;max-width:1200px;padding:58px clamp(18px,4vw,34px) 72px}.recruit-section-title{max-width:780px}.recruit-section-title>p,.recruit-entry-label{color:var(--accent-dark);font-size:13px;font-weight:700;margin:0 0 9px}.recruit-section-title h2,.recruit-entry-copy h2{font-family:var(--font-display);font-size:clamp(25px,3vw,34px);font-weight:700;letter-spacing:0;line-height:1.35;margin:0}.recruit-feature-grid{display:grid;column-gap:40px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:28px}.recruit-feature-grid article{align-content:start;background:transparent;border:0;border-top:1px solid var(--border-strong);border-radius:0;display:grid;gap:12px;padding:20px 0 26px}.recruit-flow b{align-items:center;border:0;border-radius:0;color:var(--accent-dark);display:inline-flex;flex:none;font-size:14px;font-style:normal;font-weight:700;height:auto;justify-content:center;width:auto}.recruit-feature-grid h3{font-size:18px;margin:0}.recruit-feature-grid p{color:var(--muted);line-height:1.8;margin:0}.recruit-flow{background:transparent;border-bottom:1px solid var(--border-strong);border-top:1px solid var(--border-strong);color:var(--ink);display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px}.recruit-flow div{align-items:center;display:flex;gap:12px;min-height:78px;padding:18px 22px}.recruit-flow div+div{border-left:1px solid var(--border)}.recruit-entry-section{align-items:start;display:grid;gap:32px;grid-template-columns:minmax(0,1fr) 440px;border-top:1px solid var(--border);padding-top:56px}.recruit-entry-copy p:not(.eyebrow){color:var(--muted);font-size:18px;line-height:1.9;max-width:680px}.lead-form{background:transparent;border:0;border-radius:0;border-top:2px solid var(--ink);box-shadow:none;display:grid;gap:13px;padding:22px 0 0}.lead-form label{display:grid;gap:7px}.lead-form .lead-honeypot{height:1px;left:-10000px;overflow:hidden;position:absolute;width:1px}.lead-form label span{color:#344054;font-size:13px;font-weight:700}.lead-form input,.lead-form select,.lead-form textarea{background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:var(--ink);min-height:44px;padding:10px 2px 8px}.lead-form textarea{min-height:110px;resize:vertical}.lead-form p:last-child{background:transparent;border:0;border-left:3px solid var(--accent);border-radius:0;color:var(--accent-dark);font-weight:700;margin:0;padding:10px 12px}.form-pane,.summary-pane{border:0;border-radius:0;box-shadow:none}.form-pane{background:var(--panel);border-top:2px solid var(--ink);counter-reset:instruction-section;display:grid;gap:24px;padding:28px clamp(24px,3vw,40px) 42px}.instruction-edit-banner{align-items:center;background:#edf2f5;border-left:4px solid var(--accent);color:#293a44;display:grid;gap:12px;grid-template-columns:24px minmax(0,1fr) auto;padding:13px 14px}.instruction-edit-banner>svg{color:var(--accent)}.instruction-edit-banner>div{display:grid;gap:3px}.instruction-edit-banner span{color:#5f6c73;font-size:12px;line-height:1.5}.instruction-edit-banner .instruction-edit-warning{color:#8a4b08;font-weight:700;margin-top:3px}.instruction-edit-banner button{background:#fff;border:0;border-bottom:1px solid #a9bbb6;border-radius:0;color:var(--accent-dark);min-height:40px;padding:8px 12px}.instruction-edit-original-note{align-items:flex-start;background:transparent;border:0;border-left:3px solid #c39a45;color:#46565f;display:flex;gap:10px;min-height:150px;padding:18px}.instruction-edit-original-note svg{color:#8a6514;flex:0 0 auto}.instruction-edit-original-note div{display:grid;gap:6px}.instruction-edit-original-note span{font-size:13px;line-height:1.7}.instruction-edit-attachments{background:transparent;border-bottom:1px solid var(--border);border-top:1px solid var(--border);color:var(--muted);padding:14px}.instruction-edit-attachments p{font-size:13px;margin:0 0 10px}.instruction-edit-attachments ul{display:grid;gap:6px;list-style:none;margin:0;padding:0}.instruction-edit-attachments li{align-items:center;background:#fff;border-bottom:1px solid var(--border);color:var(--ink);display:flex;gap:8px;overflow-wrap:anywhere;padding:8px}.summary-pane{background:var(--panel-subtle);border-left:1px solid var(--border);border-top:2px solid var(--accent);box-shadow:-14px 0 28px #16201e06;padding:20px 22px 28px;position:sticky;top:12px}.section-heading{align-items:center;border-bottom:1px solid var(--border);color:var(--ink);display:flex;gap:10px;margin-top:6px;padding:4px 0 9px}.form-pane>.section-heading{counter-increment:instruction-section;display:grid;grid-template-columns:44px minmax(0,1fr)}.form-pane>.section-heading:before{align-items:center;align-self:stretch;border-right:2px solid var(--accent);color:var(--accent);content:counter(instruction-section,decimal-leading-zero);display:flex;font-size:12px;font-variant-numeric:tabular-nums;font-weight:700;margin-right:12px}.form-pane>.section-heading:first-of-type{margin-top:0}.section-heading h2,.summary-header h2{color:var(--ink);font-size:17px;font-weight:700;letter-spacing:0}.two-column,.identity-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:grid;gap:7px}.field span{color:#40504c;font-size:13px;font-weight:600}.field-label-row{align-items:center;display:flex;justify-content:space-between}.field .field-character-count{color:var(--muted);font-size:12px;font-weight:500}.field input,.field select,.field textarea{background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:var(--ink);font-size:16px;min-height:44px;outline:none;padding:10px 2px 8px;width:100%}.field input[readonly]{background:var(--panel-subtle);border-bottom-color:var(--border);color:#33423e;padding-inline:10px}.field input:not([readonly]):hover,.field select:hover,.field textarea:hover{border-bottom-color:var(--accent)}.field textarea{min-height:96px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.lead-form input:focus,.lead-form select:focus,.lead-form textarea:focus{border-color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent);outline:none}.date-entry{display:grid;gap:8px;grid-template-columns:minmax(0,1fr) 92px}.date-picker-control{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:var(--accent-dark);cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:6px;justify-content:center;min-height:44px;overflow:hidden;position:relative}.field .date-picker-native{cursor:pointer;inset:0;opacity:0;padding:0;position:absolute}.date-picker-native::-webkit-calendar-picker-indicator{cursor:pointer;height:100%;margin:0;opacity:1;width:100%}.info-line{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;display:grid;gap:8px;grid-template-columns:18px 92px 1fr;min-height:42px;padding:9px 4px}.info-line span{color:var(--muted);font-size:12px;font-weight:600}.info-line strong{font-size:13px;font-weight:700}.checkbox-grid{display:grid;column-gap:18px;row-gap:0;grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}.check-item{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;display:flex;gap:8px;min-height:42px;padding:9px 10px;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.check-item:hover{background:var(--accent-soft);border-bottom-color:var(--accent)}.check-item input{accent-color:var(--accent);height:18px;width:18px}.check-item span{font-size:14px;font-weight:600}.check-item.compact{align-self:end}.segmented-fields{display:grid;gap:14px;grid-template-columns:1.2fr 1fr 1fr 1.1fr}.form-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.choice-group{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;display:flex;gap:12px;min-height:44px;padding:9px 10px}.choice-group>span{color:#344054;font-size:13px;font-weight:600;margin-right:auto}.choice-group label{align-items:center;display:flex;font-weight:600;gap:6px}.choice-group input{accent-color:var(--accent)}.tooth-chart{background:transparent;border:0;border-bottom:1px solid var(--border);border-top:1px solid var(--border);border-radius:0;display:grid;gap:8px;grid-template-columns:1fr 1fr;padding:18px 0}.tooth-row{display:grid;gap:6px;grid-template-columns:repeat(8,minmax(0,1fr))}.tooth-button{align-items:center;aspect-ratio:1;background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:#273335;display:grid;font-weight:600;justify-items:center;min-width:0;position:relative;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.tooth-button:hover{background:var(--accent-soft);border-color:var(--accent)}.tooth-button.selected{background:var(--accent);border-color:var(--accent);color:#fff}.tooth-button.selected span{font-weight:800}.tooth-button svg{bottom:3px;right:3px;position:absolute}.jaw-divider{background:var(--border-strong);grid-column:1 / -1;height:1px}.dropzone{align-items:center;background:transparent;border:0;border-bottom:1px dashed #98a2b3;border-top:1px dashed #98a2b3;border-radius:0;color:#344054;display:grid;gap:6px;justify-items:center;min-height:132px;padding:20px;text-align:center}.dropzone strong{color:var(--accent-dark)}.dropzone input{display:none}.draft-attachment-warning{align-items:flex-start;background:#fff8e6;border-left:3px solid #d58b12;color:#674d16;display:flex;gap:10px;padding:11px 13px}.draft-attachment-warning svg{flex:0 0 auto;margin-top:2px}.draft-attachment-warning div{display:grid;gap:3px;min-width:0}.draft-attachment-warning span{overflow-wrap:anywhere}.file-list{border-bottom:1px solid var(--border);border-radius:0;border-top:1px solid var(--border);overflow:hidden}.file-row{align-items:center;display:grid;gap:9px;grid-template-columns:20px minmax(0,1fr) 88px 56px;min-height:42px;padding:9px 12px}.file-row+.file-row{border-top:1px solid var(--border)}.file-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-row small{color:var(--muted)}.file-row button{background:transparent;border:0;color:var(--danger);font-weight:600;padding:4px}.summary-header{align-items:center;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;margin-bottom:0;padding-bottom:14px}.summary-readiness{display:grid;gap:8px;padding:16px 0 6px}.summary-readiness>div{align-items:baseline;display:flex;justify-content:space-between}.summary-readiness span{color:var(--muted);font-size:12px;font-weight:600}.summary-readiness strong{color:var(--accent-dark);font-size:13px;font-variant-numeric:tabular-nums}.summary-readiness progress{appearance:none;background:var(--border);border:0;border-radius:0;height:3px;overflow:hidden;width:100%;-webkit-appearance:none}.summary-readiness progress::-webkit-progress-bar{background:var(--border)}.summary-readiness progress::-webkit-progress-value{background:var(--accent)}.summary-readiness progress::-moz-progress-bar{background:var(--accent)}.summary-list{display:grid;gap:0;margin:0}.summary-list div{border-bottom:1px solid var(--border);display:grid;gap:10px;grid-template-columns:84px 1fr;padding:14px 2px}.summary-list dt{color:var(--muted);font-size:13px;font-weight:600}.summary-list dd{font-weight:700;margin:0;min-width:0;overflow-wrap:anywhere;word-break:break-word}.summary-patient{line-height:1.5}.receipt{background:transparent;border-bottom:1px solid #bfdbfe;border-radius:0;border-top:1px solid #bfdbfe;color:#1e3a5f;display:grid;gap:4px;margin-top:14px;padding:12px}.receipt span,.receipt small{color:#475467;font-size:12px;font-weight:600}.receipt strong{font-size:20px}.warning{background:transparent;border:0;border-left:3px solid var(--warning);border-radius:0;color:#8a4f16;font-size:13px;font-weight:600;margin:14px 0 0;padding:10px 12px}.validation-list{background:transparent;border:0;border-left:3px solid #c95264;border-radius:0;color:#9f1239;display:grid;font-size:13px;font-weight:600;gap:6px;line-height:1.6;margin:10px 0 0;padding:10px 12px 10px 28px}.actions{display:grid;gap:9px;margin-top:16px}.actions button{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:#26333f;display:flex;font-weight:600;gap:9px;justify-content:center;min-height:44px;padding:10px 12px}.actions button:disabled{cursor:not-allowed;opacity:.5}.actions .primary-action{background:var(--accent);border:1px solid var(--accent);color:#fff}.notice{align-items:start;background:var(--panel-subtle);border:0;border-left:3px solid var(--border-strong);border-radius:0;color:var(--muted);display:grid;gap:10px;grid-template-columns:20px 1fr;margin-top:16px;padding:12px}.notice p{font-size:13px;line-height:1.65;margin:0}.history{border-top:1px solid var(--border);display:grid;gap:8px;margin-top:16px;padding-top:14px}.history h3{font-size:15px;margin:0 0 2px}.history-row{background:#fff;border:1px solid var(--border);border-radius:6px;display:grid;gap:3px;padding:10px}.history-row span,.history-row small{color:var(--muted);font-size:12px}.print-sheet{display:none}.print-check{align-items:center;display:inline-flex;gap:6px;white-space:nowrap}.print-check b{align-items:center;border:1.4px solid #111111;display:inline-flex;font-size:9px;font-weight:900;height:13px;justify-content:center;line-height:1;width:13px}.print-sheet.pdf-capture{background:#fff;box-sizing:border-box;color:#000;display:block;font-family:Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,sans-serif;height:297mm;left:-10000px;overflow:hidden;padding:14mm 12mm 6mm;position:fixed;top:0;width:210mm;z-index:-1}.pdf-capture .print-cutline{border-top:.35mm dashed #1c1c1c;left:0;position:absolute;right:0;top:10mm}.print-sheet .print-punch-holes{display:flex;justify-content:space-between;left:38mm;pointer-events:none;position:absolute;right:38mm;top:17mm;z-index:2}.print-sheet .print-punch-holes i{background:#111;border-radius:50%;display:block;height:5mm;-webkit-print-color-adjust:exact;print-color-adjust:exact;width:5mm}.pdf-capture h1{font-size:9mm;letter-spacing:0;line-height:1;margin:4mm 0 2mm;text-align:center}.pdf-capture .print-box,.pdf-capture .payment-row,.pdf-capture .print-product-grid,.pdf-capture .print-chart-section,.pdf-capture .shade-section,.pdf-capture .instruction-section,.pdf-capture .print-footer{border-color:#111;overflow:hidden}.pdf-capture .print-top-grid{border:.55mm solid #111111;border-radius:4mm;display:grid;grid-template-columns:48% 13% 39%;grid-template-rows:16mm 16mm 13mm;overflow:hidden}.pdf-capture .print-box{border-right:.35mm solid #111111;border-top:.35mm solid #111111;padding:2.2mm 3mm}.pdf-capture .clinic-box{border-top:0;grid-row:1 / 4}.pdf-capture .order-date{align-items:center;display:grid;font-size:3.45mm;grid-column:2 / 4;grid-template-columns:25mm 1fr}.pdf-capture .set-date-box{align-items:center;color:#000;display:grid;font-size:4.8mm;grid-column:2 / 4;grid-template-columns:25mm 1fr 32mm;padding:0}.pdf-capture .set-date-box b{border-right:.35mm solid #111111;font-weight:900;height:100%;padding-top:5.4mm;text-align:center}.pdf-capture .set-date-box span,.pdf-capture .set-date-box small{align-items:center;color:#000;display:flex;height:100%;padding:0 4mm}.pdf-capture .patient-box{align-items:center;border-top:0;border-bottom:0;display:grid;grid-column:2 / 4;grid-template-columns:23mm minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));padding:0}.pdf-capture .patient-box>*{align-items:center;display:flex;height:100%;min-width:0;padding:0 3mm}.pdf-capture .patient-box .patient-number-label,.pdf-capture .patient-box .patient-number-value{border-top:.35mm solid #111111}.pdf-capture .patient-box .patient-number-value{font-size:3mm;overflow-wrap:anywhere;word-break:break-word}.pdf-capture .print-label,.pdf-capture .print-box small{font-size:3.2mm}.pdf-capture .print-box strong{display:block;font-size:4.2mm;margin-top:3mm}.pdf-capture .patient-box .print-patient-name{font-size:4.8mm;font-weight:700;line-height:1.25;margin-top:0;overflow-wrap:anywhere;word-break:break-word}.pdf-capture .patient-box .print-patient-name.long{font-size:4mm}.pdf-capture .patient-box .print-patient-name.very-long{font-size:3.4mm}.pdf-capture .print-box p{font-size:3.2mm;margin:2mm 0 0}.pdf-capture .payment-row{align-items:center;border:.55mm solid #111111;border-radius:0 0 4mm 4mm;border-top:0;display:grid;font-size:3.8mm;font-weight:800;grid-template-columns:35mm 25mm minmax(0,1fr) 34mm;height:10mm;padding:0 6mm}.pdf-capture .payment-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-capture .print-product-grid{border:.55mm solid #111111;border-radius:4mm 4mm 0 0;display:grid;grid-template-columns:10mm minmax(0,1fr) 34mm 10mm 40mm;height:42mm;margin-top:1.6mm;overflow:hidden}.pdf-capture .print-side-label{align-items:center;border-right:.35mm solid #111111;display:flex;font-size:3.35mm;font-weight:900;justify-content:center;line-height:1.2;padding:2mm 0;writing-mode:vertical-rl}.pdf-capture .product-lines{align-content:start;display:grid;font-size:3.45mm;grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-capture .product-lines .print-check{border-bottom:.25mm dashed #8d8d78;min-height:8.2mm;padding:1mm 2mm}.pdf-capture .product-options{align-content:center;border-left:.35mm solid #111111;display:grid;font-size:3.65mm;font-weight:800;gap:2mm;padding:2.5mm 3mm}.pdf-capture .product-options>strong,.product-options>strong{font-size:2.7mm;line-height:1}.pdf-capture .product-methods{font-size:3.1mm;line-height:1.35;overflow-wrap:anywhere}.pdf-capture .material-box{border-left:.35mm solid #111111;font-size:3.6mm;overflow:hidden;padding:3mm;word-break:break-word}.pdf-capture .material-box p{margin:0 0 3mm;max-height:15mm;overflow:hidden}.pdf-capture .print-chart-section{border-left:.55mm solid #111111;border-right:.55mm solid #111111;height:19mm;padding:1.2mm 5mm}.pdf-capture .print-chart-header{align-items:center;display:flex;font-size:3.3mm;font-weight:900;justify-content:space-between;min-height:3.5mm}.pdf-capture .print-chart-header div{display:flex;gap:5mm}.pdf-capture .print-tooth-chart{margin-top:.7mm}.pdf-capture .print-tooth-row,.print-sheet .print-tooth-row{display:grid;grid-template-columns:repeat(16,minmax(0,1fr))}.pdf-capture .print-tooth,.print-sheet .print-tooth{align-items:center;border-bottom:.22mm solid #9aa7a1;display:flex;font-size:2.45mm;font-style:normal;font-weight:700;height:4.3mm;justify-content:center;position:relative}.pdf-capture .print-tooth:nth-child(8),.print-sheet .print-tooth:nth-child(8){border-right:.3mm solid #111111}.pdf-capture .print-tooth.selected,.print-sheet .print-tooth.selected{-webkit-print-color-adjust:exact;background:#147f7c;border-color:#147f7c;color:#fff;print-color-adjust:exact}.pdf-capture .print-tooth b,.print-sheet .print-tooth b{color:inherit;font-size:inherit;line-height:1;position:static;transform:none}.pdf-capture .print-tooth i,.print-sheet .print-tooth i{bottom:.15mm;font-size:1.8mm;font-style:normal;line-height:1;position:absolute;right:.35mm}.pdf-capture .shade-section{align-items:baseline;border-left:.55mm solid #111111;border-right:.55mm solid #111111;display:flex;gap:5mm;height:12mm;padding:3mm 6mm}.pdf-capture .shade-section strong{font-size:4.1mm}.pdf-capture .shade-note{color:#555;font-size:2.9mm}.pdf-capture .instruction-section{border-left:.55mm solid #111111;border-right:.55mm solid #111111;font-size:3.5mm;height:96mm;overflow:hidden;padding:2.5mm 5mm}.pdf-capture .instruction-section strong{display:block;font-size:4mm;margin:0 0 1mm}.pdf-capture .instruction-section p{border-bottom:.2mm solid #d7d1ad;line-height:1.35;margin:0 0 2mm;max-height:12mm;min-height:8mm;overflow:hidden;white-space:pre-wrap}.pdf-capture .print-footer{align-items:end;border:.55mm solid #111111;border-radius:0 0 4mm 4mm;border-top:0;display:grid;font-size:2.9mm;grid-template-columns:1.2fr 1fr .6fr .8fr;height:12mm;padding:0 6mm 2.5mm}.pdf-capture .print-footer strong{font-size:5.2mm;line-height:1}@media(max-width:1400px){.segmented-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1160px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.login-form,.order-row,.profile-grid,.register-profile-grid,.auth-page,.recruit-entry-section{grid-template-columns:1fr}.auth-visual{min-height:520px}}@media(max-width:900px){.recruit-nav{align-items:flex-start;flex-direction:column;gap:8px;padding:10px 20px}.recruit-nav nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;width:100%}.recruit-nav nav a{flex:0 0 auto}.signed-out-box{align-items:stretch;grid-template-columns:1fr}.workspace{grid-template-columns:1fr}.summary-pane{border-left:0;box-shadow:none;position:static}.two-column,.identity-grid,.segmented-fields,.form-grid,.tooth-chart{grid-template-columns:1fr}.tooth-button{min-height:44px}}@media(max-width:760px){.app-shell{padding:0 12px 24px}.topbar{align-items:start;gap:12px;flex-direction:column;padding:14px 2px 12px}.brand-lockup img{height:34px;width:34px}.topbar h1{font-size:21px}.view-tabs{gap:18px}.view-tabs button,.view-tabs a{padding-inline:10px}.form-pane{padding:22px 18px 30px}.summary-pane{padding-inline:18px}.topbar-actions,.signed-in-box,.inbox-header,.recruit-cta-row{align-items:stretch;flex-direction:column}.recruit-nav{padding:10px 16px}.recruit-nav nav a{font-size:13px;min-height:36px;padding:7px 8px}.recruit-landing{align-items:end;min-height:520px;padding-bottom:48px}.recruit-landing:before{background:#141c21a8}.recruit-landing-copy h1{font-size:clamp(26px,7.4vw,30px);letter-spacing:0;line-height:1.35;white-space:normal}.recruit-summary,.recruit-flow,.recruit-feature-grid{grid-template-columns:1fr}.recruit-summary div+div,.recruit-flow div+div{border-left:0;border-top:1px solid var(--border)}.two-column,.identity-grid,.segmented-fields,.form-grid,.tooth-chart{grid-template-columns:1fr}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tooth-row{grid-template-columns:repeat(8,minmax(0,1fr))}}@media(max-width:360px){.app-shell{padding:0 8px 20px}.form-pane{padding:14px}.tooth-chart{gap:6px;padding:10px}.tooth-row{gap:4px}.tooth-button{font-size:13px}}@media print{@page{margin:0;size:A4 portrait}:root{background:#fffbe2;color:#000}body{background:#fffbe2;margin:0;min-width:0}.topbar,.account-panel,.workspace,.inbox-pane{display:none}.app-shell{background:#fff;height:auto;overflow:hidden;padding:0;width:auto}.print-sheet{background:#fff;color:#000;display:block;font-family:Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,sans-serif;height:287mm;overflow:hidden;padding:14mm 12mm 6mm;position:relative;width:100%}.print-cutline{border-top:.35mm dashed #1c1c1c;left:0;position:absolute;right:0;top:10mm}.print-sheet h1{font-size:9mm;letter-spacing:0;line-height:1;margin:4mm 0 2mm;text-align:center}.print-box,.payment-row,.print-product-grid,.print-chart-section,.shade-section,.instruction-section,.print-footer{border-color:#111;overflow:hidden}.print-top-grid{border:.55mm solid #111111;border-radius:4mm;display:grid;grid-template-columns:48% 13% 39%;grid-template-rows:16mm 16mm 13mm;overflow:hidden}.print-box{border-right:.35mm solid #111111;border-top:.35mm solid #111111;padding:2.2mm 3mm}.clinic-box{border-top:0;grid-row:1 / 4}.order-date{align-items:center;display:grid;font-size:4.1mm;grid-column:2 / 4;grid-template-columns:25mm 1fr}.set-date-box{align-items:center;color:#000;display:grid;font-size:4.8mm;grid-column:2 / 4;grid-template-columns:25mm 1fr 32mm;padding:0}.set-date-box b{border-right:.35mm solid #111111;font-weight:900;height:100%;padding-top:5.4mm;text-align:center}.set-date-box span,.set-date-box small{align-items:center;color:#000;display:flex;height:100%;padding:0 4mm}.patient-box{align-items:center;border-top:0;border-bottom:0;display:grid;grid-column:2 / 4;grid-template-columns:23mm minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));padding:0}.patient-box>*{align-items:center;display:flex;height:100%;min-width:0;padding:0 3mm}.patient-box .patient-number-label,.patient-box .patient-number-value{border-top:.35mm solid #111111}.patient-box .patient-number-value{font-size:3mm;overflow-wrap:anywhere;word-break:break-word}.print-label,.print-box small{font-size:3.2mm}.print-box strong{display:block;font-size:4.2mm;margin-top:3mm}.patient-box .print-patient-name{font-size:4.8mm;font-weight:700;line-height:1.25;margin-top:0;overflow-wrap:anywhere;word-break:break-word}.patient-box .print-patient-name.long{font-size:4mm}.patient-box .print-patient-name.very-long{font-size:3.4mm}.print-box p{font-size:3.2mm;margin:2mm 0 0}.payment-row{align-items:center;border:.55mm solid #111111;border-radius:0 0 4mm 4mm;border-top:0;display:grid;font-size:3.8mm;font-weight:800;grid-template-columns:35mm 25mm minmax(0,1fr) 34mm;height:10mm;padding:0 6mm}.print-product-grid{border:.55mm solid #111111;border-radius:4mm 4mm 0 0;display:grid;grid-template-columns:8mm minmax(0,1fr) 34mm 8mm 42mm;margin-top:1.6mm;height:42mm;overflow:hidden}.print-side-label{align-items:center;border-right:.35mm solid #111111;display:flex;font-size:3.8mm;font-weight:900;justify-content:center;line-height:1.2;padding:2mm 0;writing-mode:vertical-rl}.product-lines{align-content:start;display:grid;font-size:3.45mm;grid-template-columns:repeat(2,minmax(0,1fr))}.product-lines .print-check{border-bottom:.25mm dashed #8d8d78;min-height:8.2mm;padding:1mm 2mm}.product-options{align-content:center;border-left:.35mm solid #111111;display:grid;font-size:3.65mm;font-weight:800;gap:2mm;padding:2.5mm 3mm}.product-methods{font-size:3.1mm;line-height:1.35;overflow-wrap:anywhere}.print-punch-holes{display:flex;justify-content:space-between;left:38mm;pointer-events:none;position:absolute;right:38mm;top:17mm;z-index:2}.print-punch-holes i{background:#111;border-radius:50%;display:block;height:5mm;-webkit-print-color-adjust:exact;print-color-adjust:exact;width:5mm}.material-box{border-left:.35mm solid #111111;font-size:3.6mm;overflow:hidden;padding:3mm;word-break:break-word}.material-box p{margin:0 0 3mm;max-height:15mm;overflow:hidden}.material-box small{display:block;font-size:2.7mm;line-height:1.35}.print-chart-section{border-left:.55mm solid #111111;border-right:.55mm solid #111111;height:19mm;padding:1.2mm 5mm}.print-chart-header{align-items:center;display:flex;font-size:3.2mm;font-weight:900;justify-content:space-between;min-height:3.5mm}.print-chart-header div{display:flex;gap:5mm}.print-tooth-chart{margin-top:.7mm}.print-tooth-row{display:grid;grid-template-columns:repeat(16,minmax(0,1fr))}.print-tooth{align-items:center;border-bottom:.22mm solid #9aa7a1;display:flex;font-size:2.45mm;font-style:normal;font-weight:700;height:4.3mm;justify-content:center;position:relative}.print-tooth:nth-child(8){border-right:.3mm solid #111111}.print-tooth.selected{-webkit-print-color-adjust:exact;background:#147f7c;border-color:#147f7c;color:#fff;print-color-adjust:exact}.print-tooth b{color:inherit;font-size:inherit;line-height:1;position:static;transform:none}.print-tooth i{bottom:.15mm;font-size:1.8mm;font-style:normal;line-height:1;position:absolute;right:.35mm}.shade-section{align-items:baseline;border-left:.55mm solid #111111;border-right:.55mm solid #111111;display:flex;gap:5mm;height:12mm;padding:3mm 6mm}.shade-section strong{font-size:4.1mm}.shade-note{color:#555;font-size:2.9mm}.instruction-section{border-left:.55mm solid #111111;border-right:.55mm solid #111111;font-size:3.5mm;height:96mm;overflow:hidden;padding:2.5mm 5mm}.instruction-section strong{display:block;font-size:4mm;margin:0 0 1mm}.instruction-section p{border-bottom:.2mm solid #d7d1ad;line-height:1.35;margin:0 0 2mm;min-height:8mm;max-height:12mm;overflow:hidden;white-space:pre-wrap}.print-footer{align-items:end;border:.55mm solid #111111;border-radius:0 0 4mm 4mm;border-top:0;display:grid;font-size:2.9mm;grid-template-columns:1.2fr 1fr .6fr .8fr;height:12mm;padding:0 6mm 2.5mm}.print-footer strong{font-size:5.2mm;line-height:1}}.recruit-footer{align-items:center;border-top:1px solid var(--border);color:var(--muted);display:flex;flex-wrap:wrap;font-size:.85rem;gap:16px;justify-content:space-between;margin-top:48px;padding:24px 32px}.recruit-footer nav{display:flex;flex-wrap:wrap;gap:18px}.recruit-footer a{color:var(--muted);text-decoration:none}.recruit-footer a:hover{color:var(--accent)}.auth-consent{color:var(--muted);font-size:.82rem;line-height:1.6;margin:0}.auth-consent a{color:var(--accent)}.cloud-status{align-items:center;color:var(--muted);display:inline-flex;font-size:13px;font-weight:700;gap:8px}.cloud-status:before{background:var(--accent);border-radius:50%;content:"";height:8px;width:8px}.cloud-status.demo:before{background:#b45309}.cloud-status.error{color:#b42318}.cloud-status.error:before{background:#b42318}.actions button:hover:not(:disabled){background:var(--panel-subtle);border-color:#98a2b3}.actions .primary-action:hover:not(:disabled),.auth-submit:hover:not(:disabled),.login-form button:hover,.signed-out-box a:first-of-type:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}.signed-out-box a:last-of-type:hover{background:transparent;border-color:var(--accent);color:var(--accent-dark)}.view-tabs button:hover:not(.active),.view-tabs a:hover,.signed-in-box button:hover,.inbox-header button:hover{background:var(--accent-soft);border-color:var(--accent)}.design-field-head{align-items:center;display:flex;justify-content:space-between}.design-input-section{border-top:1px solid var(--border);display:grid;gap:10px;padding-top:14px}.sketch-section-heading{align-items:center;display:flex;justify-content:space-between}.sketch-section-heading button{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:var(--accent-dark);display:inline-flex;font-size:13px;font-weight:700;gap:6px;min-height:40px;padding:6px 2px}.sketch-collapsed-note{color:var(--muted);font-size:12px;margin:0}.design-input-title{color:var(--ink);font-size:14px;font-weight:700}.comment-input-section textarea{min-height:132px}.chip-row{align-items:center;display:flex;flex-wrap:wrap;gap:7px}.chip-row-label{color:var(--muted);flex-basis:100%;font-size:12px;font-weight:600}.chip{background:var(--panel-subtle);border:0;border-bottom:1px solid var(--border-strong);border-radius:2px;color:#33423e;font-size:13px;font-weight:600;min-height:34px;padding:6px 13px}.chip:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-dark)}.handwriting-pad{display:grid;gap:8px;overscroll-behavior:contain}.pad-tools{display:flex;flex-wrap:wrap;gap:7px}.pad-tools button{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;color:var(--ink);display:inline-flex;font-size:13px;font-weight:600;gap:6px;min-height:38px;padding:7px 12px;-webkit-user-select:none;user-select:none}.pad-tools button.active{background:var(--ink);border-color:var(--ink);color:#fff}.pad-tools button.red svg{color:var(--danger)}.pad-tools button.active.red{background:var(--danger);border-color:var(--danger)}.pad-tools button.active.red svg{color:#fff}.pad-tools button:disabled{cursor:not-allowed;opacity:.45}.handwriting-pad>.pad-drawing-canvas{background:repeating-linear-gradient(0deg,transparent 0 39px,#eef1f5 39px 40px),#fff;border:1px solid var(--border-strong);border-radius:0;cursor:crosshair;display:block;max-width:100%;overscroll-behavior:contain;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;width:100%}.pad-hint{color:var(--muted);font-size:12px;line-height:1.7;margin:0}.print-sheet .design-image{border:.3mm solid #999999;display:block;margin:1mm 0;max-width:100%;object-fit:contain}.print-sheet .instruction-section{display:grid;gap:0;min-height:0;padding:0}.print-sheet .instruction-section.has-sketch{grid-template-columns:minmax(0,var(--instruction-text-column, 48%)) minmax(0,1fr)}.print-sheet .instruction-section:not(.has-sketch) .instruction-sketch-box{display:none}.print-sheet .instruction-text-box,.print-sheet .instruction-sketch-box{min-width:0;overflow:hidden;padding:2.5mm 4mm}.print-sheet .instruction-text-box{display:flex;flex-direction:column;min-height:0}.print-sheet .instruction-section.has-sketch .instruction-text-box{border-right:.35mm solid #111111}.print-sheet .instruction-text-box p{border-bottom:.2mm solid #d7d1ad;flex:0 0 auto;font-size:var(--instruction-font-size, 3.6mm);line-height:1.28;margin:0 0 2mm;max-height:none;min-height:0;overflow:visible;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.print-sheet .instruction-text-box p:first-of-type{max-height:none;min-height:0}.print-sheet .instruction-section.density-maximum .instruction-text-box strong{font-size:2.8mm;line-height:1.15}.print-sheet .instruction-sketch-box .design-image{height:78mm;margin:0;width:100%}.print-sheet .instruction-sketch-box p{border:.2mm solid #d7d1ad;min-height:78mm}.order-item{border-top:1px solid var(--border)}.order-item .order-row{border-top:0}.order-attachments{align-items:center;background:var(--panel-subtle);border-top:1px dashed var(--border);display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px}.order-attachments button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:var(--accent-dark);display:inline-flex;font-size:12px;font-weight:600;gap:6px;min-height:34px;padding:6px 10px}.order-attachments button:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent)}.order-attachments button:disabled{cursor:wait;opacity:.6}.order-attachments span{color:var(--muted);font-size:12px}.settings-wrap{margin:0 auto;max-width:1440px}.settings-pane{background:var(--panel);border:0;border-radius:0;border-top:2px solid var(--ink);box-shadow:none;display:grid;gap:18px;padding:22px}.settings-note{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.settings-save-status{align-items:center;background:var(--panel-subtle);border:1px solid var(--border);border-radius:7px;color:var(--muted);display:flex;font-size:13px;gap:8px;min-height:40px;padding:8px 11px}.settings-save-status.is-saved{color:#287a4b}.settings-save-status.is-error{background:#fff5f3;border-color:#e5b5ad;color:var(--danger)}.settings-save-status span{flex:1;overflow-wrap:anywhere}.settings-save-status button{align-items:center;background:var(--panel);border:1px solid currentColor;border-radius:6px;color:inherit;display:inline-flex;flex:0 0 auto;font:inherit;gap:5px;padding:5px 8px}.facility-linking-note{background:#f1f7f5;border-left:3px solid var(--accent);color:#334a47;font-size:13px;line-height:1.7;margin:0;padding:10px 12px}.facility-search{align-items:end;background:var(--panel-subtle);border:1px solid var(--border);border-radius:7px;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto;padding:14px}.facility-search>button,.facility-id-share button{align-items:center;background:var(--accent);border:1px solid var(--accent);border-radius:6px;color:#fff;display:inline-flex;font-size:13px;font-weight:700;gap:6px;justify-content:center;min-height:42px;padding:8px 13px}.facility-search>button:disabled{cursor:not-allowed;opacity:.55}.facility-search>p{color:var(--muted);font-size:13px;grid-column:1 / -1;margin:0}.facility-invite-entry{align-items:center;border-bottom:1px solid var(--border);border-top:1px solid var(--border);display:flex;gap:16px;justify-content:space-between;padding:14px 2px}.facility-invite-entry>div,.facility-invite-heading>div{display:grid;gap:4px}.facility-invite-entry strong,.facility-invite-heading strong{color:var(--ink);font-size:14px}.facility-invite-entry span,.facility-invite-heading span{color:var(--muted);font-size:12px;line-height:1.6}.facility-invite-entry>button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--accent);display:inline-flex;flex:0 0 auto;font:inherit;font-size:13px;font-weight:700;gap:6px;justify-content:center;min-height:44px;padding:8px 12px}.facility-invite-form{background:var(--panel-subtle);border:1px solid var(--border);border-radius:7px;display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.field-label-with-status{align-items:center;display:flex;gap:8px}.field-requirement{background:#eef2f4;border:1px solid #d5dde1;border-radius:3px;color:#52616a;font-size:11px;font-weight:600;line-height:1;padding:3px 5px}.field-requirement.is-required{background:#fff3ed;border-color:#e8bda9;color:#9a3d1d}.field-help{color:#667781;display:block;font-size:12px;line-height:1.5;margin-top:2px}.facility-invite-heading,.facility-invite-email,.facility-invite-form .facility-grid,.facility-invite-actions{grid-column:1 / -1}.facility-invite-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:4px}.facility-invite-actions button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);display:inline-flex;font:inherit;font-size:13px;font-weight:700;gap:6px;justify-content:center;min-height:44px;padding:8px 13px}.facility-invite-actions button[type=submit]{background:var(--accent);border-color:var(--accent);color:#fff}.facility-invite-actions button:disabled{cursor:not-allowed;opacity:.5}.facility-invite-message{background:var(--accent-soft);border-left:3px solid var(--accent);color:var(--ink);font-size:13px;line-height:1.6;margin:0;padding:9px 11px}.facility-pending-invitations{border:1px solid var(--border);border-radius:7px;display:grid;gap:0;overflow:hidden}.facility-pending-heading{background:var(--panel-subtle);display:grid;gap:3px;padding:11px 13px}.facility-pending-heading span,.facility-pending-card span,.facility-pending-card small{color:var(--muted);font-size:12px}.facility-pending-card{align-items:center;border-top:1px solid var(--border);display:flex;gap:12px;justify-content:space-between;padding:12px 13px}.facility-pending-card>div:first-child{display:grid;gap:3px;min-width:0}.facility-pending-card>div:last-child{display:flex;flex:0 0 auto;gap:8px}.facility-pending-card button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);display:inline-flex;font:inherit;font-size:12px;font-weight:700;gap:5px;min-height:40px;padding:7px 10px}.facility-pending-card button.danger{color:var(--danger)}.facility-pending-card button:disabled{cursor:not-allowed;opacity:.5}.facility-search-result{align-items:center;background:#f5f9ff;border:1px solid #a9bdd8;border-radius:7px;display:flex;gap:14px;justify-content:space-between;padding:14px}.facility-search-result>div:first-child{display:grid;gap:3px}.facility-search-result span,.facility-search-result small{color:var(--muted);font-size:12px}.facility-search-result>div:last-child{display:flex;flex:0 0 auto;gap:8px}.facility-search-result button{align-items:center;background:var(--accent);border:1px solid var(--accent);border-radius:6px;color:#fff;display:inline-flex;font-size:13px;font-weight:700;gap:5px;min-height:40px;padding:7px 11px}.facility-search-result button.secondary{background:var(--panel);border-color:var(--border-strong);color:var(--ink)}.facility-id-share{align-items:center;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;padding-top:12px}.facility-id-share>span{color:var(--muted);flex:1 1 240px;font-size:13px}.facility-id-share small{color:#287a4b;flex:1 0 100%}.recipient-confirm-backdrop{align-items:center;background:#141c2685;display:flex;inset:0;justify-content:center;padding:20px;position:fixed;z-index:1200}.recipient-confirm-dialog{background:var(--panel);border:1px solid var(--border-strong);border-radius:8px;box-shadow:0 18px 48px #101f3038;max-width:520px;padding:22px;width:100%}.recipient-confirm-dialog header{align-items:flex-start;display:flex;gap:12px}.recipient-confirm-dialog header>svg{color:#a35c16;flex:0 0 auto;margin-top:2px}.recipient-confirm-dialog header span,.recipient-confirm-dialog dt{color:var(--muted);font-size:12px}.recipient-confirm-dialog h2{font-size:19px;margin:2px 0 0}.recipient-confirm-dialog dl{border-bottom:1px solid var(--border);border-top:1px solid var(--border);margin:18px 0 14px;padding:8px 0}.recipient-confirm-dialog dl>div{display:grid;gap:12px;grid-template-columns:72px minmax(0,1fr);padding:7px 2px}.recipient-confirm-dialog dd{font-weight:700;margin:0;overflow-wrap:anywhere}.recipient-confirm-dialog p{color:var(--muted);font-size:13px;line-height:1.7}.recipient-confirm-dialog .recipient-confirm-error{background:#fff4f2;border-left:3px solid #b42318;color:#8f1d14;padding:9px 11px}.recipient-confirm-dialog footer{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.recipient-confirm-dialog footer button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;display:inline-flex;gap:6px;min-height:42px;padding:8px 13px}.recipient-confirm-dialog footer button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}@media(max-width:600px){.recipient-confirm-dialog footer{flex-direction:column-reverse}.recipient-confirm-dialog footer button{justify-content:center;width:100%}}.settings-steps{display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0}.settings-steps button{align-items:center;background:var(--panel-subtle);border:1px solid var(--border);border-radius:8px;color:var(--muted);display:flex;gap:10px;min-height:58px;padding:9px 12px;text-align:left;width:100%}.settings-steps li.is-active button{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}.settings-steps li.is-complete button{color:var(--accent)}.settings-step-icon{align-items:center;border:1px solid currentColor;border-radius:50%;display:inline-flex;flex:0 0 30px;height:30px;justify-content:center}.settings-steps button>span:last-child{display:grid;font-size:13px;font-weight:700;gap:2px;min-width:0}.settings-steps small{color:var(--muted);font-size:10px;font-weight:600}.settings-step-fields{display:grid;gap:18px}.settings-list-editor .settings-block-head>div{display:grid;gap:4px}.settings-list-editor .settings-block-head p{color:var(--muted);font-size:12px;margin:0}.settings-list-items{display:grid;gap:8px}.settings-list-item{display:grid;gap:6px;grid-template-columns:minmax(0,1fr) 38px 38px 38px}.settings-list-item input{min-width:0}.settings-list-item button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);display:inline-flex;justify-content:center;min-height:38px;padding:0}.settings-list-item button.danger{color:var(--danger)}.settings-list-item button:disabled{cursor:not-allowed;opacity:.35}.material-profile-item{display:grid;gap:6px;grid-template-columns:minmax(150px,1.1fr) minmax(130px,1fr) minmax(120px,.8fr) 38px}.material-profile-item input{min-width:0}.material-profile-item button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--danger);display:inline-flex;justify-content:center;min-height:38px;padding:0}.technician-profile-item{display:grid;gap:6px;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 38px}.technician-profile-item input{min-width:0}.technician-profile-item button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--danger);display:inline-flex;justify-content:center;min-height:38px;padding:0}.settings-review dl{display:grid;gap:0;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.settings-review dl>div{border-bottom:1px solid var(--border);display:grid;gap:4px;padding:12px 4px}.settings-review dt{color:var(--muted);font-size:12px}.settings-review dd{font-size:14px;font-weight:700;margin:0;overflow-wrap:anywhere}.settings-warning{background:#fff8e8;border:1px solid #ead6a4;border-radius:6px;color:#6f5418;font-size:13px;margin:0;padding:10px 12px}.settings-step-actions{align-items:center;border-top:1px solid var(--border);display:flex;justify-content:space-between;padding-top:16px}.settings-step-actions button{align-items:center;border-radius:6px;display:inline-flex;font-size:13px;font-weight:700;gap:6px;min-height:40px;padding:8px 14px}.settings-back{background:var(--panel);border:1px solid var(--border-strong);color:var(--ink)}.settings-next{background:var(--accent);border:1px solid var(--accent);color:#fff}.settings-step-actions button:disabled{cursor:not-allowed;opacity:.45}.settings-block{border-top:1px solid var(--border);display:grid;gap:12px;padding-top:16px}.settings-block-head{align-items:center;display:flex;justify-content:space-between}.settings-block-head h3{font-size:15px;letter-spacing:.08em;margin:0}.settings-block-head button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:#26333f;display:inline-flex;font-size:13px;font-weight:600;gap:6px;min-height:36px;padding:7px 12px}.facility-card{background:var(--panel-subtle);border:1px solid var(--border);border-radius:8px;display:grid;gap:12px;padding:14px}.facility-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.facility-remove{align-items:center;background:transparent;border:0;color:var(--danger);display:inline-flex;font-size:12px;font-weight:600;gap:5px;justify-self:end;padding:4px}.facility-refresh{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--accent);display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-self:end;min-height:36px;padding:6px 9px}.pad-template-row{align-items:center}.pad-template-label{color:var(--muted);font-size:12px;font-weight:600}.pad-template-gallery{display:grid;gap:8px;grid-auto-columns:92px;grid-auto-flow:column;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 8px;scroll-snap-type:x proximity}.pad-template-gallery button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--ink);display:grid;gap:5px;min-height:96px;padding:5px;scroll-snap-align:start;text-align:center}.pad-template-gallery button>span,.pad-template-gallery button>canvas{background-color:#fff;background-repeat:no-repeat;border:0;display:block;height:62px;width:100%}.pad-template-gallery button>canvas{object-fit:contain}.pad-template-gallery button>.pad-template-blank{background-image:linear-gradient(#edf0f4 1px,transparent 1px),linear-gradient(90deg,#edf0f4 1px,transparent 1px);background-size:12px 12px}.pad-template-gallery button small{font-size:11px;line-height:1.25}.pad-template-gallery button.active{border-color:var(--accent);box-shadow:none;color:var(--accent-dark)}@media(max-width:900px){.pad-template-gallery{grid-auto-columns:initial;grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));overflow-x:visible}}@media(max-width:760px){.lab-create-callout{align-items:stretch;flex-direction:column}.facility-grid{grid-template-columns:1fr}.facility-search{align-items:stretch;grid-template-columns:1fr}.facility-search>p{grid-column:auto}.facility-search-result{align-items:stretch;flex-direction:column}.facility-search-result>div:last-child{flex-wrap:wrap}.facility-invite-entry{align-items:stretch;flex-direction:column}.facility-invite-entry>button{width:100%}.facility-invite-form{grid-template-columns:1fr;padding:14px}.facility-invite-actions{flex-direction:column-reverse}.facility-invite-actions button{width:100%}.facility-pending-card{align-items:stretch;flex-direction:column}.facility-pending-card>div:last-child,.facility-pending-card button{width:100%}.facility-pending-card button{justify-content:center}.settings-pane{padding:16px}.settings-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-steps button{min-height:54px;padding:8px}.settings-review dl{grid-template-columns:1fr}.settings-list-item{grid-template-columns:minmax(0,1fr) 44px 44px 44px}.material-profile-item,.technician-profile-item{grid-template-columns:1fr 1fr}.material-profile-item button,.technician-profile-item button{min-height:44px}.settings-step-actions{gap:10px}.settings-step-actions button{justify-content:center}.settings-next{flex:1}}@media(max-width:520px){.pad-template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(pointer:coarse){.view-tabs button,.view-tabs a,.login-form button,.signed-in-box button,.inbox-header button,.actions button,.chip,.pad-tools button,.order-attachments button,.settings-block-head button,.settings-steps button,.settings-step-actions button{min-height:44px}.check-item{min-height:46px;padding:10px 12px}.check-item input,.choice-group input{height:20px;width:20px}.tooth-chart{gap:10px}.tooth-row{gap:8px}.tooth-button{min-height:40px}.design-field-head{align-items:center}.handwriting-pad>.pad-drawing-canvas{min-height:420px}.pad-template-gallery{-webkit-overflow-scrolling:touch;grid-auto-columns:124px;grid-auto-flow:column;grid-template-columns:none;overflow-x:auto}.pad-template-gallery button{min-height:120px}.pad-template-gallery button>span,.pad-template-gallery button>canvas{height:84px}}.print-holder{display:contents}.print-preview-overlay{align-items:start;background:#101828ad;display:grid;gap:20px;inset:0;justify-items:center;overflow:auto;padding:74px 16px 48px;position:fixed;z-index:60}.preview-toolbar{align-items:center;background:var(--ink);color:#fff;display:flex;gap:16px;justify-content:space-between;left:0;padding:10px 18px;position:fixed;right:0;top:0;z-index:61}.preview-toolbar strong{font-size:15px}.preview-toolbar span{color:#d0d5dd;font-size:13px;margin-right:auto}.preview-toolbar button{background:#fff;border:1px solid #ffffff;border-radius:6px;color:var(--ink);font-weight:600;min-height:36px;padding:7px 16px}.print-preview-overlay .print-sheet.pdf-capture{box-shadow:0 16px 48px #00000073;left:0;position:relative;top:0;z-index:1;zoom:.82}.preview-sketch-page{background:#fff;box-shadow:0 16px 48px #00000073;box-sizing:border-box;color:#000;height:297mm;overflow:hidden;padding:18mm 16mm 22mm;width:210mm;zoom:.82}@media print{.print-holder{display:block;height:297mm;overflow:hidden}.print-holder .print-sheet{break-after:avoid-page;break-inside:avoid-page;height:296mm;max-height:296mm;min-height:296mm;page-break-after:avoid;page-break-inside:avoid}.print-holder .print-sheet.pdf-capture{left:0;position:relative;top:0;z-index:auto}}.preview-sketch-page header{border-bottom:.35mm solid #111111;display:flex;font-size:4mm;gap:6mm;justify-content:space-between;margin-bottom:4mm;padding-bottom:2mm}.preview-sketch-page img{border:.35mm solid #666666;display:block;max-width:100%;width:100%}.inbox-toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.inbox-toolbar input[type=search]{background:#fff;border:1px solid var(--border-strong);border-radius:6px;flex:1;min-height:42px;min-width:220px;padding:9px 12px}.inbox-toolbar select{background:#fff;border:1px solid var(--border-strong);border-radius:6px;min-height:42px;padding:9px 10px}.inbox-view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inbox-view-switch button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);color:var(--muted);display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;min-height:40px;padding:7px 10px}.inbox-view-switch button:first-child{border-radius:6px 0 0 6px}.inbox-view-switch button:last-child{border-left:0;border-radius:0 6px 6px 0}.inbox-view-switch button.active{background:var(--ink);color:#fff}.order-calendar{background:var(--panel);border:1px solid var(--border);border-radius:8px;overflow-x:auto;overflow-y:hidden}.order-calendar-head{align-items:end;border-bottom:1px solid var(--border);display:flex;gap:16px;justify-content:space-between;padding:14px 16px}.order-calendar-head label{display:grid;font-size:12px;font-weight:700;gap:5px}.order-calendar-head input{min-height:40px}.order-calendar-head p{color:var(--muted);font-size:12px;margin:0}.calendar-range-switch{display:inline-flex}.calendar-range-switch button{background:#fff;border:1px solid var(--border-strong);border-radius:0;min-height:40px;padding:7px 14px}.calendar-range-switch button:first-child{border-radius:6px 0 0 6px}.calendar-range-switch button+button{border-left:0}.calendar-range-switch button:last-child{border-radius:0 6px 6px 0}.calendar-range-switch button.active{background:var(--ink);color:#fff}.order-calendar-weekdays,.order-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:760px}.order-calendar-grid.view-day{grid-template-columns:minmax(0,1fr);min-width:0}.order-calendar-weekdays span{background:var(--panel-subtle);border-bottom:1px solid var(--border);color:var(--muted);font-size:11px;font-weight:700;padding:7px;text-align:center}.order-calendar-day{border-bottom:1px solid var(--border);border-right:1px solid var(--border);min-height:118px;min-width:0;padding:7px}.order-calendar-grid.view-week .order-calendar-day{min-height:240px}.order-calendar-grid.view-day .order-calendar-day{min-height:400px;padding:16px}.order-calendar-grid.view-day .order-calendar-day>time{font-size:14px;text-align:left}.order-calendar-grid.view-day .calendar-order{font-size:13px;gap:3px;padding:9px 10px}.order-calendar-day:nth-child(7n){border-right:0}.order-calendar-day.is-outside{background:#f7f8fa;color:#98a2b3}.order-calendar-day>time{display:block;font-size:11px;font-weight:700;margin-bottom:5px;text-align:right}.order-calendar-day>div{display:grid;gap:4px}.calendar-order{appearance:none;background:transparent;border:0;border-left:3px solid var(--border-strong);border-radius:0;color:inherit;cursor:pointer;display:grid;font-size:10px;gap:1px;min-width:0;padding:4px 5px;text-align:left;width:100%}.calendar-order:hover,.calendar-order:focus-visible{box-shadow:inset 0 0 0 1px var(--border-strong)}.calendar-order strong,.calendar-order span,.calendar-order small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-order.deadline-overdue,.calendar-order.deadline-today{background:#fff1f0;border-left-color:#b42318}.calendar-order.deadline-urgent,.calendar-order.deadline-soon{background:#fff8e7;border-left-color:#b7791f}.calendar-more{background:transparent;border:0;color:var(--muted);cursor:pointer;font-size:10px;min-height:28px;padding:3px;text-align:right;text-decoration:underline;width:100%}.order-overview-backdrop{align-items:center;background:#111827b8;display:flex;inset:0;justify-content:center;padding:18px;position:fixed;z-index:95}.order-overview-dialog{background:#fff;border:1px solid #98a2b3;border-radius:8px;box-shadow:0 24px 64px #00000052;display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 36px);max-width:920px;overflow:hidden;width:100%}.order-overview-dialog>header,.order-overview-dialog>footer{align-items:center;display:flex;justify-content:space-between;padding:14px 18px}.order-overview-dialog>header{border-bottom:1px solid var(--border)}.order-overview-dialog>header span{color:var(--muted);font-size:11px;font-weight:700}.order-overview-dialog>header h2{font-size:20px;margin:2px 0 0}.order-overview-dialog>header button{align-items:center;background:transparent;border:0;color:var(--muted);display:inline-flex;height:40px;justify-content:center;padding:0;width:40px}.order-overview-body{display:grid;gap:18px;overflow:auto;padding:18px}.order-overview-deadline{align-items:end;background:var(--panel-subtle);border-bottom:1px solid var(--border-strong);display:grid;gap:18px;grid-template-columns:minmax(0,1fr) minmax(180px,240px);padding:14px}.order-overview-deadline>div,.order-overview-deadline label{display:grid;gap:5px}.order-overview-deadline span{color:var(--muted);font-size:11px;font-weight:700}.order-overview-deadline>div>strong{font-size:20px}.order-overview-deadline small{font-size:11px;font-weight:700;width:fit-content}.order-overview-deadline small.deadline-overdue,.order-overview-deadline small.deadline-today{color:#b42318}.order-overview-deadline small.deadline-urgent,.order-overview-deadline small.deadline-soon{color:#8a4b08}.order-overview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.order-overview-facts>div{border-bottom:1px solid var(--border);display:grid;gap:4px;grid-template-columns:112px minmax(0,1fr);padding:10px 8px}.order-overview-facts dt{color:var(--muted);font-size:12px;font-weight:700}.order-overview-facts dd{font-size:13px;font-weight:600;margin:0;overflow-wrap:anywhere}.order-overview-instructions{display:grid;gap:18px;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr)}.order-overview-instructions h3,.order-overview-attachments h3{font-size:13px;margin:0 0 7px}.order-overview-instructions p{border-left:3px solid var(--border-strong);line-height:1.7;margin:0;min-height:72px;padding:8px 12px;white-space:pre-wrap}.order-overview-attachments{border-top:1px solid var(--border);padding-top:16px}.order-overview-attachments>div:first-child{align-items:center;display:flex;justify-content:space-between}.order-overview-attachments>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.order-overview-attachments p{color:var(--muted);font-size:13px;margin:0}.order-overview-attachments button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:var(--accent-dark);display:inline-flex;gap:6px;min-height:38px;padding:7px 10px}.order-overview-dialog>footer{border-top:1px solid var(--border);gap:8px;justify-content:flex-end}.order-overview-dialog>footer button{align-items:center;display:inline-flex;gap:6px;min-height:40px;padding:8px 13px}.inbox-count{color:var(--muted);font-size:12px;font-weight:600}.inbox-security-note{color:var(--muted);font-size:12px;line-height:1.5;margin:4px 0 0}.status-select,.status-badge{border-radius:999px;font-size:12px;font-weight:700;min-height:32px;padding:4px 8px;width:100%}.status-badge{align-items:center;display:inline-flex;justify-content:center}.status-select.status-sent,.status-badge.status-sent{background:#fff7ed;border:1px solid #f2c8a8;color:#9a3412}.status-select.status-received,.status-badge.status-received{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}.status-select.status-designing,.status-badge.status-designing{background:#f4f3ff;border:1px solid #d9d6fe;color:#5925dc}.status-select.status-approved,.status-badge.status-approved{background:#ecfdf3;border:1px solid #abefc6;color:#067647}.status-select.status-in_progress,.status-badge.status-in_progress{background:var(--accent-soft);border:1px solid #b6c8e2;color:var(--accent-dark)}.status-select.status-completed,.status-badge.status-completed{background:#f2f4f7;border:1px solid #d0d5dd;color:#475467}.status-select.status-shipped,.status-badge.status-shipped{background:#eef4ff;border:1px solid #c7d7fe;color:#3538cd}.status-select.status-delivered,.status-badge.status-delivered,.status-select.status-handed_over,.status-badge.status-handed_over{background:#ecfdf3;border:1px solid #abefc6;color:#067647}@media(max-width:760px){.order-table{border:0;display:grid;gap:12px;overflow:visible}.order-row.header{display:none}.order-item{border:1px solid var(--border);border-radius:8px;overflow:hidden}.order-item .order-row{align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.order-item .order-row>[data-label]{align-items:flex-start;display:flex;flex-direction:column;gap:4px;min-width:0;white-space:normal}.order-item .order-row>[data-label]:before{color:var(--muted);content:attr(data-label);font-size:10px;font-weight:700}.order-item .order-row>.order-row-actions{align-items:center;flex-direction:row;width:100%}.order-item .order-row>.order-status-cell{display:flex;flex-direction:column}.order-status-cell .status-select,.order-row-actions button{min-height:44px}}@media(max-width:760px){.instruction-edit-banner{align-items:start;grid-template-columns:22px minmax(0,1fr)}.instruction-edit-banner button{grid-column:1 / -1;width:100%}.order-item .order-row{grid-template-columns:1fr}.print-preview-overlay .print-sheet.pdf-capture,.preview-sketch-page{zoom:.44}.inbox-toolbar{align-items:stretch;flex-direction:column}.order-list-pagination{align-items:stretch;flex-direction:column;gap:8px}.order-list-pagination>div{justify-content:space-between}.order-calendar-head{align-items:stretch;flex-direction:column}.calendar-range-switch{display:flex}.calendar-range-switch button{flex:1}.order-calendar-day{min-height:92px;padding:4px}.order-calendar-grid.view-week .order-calendar-day{min-height:180px}.order-calendar-grid.view-day .order-calendar-day{min-height:300px;padding:12px}.calendar-order{font-size:9px;padding:3px}.calendar-order span{display:none}.order-overview-backdrop{align-items:stretch;padding:0}.order-overview-dialog{border:0;border-radius:0;max-height:100vh}.order-overview-body{padding:14px}.order-overview-deadline,.order-overview-facts,.order-overview-instructions{grid-template-columns:1fr}.order-overview-facts>div{grid-template-columns:100px minmax(0,1fr)}.order-overview-dialog>footer button{flex:1;justify-content:center}}.handwriting-pad.expanded{background:var(--bg);display:flex;flex-direction:column;gap:8px;inset:0;padding:14px;position:fixed;z-index:70}.handwriting-pad.expanded canvas{flex:1;min-height:0}.handwriting-pad.expanded .pad-hint{display:none}.pad-right{margin-left:auto}.receipt .notify-ok{color:#1e6b3f;font-weight:700}.receipt .notify-ng{color:var(--danger);font-weight:700}.notification-retry{background:#fff5ed;border:1px solid #f2c8a8;border-radius:8px;display:grid;gap:8px;margin-top:12px;padding:12px}.notification-retry p{color:#9a3412;font-size:13px;line-height:1.6;margin:0}.notification-retry button{background:var(--ink);border:1px solid var(--ink);border-radius:6px;color:#fff;font-weight:600;justify-self:start;min-height:38px;padding:8px 14px}.notification-retry button:disabled{cursor:wait;opacity:.6}.order-delivery-actions{align-items:center;background:#f8fafc;border-top:1px dashed var(--border);display:flex;gap:12px;justify-content:space-between;padding:10px 12px}.order-notification-status{align-items:center;background:#fff;border:1px solid var(--border);border-radius:6px;display:flex;gap:12px;justify-content:space-between;padding:9px 12px}.order-notification-status>div{align-items:center;display:flex;flex-wrap:wrap;gap:7px}.order-notification-status svg,.order-notification-status span,.order-notification-status small{color:var(--muted)}.order-notification-status span,.order-notification-status small{font-size:12px}.order-notification-status strong{color:#1e6b3f;font-size:12px}.order-notification-status.failed strong,.order-notification-status.failed svg{color:var(--danger)}.order-notification-status button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);display:inline-flex;flex:0 0 auto;font-size:12px;font-weight:700;gap:6px;min-height:36px;padding:7px 11px}.order-notification-status button:disabled{cursor:wait;opacity:.6}.order-delivery-actions>div{align-items:center;display:flex;flex-wrap:wrap;gap:7px;min-width:0}.order-delivery-actions span,.order-delivery-actions small{color:var(--muted);font-size:12px}.order-delivery-actions strong{background:#f2f4f7;border:1px solid #d0d5dd;border-radius:999px;color:#475467;font-size:11px;padding:3px 8px}.order-delivery-actions strong.issued{background:#ecfdf3;border-color:#a6f4c5;color:#067647}.order-delivery-actions button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);display:inline-flex;flex:0 0 auto;font-size:12px;font-weight:700;gap:6px;min-height:36px;padding:7px 11px}.order-delivery-actions button:hover{background:var(--accent-soft);border-color:var(--accent)}.delivery-dialog-backdrop{align-items:center;background:#111827b8;display:flex;inset:0;justify-content:center;padding:18px;position:fixed;z-index:90}.delivery-dialog{background:#fff;border:1px solid #98a2b3;border-radius:8px;box-shadow:0 24px 64px #00000052;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;max-height:calc(100vh - 36px);max-width:1440px;overflow:hidden;width:100%}.delivery-dialog-header{align-items:center;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;padding:14px 18px}.delivery-dialog-header>div{align-items:center;display:flex;gap:10px}.delivery-dialog-header span{background:#eef2f6;border:1px solid #d0d5dd;border-radius:999px;color:#475467;font-size:11px;font-weight:700;padding:4px 8px}.delivery-dialog-header h2{font-size:18px;letter-spacing:0;margin:0}.delivery-dialog-header>button{align-items:center;background:transparent;border:0;color:#475467;display:inline-flex;height:40px;justify-content:center;padding:0;width:40px}.delivery-revision-history{align-items:center;background:#f8fafc;border-bottom:1px solid var(--border);color:#475467;display:grid;font-size:12px;gap:8px;grid-template-columns:auto auto minmax(180px,360px);justify-content:start;min-height:45px;padding:7px 18px}.delivery-revision-history label{font-weight:700}.delivery-revision-history select{background:#fff;border:1px solid var(--border-strong);border-radius:5px;color:var(--ink);min-height:32px;padding:4px 8px}.delivery-dialog-body{display:grid;grid-template-columns:minmax(430px,.85fr) minmax(600px,1.15fr);min-height:0;overflow:hidden}.delivery-form{display:grid;gap:14px;overflow:auto;padding:18px}.delivery-form-grid{display:grid;gap:12px;grid-template-columns:minmax(0,1fr) minmax(170px,.6fr)}.delivery-destination{background:#f8fafc;border-left:3px solid var(--ink);display:grid;gap:3px;padding:10px 12px}.delivery-destination span,.delivery-destination small{color:var(--muted);font-size:12px}.delivery-destination strong{font-size:15px}.delivery-line-heading{align-items:center;display:flex;justify-content:space-between}.delivery-line-heading h3{font-size:14px;letter-spacing:0;margin:0}.delivery-line-heading button,.delivery-line button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:#344054;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;min-height:36px;padding:6px 10px}.delivery-line-heading button:disabled,.delivery-line button:disabled{cursor:not-allowed;opacity:.45}.delivery-line-presets{align-items:center;display:flex;flex-wrap:wrap;gap:7px}.delivery-line-presets>span{color:var(--muted);font-size:11px;font-weight:700;margin-right:2px}.delivery-line-presets button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:#344054;display:inline-flex;font-size:11px;font-weight:700;gap:4px;min-height:34px;padding:6px 9px}.delivery-line-presets button:disabled{opacity:.45}.delivery-lines{border:1px solid var(--border);border-radius:6px;overflow:hidden}.delivery-line{align-items:center;display:grid;gap:7px;grid-template-columns:minmax(130px,1fr) 70px 66px 105px 38px;padding:7px}.delivery-line+.delivery-line{border-top:1px solid var(--border)}.delivery-line input{border:1px solid var(--border-strong);border-radius:5px;font:inherit;min-height:38px;min-width:0;padding:7px 8px;width:100%}.delivery-line input:read-only{background:#f8fafc}.delivery-line-labels{background:#f2f4f7;color:var(--muted);font-size:11px;font-weight:700;min-height:31px;padding-bottom:4px;padding-top:4px}.delivery-line-labels span:not(:first-child){text-align:center}.delivery-line button{color:var(--danger);min-height:38px;padding:0;width:38px}.delivery-price-options{align-items:center;background:#f8fafc;display:flex;flex-wrap:wrap;gap:16px;padding:10px 12px}.delivery-price-options label{align-items:center;display:inline-flex;font-size:13px;font-weight:600;gap:7px}.delivery-price-options input[type=checkbox]{height:18px;width:18px}.delivery-price-options select{background:#fff;border:1px solid var(--border-strong);border-radius:5px;min-height:36px;padding:5px 8px}.delivery-price-options strong{margin-left:auto}.delivery-message{background:#eff6ff;border-left:3px solid var(--accent);color:#1e3a5f;font-size:13px;margin:0;padding:9px 11px}.delivery-revision-notice{align-items:flex-start;background:#fff8e6;border:1px solid #e8cf91;border-radius:6px;color:#5f4814;display:flex;gap:9px;padding:10px 12px}.delivery-revision-notice>div{display:grid;gap:2px}.delivery-revision-notice span{font-size:12px;overflow-wrap:anywhere}.delivery-revision-form{background:#f8fafc;border:1px solid var(--border);border-left:3px solid var(--accent);display:grid;gap:8px;padding:12px}.delivery-revision-form label{font-size:13px;font-weight:700}.delivery-revision-form textarea{border:1px solid var(--border-strong);border-radius:5px;font:inherit;min-height:76px;padding:9px;resize:vertical}.delivery-revision-form small{color:var(--muted)}.delivery-revision-form>div{display:flex;gap:8px;justify-content:flex-end}.delivery-revision-form button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;display:inline-flex;font-weight:700;gap:6px;min-height:38px;padding:7px 12px}.delivery-revision-form button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.delivery-revision-form button:disabled{opacity:.5}.delivery-preview-pane{align-items:center;background:#e4e7ec;border-left:1px solid var(--border);display:flex;flex-direction:column;gap:8px;overflow:auto;padding:16px}.delivery-preview-pane>span{color:#475467;font-size:12px;font-weight:700}.delivery-preview-pane .delivery-sheet{box-shadow:0 8px 28px #1018282e;flex:0 0 auto;zoom:.72}.delivery-dialog-actions{align-items:center;border-top:1px solid var(--border);display:flex;gap:9px;justify-content:flex-end;padding:12px 18px}.delivery-dialog-actions button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;color:#344054;display:inline-flex;font-size:13px;font-weight:700;gap:7px;min-height:40px;padding:8px 14px}.delivery-dialog-actions button:disabled{cursor:not-allowed;opacity:.5}.delivery-dialog-actions .delivery-issue-button{background:var(--ink);border-color:var(--ink);color:#fff}.delivery-layout-control{background:var(--panel-subtle);border:1px solid var(--border);border-radius:6px;display:grid;gap:8px;padding:12px}.delivery-layout-control>span{font-size:13px;font-weight:700}.delivery-layout-control>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-layout-control button{background:#fff;border:1px solid var(--border-strong);color:var(--ink);min-height:42px}.delivery-layout-control button:first-child{border-radius:6px 0 0 6px}.delivery-layout-control button:last-child{border-left:0;border-radius:0 6px 6px 0}.delivery-layout-control button.active{background:var(--ink);color:#fff}.delivery-layout-control small{color:var(--muted);font-size:11px}.delivery-sheet{background:#fff;box-sizing:border-box;color:#111;display:flex;flex-direction:column;font-family:Noto Sans JP,Yu Gothic,Hiragino Kaku Gothic ProN,sans-serif;height:297mm;overflow:hidden;padding:14mm 13mm 12mm;width:210mm}.delivery-sheet.delivery-sheet-split{display:grid;grid-template-rows:1fr 8mm 1fr;padding:7mm 10mm}.delivery-split-cutline{align-items:center;border-top:.35mm dashed #777777;display:flex;justify-content:center;margin-top:3.7mm}.delivery-split-cutline span{background:#fff;color:#666;font-size:2.4mm;padding:0 3mm}.delivery-split-copy{display:grid;grid-template-rows:auto auto 1fr auto;min-height:0;overflow:hidden}.delivery-split-copy>header{align-items:end;border-bottom:.35mm solid #111111;display:flex;justify-content:space-between;padding-bottom:2mm}.delivery-split-copy header small{border:.25mm solid #333333;display:inline-block;font-size:2.4mm;padding:.6mm 1.5mm}.delivery-split-copy h1{display:inline-block;font-size:6mm;margin:0 0 0 3mm}.delivery-split-copy header dl{display:grid;font-size:2.5mm;gap:1mm;min-width:0;width:70mm}.delivery-split-copy header dl>div{display:grid;grid-template-columns:24mm 1fr}.delivery-split-copy header dd{border-bottom:.2mm solid #777777;min-width:0;overflow-wrap:anywhere}.delivery-split-parties{display:grid;font-size:2.6mm;gap:8mm;grid-template-columns:repeat(2,minmax(0,1fr));padding:2.5mm 0}.delivery-split-parties>div{display:grid;gap:1mm;min-width:0;overflow-wrap:anywhere}.delivery-split-parties strong{font-size:3.3mm}.delivery-split-copy table{border-collapse:collapse;table-layout:fixed;width:100%}.delivery-split-copy th,.delivery-split-copy td{border:.2mm solid #444444;font-size:2.35mm;height:5.4mm;overflow:hidden;padding:.7mm 1mm;text-overflow:ellipsis;white-space:normal}.delivery-split-copy th{background:#edf0f2}.delivery-split-copy th:nth-child(1),.delivery-split-copy th:nth-child(2){width:21mm}.delivery-split-copy th:nth-child(3){width:28mm}.delivery-split-copy th:nth-child(4){width:auto}.delivery-split-copy th:nth-child(5){width:34mm}.delivery-split-copy th:nth-child(6){width:24mm}.delivery-split-copy td:nth-child(1),.delivery-split-copy td:nth-child(2){text-align:center}.delivery-split-copy td:nth-child(6){text-align:right}.delivery-split-copy td small{display:block;font-size:1.9mm}.delivery-split-copy>footer{align-items:end;display:grid;font-size:2.4mm;gap:4mm;grid-template-columns:minmax(0,1fr) 48mm;padding-top:2mm}.delivery-split-copy>footer>div{display:grid;gap:1mm}.delivery-split-copy>footer dl{border:.2mm solid #444444;display:grid;grid-template-columns:repeat(2,1fr)}.delivery-split-copy>footer dl>div{padding:1mm}.delivery-split-copy>footer dl>div+div{border-left:.2mm solid #444444}.delivery-split-copy>footer dl dt{color:#555}.delivery-split-copy>footer dl dd{font-weight:700;white-space:nowrap}.delivery-sheet *,.delivery-sheet *:before,.delivery-sheet *:after{box-sizing:border-box;letter-spacing:0}.delivery-sheet p,.delivery-sheet dl,.delivery-sheet dd,.delivery-sheet dt{margin:0}.delivery-sheet-title{align-items:start;border-bottom:.55mm solid #111111;display:flex;justify-content:space-between;padding-bottom:4mm}.delivery-sheet-title>div span{color:#5f6670;font-size:2.8mm;font-weight:700}.delivery-sheet-title h1{font-size:8.5mm;font-weight:700;margin:0}.delivery-sheet-revision{border:.25mm solid #8b6515;color:#6f5010;display:inline-block;font-size:2.7mm;margin-top:1.5mm;padding:.8mm 1.8mm}.delivery-sheet-title dl{display:grid;font-size:3mm;gap:2mm;min-width:0;width:67mm}.delivery-sheet-title dl div{display:grid;gap:2mm;grid-template-columns:23mm 1fr}.delivery-sheet-title dt{color:#5f6670}.delivery-sheet-title dd{border-bottom:.25mm solid #555555;font-weight:600;min-width:0;overflow-wrap:anywhere}.delivery-sheet-parties{display:grid;gap:8mm;grid-template-columns:minmax(0,1fr) minmax(0,72mm);min-height:44mm;padding:7mm 0 5mm}.delivery-sheet-recipient strong{border-bottom:.4mm solid #111111;display:block;font-size:4.4mm;margin-bottom:4mm;padding-bottom:1.5mm}.delivery-sheet-recipient p,.delivery-sheet-issuer p{font-size:3mm;line-height:1.65;overflow-wrap:anywhere}.delivery-sheet-issuer{border-left:.25mm solid #a6a6a6;min-width:0;overflow-wrap:anywhere;padding-left:5mm}.delivery-sheet-issuer strong{display:block;font-size:4.2mm;margin-bottom:2mm}.delivery-sheet-lead{font-size:3.3mm;padding:2mm 0 3mm}.delivery-sheet-table{border-collapse:collapse;table-layout:fixed;width:100%}.delivery-sheet-table th,.delivery-sheet-table td{border:.25mm solid #333333;font-size:2.85mm;height:10mm;overflow:hidden;padding:1.3mm 1.5mm;text-overflow:ellipsis;white-space:normal}.delivery-sheet-table th{background:#edf0f2;font-weight:700;height:8mm;text-align:center}.delivery-sheet-table th:nth-child(1),.delivery-sheet-table th:nth-child(2){width:23mm}.delivery-sheet-table th:nth-child(3){width:30mm}.delivery-sheet-table th:nth-child(4){width:auto}.delivery-sheet-table th:nth-child(5){width:34mm}.delivery-sheet-table th:nth-child(6){width:25mm}.delivery-sheet-table td:nth-child(1),.delivery-sheet-table td:nth-child(2),.delivery-sheet-table td:nth-child(3),.delivery-sheet-table td:nth-child(6){text-align:center}.delivery-sheet-table td:nth-child(6){text-align:right}.delivery-sheet-table td small{display:block;font-size:2.35mm;margin-top:.5mm}.delivery-sheet-table.no-prices th:nth-child(1),.delivery-sheet-table.no-prices th:nth-child(2){width:24mm}.delivery-sheet-table.no-prices th:nth-child(3){width:34mm}.delivery-sheet-table.no-prices th:nth-child(4){width:auto}.delivery-sheet-table.no-prices th:nth-child(5){width:40mm}.delivery-sheet-bottom{display:grid;gap:7mm;grid-template-columns:minmax(0,1fr) 68mm;margin-top:5mm;min-height:38mm}.delivery-sheet-notes{border:.25mm solid #555555;display:grid;grid-template-rows:auto 1fr auto auto;padding:3mm}.delivery-sheet-notes strong,.delivery-sheet-notes p,.delivery-sheet-notes small{font-size:2.9mm}.delivery-sheet-notes p{line-height:1.5;overflow:hidden;padding-top:2mm;white-space:pre-wrap}.delivery-sheet-notes small{color:#5f6670}.delivery-sheet-notes .delivery-sheet-revision-reason{border-top:.2mm solid #c4a65e;color:#5f4814;font-size:2.5mm;margin-top:1mm;padding:1mm 0}.delivery-sheet-totals{border-top:.25mm solid #333333}.delivery-sheet-totals div{border-bottom:.25mm solid #333333;display:grid;font-size:3.1mm;grid-template-columns:27mm 1fr;min-height:10mm}.delivery-sheet-totals dt,.delivery-sheet-totals dd{align-items:center;display:flex;padding:1.5mm 2mm}.delivery-sheet-totals dt{background:#edf0f2;border-left:.25mm solid #333333}.delivery-sheet-totals dd{border-left:.25mm solid #333333;border-right:.25mm solid #333333;justify-content:flex-end}.delivery-sheet-totals .grand-total{font-size:4mm;font-weight:700}.invoice-pane{display:grid;gap:18px;margin:0 auto;max-width:1320px}.invoice-pane>.inbox-header,.billing-settings,.billing-section{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:18px}.inbox-header p,.billing-settings p{color:var(--muted);font-size:12px;margin:4px 0 0}.billing-message{background:var(--accent-soft);border-left:3px solid var(--accent);margin:0;padding:10px 12px}.invoice-filters{display:grid;gap:12px;grid-template-columns:1fr 220px 1fr}.billing-period{align-content:center;background:var(--panel-subtle);border:1px solid var(--border);border-radius:6px;display:grid;gap:4px;padding:10px 12px}.billing-period span{color:var(--muted);font-size:12px}.billing-settings{align-items:end;display:grid;gap:12px;grid-template-columns:1.2fr repeat(2,180px) 1fr 1fr auto}.billing-address{grid-column:span 2}.billing-patient-option{align-items:center;display:flex;font-size:12px;gap:7px}.billing-settings>button,.billing-create-actions button{align-items:center;background:var(--ink);border:1px solid var(--ink);border-radius:6px;color:#fff;display:inline-flex;font-weight:700;gap:6px;min-height:40px;padding:8px 14px}.document-settings{align-items:stretch;grid-template-columns:repeat(4,minmax(0,1fr))}.billing-settings-wizard{align-items:stretch;display:grid;grid-template-columns:1fr}.billing-settings-wizard>*{grid-column:1}.billing-setting-steps{display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0}.billing-setting-steps button{align-items:center;background:var(--panel-subtle);border:1px solid var(--border);border-radius:6px;color:var(--muted);display:flex;font-weight:700;gap:8px;min-height:44px;padding:8px 10px;width:100%}.billing-setting-steps button span{align-items:center;border:1px solid currentColor;border-radius:50%;display:inline-flex;flex:0 0 26px;height:26px;justify-content:center}.billing-setting-steps li.active button{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}.billing-setting-steps li.complete button{color:var(--accent)}.billing-setting-panel{border-top:1px solid var(--border);min-height:220px;padding-top:16px}.setting-fields-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.template-setting-panel{display:grid;gap:18px;grid-template-columns:minmax(0,1fr) minmax(280px,.72fr)}.invoice-template-preview{aspect-ratio:210 / 297;background:#fff;border:1px solid #aab3bd;box-shadow:0 5px 18px #1018281f;box-sizing:border-box;color:#17202a;display:grid;font-size:9px;grid-template-rows:auto auto auto 1fr auto;justify-self:center;max-height:440px;padding:7%;width:min(100%,310px)}.invoice-template-preview header{align-items:end;border-bottom:2px solid #17202a;display:flex;justify-content:space-between;padding-bottom:8px}.invoice-template-preview header strong{font-size:22px}.preview-parties{display:flex;justify-content:space-between;padding:14px 0 10px}.preview-total{border:1px solid #667085;font-size:10px;padding:9px}.preview-total strong{font-size:15px;margin-left:8px}.preview-table{align-content:start;display:grid;grid-template-columns:50px 1fr 64px;margin-top:12px}.preview-table>b{background:#f2f4f7;border:1px solid #98a2b3;padding:5px}.preview-row{display:contents}.preview-row>span,.preview-row>i,.preview-row>em{border:1px solid #c7cdd4;font-style:normal;padding:5px}.preview-row>i,.preview-row>em{border-left:0}.preview-row>em{text-align:right}.invoice-template-preview footer{align-self:end;border-top:1px solid #667085;padding-top:7px}.invoice-template-preview.template-summary_green header{border-color:#42aa78}.invoice-template-preview.template-summary_green .preview-total{background:#e8f7ef;border-color:#42aa78}.invoice-template-preview.template-monthly_blue header{background:#185381;border:0;color:#fff;padding:8px}.invoice-template-preview.template-monthly_blue .preview-total{background:#d5effa;border:0}.invoice-template-preview.template-monthly_blue .preview-table>b{background:#185381;color:#fff}.billing-setting-review dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.billing-setting-review dl div{border-bottom:1px solid var(--border);padding:10px}.billing-setting-review dt{color:var(--muted);font-size:12px}.billing-setting-review dd{font-weight:700;margin:4px 0 0}.billing-setting-actions{align-items:center;border-top:1px solid var(--border);display:flex;gap:10px;justify-content:space-between;padding-top:14px}.billing-setting-actions>button{align-items:center;background:var(--panel);border:1px solid var(--border-strong);border-radius:6px;color:var(--ink);display:inline-flex;font-weight:700;gap:5px;min-height:40px;padding:8px 12px}.billing-setting-actions>button:last-child{background:var(--ink);color:#fff}.billing-setting-actions>button:disabled{opacity:.45}.billing-settings-title,.invoice-template-picker,.bank-settings,.invoice-display-options{grid-column:1 / -1}.invoice-template-picker{border:0;display:grid;gap:10px;grid-template-columns:repeat(3,1fr);margin:0;padding:8px 0}.invoice-template-picker legend{font-size:12px;font-weight:700;margin-bottom:8px}.invoice-template-picker>label{align-items:center;border:1px solid var(--border);border-radius:6px;display:grid;gap:8px;grid-template-columns:auto 46px 1fr;padding:10px}.invoice-template-picker>label.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.template-swatch{border:1px solid #98a2b3;display:block;height:28px}.template-swatch.summary_green{border-top:8px solid #53b68b}.template-swatch.monthly_blue{background:repeating-linear-gradient(#fff 0 5px,#c9edf8 5px 10px);border-top:8px solid #185381}.bank-settings{display:grid;gap:10px;grid-template-columns:repeat(3,1fr)}.invoice-display-options{display:flex;flex-wrap:wrap;gap:16px}.invoice-display-options label{align-items:center;display:flex;font-size:12px;gap:6px}.billing-section{display:grid;gap:14px}.billing-section-head{align-items:end;display:flex;gap:16px;justify-content:space-between}.billing-section-head h3{font-size:16px;margin:0}.billing-section-head span{color:var(--muted);font-size:12px}.billing-section-head input{max-width:360px}.billing-searches{display:flex;gap:8px}.billing-table{border:1px solid var(--border);border-radius:6px;overflow-x:auto}.billing-row{align-items:center;display:grid;gap:10px;grid-template-columns:28px 105px minmax(190px,1fr) minmax(220px,1.35fr) 110px 78px;min-width:820px;padding:10px 12px}.billing-row+.billing-row{border-top:1px solid var(--border)}.billing-row.header{background:var(--panel-subtle);color:var(--muted);font-size:11px;font-weight:700}.billing-row small{color:var(--muted);display:block;font-size:11px;margin-top:2px}.billing-create-actions{align-items:center;display:flex;gap:12px;justify-content:flex-end}.billing-create-actions small{color:var(--danger)}.billing-save-state{align-self:center;color:var(--muted);font-size:12px}.billing-save-state.dirty{color:#8a5b00;font-weight:700}.billing-save-state.saved{color:#287a4b}.billing-save-state.error{color:var(--danger);font-weight:700}.invoice-pdf-message{background:var(--panel-subtle);border-top:1px solid var(--border);color:var(--muted);font-size:13px;margin:0;padding:9px 18px}.invoice-list{border:1px solid var(--border);border-radius:6px;overflow:hidden}.invoice-list>button{align-items:center;background:#fff;border:0;display:grid;gap:12px;grid-template-columns:minmax(190px,1.4fr) 1fr 100px 110px 110px 80px;padding:12px;text-align:left;width:100%}.invoice-list>button+button{border-top:1px solid var(--border)}.invoice-list>button.historical{background:#f8fafc;color:#667085}.invoice-list span{display:grid;gap:2px}.invoice-list small{color:var(--muted)}.invoice-status{border:1px solid var(--border);border-radius:999px;font-size:11px;font-style:normal;padding:4px 7px;text-align:center}.invoice-status.issued{background:#ecfdf3;border-color:#a6f4c5}.invoice-status.paid{background:#eff8ff;border-color:#b2ddff}.invoice-status.cancelled{background:#f2f4f7;color:var(--muted)}.invoice-status.superseded{background:#fff8e6;border-color:#e8cf91;color:#6f5010}.invoice-dialog{background:#fff;border-radius:8px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 40px);max-width:1120px;overflow:hidden;width:calc(100% - 32px)}.invoice-dialog>header,.invoice-dialog>footer{align-items:center;display:flex;justify-content:space-between;padding:14px 18px}.invoice-dialog>header{border-bottom:1px solid var(--border)}.invoice-dialog>header h2{font-size:18px;margin:3px 0 0}.invoice-dialog>header span{color:var(--muted);font-size:11px}.invoice-dialog>header button{background:transparent;border:0}.invoice-dialog-body{background:#e9edf1;display:grid;gap:16px;grid-template-columns:minmax(0,1fr);overflow:auto;padding:24px}.invoice-revision-notice{align-items:flex-start;background:#fff8e6;border:1px solid #e8cf91;color:#5f4814;display:flex;gap:9px;margin:0 auto;max-width:900px;padding:10px 12px;width:100%}.invoice-revision-notice>div{display:grid;gap:2px}.invoice-revision-notice span{font-size:12px;overflow-wrap:anywhere}.invoice-revision-form{background:#fff;border:1px solid var(--border-strong);display:grid;gap:12px;margin:0 auto;max-width:900px;padding:16px;width:100%}.invoice-revision-form-title{align-items:flex-start;display:flex;gap:9px}.invoice-revision-form-title>div{display:grid;gap:2px}.invoice-revision-form-title span,.invoice-revision-form>p{color:var(--muted);font-size:12px;margin:0}.invoice-revision-fields{display:grid;gap:12px;grid-template-columns:minmax(0,1fr) 190px}.invoice-revision-address{grid-column:1 / -1}.invoice-revision-error{color:var(--danger);font-weight:700}.invoice-revision-actions{display:flex;gap:8px;justify-content:flex-end}.invoice-revision-actions button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;display:inline-flex;font-weight:700;gap:6px;min-height:38px;padding:7px 12px}.invoice-revision-actions button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.invoice-revision-actions button:disabled{opacity:.5}.invoice-sheet-pages{display:grid;gap:20px;justify-items:center;min-width:0;width:100%}.invoice-sheet-pages .invoice-sheet{zoom:var(--invoice-preview-scale,1)}.invoice-sheet-pages--capture{justify-items:start}.invoice-sheet-pages--capture .invoice-sheet{zoom:1}.invoice-dialog>footer{border-top:1px solid var(--border);gap:8px;justify-content:flex-end}.invoice-dialog>footer button{align-items:center;background:#fff;border:1px solid var(--border-strong);border-radius:6px;display:inline-flex;gap:6px;min-height:40px;padding:8px 13px}.invoice-dialog>footer .danger{color:var(--danger)}.invoice-sheet{background:#fff;box-sizing:border-box;color:#111;font-family:Noto Sans JP,Yu Gothic,sans-serif;margin:0 auto;min-height:297mm;padding:15mm 14mm;width:210mm}.invoice-sheet-title{align-items:end;border-bottom:.5mm solid #111;display:flex;justify-content:space-between;padding-bottom:5mm}.invoice-sheet-title h1{font-size:9mm;letter-spacing:0;margin:0}.invoice-sheet-revision{border:.25mm solid #8b6515;color:#6f5010;display:inline-block;font-size:2.7mm;margin-top:1.5mm;padding:.8mm 1.8mm}.invoice-sheet-title dl{font-size:3mm;margin:0}.invoice-sheet-title dl div{display:grid;grid-template-columns:22mm 35mm}.invoice-sheet-title dd{margin:0}.invoice-parties{display:grid;gap:12mm;grid-template-columns:1fr 1fr;margin:10mm 0 7mm}.invoice-parties>div:last-child{border-left:.2mm solid #aaa;padding-left:8mm}.invoice-parties strong{font-size:4.5mm}.invoice-parties p{font-size:3mm;margin:2mm 0}.invoice-total-lead{border-bottom:.5mm solid #111;font-size:4mm;padding:4mm 0}.invoice-total-lead strong{float:right;font-size:6mm}.invoice-sheet table{border-collapse:collapse;font-size:2.6mm;margin-top:7mm;table-layout:fixed;width:100%}.invoice-sheet th,.invoice-sheet td{border:.2mm solid #444;overflow-wrap:anywhere;padding:2mm 1.5mm}.invoice-sheet th{background:#f2f2f2}.invoice-sheet td small{display:block}.invoice-sheet th:nth-child(1),.invoice-sheet th:nth-child(2){width:23mm}.invoice-sheet th:nth-child(3){width:30mm}.invoice-sheet th:nth-child(4){width:auto}.invoice-sheet th:nth-child(5){width:34mm}.invoice-sheet th:nth-child(6){width:25mm}.invoice-sheet td:nth-child(1),.invoice-sheet td:nth-child(2),.invoice-sheet td:nth-child(3){text-align:center}.invoice-sheet td:nth-child(6){text-align:right}.invoice-continuation{border-bottom:.2mm solid #667085;font-size:3mm;margin:7mm 0 0;padding-bottom:2mm}.invoice-totals{margin:7mm 0 0 auto;width:70mm}.invoice-totals div{border-bottom:.2mm solid #444;display:grid;grid-template-columns:1fr 1fr;padding:2mm}.invoice-totals dt,.invoice-totals dd{margin:0}.invoice-totals dd{text-align:right}.invoice-item-meta{color:#555;display:block;font-size:2.2mm;margin-top:1mm}.invoice-bank{border:.25mm solid #777;display:grid;font-size:2.8mm;gap:1mm;margin-top:8mm;padding:3mm;width:95mm}.invoice-sheet-revision-reason{border-top:.25mm solid #c4a65e;color:#5f4814;font-size:2.7mm;margin:7mm 0 0;padding-top:2mm}.template-summary_green .invoice-sheet-title{border-color:#42aa78}.template-summary_green .invoice-total-lead{background:#e8f7ef;border-color:#42aa78;padding:4mm}.template-summary_green table th{border-top:1mm solid #42aa78}.template-monthly_blue .invoice-sheet-title{background:#185381;border:0;color:#fff;padding:5mm}.template-monthly_blue .invoice-sheet-revision{border-color:#fff;color:#fff}.template-monthly_blue .invoice-total-lead{background:#d5effa;border:0;padding:4mm}.template-monthly_blue table th{background:#185381;color:#fff}.template-monthly_blue table tbody tr:nth-child(2n){background:#d5effa}@media(max-width:900px){.invoice-filters,.billing-settings,.document-settings{grid-template-columns:1fr 1fr}.billing-settings-wizard{grid-template-columns:1fr}.bank-settings{grid-template-columns:1fr 1fr}.billing-settings>div,.billing-address{grid-column:1 / -1}.invoice-list{overflow-x:auto}.invoice-list>button{min-width:850px}}@media(max-width:600px){.invoice-filters,.billing-settings,.invoice-template-picker,.bank-settings{grid-template-columns:1fr}.billing-setting-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.setting-fields-grid,.template-setting-panel,.billing-setting-review dl{grid-template-columns:1fr}.billing-setting-actions{align-items:stretch;flex-wrap:wrap}.billing-setting-actions .billing-save-state{flex:1 0 100%;order:-1}.billing-settings>div,.billing-address{grid-column:auto}.billing-section-head{align-items:stretch;flex-direction:column}.billing-section-head input{max-width:none}.billing-searches{flex-direction:column}.billing-create-actions{align-items:stretch;flex-direction:column}.invoice-dialog{border-radius:0;height:100%;max-height:none;width:100%}.invoice-dialog-body{padding:12px}.invoice-dialog>footer{flex-wrap:wrap}.invoice-revision-fields{grid-template-columns:1fr}.invoice-revision-address{grid-column:auto}.invoice-revision-actions{align-items:stretch;flex-direction:column}.invoice-revision-actions button{justify-content:center}}@media(max-width:1120px){.delivery-dialog-body{grid-template-columns:1fr;overflow:auto}.delivery-form{overflow:visible}.delivery-preview-pane{border-left:0;border-top:1px solid var(--border);min-height:560px;overflow:visible}}@media(max-width:680px){.delivery-dialog-backdrop{padding:0}.delivery-dialog{border:0;border-radius:0;max-height:100vh}.delivery-form-grid{grid-template-columns:1fr}.delivery-revision-history{grid-template-columns:auto 1fr;padding:7px 12px}.delivery-revision-history select,.delivery-revision-history>span:last-child{grid-column:1 / -1}.delivery-line-labels{display:none}.delivery-line{grid-template-columns:minmax(0,1fr) 68px 62px 92px 40px}.delivery-line input:first-child{grid-column:1 / -1}.delivery-price-options{align-items:stretch;flex-direction:column}.delivery-price-options strong{margin-left:0}.delivery-preview-pane{min-height:450px;padding:12px 4px}.delivery-preview-pane .delivery-sheet{zoom:.46}.delivery-dialog-actions{flex-wrap:wrap}.delivery-dialog-actions button{flex:1;justify-content:center;min-width:120px}.order-delivery-actions{align-items:stretch;flex-direction:column}.order-delivery-actions button{justify-content:center;min-height:44px}.admin-topbar,.admin-heading,.admin-section-header{align-items:stretch;flex-direction:column}.admin-topbar{gap:14px;padding:16px 20px}.admin-topbar-actions{flex-wrap:wrap}.admin-topbar-actions>span{flex-basis:100%}.admin-content{padding:26px 16px 48px}.admin-heading h1{font-size:26px}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-security{align-items:stretch;flex-direction:column}.admin-security-actions{align-items:stretch;max-width:none}.admin-security-actions details{text-align:left}.admin-section-header input{width:100%}.admin-account-filters{grid-template-columns:1fr 1fr}.admin-order-filters{grid-template-columns:minmax(0,1fr) minmax(150px,.45fr) auto}.admin-account-search,.admin-account-filters>button{grid-column:1 / -1}.admin-order-filters .admin-account-search{grid-column:auto}.admin-order-filters>button{min-height:44px}.admin-issue-columns{grid-template-columns:1fr}.admin-issue-group,.admin-issue-group:nth-child(2n){border-left:0;padding-left:0;padding-right:0}.admin-activity-list li{align-items:start;grid-template-columns:20px minmax(0,1fr)}.admin-activity-list time{grid-column:2}.admin-dialog-backdrop{align-items:flex-start;padding:10px}.admin-account-backdrop{padding:0}.admin-account-dialog{border:0;max-height:100vh;min-height:100vh;width:100%}.admin-account-dialog-header{padding:16px}.admin-account-tabs{overflow-x:auto;padding:0 8px}.admin-account-tabs button{flex:0 0 auto}.admin-account-dialog-body{padding:0 16px 24px}.admin-account-profile,.admin-account-usage,.admin-operations-form,.admin-billing-form{grid-template-columns:1fr}.admin-account-profile .wide,.admin-billing-form .wide{grid-column:auto}.admin-approval-dialog{max-height:calc(100vh - 20px);padding:18px}.admin-approval-profile{grid-template-columns:1fr}.admin-approval-profile .wide{grid-column:auto}.admin-approval-actions{flex-direction:column-reverse}.admin-approval-actions button{width:100%}}.production-type-grid .check-item span{min-width:0;overflow-wrap:anywhere}.print-production-types{align-items:center;border:.35mm solid #111;border-top:0;display:flex;gap:5mm;min-height:7mm;padding:1mm 3mm;font-size:2.8mm;line-height:1.4;overflow-wrap:anywhere}.comment-preset-groups{display:grid;gap:12px}.comment-preset-group>strong{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.comment-preset-group .chip-row{margin:0}
