:root{--green:#8cc600;--ink:#303833;--muted:#566257;--line:#d8dfd2;--bg:#f4f6f2;--white:#fff;--error:#9e361d;--warning:#765400;font-family:Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","PingFang SC",sans-serif;color:var(--ink);font-size:14px;line-height:1.65}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{min-height:48px;padding:8px 16px;cursor:pointer;border:1px solid #a7b59d;border-radius:8px;background:white;color:var(--ink);font-weight:600}button:hover{background:#f1f6e8;border-color:#647b55}button:disabled{opacity:.58;cursor:not-allowed}button.primary{background:var(--green);border-color:#719e0b;color:#203000}button.danger{color:var(--error);border-color:#c99d8a}button.quiet{background:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #416000;outline-offset:3px}a{color:#3c561f;text-decoration:none}a:hover{text-decoration:underline}h1{font-size:32px;line-height:1.3;margin:8px 0 16px;letter-spacing:-.5px}h2{font-size:20px;line-height:1.45;margin:0 0 16px}h3{font-size:16px;margin:0 0 8px}p{margin:0 0 16px}.muted{color:var(--muted)}.small{font-size:12px}.brand{display:inline-flex;align-items:center;line-height:0;flex-shrink:0}.brand-logo{display:block;width:180px;max-width:100%;height:auto}.eyebrow{color:#526947;font-size:12px;font-weight:700;letter-spacing:1.5px}.dev-banner{background:#1b291d;color:#e0ead9;font-size:12px;padding:8px 24px;text-align:center}.topbar{display:flex;gap:24px;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line);padding:16px 32px}.topbar .meta{font-size:12px;border-left:1px solid var(--line);padding-left:16px}.topbar .brand-group{display:flex;gap:16px;align-items:center}.topbar .tools{display:flex;gap:8px;align-items:center}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:calc(100vh - 128px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px 16px}.sidebar a,.sidebar button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;text-align:left;padding:12px 16px;margin:0 0 8px;border:0;font-weight:500}.sidebar a.current{background:#eaf3db;color:#344d0b;font-weight:700;border-radius:8px}.sidebar .caption{font-size:11px;color:var(--muted);padding:16px 8px}.content{padding:32px;max-width:1380px;width:100%;margin:auto;min-width:0}.customer .shell{grid-template-columns:1fr}.customer .sidebar{display:flex;gap:8px;align-items:center;padding:8px 32px;border-right:0;border-bottom:1px solid var(--line)}.customer .sidebar a{width:auto;margin:0;white-space:nowrap}.customer .sidebar .caption{display:none}.customer .content{max-width:1280px}.header-row{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.header-row p{margin-bottom:0}.card{border:1px solid var(--line);background:white;border-radius:8px;padding:24px;min-width:0}.customer .card{border-radius:16px;box-shadow:0 8px 32px #263c180c}.accent{border-top:4px solid var(--green)}.grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:24px;align-items:start}.stack{display:grid;gap:24px}.section{margin-bottom:24px}.row{display:flex;justify-content:space-between;align-items:center;gap:16px}.wrap{flex-wrap:wrap}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.badge{display:inline-flex;align-items:center;gap:8px;border-radius:24px;padding:4px 12px;font-size:12px;font-weight:700;background:#eaf3dc;color:#354e18}.badge:before{content:'●';font-size:8px}.badge.warning{color:var(--warning);background:#fff2ce}.badge.error{color:var(--error);background:#fbe9df}.callout{border:1px solid #c9d7bb;background:#f1f6e9;border-radius:8px;padding:16px;margin:16px 0;font-size:13px}.callout.warning{background:#fff9e9;border-color:#e0cea4;color:#6a4f00}.callout.error{background:#fff0e9;border-color:#dfb39e;color:var(--error)}.callout p:last-child{margin:0}.money-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.money{border-radius:8px;background:#f2f5ed;padding:24px}.money.active{background:#eaf3d9;border:1px solid #afc783}.value{font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-1px;margin:8px 0}.value.smallvalue{font-size:24px}.line-item{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.line-item:last-child{border-bottom:0}.tracks{display:grid;gap:16px}.track{border-left:3px solid #b3ca92;padding-left:16px}.track strong{display:block}.track span{color:var(--muted);font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric{padding:16px;background:white;border:1px solid var(--line);border-radius:8px}.metric b{font-size:28px;display:block}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{background:#eef2e9;color:#536348;text-align:left;padding:16px;font-weight:600;white-space:nowrap}td{padding:16px;border-bottom:1px solid var(--line);white-space:nowrap}tbody tr:hover{background:#f5f8f0}td button{min-height:48px}.searchbar{display:flex;gap:16px;margin:16px 0;align-items:center}.searchbar input{max-width:400px;width:100%}.empty{text-align:center;padding:48px 24px}.loading{padding:48px;text-align:center}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field label{display:block;font-weight:600;margin-bottom:8px}.field input,.field select,.field textarea,.searchbar input,.searchbar select,.tools select{padding:12px;min-height:48px;border:1px solid #899b7e;border-radius:8px;background:white;color:var(--ink);width:100%;max-width:100%}.field textarea{resize:vertical;min-height:96px}.field .hint{font-size:12px;color:var(--muted);margin:8px 0}.field .error{display:block;min-height:24px;color:var(--error);font-size:12px}.span2{grid-column:1/-1}.check{display:flex;gap:12px;align-items:start;padding:12px 0;min-height:48px}.check input{width:20px;height:20px;margin-top:3px;flex-shrink:0}.item-section{padding:24px;border:1px solid var(--line);border-radius:8px;margin:16px 0;background:#fafbf8}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.photo{border:1px solid var(--line);border-radius:8px;padding:8px;min-width:0;background:#f4f7ef}.photo img{width:100%;aspect-ratio:1.3;object-fit:contain;background:#edf1e7;border-radius:4px}.photo p{font-size:11px;overflow-wrap:anywhere;margin:8px 0 0}.upload-box{padding:16px;background:#f6f8f1;border:1px dashed #92a680;border-radius:8px;margin-top:16px}.upload-box input[type=file]{width:100%;min-height:48px;font-size:12px}.upload-box select{min-height:48px;margin-bottom:8px;max-width:100%}.timeline{list-style:none;padding:0;margin:0}.timeline li{padding:12px 0 12px 24px;border-left:2px solid #dae4ce;position:relative}.timeline li:before{content:'';width:10px;height:10px;background:#8cc600;border:1px solid #67890d;border-radius:50%;position:absolute;left:-6px;top:20px}.timeline time{font-size:12px;color:var(--muted);display:block}.timeline li b{font-size:13px}.subsidy-checks{display:grid;gap:8px}.subsidy-checks p{margin:0;font-size:13px;padding:8px;background:#f6f8f2;border-radius:4px}.auth{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh}.auth-brand{background:#1c2a1e;color:white;padding:64px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.auth-brand .eyebrow{color:#bbd794}.auth-brand h1{font-size:48px;max-width:540px}.auth-brand p{max-width:440px;color:#cfddc7}.auth-brand .brand{margin-bottom:48px}.auth-brand .brand-logo{width:300px}.auth-benefits{list-style:none;padding:0;margin-top:24px}.auth-benefits li{padding:12px 0;color:#e5eddc}.auth-benefits li:before{content:'✓';color:#8cc600;margin-right:16px}.wheel-art{position:absolute;right:-180px;bottom:-140px;width:520px;height:520px;border:24px solid #364b31;border-radius:50%;pointer-events:none;opacity:.8}.wheel-art:before{content:'';inset:16px;position:absolute;border:2px solid #6d8e54;border-radius:50%}.auth-panel{display:flex;align-items:center;justify-content:center;padding:48px 32px;background:#f6f8f2}.auth-box{width:100%;max-width:440px}.auth-box .tools{display:flex;justify-content:flex-end;margin-bottom:32px}.auth-box .field{margin-bottom:16px}.auth-box button.primary{width:100%;margin-top:8px}.auth-links{display:flex;gap:8px;margin-top:16px;justify-content:space-between}.auth-links button{font-size:12px}.footer{margin-top:32px;color:var(--muted);font-size:12px;display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap}.notifications{display:grid;gap:16px}.notice{border-bottom:1px solid var(--line);padding:16px 0}.notice time{font-size:12px;color:var(--muted)}.notice a{display:block;padding:8px 0}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#698b1a;margin-right:8px}.dialog{border:1px solid var(--line);border-radius:16px;padding:32px;max-width:720px;width:calc(100% - 32px);max-height:calc(100vh - 48px);color:var(--ink)}dialog{border:1px solid var(--line);border-radius:16px;padding:32px;max-width:720px;width:calc(100% - 32px);max-height:calc(100vh - 48px);color:var(--ink)}dialog::backdrop{background:#152519bf}dialog h2{margin-bottom:24px}dialog .fields{gap:16px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#263626;color:white;padding:16px 24px;border-radius:8px;z-index:100;box-shadow:0 8px 32px #0002;max-width:calc(100vw - 32px)}.skip{position:absolute;top:-100px;left:16px;background:white;padding:16px;z-index:1000}.skip:focus{top:8px}.refresh-status{font-size:12px;color:var(--muted)}.lang-select{min-width:110px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.quote-line{border-left:3px solid #b6ca97;padding:16px;background:#f6f8f1;margin:16px 0}.quote-history{padding:12px;background:#f5f7f0;border-radius:8px;margin:8px 0}.safe-note{font-size:12px;color:var(--muted)}
@media(max-width:1000px){.grid{grid-template-columns:1fr}.auth-brand{padding:40px}.auth-brand h1{font-size:40px}.content{padding:24px}.metrics{grid-template-columns:repeat(2,1fr)}.topbar{padding:16px 24px}.topbar .profile-name{display:none}}
@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar,.customer .sidebar{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:8px 16px}.sidebar a{width:auto;white-space:nowrap;margin:0}.sidebar .caption{display:none}.content{padding:16px}.card{padding:16px}.stack,.grid{gap:16px}.topbar{padding:16px;gap:8px}.topbar .meta{display:none}.topbar .brand-logo{width:136px}.topbar .tools{gap:8px}.tools button{padding:8px 12px;font-size:12px}.tools select{padding:8px;min-width:80px;font-size:12px}.dev-banner{padding:8px 16px;font-size:11px}.auth{grid-template-columns:1fr}.auth-brand{padding:32px;min-height:260px}.auth-brand .brand{margin-bottom:24px}.auth-brand h1{font-size:32px}.auth-benefits{display:none}.auth-panel{padding:24px 16px}.auth-box .tools{margin-bottom:24px}.wheel-art{width:320px;height:320px;right:-200px;bottom:-140px}.header-row{align-items:start;gap:16px}.header-row h1{font-size:28px}.header-row .actions{margin-top:0}.fields{grid-template-columns:1fr}.span2{grid-column:1}.money{padding:16px}.value{font-size:28px}.money-grid{gap:8px}.item-section{padding:16px}.row.wrap{align-items:start}.searchbar{flex-wrap:wrap;gap:8px}.searchbar input{max-width:none}.metrics{gap:8px}.metric b{font-size:24px}dialog{padding:24px}#toast{font-size:12px}.footer{margin-top:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.password-control{position:relative}.password-control input{width:100%;min-width:0;padding-right:56px}.password-control .password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted)}.password-control .password-toggle:hover{background:#f1f6e9;color:var(--ink)}.password-control .password-toggle:focus-visible{outline:2px solid #416000;outline-offset:-3px}.password-toggle svg{display:block;pointer-events:none}.password-control input::-ms-reveal{display:none}

.topbar .tools{flex-shrink:0}.topbar .tools select{width:auto;min-width:112px}.topbar .tools button,.topbar .profile-name{white-space:nowrap;flex-shrink:0}.auth-brand h1{text-wrap:balance}.upload-box label{display:block;margin-bottom:8px}.upload-box select{padding:8px;border:1px solid #899b7e;border-radius:8px;width:100%}@media(max-width:760px){.topbar{flex-wrap:wrap}.topbar .tools{width:100%;justify-content:space-between}.topbar .tools select{min-width:88px}}

.faq-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;margin-top:24px}.faq-index{align-self:start;position:sticky;top:16px}.faq-index button{display:block;width:100%;text-align:left;margin:8px 0}.faq-item{border-top:1px solid var(--line);padding:16px 0}.faq-item summary{cursor:pointer;font-weight:600;min-height:36px}.faq-item p{margin:12px 0 0;line-height:1.85}.faq-layout section{scroll-margin-top:24px}@media(max-width:760px){.faq-layout{grid-template-columns:1fr;gap:16px}.faq-index{position:static}.faq-index button{display:inline-block;width:auto;margin:4px}}

.case-history .timeline li{padding:8px 0 8px 20px}.case-history .timeline li:before{top:16px}.case-history summary{cursor:pointer;font-weight:600;padding:12px 0}.case-history details[open] summary{border-bottom:1px solid var(--line);margin-bottom:8px}

/* Shared layout safeguards for every role and form. */
.fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.field{min-width:0}
.field>.check{display:flex;align-items:flex-start;gap:10px;min-height:48px;padding:12px 0;margin:0;font-weight:600;cursor:pointer}
.field>.check input[type=checkbox]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;flex:0 0 20px;padding:0;margin:2px 0 0;accent-color:#699600;cursor:pointer}
.field>.check span{min-width:0;line-height:1.5;overflow-wrap:anywhere}
.field-checkbox{align-self:end}
.fields>.field-checkbox-required{grid-column:1/-1;align-self:start}
.field .error:empty{display:none}
.customer .sidebar{overflow-x:auto;min-width:0}
.header-row>div,.row>div{min-width:0}
.line-item{align-items:flex-start}
.line-item>span,.line-item>b{min-width:0;overflow-wrap:anywhere}
.line-item>b{text-align:right}
.topbar .tools{flex-wrap:wrap}
.content>.card+.card{margin-top:24px}
.card form+.field,.card form+p{margin-top:16px}
form>.field+.field{margin-top:16px}
.auth-box form>.field+.field{margin-top:0}
form>.field+button{margin-top:12px}
.staff-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.staff-entry-info{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.staff-entry-info span{color:var(--muted);font-size:12px}
.staff-entry-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
#staff-create-form{margin-top:24px}
@media(max-width:760px){.fields{grid-template-columns:minmax(0,1fr)}.field-checkbox{align-self:start}.line-item{gap:12px}.line-item>b{max-width:62%}.header-row{flex-wrap:wrap}}
@media(max-width:760px){
 .case-list,.case-list tbody{display:block;width:100%}
 .case-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .case-list tbody tr{display:block;border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:12px;background:#fff}
 .case-list tbody tr:last-child{margin-bottom:0}
 .case-list td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:9px 0;white-space:normal;overflow-wrap:anywhere;text-align:right}
 .case-list td::before{content:attr(data-label);font-weight:600;color:var(--muted);text-align:left;flex:0 0 auto}
 .case-list td.case-actions{display:block;border-bottom:0;padding-top:12px}
 .case-list td.case-actions::before{content:none}
 .case-list td.case-actions button{width:100%}
 .content>.card+.card{margin-top:16px}
 .staff-entry{align-items:flex-start;flex-direction:column;gap:8px}
}

/* Customer directory keeps search controls and case lists readable at every width. */
.customer-directory .customer-search{margin:0 0 24px;max-width:720px}
.customer-search label{display:block;font-size:15px;font-weight:600;margin-bottom:8px}
.customer-search-controls{display:flex;align-items:stretch;gap:10px}
.customer-search-controls input{min-width:0;flex:1;height:48px;padding:10px 14px;border:1px solid #899b7e;border-radius:8px;color:var(--ink);background:#fff;font-size:15px}
.customer-search-controls button{flex:0 0 auto;min-width:88px}
.customer-directory-table{table-layout:fixed;font-size:15px}
.customer-directory-table th,.customer-directory-table td{padding:12px 14px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.customer-directory-table th:nth-child(1){width:16%}.customer-directory-table th:nth-child(2){width:27%}.customer-directory-table th:nth-child(3){width:37%}.customer-directory-table th:nth-child(4){width:20%}
.customer-case{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:baseline;margin-bottom:6px}
.customer-case a{font-weight:600}.customer-case span{color:var(--muted);font-size:14px}
.customer-case-more summary{cursor:pointer;color:#3c561f;font-size:14px;font-weight:600;padding:4px 0}
@media(max-width:760px){.customer-directory .customer-search{margin-bottom:20px}.customer-search-controls input{width:100%}.customer-directory-table td{display:block;text-align:left;padding:10px 0}.customer-directory-table td::before{display:block;margin-bottom:3px;font-size:13px}.customer-directory-table td:last-child{border-bottom:0}}

/* Email history: compact rows, clear status and secondary details. */
.mail-list-card{padding:0;overflow:hidden}.mail-list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.mail-list-heading h2{margin:0 0 4px;font-size:18px}.mail-list-heading p,.mail-list-heading>span{margin:0;color:var(--muted);font-size:13px}
.mail-record{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 24px;border-bottom:1px solid var(--line)}
.mail-record-main{min-width:0}.mail-record-title{font-size:15px;font-weight:600}.mail-record-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:5px;color:var(--muted);font-size:13px}
.mail-record-note{font-size:13px;color:var(--muted);margin:6px 0 0}.mail-record-detail{font-size:12px;color:var(--muted);margin-top:4px}.mail-record-detail summary{cursor:pointer}.mail-record-detail code{overflow-wrap:anywhere}
.mail-record-side{display:flex;align-items:center;gap:8px;flex-shrink:0}.mail-status{display:inline-block;padding:5px 10px;border-radius:20px;background:#edf2e7;color:#435639;font-size:13px;font-weight:600;white-space:nowrap}.mail-status-attention{background:#fff2e8;color:#9e361d}.mail-status-test{background:#f2f4ec;color:#536348}
.mail-list-more>summary{cursor:pointer;padding:14px 24px;color:#3c561f;font-weight:600;font-size:14px}.mail-list-more .mail-record:first-of-type{border-top:1px solid var(--line)}
@media(max-width:760px){.mail-list-heading{padding:16px;align-items:flex-start}.mail-record{padding:14px 16px;align-items:flex-start;flex-direction:column;gap:8px}.mail-record-side{align-self:flex-start}.mail-status{white-space:normal}.mail-list-more>summary{padding:14px 16px}}

/* Customer application and reference quote: retain existing controls and workflow. */
.customer-flow-hero{background:#26382c;color:#fff;border-radius:16px;padding:28px 32px;margin-bottom:16px}
.customer-flow-hero h1{font-size:27px;margin:6px 0 8px;color:#fff}.customer-flow-hero p{color:#dce8d9;margin:0}.customer-flow-kicker{font-size:12px;font-weight:700;letter-spacing:.08em;color:#cde2b6}
.customer-flow-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:20px 0 0}.customer-flow-steps li{font-size:12px;color:#d5e0d2;padding:5px 9px;border-radius:20px}.customer-flow-steps li.current{background:#536a43;color:#fff;font-weight:700}.customer-flow-steps li span{font-weight:700}
.customer .application-photo-intro{margin-bottom:20px}.customer-section-kicker{font-size:12px;font-weight:700;color:#526947}.application-photo-intro h2{margin:4px 0 6px}.application-photo-intro>p{margin-bottom:16px}.application-photo-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:600px}.application-photo-categories div{background:#fafcf9;border:1px dashed #9bad99;border-radius:8px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:13px;padding:8px}.application-photo-categories span{font-size:28px;line-height:1.2;color:#60775c}.application-photo-intro details{margin-top:16px}.application-photo-intro summary{cursor:pointer;font-weight:600;min-height:44px;padding:10px 0}.application-photo-intro details p{margin:8px 0}.photo-jump{display:inline-flex;align-items:center;min-height:48px;font-weight:700}.customer-application .item-section{background:#fff}.customer-application .actions button.primary{min-width:180px}.customer-quote-reminder{margin:0 0 20px}.customer-quote-reminder p{margin:8px 0}.customer-quote-review>.stack>.accent{border-top-color:#8cc600}.customer-quote-review .money:first-child{background:#eef5e4}.customer-quote-review .actions button{min-width:150px}
@media(max-width:760px){.customer-flow-hero{padding:22px 20px}.customer-flow-hero h1{font-size:23px}.customer-flow-steps{gap:3px}.customer-flow-steps li{padding:4px 6px}.application-photo-categories{gap:8px}.application-photo-categories div{min-height:84px;font-size:12px}.customer-application .actions button.primary{width:100%}}
.application-terms{border-top:1px solid #c9d7bb;margin-top:12px}.application-terms summary{cursor:pointer;font-weight:700;padding:12px 0;min-height:44px}.application-terms p{white-space:pre-wrap;overflow-wrap:anywhere}
.customer-quote-summary{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 24px;margin-bottom:12px}.customer-quote-summary span{color:var(--muted);font-size:13px}.customer-quote-summary strong{font-size:30px;color:#26382c}.customer-quote-summary span:last-child{margin-left:auto}@media(max-width:760px){.customer-quote-summary{padding:14px 16px}.customer-quote-summary span:last-child{margin-left:0;width:100%}}

/* Customer application: related questions remain together at every width. */
.customer-application .item-section> .row h3{margin:0}.customer-application .application-group{padding:24px 0;border-top:1px solid #e4eae1;margin-top:24px}.customer-application .application-group h4{font-size:15px;margin:0 0 16px;color:#314339}.customer-application .application-purchase-time .field-checkbox{margin-top:4px}.customer-application .application-purchase-time .check{padding:6px 0}.customer-application .application-help{font-size:13px;color:var(--muted)}.customer-application .application-help summary{min-height:44px;cursor:pointer;font-weight:600;color:#3c561f;padding:10px 0}.customer-application .application-help p{margin:0 0 8px}.customer-application [hidden]{display:none!important}.application-upload-card .upload-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.application-upload-card .upload-heading h2{margin-bottom:0}.upload-count{font-size:12px;font-weight:700;color:#3e5834;background:#eef5e6;padding:5px 10px;border-radius:20px;white-space:nowrap}.application-upload-card>.muted{margin-top:10px;margin-bottom:8px}.upload-policy{font-size:12px;color:var(--muted);margin-bottom:16px}.application-upload-card .upload-box{background:#f8faf6}.application-upload-card .upload-box h3{margin-bottom:4px}.application-upload-card .upload-box p{margin-bottom:12px}.application-upload-card .upload-box input[type=file]{display:block;margin:8px 0}.application-upload-card .upload-box button{min-width:150px}@media(max-width:760px){.customer-application .application-group{padding:20px 0;margin-top:20px}.application-upload-card .upload-box button{width:100%}}

/* Customer case overview and its five linked pages. Staff workspaces keep their layout. */
.customer-case-screen{max-width:1160px;margin:0 auto;min-width:0}
#main:has(.customer-case-screen):focus{outline:none}
.case-page-stack{display:grid;gap:20px;min-width:0}.case-page-stack>.card{margin:0}
.case-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.case-progress li{display:flex;align-items:center;gap:10px;padding:16px;color:var(--muted);min-width:0}.case-progress li.current{background:#eaf2db;color:#324a14;font-weight:700}.case-progress li span{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:#f0f3ed}.case-progress li.current span{background:#4a660f;color:#fff}
.case-current>p{margin:12px 0}.case-page-actions{gap:10px;flex-wrap:wrap}.case-page-actions button{white-space:normal;min-height:44px;overflow-wrap:anywhere}
.case-current .quote-line{margin-top:20px}.case-waiting{padding:12px 16px;border-radius:10px;background:#f0f4eb;color:var(--muted)}.case-payment-status{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}
.case-entry-section>h2{font-size:20px;margin:4px 0 14px}.case-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.case-entry{display:grid;gap:10px;min-height:112px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink)}.case-entry:hover{border-color:#6b814f;background:#f9fbf5}.case-entry strong{display:flex;justify-content:space-between;gap:10px;font-size:17px}.case-entry>span{color:var(--muted);font-size:14px}.case-entry:focus-visible,.case-subnav a:focus-visible{outline:3px solid #4a660f;outline-offset:3px}
.case-subnav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.case-subnav a{display:flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;color:#3c561f;background:#fff;text-decoration:none}.case-subnav a[aria-current=page]{background:#eaf2db;border-color:#849b5e;font-weight:700}
.case-quote-record{padding:14px 0;border-top:1px solid var(--line)}.case-quote-record>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}.customer-case-screen .photo p,.customer-case-screen .quote-line,.customer-case-screen .callout{overflow-wrap:anywhere}.customer-case-screen details>summary{overflow-wrap:anywhere}
@media(max-width:760px){.case-progress li{display:block;text-align:center;padding:12px 6px;font-size:13px}.case-progress li span{margin:0 auto 6px}.case-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.case-entry{padding:16px;min-height:108px}.case-entry strong{font-size:16px}.case-entry>span{font-size:13px}.case-subnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.case-subnav a{justify-content:center;text-align:center;padding:10px}.case-current .actions{display:grid;grid-template-columns:1fr}.case-page-stack{gap:16px}}

/* Searchable Japanese bank and branch controls */
.bank-choice input[type="search"]{margin-bottom:8px}
.bank-choice button.quiet{margin-top:8px;padding:6px 10px;min-height:36px;font-size:.85rem}

.bank-picker{position:relative;min-width:0}
.bank-picker-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;text-align:left;font:inherit;font-weight:400;color:var(--ink);background:#fff;border:1px solid #879b77;border-radius:8px;padding:12px 16px}
.bank-picker-trigger::after{content:'⌄';margin-left:12px}
.bank-picker-panel{position:relative;z-index:3;margin-top:6px;padding:10px;border:1px solid #879b77;border-radius:10px;background:#fff;box-shadow:0 8px 24px #30383318}
.bank-picker-panel[hidden],.bank-picker[hidden]{display:none}
.bank-picker-results{max-height:220px;overflow:auto;overscroll-behavior:contain}
.bank-picker-option{display:block;width:100%;padding:10px 12px;min-height:44px;text-align:left;border:0;border-radius:6px;background:#fff;font:inherit;color:var(--ink);font-weight:400}
.bank-picker-option:hover,.bank-picker-option:focus-visible,.bank-picker-option[aria-pressed=true]{background:#eaf2db}

/* Isolated customer contact launcher; rendered only behind partnerContactPreview. */
.customer .sidebar .customer-contact-nav{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;width:auto;white-space:nowrap;margin:0 0 0 auto;border:1px solid var(--line);border-radius:10px;background:#f4f8e9;font-weight:600;padding:10px 16px}
.contact-options{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.contact-options section{border:1px solid var(--line);border-radius:12px;padding:20px}.contact-destination{display:inline-block;padding:10px 0;text-decoration:underline;font-weight:600}.contact-case{padding:16px;background:var(--bg);border-radius:8px;margin-bottom:20px}
@media(max-width:600px){.contact-options{grid-template-columns:1fr;gap:16px}}

/* Keep contact visible without overlaying customer content or requiring horizontal scrolling. */
.customer .sidebar:has(.customer-contact-nav){flex-wrap:wrap;overflow:visible}
@media(max-width:760px){.customer .sidebar:has(.customer-contact-nav){gap:4px;padding:8px 16px}.customer .sidebar .customer-contact-nav{margin:4px 0 0;flex-basis:100%;min-height:44px}.customer .sidebar:has(.customer-contact-nav) a{padding:8px 12px}}

/* Approved lightweight toolbar. Enabled only in the isolated UI preview. */
.topbar.refined-toolbar{padding:22px 32px;gap:24px;border-bottom:1px solid #e1e5de}
.refined-toolbar .tools{gap:12px;flex-wrap:wrap;justify-content:flex-end}
.refined-toolbar .tools button{min-height:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;border:0;border-radius:9px;font-size:13px;font-weight:500;white-space:nowrap;transition:background .15s,transform .15s}
.refined-toolbar .tools button:active{transform:translateY(1px)}
.refined-toolbar .tools svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.refined-toolbar .toolbar-language{display:flex;align-items:center;gap:8px;padding:0 10px;color:#657064;border-radius:8px;height:42px}
.refined-toolbar .toolbar-language:hover{background:#f5f6f2}
.refined-toolbar .tools select{width:auto;min-height:42px;height:42px;border:0;padding:0 6px;background:transparent;color:inherit;font-size:13px;cursor:pointer}
.refined-toolbar .toolbar-divider{width:1px;height:22px;background:#e4e7e1}
.refined-toolbar .tools .toolbar-notification{background:#A7D500;color:#173100}
.refined-toolbar .tools .toolbar-notification:hover{background:#b8e414}
.refined-toolbar .toolbar-count{font-size:11px;line-height:18px;min-width:25px;text-align:center;padding:2px 6px;border-radius:6px;background:#17310018;font-variant-numeric:tabular-nums}
.refined-toolbar .tools .toolbar-logout{background:transparent;color:#727b71;padding:0 9px}
.refined-toolbar .tools .toolbar-logout:hover{background:#f3f4f1}
.refined-toolbar .profile-name{color:#788174;font-size:12px;max-width:160px;overflow-wrap:anywhere}
.refined-toolbar .tools :focus-visible{outline:3px solid #416000;outline-offset:3px}
@media(max-width:850px){.topbar.refined-toolbar{flex-wrap:wrap;padding:18px 20px;gap:16px}.refined-toolbar .tools{width:100%;gap:8px}.refined-toolbar .brand-logo{width:148px}}
@media(max-width:440px){.refined-toolbar .tools{justify-content:flex-start;gap:6px}.refined-toolbar .tools button{padding:0 10px}.refined-toolbar .profile-name{flex-basis:100%;order:4;max-width:none}.refined-toolbar .toolbar-language{padding:0 4px}.refined-toolbar .toolbar-divider{display:none}}

/* Keep mobile toolbar actions on one row without reducing touch height. */
@media(max-width:440px){
 .topbar.refined-toolbar{padding-left:16px;padding-right:16px}
 .refined-toolbar .tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center}
 .refined-toolbar .toolbar-language{padding:0;gap:4px;min-width:0}
 .refined-toolbar .toolbar-language>svg{display:none}
 .refined-toolbar .tools select{padding:0 2px;font-size:12px;max-width:80px}
 .refined-toolbar .tools button{padding:0 8px;gap:5px;font-size:12px;min-width:0}
 .refined-toolbar .tools .toolbar-logout{padding:0 4px;gap:4px}
 .refined-toolbar .tools svg{width:16px;height:16px}
 .refined-toolbar .toolbar-count{min-width:22px;padding:2px 4px;font-size:10px}
 .refined-toolbar .profile-name{grid-column:1/-1;order:4;max-width:none}
 .refined-toolbar .profile-name:empty{display:none}
}
/* Approved B2 white entrance, rendered only by the isolated login feature. */
.white-login-page{background:#fff;color:#003057}.white-login{font-family:"Hiragino Sans","Yu Gothic",sans-serif;background:#fff;min-height:100vh}.wl-top{height:108px;padding:30px 5%;display:flex;align-items:center;justify-content:space-between}.wl-top .brand-logo{width:180px;height:auto;max-height:none}.wl-top .lang-select{width:100px;border:0;background:transparent;color:#003057;font-size:12px;min-height:42px}.wl-stage{position:relative;min-height:630px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:20px}.wl-orbit{position:absolute;width:600px;height:600px;left:calc(50% - 300px);top:50%;transform:translateY(-50%);border:2px solid rgba(0,48,87,.14);border-radius:50%;pointer-events:none}.wl-orbit:after{content:"";position:absolute;inset:25px;border:2px solid rgba(167,213,0,.26);border-radius:50%}.wl-orbit svg{position:absolute;inset:-2px;width:600px;height:600px;transform:rotate(-68deg)}.wl-orbit circle{fill:none;stroke:#A7D500;stroke-width:3;stroke-dasharray:115 1601;stroke-linecap:round}.wl-box{z-index:1;max-width:460px;width:100%;padding:30px 32px;text-align:center}.wl-eyebrow{font-size:11px;letter-spacing:.2em;color:#536b25}.wl-box h1{font-size:34px;line-height:1.5;letter-spacing:-.04em;margin:18px 0 25px;color:#003057}.wl-box p{font-size:13px;line-height:2;color:#64737d;margin:12px 0}.wl-box .wl-cta{display:flex;position:relative;justify-content:center;align-items:center;width:100%;min-height:58px;margin:32px 0 12px;padding:18px 38px;border:0;border-radius:6px;background:#A7D500;color:#142300;font-family:"Hiragino Sans","Yu Gothic",sans-serif;font-size:14px;font-weight:500;letter-spacing:.025em;text-decoration:none;cursor:pointer}.wl-cta span{position:absolute;right:18px;font-size:18px;font-weight:400}.wl-box .wl-cta:hover{background:#b7e21d}.wl-box .wl-note{font-size:11px}.wl-box .wl-test{font-size:10px;color:#7a858b;margin-top:18px}.wl-foot{display:flex;justify-content:space-between;gap:20px;padding:25px 5%;font-size:10px;color:#71818b;border-top:1px solid #e7eaea}.wl-foot a{color:#64737d;text-decoration:none;padding:5px 0;font-size:11px}.wl-foot a:hover{text-decoration:underline;text-underline-offset:4px}.wl-staff{padding:24px 32px}.wl-staff h1{font-size:30px;margin:12px 0}.wl-staff>p{font-size:12px;margin:10px 0}.wl-staff .field{text-align:left;margin-top:14px;margin-bottom:0}.wl-staff .field label{font-size:12px;font-weight:400;color:#536771;margin-bottom:6px}.wl-staff input{height:44px;min-height:44px;padding:10px 14px;border:1px solid #c7d1d6;border-radius:5px;font-size:14px;background:#fff}.wl-staff .password-control input{padding-right:48px}.wl-staff .password-toggle{min-height:42px;height:42px}.wl-staff .wl-cta{margin-top:22px}.wl-staff .callout.error{font-size:12px;text-align:left;margin-top:14px}.wl-box :focus-visible{outline:3px solid #003057;outline-offset:3px}
@media(max-width:700px){.wl-top{height:74px;padding:18px 22px}.wl-top .brand-logo{width:143px}.wl-stage{min-height:570px;padding:28px 0 35px}.wl-orbit{width:520px;height:520px;left:calc(50% - 260px)}.wl-orbit svg{width:520px;height:520px}.wl-orbit:after{inset:21px}.wl-box{padding:28px 30px}.wl-box h1{font-size:30px}.wl-box .wl-cta{font-size:13px;padding:18px 30px}.wl-cta span{right:12px}.wl-foot{padding:24px;gap:14px;flex-wrap:wrap;font-size:9px}.wl-staff{padding:22px 30px}.wl-staff h1{font-size:26px}.wl-staff>p{font-size:11px}}
/* Isolated white entrance: comfortable mobile controls and stable text spacing. */
@media(max-width:700px){
 .white-login .wl-box .wl-cta{gap:12px;padding:16px 18px}
 .white-login .wl-cta span{position:static;flex:0 0 auto}
 .white-login .wl-staff input{font-size:16px}
 .white-login .wl-staff .password-toggle{height:44px;min-height:44px;min-width:44px}
 .white-login .wl-box p{text-wrap:pretty}
 .white-login .wl-foot{display:grid;grid-template-columns:1fr;gap:6px;padding:16px 24px}
 .white-login .wl-foot a{justify-self:end;display:flex;align-items:center;min-height:44px;font-size:12px;padding:8px 0}
}

/* Approved complete-circle mobile layout; desktop layout stays unchanged. */
.wl-mobile-hero{display:none}
@media(max-width:700px){
 .white-login .wl-stage{display:block;min-height:0;padding:4px 0 0;overflow:visible}
 .white-login .wl-stage>.wl-orbit,.white-login .wl-box>.wl-eyebrow,.white-login .wl-box>h1{display:none}
 .white-login .wl-mobile-hero{position:relative;width:240px;height:240px;margin:0 auto 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
 .wl-mobile-hero .wl-orbit{width:240px;height:240px;left:0;top:0;transform:none;border-width:1px}
 .wl-mobile-hero .wl-orbit:after{inset:12px;border-width:1px}
 .wl-mobile-hero .wl-orbit svg{width:240px;height:240px;inset:0}
 .wl-mobile-hero .wl-eyebrow{font-size:8px;letter-spacing:.13em;position:relative;margin-top:3px}
 .wl-mobile-hero h1{font-size:25px;line-height:1.55;color:#003057;margin:16px 0 0;letter-spacing:-.03em;position:relative}
 .wl-mobile-hero.staff h1{font-size:20px;line-height:1.65}
 .white-login .wl-box,.white-login .wl-staff{padding:0 28px 18px;max-width:390px;margin:auto}
 .white-login .wl-box p{font-size:13px;line-height:1.9;margin:0 0 18px}
 .white-login .wl-staff>p{font-size:12px}
 .white-login .wl-box .wl-cta{margin-top:24px;margin-bottom:16px;min-height:56px;padding:14px 18px}
 .white-login .wl-box .wl-note{font-size:11px;line-height:1.9}
 .white-login .wl-box .wl-test{font-size:9px;margin:16px 0 0}
 .white-login .wl-staff .field{margin-top:16px}
 .white-login .wl-staff input{height:48px;min-height:48px;font-size:16px}
 .white-login .wl-foot{border-top:1px solid #eef0ef;padding:12px 24px;gap:0}
 .white-login .wl-top{height:76px}
}

/* Keep short local workspace pages top-aligned after removing repeated labels. */
.clean-workspace>.content{margin:0 auto;align-self:start}
.clean-workspace .header-row h1{margin-top:0}
@media(max-width:760px){.clean-workspace{grid-template-rows:auto 1fr;align-content:start}}

/* Shared control geometry in the isolated visual preview only. */
body:has(.clean-workspace),body.white-login-page{--control-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23303833' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body:has(.clean-workspace) :is(.field select,.field input:not([type=checkbox]):not([type=radio]):not([type=file]),.bank-picker-trigger,.searchbar select,.searchbar input,.upload-box select){box-sizing:border-box;height:48px;min-height:48px;border:1px solid #899b7e;border-radius:8px;padding:0 16px;line-height:1.4}
body:has(.clean-workspace) :is(select:not([multiple]):not([size]),.bank-picker-trigger),body.white-login-page select{appearance:none;-webkit-appearance:none;background-image:var(--control-chevron);background-size:20px 20px;background-repeat:no-repeat;background-position:right 14px center;padding-right:44px}
body:has(.clean-workspace) .bank-picker-trigger::after{content:none}
body:has(.clean-workspace) .bank-picker-trigger{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:has(.clean-workspace) .refined-toolbar .tools select{padding-right:30px;background-position:right 4px center}
body:has(.clean-workspace) .password-control input{padding-right:48px}

body:has(.clean-workspace) :is(.field,.searchbar,.upload-box) select:not([multiple]):not([size]),body:has(.clean-workspace) .field .bank-picker-trigger{padding-right:44px!important}

/* Non-field selectors used by integration and store settlement pages. */
body:has(.clean-workspace) :is(.content,dialog) select:not([multiple]):not([size]){box-sizing:border-box;width:100%;max-width:100%;height:48px;min-height:48px;border:1px solid #899b7e;border-radius:8px;padding:0 44px 0 16px;line-height:1.4;background-color:#fff;color:var(--ink)}
body:has(.clean-workspace) details>summary{position:relative;list-style:none;padding-right:44px;cursor:pointer}
body:has(.clean-workspace) details>summary::-webkit-details-marker{display:none}
body:has(.clean-workspace) details>summary::after{content:'';position:absolute;right:14px;top:50%;width:20px;height:20px;background:var(--control-chevron) center/20px 20px no-repeat;transform:translateY(-50%);pointer-events:none}
body:has(.clean-workspace) details[open]>summary::after{transform:translateY(-50%) rotate(180deg)}

/* Concise payout information disclosure, collapsed by default. */
.payout-privacy{margin:16px 0 8px;font-size:13px}
.payout-privacy>summary{display:inline-block;list-style:none;text-decoration:underline;text-underline-offset:4px;cursor:pointer;color:#3c561f;padding:6px 0!important}
.payout-privacy>summary::-webkit-details-marker{display:none}
body:has(.clean-workspace) .payout-privacy>summary::after{content:none}
.payout-privacy>p{margin:10px 0;line-height:1.8;color:var(--muted)}
.payout-test-notice{font-size:12px;color:var(--muted);margin:8px 0 16px}

/* B1 FAQ: scoped to the guide, shared by isolated verification copies. */
.guide-b1{--faq-navy:#003057;--faq-line:#d6ddd7;max-width:1200px;margin:auto;color:#263831}.guide-hero{display:flex;align-items:center;justify-content:space-between;gap:48px;padding:4px 0 30px}.guide-kicker{font-size:13px;color:#003057;margin-bottom:18px}.guide-hero h1{font-size:36px;line-height:1.6;letter-spacing:.025em;font-weight:600;margin:0 0 20px}.guide-hero p:not(.guide-kicker){font-size:15px;line-height:2;color:#6c7870;max-width:600px}.guide-search{display:flex;align-items:center;gap:14px;width:310px;flex-shrink:0;border-bottom:1px solid #a4b0a7}.guide-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.guide-b1 .guide-search input{width:100%;min-width:0;height:50px;border:0;border-radius:0;background:transparent;padding:10px 0;font-size:15px}.guide-notice{border-top:1px solid var(--faq-line);font-size:12px;color:#788278;padding:14px 0;margin:0 0 12px;line-height:1.9}.guide-nav{display:flex;align-items:center;gap:24px;overflow-x:auto;border-bottom:1px solid #bbc6bd;margin-bottom:40px;padding:12px 0 16px;scrollbar-width:thin}.guide-nav button{flex-shrink:0;white-space:nowrap;position:relative;border:0;border-radius:0;background:transparent;color:#6c7870;padding:8px 0;min-height:46px;font-size:15px;font-weight:400}.guide-nav button:hover{color:#003057;background:transparent}.guide-nav button.active{color:#003057;font-weight:600}.guide-nav button.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:#a7d500}.guide-nav .guide-contact-tab{margin-left:auto;border-left:1px solid var(--faq-line);padding-left:24px;color:#003057;font-weight:600}.guide-nav .guide-contact-tab:after{left:24px}.guide-group{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;border-top:1px solid var(--faq-line);padding-top:24px;margin-bottom:40px;scroll-margin-top:24px}.guide-group-title>span{display:block;font-size:30px;line-height:1;color:#9aa79b;margin-bottom:20px;font-weight:300}.guide-group-title h2{font-size:19px;line-height:1.6;margin:0}.guide-question{border-bottom:1px solid var(--faq-line)}.guide-question summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:66px;padding:16px 0;font-size:16px;font-weight:500;cursor:pointer}.guide-question summary::-webkit-details-marker{display:none}.guide-question i{width:16px;height:16px;position:relative;flex-shrink:0}.guide-question i:before,.guide-question i:after{content:'';position:absolute;top:7px;left:2px;width:12px;height:1px;background:currentColor}.guide-question i:after{transform:rotate(90deg)}.guide-question[open] i:after{transform:none}.guide-question p{font-size:15px;line-height:2;color:#68766d;margin:0;padding:4px 24px 24px 0}.guide-terms{border-top:1px solid var(--faq-line);padding-top:24px;font-size:13px;color:#68766d}.guide-terms summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}.guide-full-terms{white-space:pre-wrap;line-height:2;padding-top:20px}.guide-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:24px}.guide-contact-grid article{border-top:2px solid #003057;padding:20px 0;min-width:0}.guide-contact-grid article+article{border-color:#a7d500}.guide-contact-grid h3{font-size:23px;color:#003057;margin-bottom:16px}.guide-contact-grid p{font-size:14px;line-height:1.9;color:#6c7870}.guide-contact-link{display:flex;align-items:center;justify-content:center;min-height:54px;padding:12px;background:#a7d500;color:#153300;font-size:14px;font-weight:600;border-radius:2px;text-align:center}.guide-contact-link.secondary{background:#003057;color:white}.guide-contact-hint{margin:12px 0 20px}.guide-email{font-size:14px;color:#003057;overflow-wrap:anywhere}.guide-b1 summary:focus-visible{outline:2px solid #003057;outline-offset:4px}.guide-b1 [hidden]{display:none!important}
@media(max-width:1100px){.guide-hero{display:block}.guide-search{margin-top:24px;width:100%;max-width:450px}.guide-group{grid-template-columns:180px minmax(0,1fr);gap:28px}.guide-nav{gap:22px}.guide-contact-grid{grid-template-columns:1fr}}
@media(max-width:700px){.guide-hero h1{font-size:28px}.guide-hero{padding-bottom:20px}.guide-nav{margin-bottom:28px}.guide-group{display:block;padding-top:20px;margin-bottom:28px}.guide-group-title{display:flex;gap:14px;align-items:center;margin-bottom:12px}.guide-group-title>span{font-size:20px;margin:0}.guide-group-title h2{font-size:18px}.guide-question summary{font-size:16px;gap:16px}.guide-question p{padding-right:0}.guide-contact-grid{gap:16px}}

/* Keep customer navigation on one rail; scroll on narrow screens. */
.customer .sidebar,.customer .sidebar:has(.customer-contact-nav){flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:8px;min-width:0;scrollbar-width:thin}
.customer .sidebar a{flex:0 0 auto;padding:10px 12px}
.customer .sidebar .customer-contact-nav{flex:0 0 auto;margin:0 0 0 auto;padding:10px 14px;min-height:44px}
@media(max-width:1100px){.customer .sidebar,.customer .sidebar:has(.customer-contact-nav){padding:8px 20px;gap:4px}.customer .sidebar a{padding:10px 9px}.customer .sidebar .customer-contact-nav{padding:10px 12px}}
@media(max-width:760px){.customer .sidebar,.customer .sidebar:has(.customer-contact-nav){padding:8px 16px;gap:4px}.customer .sidebar:has(.customer-contact-nav) a{padding:8px 12px}.customer .sidebar .customer-contact-nav{flex-basis:auto;margin:0 0 0 8px}}

/* Customer mobile header: brand/project row, then one aligned action row. */
@media(max-width:700px){
 .customer .topbar.refined-toolbar{display:flex;flex-direction:column;align-items:stretch;padding:16px;gap:16px}
 .customer .topbar.refined-toolbar .brand-group{width:100%;justify-content:space-between;gap:12px;min-width:0}
 .customer .topbar.refined-toolbar .brand-logo{width:120px;height:auto;max-width:100%}
 .customer .topbar.refined-toolbar .meta{display:block;border:0;padding:0;font-size:11px;line-height:1.6;color:#65716b;white-space:nowrap}
 .customer .topbar.refined-toolbar .tools{width:100%;display:grid;grid-template-columns:86px minmax(0,1fr) 94px;gap:6px;align-items:center}
 .customer .refined-toolbar .toolbar-language{padding:0;gap:0;min-width:0;height:44px}
 .customer .refined-toolbar .toolbar-language>svg,.customer .refined-toolbar .toolbar-divider{display:none}
 .customer .refined-toolbar .tools select{width:86px;min-width:0;max-width:none;height:44px;min-height:44px;font-size:12px}
 .customer .refined-toolbar .tools button{height:44px;min-height:44px;min-width:0;padding:0 6px;gap:5px;font-size:12px}
 .customer .refined-toolbar .tools .toolbar-logout{padding:0 2px;gap:4px}
 .customer .refined-toolbar .tools svg{width:16px;height:16px}
 .customer .refined-toolbar .toolbar-count{min-width:20px;padding:2px 4px;font-size:10px}
}

/* Mobile navigation: explicit menu, no clipped or horizontally hidden destinations. */
.customer-menu-toggle{display:none}
@media(max-width:700px){
 .customer .shell{display:block}
 .customer .customer-menu-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:12px 20px;margin:0;border:0;border-bottom:1px solid #d8dfd2;border-radius:0;background:#fff;color:#003057;font-size:14px;text-align:left}
 .customer-menu-toggle>span:first-child{min-width:0;line-height:1.6}
 .menu-toggle-label{display:flex;align-items:center;gap:10px;flex-shrink:0;font-size:12px;font-weight:500}
 .menu-toggle-label svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5;fill:none}
 .customer .sidebar,.customer .sidebar:has(.customer-contact-nav){display:none}
 .customer .customer-menu-open>.sidebar{display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow:visible;padding:12px 16px 16px;background:#fff}
 .customer .customer-menu-open>.sidebar a,.customer .customer-menu-open>.sidebar .customer-contact-nav{display:flex;width:100%;margin:0;min-height:48px;padding:12px 16px;white-space:normal;flex-basis:auto;font-size:14px;justify-content:flex-start}
 .customer .customer-menu-open>.sidebar .customer-contact-nav{margin-top:8px}
}

/* Account: compact editorial sections, keeping all existing forms. */
.account-page{max-width:1040px;background:#fff;border:1px solid #dde2d9;border-radius:16px;padding:0 32px}
.account-page .account-section{padding:28px 0;margin:0;border-bottom:1px solid #e2e6df}
.account-page .account-section:last-child{border-bottom:0}
.account-page h2{font-size:22px;line-height:1.5;margin:0 0 12px;color:#003057}
.account-page p{font-size:15px;line-height:1.8;margin:8px 0 16px;color:#626e68}
.account-page #profile-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
.account-page #profile-form .account-address{grid-column:1/-1}
.account-page #profile-form label{margin:0}
.account-page #profile-form>button{justify-self:start;grid-column:1/-1;margin:0}
.account-page #privacy-form{max-width:680px}
.account-page #privacy-form textarea{min-height:100px}
.account-page form button{min-height:44px;padding:10px 20px;font-size:15px;border-radius:8px}
.account-page .account-text-link,.account-page .account-disclosure summary{display:inline-block;color:#003057;font-size:15px;font-weight:500;text-decoration:underline;text-underline-offset:5px;cursor:pointer;list-style:none;padding:8px 0}
.account-page .account-disclosure{margin-top:12px}
.account-page .account-disclosure summary::-webkit-details-marker{display:none}
.account-page .account-disclosure p{max-width:760px;margin:12px 0 0}
@media(max-width:700px){.account-page{padding:0 20px;border-radius:12px}.account-page .account-section{padding:24px 0}.account-page h2{font-size:20px}.account-page #profile-form{grid-template-columns:1fr;gap:16px}.account-page #profile-form .account-address,.account-page #profile-form>button{grid-column:auto}}

.account-page #profile-form>.field{margin:0}

body:has(.clean-workspace) .account-disclosure>summary::after{content:none}
.account-page .line-item b{overflow-wrap:anywhere;min-width:0}

/* Contact dialog aligned with the B1 guide and account page. */
#modal:has(.contact-refined){max-width:820px;padding:32px;border:1px solid #dce1da;border-radius:16px;color:#003057}
#modal:has(.contact-refined)>h2{font-size:26px;margin:0 0 8px;outline:none}
.contact-refined .contact-intro{color:#68766d;font-size:15px;margin:0 0 28px;line-height:1.8}
.contact-routes{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.contact-routes section{border-top:2px solid #003057;padding:20px 0 0;display:flex;flex-direction:column;min-width:0}
.contact-routes section+section{border-color:#a7d500}
.contact-topic{font-size:12px;line-height:1.7;color:#68766d}
.contact-routes h3{font-size:22px;line-height:1.5;margin:8px 0 12px}
.contact-routes p{font-size:14px;line-height:1.8;color:#68766d;margin:0 0 20px}
.contact-action{display:flex;align-items:center;justify-content:center;text-align:center;background:#003057;color:#fff;min-height:48px;padding:12px 16px;font-size:14px;font-weight:600;border-radius:4px;margin-top:auto;text-decoration:none}
.contact-action:hover{background:#0a426d;text-decoration:none}.contact-action-green{background:#a7d500;color:#203000}.contact-action-green:hover{background:#97c200}
.contact-refined .contact-email{display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;border-bottom:1px solid #e2e6df;padding:22px 0;font-size:13px;color:#68766d}
.contact-email a{color:#003057;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.contact-refined .contact-case{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 12px;padding:16px;background:#f5f7f2}
.contact-case span,.contact-case strong{display:block}.contact-case span{font-size:12px;color:#68766d}.contact-case strong{font-size:15px;overflow-wrap:anywhere}.contact-case button{font-size:13px;min-height:44px;flex-shrink:0}
.contact-refined .contact-case-hint{font-size:13px;line-height:1.8;color:#68766d;margin:18px 0 8px}
.contact-note summary{display:inline-block;font-size:13px;text-decoration:underline;text-underline-offset:4px;list-style:none;cursor:pointer;padding:8px 0!important;color:#003057}
.contact-note summary::-webkit-details-marker{display:none}body:has(.clean-workspace) .contact-note summary::after{content:none}
.contact-note p{font-size:13px;line-height:1.8;color:#68766d;margin:8px 0}
.contact-footer{display:flex;justify-content:flex-end;border-top:1px solid #e2e6df;margin-top:20px;padding-top:16px}.contact-footer button{min-height:44px;padding:8px 24px;font-size:14px;border-radius:6px}
@media(max-width:600px){#modal:has(.contact-refined){padding:24px 20px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:12px}#modal:has(.contact-refined)>h2{font-size:23px}.contact-routes{grid-template-columns:1fr;gap:24px}.contact-routes h3{font-size:20px}.contact-refined .contact-intro{margin-bottom:20px}.contact-refined .contact-case{align-items:flex-start;flex-direction:column}}

@media(max-width:600px){.contact-routes{gap:18px}.contact-routes section{padding-top:12px}.contact-routes h3{margin:6px 0 8px}.contact-routes p{margin-bottom:12px}.contact-refined .contact-intro{margin-bottom:16px}.contact-refined .contact-email{padding:14px 0}.contact-refined .contact-case-hint{margin-top:12px}.contact-footer{position:sticky;bottom:-24px;background:#fff;margin-top:10px;padding:10px 0}}

/* Keep Simplified Chinese glyphs out of the Japanese fallback chain.
   PingFang SC is the local fallback until full Source Han Sans SC web weights are supplied. */
html:lang(zh){font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
html:lang(zh) .white-login,html:lang(zh) .wl-box .wl-cta{font-family:inherit}
html:lang(zh) .sidebar a,html:lang(zh) .sidebar button{font-weight:400}
html:lang(zh) .sidebar a.current{font-weight:600}

/* Desktop staff uses the unchanged customer ring; mobile rules are untouched. */
@media(min-width:701px){
 .white-login .wl-staff{max-width:420px;padding:16px 30px}
 .white-login .wl-staff h1{font-size:26px;line-height:1.4;margin:0 0 10px}
 .white-login .wl-staff>p{font-size:12px;line-height:1.7;margin:8px 0}
 .white-login .wl-staff .field{margin-top:12px}
 .white-login .wl-staff .field .error:empty{display:none}
 .white-login .wl-staff .field label{margin-bottom:5px}
 .white-login .wl-staff .callout.error{padding:8px 12px;margin:12px 0 0;line-height:1.5}
 .white-login .wl-staff .wl-cta{min-height:48px;padding:12px 36px;margin:14px 0 10px}
 .white-login .wl-staff .wl-test{font-size:10px;margin:10px 0 0}
}

/* NEPEST navigation starts directly with its first task, with balanced spacing. */
@media(min-width:761px){
 .nepest-workspace>.sidebar{padding:24px 16px}
 .nepest-workspace>.sidebar a{margin-bottom:4px;min-height:48px;padding:12px 16px}
}

/* Align the mail empty state with its heading and record rows. */
.mail-list-empty{margin:0;padding:20px 24px}
@media(max-width:760px){.mail-list-empty{padding:16px}}

/* Application photos: functional upload categories, with a compact guide. */
.application-photo-categories>.application-photo-group{display:block;border:0;padding:0;min-width:0}
.application-photo-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:130px;padding:20px;border:1px dashed #8fa58a;border-radius:12px;cursor:pointer;background:#fafcf8;font-weight:600}
.application-photo-picker:focus-within{outline:2px solid #496600;outline-offset:3px}
.application-photo-picker input{width:100%;font-size:13px;cursor:pointer}
.application-photo-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.application-photo-thumbs a{min-width:0;font-size:12px;overflow-wrap:anywhere}
.application-photo-thumbs img{width:100%;height:100px;object-fit:contain;background:#f4f6f2;border-radius:8px}
.application-photo-thumbs span{display:block;font-size:12px!important}
.application-photo-guide summary{text-decoration:underline;text-underline-offset:5px;cursor:pointer;font-size:15px;font-weight:500;list-style:none}
.application-photo-guide summary::-webkit-details-marker{display:none}
.application-photo-guide li{margin:8px 0;line-height:1.7}
@media(max-width:700px){.application-photo-categories{grid-template-columns:1fr}.application-photo-picker{min-height:110px}}
.application-photo-categories{max-width:none;align-items:start}
.application-photo-categories>.application-photo-group{background:transparent;min-height:0}
.application-photo-picker{position:relative;min-height:142px;height:142px;box-sizing:border-box}
.application-photo-picker span{font-size:17px;line-height:1.5;color:#303833}
.application-photo-picker span.small{font-size:14px;color:#526947;text-decoration:underline;text-underline-offset:4px;font-weight:400}
.application-photo-picker input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.application-photo-categories .application-photo-thumbs{display:grid;min-height:0;border:0;padding:0;background:transparent;align-items:start}
.application-photo-thumbs:empty{display:none!important;margin:0}
@media(max-width:700px){.application-photo-picker{height:110px;min-height:110px}}

.application-photo-categories .application-photo-tile{display:block;border:0;padding:0;min-height:0;background:transparent}.photo-remove{min-height:36px;padding:6px 10px;font-size:13px;margin-top:8px}

.application-photo-tile{position:relative}.application-photo-tile .photo-remove-icon{position:absolute;top:5px;right:5px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;margin:0;border:1px solid #d8ded8;border-radius:50%;background:rgba(255,255,255,.96);color:#303833;box-shadow:0 1px 4px #00000012}.photo-remove-icon:hover{background:#f2f5ee}.photo-remove-icon:focus-visible{outline:2px solid #496600;outline-offset:2px}

/* Language selector: lightweight focus without a surrounding frame. */
.refined-toolbar .tools .toolbar-language select:focus{outline:none;box-shadow:none}
.refined-toolbar .tools .toolbar-language select:focus-visible{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}

/* Payment receipt dialog: amount, evidence and confirmation in a single column. */
#modal.payment-proof-dialog{width:min(640px,calc(100vw - 32px));max-width:640px;padding:32px;border-radius:18px}
.payment-proof-dialog h2{font-size:24px;line-height:1.4;margin:0 0 14px;color:#003057}
.payment-proof-dialog>p{font-size:15px;line-height:1.8;margin:0 0 24px}
.payment-proof-amount{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid #D9D9D6;border-bottom:1px solid #D9D9D6;margin-bottom:24px}
.payment-proof-amount span{font-size:15px;color:#59665f}
.payment-proof-amount strong{font-size:28px;line-height:1.3;color:#003057}
.payment-proof-section h3{font-size:16px;margin:0 0 12px}
.payment-proof-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:168px;padding:24px;background:#f8faf6;border:1px dashed #a9b6a4;border-radius:10px;color:#003057;cursor:pointer;margin:0}
.payment-proof-picker:hover{border-color:#003057;background:#f3f6ed}
.payment-proof-picker:focus-within{outline:2px solid #003057;outline-offset:3px}
.payment-proof-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0}
.payment-proof-prompt{font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:5px}
.payment-proof-help{font-size:12px;color:#6c776f;font-weight:400}
.payment-proof-picker.has-proof{min-height:0;padding:12px;flex-direction:row;flex-wrap:wrap;border-style:solid}
.payment-proof-picker.has-proof svg{width:20px;height:20px}
.payment-proof-picker.has-proof .payment-proof-help{display:none}
.payment-proof-preview{position:relative;margin-top:14px;text-align:center}
.payment-proof-preview:empty{display:none}
.payment-proof-preview img{display:block;width:100%;max-height:240px;object-fit:contain;background:#f5f6f3;border:1px solid #e1e5dd;border-radius:8px;padding:12px}
.payment-proof-preview .payment-proof-remove{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border-radius:50%;background:white;border:1px solid #d5dcd0;font-size:22px;line-height:1;color:#303833}
.payment-proof-filename{font-size:12px;color:#6c776f;overflow-wrap:anywhere;margin:8px 0 0}
.payment-proof-dialog .fields:empty{display:none}
.payment-proof-dialog .fields{margin-top:16px}
.payment-proof-dialog .actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e1e5dd}
.payment-proof-dialog .actions button{font-size:15px;min-height:46px;padding:10px 20px;border-radius:8px}
.payment-proof-dialog .actions .primary{background:#A7D500;border-color:#A7D500;color:#182400}
.payment-proof-dialog .actions [data-close]{order:-1;background:transparent;border-color:transparent;color:#5a665e}
@media(max-width:560px){#modal.payment-proof-dialog{padding:24px 20px}.payment-proof-dialog h2{font-size:21px}.payment-proof-amount strong{font-size:25px}.payment-proof-dialog .actions button{flex:1;padding:10px 12px}}

.payment-proof-dialog .fields{grid-template-columns:1fr;gap:20px}.payment-proof-dialog .fields label{font-size:15px}.payment-proof-dialog textarea{min-height:120px;resize:vertical;font-size:16px}

/* Private supplement dialogs share the compact payment dialog rhythm. */
.private-info-dialog .private-info-guidance{font-size:13px;line-height:1.75;color:#65716c;background:#f5f7f1;border-left:2px solid #A7D500;padding:12px 16px;margin:0 0 20px}
.private-info-dialog textarea{min-height:160px}
.private-info-history{margin:0 0 20px;font-size:14px}
.private-info-history summary{cursor:pointer;text-decoration:underline;text-underline-offset:5px;color:#003057}
.private-info-history .card{padding:16px;margin-top:12px;border-radius:8px;box-shadow:none}
.private-info-history .card h2{font-size:17px}

/* Premium Works payment-stage actions: necessary steps and optional support. */
.pw-action-layout{width:100%;margin-top:12px}.pw-action-label{font-size:14px;color:#667361;margin-bottom:16px}.pw-action-label>span{font-size:12px;margin-left:10px;padding:3px 8px;border-radius:4px;background:#edf1e8}.pw-action-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.pw-action-step{min-width:0;border:1px solid #dce2d7;border-radius:10px;padding:22px;display:flex;flex-direction:column;align-items:stretch}.pw-step-number{font-size:12px;letter-spacing:.07em;color:#77876e}.pw-action-step h3{font-size:18px;line-height:1.55;color:#003057;margin:8px 0}.pw-action-step p,.pw-optional-actions>p{font-size:14px;line-height:1.75;color:#657064;margin:0 0 18px}.pw-action-step button{margin-top:auto;width:100%;font-size:15px;line-height:1.5;min-height:48px;padding:12px 14px;border-radius:7px}.pw-action-step button.primary{background:#A7D500;border-color:#A7D500;color:#183000}.pw-optional-actions{border-top:1px solid #e1e5dd;margin-top:24px;padding-top:20px}.pw-optional-actions h3{font-size:17px;color:#003057;margin:0 0 6px}.pw-optional-links{display:flex;flex-wrap:wrap;gap:12px 24px}.pw-optional-links .pw-action-link{background:none;border:0;border-radius:0;box-shadow:none;color:#52614d;font-size:14px;font-weight:500;padding:4px 0;min-height:36px;text-align:left;text-decoration:underline;text-underline-offset:5px}.pw-other-current{display:flex;gap:12px;flex-wrap:wrap}@media(max-width:700px){.pw-action-steps{grid-template-columns:1fr}.pw-action-step{padding:18px}.pw-optional-links{flex-direction:column;align-items:flex-start;gap:8px}}

#modal.simple-workflow-dialog{max-width:600px;width:min(600px,calc(100vw - 32px))}.simple-workflow-dialog select{min-height:50px;font-size:16px}.simple-workflow-dialog textarea{min-height:150px}.simple-workflow-dialog :is(select,textarea):focus-visible{outline:2px solid #71875b;outline-offset:2px}.simple-workflow-dialog :is(select,textarea){border-color:#bec9b7;border-radius:8px}.simple-workflow-dialog textarea::placeholder{font-size:14px;color:#889187}

.case-number-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:4px 0 10px;color:#657064;font-size:14px}.case-number-line>span{min-width:0;overflow-wrap:anywhere}.case-number-value{color:#303833}.case-number-line .case-copy-inline{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:44px;padding:6px 10px;border:0;background:transparent;border-radius:6px;font-size:13px;font-weight:500;color:#52614d;white-space:nowrap}.case-copy-inline svg{flex-shrink:0}.case-number-line .case-copy-inline:hover{background:#eef3e7}.header-row>div:first-child{min-width:0}@media(max-width:600px){.case-number-line{gap:2px 6px;font-size:13px}.case-number-line .case-copy-inline{padding:6px 8px}.header-row .case-number-line{max-width:100%}}

.identity-confirmed-state{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 0}.identity-confirmed-state strong{color:#003057}.identity-confirmed-state .pw-action-link{font-size:14px;min-height:44px;padding:6px 4px}

.identity-required-task{box-sizing:border-box;width:100%;display:flex;align-items:center;gap:24px;padding:22px 24px;border:1px solid #dce2d7;border-left:3px solid #A7D500;border-radius:8px;background:#f8faf5}.identity-required-copy{flex:1;min-width:0}.identity-required-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.identity-required-heading h3{margin:0;font-size:18px;line-height:1.5;color:#003057}.identity-required-badge{font-size:12px;font-weight:700;line-height:1.5;padding:3px 8px;background:#e7efcb;color:#405700;border-radius:4px}.identity-pending{font-size:13px;color:#68736b}.identity-required-task p{margin:8px 0 0;font-size:14px;line-height:1.75;color:#657064}.identity-required-task>button{flex-shrink:0;margin:0;min-height:48px;padding:12px 18px;font-size:15px;background:#A7D500;border-color:#A7D500}.pw-action-step .identity-required-task{flex-direction:column;align-items:stretch;padding:16px;margin:12px 0}.pw-action-step .identity-required-task>button{width:100%}@media(max-width:700px){.identity-required-task{flex-direction:column;align-items:stretch;gap:16px;padding:18px}.identity-required-task>button{width:100%}}

/* Reference quote: one amount and one optional explanation, single-column. */
#modal.estimate-quote-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 32px));max-width:600px;padding:28px 32px;border-radius:14px;max-height:calc(100dvh - 32px);overflow:auto}
.estimate-quote-dialog h2{font-size:24px;line-height:1.45;margin:0 0 14px;color:#003057}.estimate-quote-dialog>p{font-size:14px;line-height:1.8;margin:0 0 22px}.estimate-quote-dialog .fields{grid-template-columns:minmax(0,1fr);gap:16px}.estimate-quote-dialog .quote-line{padding:18px 20px;margin:0 0 20px;border-left:2px solid #A7D500}.estimate-quote-dialog .quote-line h3{font-size:17px;margin:0 0 16px}.estimate-quote-dialog label{font-size:14px;line-height:1.6}.estimate-quote-dialog input{box-sizing:border-box;min-height:50px;font-size:18px;width:100%;border-radius:8px}.estimate-quote-dialog textarea{box-sizing:border-box;width:100%;min-height:110px;font-size:16px;border-radius:8px}.estimate-quote-dialog :is(input,textarea):focus-visible{outline:2px solid #71875b;outline-offset:2px}.estimate-quote-dialog .actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.estimate-quote-dialog .actions button{min-height:46px;font-size:15px;padding:10px 20px;border-radius:7px}.estimate-quote-dialog .actions button.primary{background:#A7D500;border-color:#A7D500}@media(max-width:600px){#modal.estimate-quote-dialog{padding:22px 20px}.estimate-quote-dialog h2{font-size:21px}.estimate-quote-dialog .quote-line{padding:16px}.estimate-quote-dialog .actions button{flex:1;min-width:0}}

/* Premium Works A: primary next step and quiet optional links. */
.pw-a-layout{width:100%;min-width:0}.pw-a-main{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:8px 0}.pw-a-main h3{font-size:16px;color:#003057;margin:0 0 6px}.pw-a-main p{font-size:14px;color:#657064;margin:0;line-height:1.7}.pw-a-main>button{flex-shrink:0;background:#A7D500;border-color:#A7D500;min-height:48px;padding:12px 20px;border-radius:6px;font-size:15px}.pw-a-optional{display:flex;align-items:baseline;gap:24px;border-top:1px solid #e0e5dd;margin-top:20px;padding-top:14px}.pw-a-optional>span{font-size:12px;color:#74816f;flex-shrink:0}.pw-a-optional .pw-optional-links{min-width:0;gap:8px 24px}.pw-a-layout .pw-other-current:not(:empty){margin-top:12px}@media(max-width:700px){.pw-a-main{flex-direction:column;align-items:stretch;gap:16px}.pw-a-main>button{width:100%}.pw-a-optional{flex-direction:column;gap:8px}.pw-a-optional .pw-optional-links{align-items:flex-start}}

/* Local-only build provenance, placed in normal document flow. */
#local-build-status{margin:16px 24px;padding:12px;border-top:1px solid #d7dfd1;color:#536253;font:12px/1.6 system-ui,sans-serif;overflow-wrap:anywhere}

.staff-end-actions .pw-action-link.danger{color:#a23d25}.nepest-action-layout .pw-a-main>button{max-width:100%;white-space:normal}.nepest-action-layout .pw-optional-links button{overflow-wrap:anywhere}

/* Shared case progress: informational, separate from authorized workflow actions. */
.case-stage-reminder{background:#fff;border:1px solid #dce2d8;border-radius:18px;margin:0 0 28px;overflow:hidden}
.case-stage-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:22px 28px;gap:16px}
.case-stage-track li{display:flex;align-items:center;gap:10px;color:#78837b;font-size:16px;font-weight:500;min-width:0}
.case-stage-track li>span{display:grid;place-items:center;border-radius:50%;background:#f1f4ec;width:32px;height:32px;flex:0 0 32px}
.case-stage-track .is-current{color:#003057;font-weight:700}.case-stage-track .is-current>span{background:#a7d500;color:#243500}.case-stage-track .is-done>span{background:#eaf2d6;color:#4b650c}
.case-stage-message{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,28%);gap:32px;background:linear-gradient(100deg,#f3f7e9,#fff);border-left:5px solid #a7d500;padding:24px 28px}
.case-stage-message h2{font-size:clamp(23px,2.2vw,32px);line-height:1.45;color:#003057;margin:6px 0 10px}.case-stage-message p{margin:0;font-size:16px;line-height:1.7}
.case-stage-message .case-stage-kicker{font-size:13px;color:#667264;letter-spacing:.05em}.case-stage-owner{align-self:center;border-left:1px solid #dce2d8;padding-left:24px}.case-stage-owner>span{font-size:13px;color:#667264;display:block}.case-stage-owner strong{display:block;font-size:19px;color:#003057;margin:6px 0}.case-stage-owner p{font-size:14px}.case-stage-footnote{margin:0;border-top:1px solid #e6eae1;padding:12px 28px;font-size:13px;color:#69756a}
@media(max-width:650px){.case-stage-track{padding:16px;gap:8px}.case-stage-track li{font-size:12px;flex-direction:column;gap:7px;text-align:center}.case-stage-track li>span{width:28px;height:28px;flex-basis:28px}.case-stage-message{grid-template-columns:1fr;padding:20px 16px;gap:16px}.case-stage-owner{border-left:0;border-top:1px solid #dce2d8;padding:14px 0 0}.case-stage-footnote{padding:12px 16px}.case-stage-message h2{overflow-wrap:anywhere}}
@media(min-width:651px) and (max-width:1050px){.case-stage-message{grid-template-columns:1fr;gap:18px}.case-stage-owner{border-left:0;border-top:1px solid #dce2d8;padding:14px 0 0}.case-stage-track{gap:10px;padding:18px}.case-stage-track li{font-size:14px;gap:6px}}
.case-stage-track li{word-break:keep-all}

/* Compact paired payment tasks, with full guidance available on demand. */
.pw-action-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.pw-action-step{display:flex;flex-direction:column;align-items:stretch;padding:22px;gap:0}
.pw-action-step>.pw-step-number{margin-bottom:12px}
.pw-action-step>h3{margin:0 0 12px}
.pw-action-step>p{margin:0 0 20px}
.pw-action-step>button{margin-top:auto;width:100%}
.pw-action-step .identity-required-task{display:contents}
.pw-action-step .identity-required-copy{flex:0 0 auto;margin:0 0 20px}
.pw-action-step .identity-required-task>button{margin-top:auto;width:100%}
.pw-action-step>.identity-required-task+p{display:none}
.payout-check-guide{margin-top:14px}
.payout-check-guide>summary{display:inline-block;cursor:pointer;color:#52614d;font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:5px;list-style:none;padding:5px 0}
.payout-check-guide>summary::-webkit-details-marker{display:none}
.payout-check-guide>p{margin:12px 0 0;line-height:1.75;font-size:14px;color:#657064}
@media(max-width:700px){.pw-action-steps{grid-template-columns:1fr;gap:16px}.pw-action-step{padding:18px}}
/* Final quotation: amounts, supporting photos, actual expenses, review. */
#modal.final-quote-dialog{width:min(940px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:30px 36px}
.final-quote-dialog h2,.final-quote-dialog h3{color:#003057}
.final-quote-dialog #action-form>.fields{grid-template-columns:1fr}
.final-quote-dialog .quote-line .fields{grid-template-columns:1fr}
.final-quote-dialog .quote-line{padding:18px 22px;margin:16px 0}
.quote-evidence,.quote-expenses{margin-top:22px}.quote-evidence h3,.quote-expenses h3{margin:0 0 8px}
.quote-photo-picker{display:flex!important;position:relative;justify-content:center;align-items:center;border:1px dashed #99ad88;border-radius:10px;background:#fafbf8;padding:26px!important;cursor:pointer;color:#003057;font-weight:600}
.quote-photo-picker input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.quote-photo-thumbs{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.quote-photo{position:relative;width:150px;min-width:0}.quote-photo img{display:block;width:150px;height:100px;object-fit:cover;border-radius:8px;border:1px solid #dce3d6}.quote-photo span{display:block;font-size:12px;overflow-wrap:anywhere;margin-top:4px}.quote-photo button{position:absolute;right:5px;top:5px;border:0;border-radius:50%;padding:0;background:#fff;width:26px;height:26px;min-height:0;font-size:20px;line-height:1}
.quote-evidence summary{font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer;color:#52614d}.quote-existing{display:grid;gap:8px;margin-top:12px}.quote-existing label{display:flex;align-items:center;gap:10px}.quote-existing input{width:18px;height:18px}.quote-expenses>.field{margin-top:12px}.quote-net-total{border-top:1px solid #dce3d6;margin-top:20px;padding-top:18px;color:#003057;font-size:22px;font-weight:700}
@media(max-width:600px){#modal.final-quote-dialog{padding:20px;width:calc(100vw - 20px)}.quote-photo,.quote-photo img{width:126px}}

/* Staff order review: compact single-column flow, inline invoice attachment. */
#modal.order-review-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;padding:32px;border-radius:18px}
.order-review-dialog h2{font-size:24px;line-height:1.4;color:#003057;margin:0 0 14px}
.order-review-dialog>p{font-size:15px;line-height:1.8;margin:0 0 24px}
.order-review-dialog #action-form>.fields{grid-template-columns:1fr;gap:18px}
.order-review-dialog .field[hidden]{display:none}
.order-review-dialog .quote-line{margin:0 0 20px;padding:18px;background:#f7f8f3;border:1px solid #e1e5dd;border-radius:10px}
.order-review-dialog .quote-line h3{font-size:17px;margin:0 0 12px}
.order-review-dialog label,.order-review-dialog .check{font-size:15px;line-height:1.6}
.order-review-dialog textarea{min-height:100px}
.order-review-dialog .payment-proof-section{border-top:1px solid #e1e5dd;padding-top:20px;margin-top:24px}
.order-review-dialog .payment-proof-picker{min-height:112px;padding:18px}
.order-review-dialog .payment-proof-section>.field{margin-top:16px}
.order-review-dialog .actions{justify-content:flex-end;border-top:1px solid #e1e5dd;padding-top:20px;margin-top:24px}
.order-review-dialog .actions [data-close]{order:-1}
@media(max-width:560px){#modal.order-review-dialog{padding:24px 20px}.order-review-dialog .quote-line .fields{grid-template-columns:1fr}.order-review-dialog .actions button{flex:1}}

/* Current tasks: one readable row per case, completed work lives in case history. */
.task-inbox{background:#fff;border:1px solid #d8dfd2;border-radius:16px;overflow:hidden}.task-inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid #e1e6dc}.task-inbox-heading h2{margin:0;font-size:18px;color:#003057}.task-inbox-heading h2 span{display:inline-block;margin-left:10px;padding:3px 10px;border-radius:20px;background:#eef3e5;font-size:14px;color:#496600}.task-refresh{font-size:14px;min-height:40px;padding:8px 14px}.task-inbox-row{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 28px}.task-inbox-row+.task-inbox-row{border-top:1px solid #e1e6dc}.task-inbox-content{min-width:0}.task-case-number{margin:0 0 10px;font-size:14px;color:#6b786d;overflow-wrap:anywhere}.task-inbox-content ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.task-inbox-content li{font-size:18px;font-weight:600;line-height:1.55;color:#303833}.task-open{flex-shrink:0;font-size:15px;font-weight:600;color:#003057;text-decoration:underline;text-underline-offset:6px;padding:12px 0}.task-inbox-empty{padding:40px 28px}.task-inbox-empty h3{font-size:20px;margin:0 0 12px}.task-inbox-empty p{margin:0;color:#6b786d}.task-mail-alert{display:flex;justify-content:space-between;gap:20px;margin-top:20px;padding:18px 24px;border:1px solid #e4d19d;border-radius:10px;background:#fff9e9;font-size:14px}.task-mail-alert a{text-decoration:underline}@media(max-width:600px){.task-inbox-heading{padding:18px;gap:12px;align-items:flex-start}.task-inbox-heading h2{font-size:16px}.task-refresh{font-size:12px;padding:8px;flex-shrink:0}.task-inbox-row{padding:22px 18px;gap:12px;align-items:flex-start;flex-direction:column}.task-inbox-content li{font-size:17px}.task-open{padding:6px 0}.task-mail-alert{flex-direction:column}}

.task-occurred{display:block;margin-top:8px;font-size:13px;font-weight:400;line-height:1.6;color:#6b786d}

/* Notification rows: separate event, timestamp and case navigation. */
.notice.notification-entry{padding:22px 0;margin:0;min-width:0}
.notification-entry:first-child{padding-top:0}
.notification-entry:last-child{padding-bottom:0;border-bottom:0}
.notification-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px 28px;flex-wrap:wrap}
.notification-title{display:flex;align-items:baseline;gap:10px;min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.6}
.notification-title .dot{flex:none;margin:0;align-self:center;width:7px;height:7px}
.notification-heading time{display:block;flex:none;font-size:13px;color:var(--muted);line-height:1.6;white-space:nowrap}
.notification-case{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;margin-top:10px;font-size:14px;color:var(--muted)}
.notification-case span{overflow-wrap:anywhere;min-width:0}
.notification-entry .notification-case a{display:inline-block;margin:0;padding:4px 0;text-decoration:underline;text-underline-offset:4px;color:#003057;white-space:nowrap}
@media(max-width:640px){.notification-heading{display:block}.notification-heading time{margin-top:6px;white-space:normal}.notice.notification-entry{padding:18px 0}.notification-case{gap:6px 16px;margin-top:8px}}

/* One continuous language control, including its expanded options. */
.language-menu{position:relative;min-width:132px;color:#657064;z-index:40;border-radius:10px;background:transparent}
.language-menu summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:44px;padding:0 12px;font-size:14px;white-space:nowrap}
.language-menu summary::-webkit-details-marker{display:none}
.language-menu summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;flex:none}
.language-menu .language-chevron{margin-left:auto;width:16px;height:16px}
.language-menu[open]{background:#f4f6f0;border-radius:10px 10px 0 0}
.language-menu[open] .language-chevron{transform:rotate(180deg)}
.language-options{position:absolute;top:100%;left:0;right:0;background:#f4f6f0;border-radius:0 0 10px 10px;padding:4px 6px 8px;box-shadow:0 12px 18px -12px #20300035}
.language-options button,.refined-toolbar .tools .language-options button{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;min-height:40px;border:0;background:transparent;border-radius:5px;padding:0 10px;font-size:14px;font-weight:400;color:inherit}
.language-options button:hover,.language-options button[aria-pressed="true"]{background:#e8eedc;color:#344d0b}
.language-menu summary:focus-visible,.language-options button:focus-visible{outline:0;text-decoration:underline;text-underline-offset:4px}
.refined-toolbar .toolbar-language{padding:0;background:transparent}
@media(max-width:640px){.language-menu{min-width:110px}.language-menu summary{padding:0 8px;gap:6px}}

/* Case lists fit their available workspace, including the staff sidebar. */
.case-table-card{min-width:0;container-type:inline-size}
.case-table-card .table-wrap{overflow:visible;min-width:0}
.case-overview-table{table-layout:fixed;width:100%;max-width:100%}
.case-overview-table th,.case-overview-table td{white-space:normal;overflow-wrap:anywhere;padding:16px 12px;vertical-align:middle}
.case-overview-table th:nth-child(1){width:19%}
.case-overview-table th:nth-child(2){width:17%}
.case-overview-table th:nth-child(3){width:19%}
.case-overview-table th:nth-child(4){width:13%}
.case-overview-table th:nth-child(5){width:19%}
.case-overview-table th:nth-child(6){width:13%}
.case-overview-table .case-actions button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:12px 8px}
@container(max-width:850px){
 .case-overview-table,.case-overview-table tbody{display:block;width:100%}
 .case-overview-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .case-overview-table tbody tr{display:block;border:1px solid var(--line);border-radius:8px;padding:8px 16px;margin-bottom:12px;background:#fff}
 .case-overview-table tbody tr:last-child{margin-bottom:0}
 .case-overview-table td{display:grid;grid-template-columns:minmax(0,30%) minmax(0,1fr);gap:12px;padding:10px 0;text-align:right}
 .case-overview-table td::before{content:attr(data-label);font-weight:600;color:var(--muted);text-align:left}
 .case-overview-table td.case-actions{display:block;border-bottom:0;padding-top:12px}
 .case-overview-table td.case-actions::before{content:none}
}

/* NEPEST retrospective dashboard: scoped to the reporting page. */
/* Analytics: scoped layout; business calculations and role gates stay unchanged. */
.statistics{min-width:0;container-type:inline-size;font-size:15px;line-height:1.65}
.statistics>h1{margin:0 0 12px}.statistics>p{margin:0 0 24px}
.statistics .stats-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;background:#fff;padding:24px;border:1px solid #d9e0d3;border-radius:12px;margin:0 0 24px}
.statistics .stats-filter label{display:flex;flex-direction:column;gap:8px;margin:0;flex:0 1 150px;min-width:0;font-weight:600;font-size:14px}
.statistics .stats-filter label[hidden]{display:none}
.statistics .stats-filter input,.statistics .stats-filter select{box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:10px 36px 10px 14px;border:1px solid #8b9f80;border-radius:8px;background-color:#fff;color:var(--ink);font:inherit;font-weight:400}
.statistics .stats-filter button{height:48px;margin:0;white-space:nowrap}
.statistics .stats-filter .primary{background:#A7D500;border-color:#A7D500}
.statistics .stats-range{flex-basis:100%;font-size:13px;color:#657267;margin:0;padding-top:14px;border-top:1px solid #e3e8df;overflow-wrap:anywhere}
.statistics .stats-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:12px}
.statistics .stats-metric,.statistics .stats-panel{background:white;border:1px solid #d9e0d3;border-radius:12px;padding:24px;min-width:0}
.statistics .stats-metric{display:flex;flex-direction:column;padding:20px}
.statistics .stats-metric>span{font-size:14px;min-height:46px;line-height:1.6}
.statistics .stats-metric:last-child{background:#edf4dc}
.statistics .stats-metric strong{display:block;font-size:30px;line-height:1.25;color:#003057;margin:8px 0 20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.statistics .stats-metric small{display:block;border-top:1px solid #e2e7de;padding-top:12px;margin-top:auto;color:#667267;font-size:12px;line-height:1.8}
.statistics .stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 24px;align-items:start}
.statistics .stats-panel{margin:0 0 24px}
.statistics .stats-grid>.stats-panel{margin:0}
.statistics .stats-panel h2{font-size:20px;line-height:1.5;color:#003057;margin:0 0 20px}
.statistics .stats-line{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e8ece3}
.statistics .stats-line:first-child{padding-top:0}.statistics .stats-line:last-child{border-bottom:0;padding-bottom:0}
.statistics .stats-line>span{min-width:0;overflow-wrap:anywhere}.statistics .stats-line strong{flex-shrink:0;font-variant-numeric:tabular-nums}
.statistics .stats-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.statistics .stats-stages .stats-line{padding:12px 0;border-bottom:1px solid #e8ece3}
.statistics .stats-stages .stats-line:nth-last-child(-n+2){border:0}
.statistics .stats-rates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.statistics .stats-durations{grid-template-columns:repeat(5,minmax(0,1fr))}
.statistics .stats-rates article{min-width:0;border-left:3px solid #a7d500;padding-left:16px;display:flex;flex-direction:column}
.statistics .stats-rates article>span{min-height:48px;font-size:14px}
.statistics .stats-rates strong{display:block;font-size:28px;line-height:1.3;margin:10px 0;color:#003057;font-variant-numeric:tabular-nums}
.statistics .stats-rates small{font-size:13px;color:#657267}
.statistics .stats-panel>.muted{margin:20px 0 0}
.statistics .stats-legend{display:flex;flex-wrap:wrap;gap:20px;font-size:13px;color:#657267;margin-bottom:20px}
.statistics .stats-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:2px;background:#a7d500;margin-right:7px}
.statistics .stats-legend span+span:before{background:#003057}
.statistics .stats-trend-row{display:grid;grid-template-columns:60px minmax(0,1fr);gap:16px;align-items:center;padding:12px 0;border-top:1px solid #e8ece3}
.statistics .stats-trend-date{font-size:13px;color:#657267}
.statistics .stats-bars{display:grid;gap:8px}.statistics .stats-bar-line{display:flex;align-items:center;gap:12px}
.statistics .stats-bar-track{appearance:none;border:0;background:#f1f4ed;height:10px;width:100%;min-width:0;flex:1;border-radius:3px;overflow:hidden}
.statistics .stats-bar-track::-webkit-progress-bar{background:#f1f4ed;border-radius:3px}.statistics .stats-bar-track::-webkit-progress-value{background:#a7d500;border-radius:3px}.statistics .stats-bar-1::-webkit-progress-value{background:#003057}.statistics .stats-bar-track::-moz-progress-bar{background:#a7d500}.statistics .stats-bar-1::-moz-progress-bar{background:#003057}
.statistics .stats-bar{display:block;height:100%;background:#a7d500;border-radius:3px}.statistics .stats-bar-1{background:#003057}
.statistics .stats-bar-line strong{width:32px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}
.statistics .stats-analysis{grid-template-columns:repeat(3,minmax(0,1fr))}
.statistics .stats-reasons{margin-top:20px;border-top:1px solid #e8ece3;padding-top:12px;font-size:14px}
.statistics summary{cursor:pointer;color:#003057;font-weight:600;line-height:1.7}
.statistics .stats-reasons summary{text-decoration:underline;text-underline-offset:5px}
.statistics .stats-reasons ol{padding-left:22px;margin:16px 0 0}.statistics .stats-reasons li{margin:0 0 12px;overflow-wrap:anywhere}
.statistics details.stats-panel[open]>p{margin:16px 0 0}
.statistics table{width:100%;table-layout:fixed;font-size:14px}
.statistics td,.statistics th{overflow-wrap:anywhere;white-space:normal;padding:16px 10px;vertical-align:top;line-height:1.65}
.statistics th:first-child{width:20%}.statistics th:nth-child(4),.statistics th:last-child{width:8%}
.statistics .muted{font-size:13px;line-height:1.8;color:#657267}
@container(max-width:1050px){.statistics .stats-analysis{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics .stats-analysis>.stats-panel:last-child{grid-column:1/-1}.statistics .stats-stages{grid-template-columns:1fr}.statistics .stats-stages .stats-line:nth-last-child(2){border-bottom:1px solid #e8ece3}.statistics .stats-durations{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics .stats-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container(max-width:750px){.statistics .stats-grid{grid-template-columns:1fr}.statistics .stats-analysis>.stats-panel:last-child{grid-column:auto}.statistics .stats-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics .stats-rates{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics .stats-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics .stats-metric:last-child{grid-column:1/-1}.statistics .stats-metric>span{min-height:0}.statistics table,.statistics tbody,.statistics tr{display:block;width:100%}.statistics thead{display:none}.statistics tbody tr{padding:16px 0;border-bottom:1px solid #dce2d8}.statistics tbody tr:last-child{border:0}.statistics tbody td{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.5fr);gap:16px;width:100%;padding:6px 0;border:0;font-size:14px}.statistics tbody td::before{content:attr(data-label);color:#657264}.statistics tbody td[colspan]{display:block}.statistics .stats-stages .stats-line:nth-last-child(2){border-bottom:0}}
@container(max-width:430px){.statistics .stats-panel,.statistics .stats-filter{padding:18px}.statistics .stats-filter{gap:12px}.statistics .stats-filter label{flex:1 1 100px}.statistics .stats-filter button{flex:1 1 120px}.statistics .stats-metrics{gap:12px}.statistics .stats-metric{padding:16px}.statistics .stats-metric strong{font-size:28px}.statistics .stats-stages{grid-template-columns:1fr}.statistics .stats-stages .stats-line:nth-last-child(2){border-bottom:1px solid #e8ece3}.statistics .stats-rates{gap:20px 12px}.statistics .stats-rates article{padding-left:12px}.statistics .stats-rates strong{font-size:24px}.statistics .stats-panel h2{font-size:19px}}

.statistics .stats-filter select{background-image:none}.statistics .stats-filter label:has(select){position:relative}.statistics .stats-filter label:has(select)::after{content:"";position:absolute;right:16px;bottom:20px;width:8px;height:8px;border-right:1.6px solid #303833;border-bottom:1.6px solid #303833;transform:rotate(45deg);pointer-events:none}

.statistics .stats-filter-actions{display:flex;gap:12px;flex-wrap:wrap}.statistics .stats-filter-actions button{flex:1}
@container(max-width:750px){.statistics .stats-filter-actions{flex-basis:100%}}

.statistics .stats-extra-row[hidden]{display:none!important}
.statistics .stats-detail-toggle{padding-top:20px;text-align:center}
.statistics .stats-detail-toggle button{background:none;border:0;color:#003057;text-decoration:underline;text-underline-offset:5px;padding:10px;font:inherit;cursor:pointer}

/* Approved D customer login: original ring, clear trade-in purpose and compact flow. */
.wl-customer .wl-stage{min-height:650px}
.wl-customer .wl-box{padding:25px 28px}
.wl-customer .wl-box h1{font-size:36px;line-height:1.55;margin:18px 0 20px}
.wl-customer .wl-box .wl-eyebrow{font-size:12px;letter-spacing:2px;color:#62783d}
.wl-guide-link{display:inline-block;background:none;border:0;border-radius:0;min-height:32px;padding:4px 0;margin-top:12px;color:#003057;font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.wl-steps{display:flex;justify-content:center;max-width:760px;margin:0 auto 27px;padding:0 16px;list-style:none}
.wl-steps li{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 18px;font-size:13px;color:#53646b}
.wl-steps li+li{border-left:1px solid #dee4db}
.wl-steps b{font-size:11px;color:#789000;font-weight:500}
@media(max-width:700px){
.white-login.wl-customer .wl-stage{min-height:0}
.wl-customer .wl-mobile-hero h1{font-size:20px;line-height:1.65;padding:0 10px}
.white-login.wl-customer .wl-box{padding:0 28px 18px}
.wl-steps{display:grid;gap:15px;max-width:390px;padding:8px 28px 24px;margin-bottom:0}
.wl-steps li{justify-content:flex-start;padding:0;font-size:12px}
.wl-steps li+li{border-left:0}
}
