/* Palette shared with 达芬奇潮研所 · 设备优先版 APP. */
:root{
  --accent:#00dce9;
  --accent-ink:#00636a;
  --accent-soft:#effbfc;
  --accent-hover:#00c7d3;
  --ink:#111b1e;
  --muted:#4b5b60;
  --line:#d7dfe0;
  --bg:#f2f5f5;
  --amber:#b27a2a;
  --rose:#a85e54;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
.shell{display:flex;min-height:100vh}
.sidebar{width:248px;background:#fff;border-right:1px solid var(--line);padding:26px 16px 18px;display:flex;flex-direction:column;flex-shrink:0}
.brand{display:flex;align-items:center;gap:11px;padding:0 10px 34px}
.logo{height:38px;width:38px;border-radius:12px;background:var(--accent);color:var(--ink);display:grid;place-items:center;font-size:20px;font-weight:700}
.brand b{display:block;font-size:16px}
.brand small{font-size:9px;color:#73888c;letter-spacing:1.3px}
.workspace-label{font-size:11px;color:#7b8d91;text-transform:uppercase;letter-spacing:1px;padding:0 12px 12px}
nav{display:grid;gap:5px}
nav button{border:0;background:transparent;color:#4b5b60;text-align:left;border-radius:9px;padding:12px 13px;font-family:inherit;font-size:14px;font-weight:500;display:flex;align-items:center;gap:12px;cursor:pointer}
nav button span{width:20px;text-align:center;font-size:17px;color:#71888c}
nav button.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
nav button.active span{color:var(--accent-ink)}
.side-bottom{margin-top:auto}
.online{border-top:1px solid var(--line);padding:18px 9px;color:#4b5b60;font-size:12px}
.online i{display:inline-block;background:var(--accent);width:7px;height:7px;border-radius:50%;margin-right:8px}
.user{border-top:1px solid var(--line);padding:16px 6px 0;display:flex;gap:10px;align-items:center}
.avatar{width:34px;height:34px;background:#e4f5f6;color:var(--accent-ink);border-radius:50%;display:grid;place-items:center}
.user b{font-size:13px;display:block}
.user small{color:var(--muted);font-size:11px}
.user>span{margin-left:auto;color:#788b90}
#main{flex:1;min-width:0;padding:30px 42px 50px;max-width:1600px;margin:auto}
header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:28px}
.crumb{font-size:12px;color:#71858a}
.crumb span{padding:0 8px;color:#b8c7ca}
.crumb b{color:#354c52;font-weight:500}
h1{font-size:26px;margin:10px 0 0;letter-spacing:-.4px}
.headright{display:flex;align-items:center;gap:16px}
.iconbtn{border:1px solid var(--line);background:#fff;border-radius:9px;width:38px;height:38px;font-size:19px;color:#4b5b60;position:relative}
.iconbtn em{position:absolute;width:6px;height:6px;background:#d57b64;border-radius:50%;right:8px;top:7px}
.date{color:#647c83;font-size:12px}
.row{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}
.sub{color:var(--muted);font-size:13px}
.btn{border:1px solid var(--line);background:#fff;padding:10px 14px;border-radius:8px;color:#35484c;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--ink);font-weight:600}
.btn.small{padding:7px 10px;font-size:12px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.statlabel{color:#647c83;font-size:12px}
.statvalue{font-size:27px;font-weight:600;margin:10px 0 5px}
.delta{font-size:11px;color:var(--accent-ink)}
.delta.warn{color:var(--amber)}
.dashboard{display:grid;grid-template-columns:1.55fr 1fr;gap:18px}
.cardhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.cardhead h3{font-size:15px;margin:0}
.link{border:0;background:none;color:var(--accent-ink);font-size:12px;cursor:pointer}
.tablewrap{overflow:auto}
table{border-collapse:collapse;width:100%;font-size:13px}
th{text-align:left;color:#71858a;font-size:11px;font-weight:500;padding:10px 9px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:13px 9px;border-bottom:1px solid #edf1f1;white-space:nowrap}
tr:last-child td{border:0}
.customer{font-weight:600}
.muted{color:#71858a;font-size:11px;margin-top:3px}
.badge{display:inline-block;border-radius:20px;padding:5px 9px;font-size:11px;background:var(--accent-soft);color:var(--accent-ink)}
.badge.amber{background:#fbf2e6;color:#a8762c}
.badge.blue{background:#e7f8fa;color:var(--accent-ink)}
.badge.gray{background:#f0f4f4;color:#4b5b60}
.activity{display:grid;gap:17px}
.event{display:flex;gap:12px;align-items:flex-start}
.eventdot{width:8px;height:8px;border-radius:50%;background:var(--accent);margin:5px 0 0 2px;box-shadow:0 0 0 4px var(--accent-soft)}
.eventtext{font-size:12px;line-height:1.6}
.eventtext small{display:block;color:#788b90;font-size:11px;margin-top:3px}
.filters{display:flex;gap:9px;align-items:center}
.input,select,textarea{border:1px solid var(--line);background:white;border-radius:8px;padding:10px 12px;font-family:inherit;font-size:13px;color:#35484c}
.input{min-width:220px}
.toolbar{display:flex;justify-content:space-between;gap:14px;margin:16px 0}
.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.panel table td,.panel table th{padding-left:18px;padding-right:18px}
.panel table th{padding-top:14px;padding-bottom:14px;background:#f7fbfc}
.panel table td{padding-top:15px;padding-bottom:15px}
.detailgrid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field label{display:block;font-size:12px;color:#4b5b60;margin-bottom:7px}
.field input,.field select,.field textarea{width:100%}
.field.full{grid-column:1/-1}
.field textarea{min-height:75px;resize:vertical}
.pillrow{display:flex;gap:7px;flex-wrap:wrap}
.pill{border:1px solid var(--line);border-radius:18px;padding:7px 11px;color:#4b5b60;font-size:12px;cursor:pointer}
.pill.selected{border-color:var(--accent-ink);background:var(--accent-soft);color:var(--accent-ink)}
.formula{background:#f3fbfc;border-radius:9px;padding:14px;margin:12px 0}
.formula-line{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #dcebed;font-size:13px}
.formula-line:last-child{border:0}
.steps{display:flex;gap:0;margin:12px 0 22px}
.step{flex:1;text-align:center;position:relative;font-size:11px;color:#71858a}
.step:before{content:'';display:block;width:22px;height:22px;border-radius:50%;background:#e6edef;margin:0 auto 7px;position:relative;z-index:1}
.step:after{content:'';position:absolute;top:10px;left:50%;width:100%;height:1px;background:var(--line)}
.step:last-child:after{display:none}
.step.done{color:var(--accent-ink)}
.step.done:before{background:var(--accent);box-shadow:inset 0 0 0 1px #00636a26}
.step.current{color:#a8762c}
.step.current:before{background:#f1d8ae}
.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;background:#10282b;color:white;border-radius:9px;padding:12px 18px;font-size:13px;transition:.2s;pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}
.empty{padding:30px;text-align:center;color:#71858a}


/* Shared interaction states use the APP's cyan and deep teal. */
button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea,.pill{transition:background-color .15s,border-color .15s,box-shadow .15s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px}
nav button:hover{background:#f3fbfc;color:var(--accent-ink)}
nav button.active{background:#e2f9fb;box-shadow:inset 3px 0 0 var(--accent)}
.btn:hover{background:var(--accent-soft);border-color:#9bcbd0}
.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.iconbtn:hover{background:var(--accent-soft);border-color:#9bcbd0}
.pill:hover{background:var(--accent-soft);border-color:#9bcbd0}
.field input,.formula-line input{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 12px;font:inherit;color:#35484c}
button:disabled{opacity:.5;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){button,a,input,select,textarea,.pill{transition:none}}

/* Shared layout: content can shrink without pushing the viewport sideways. */
body{font-size:16px;-webkit-text-size-adjust:100%}
.shell{width:100%;min-width:0;min-height:100svh;align-items:flex-start}
.sidebar{position:sticky;top:0;height:100dvh;min-height:520px;overflow-y:auto}
#main{width:auto;flex:1 1 0%;align-self:flex-start;margin:0 auto}
#content,.dashboard>*,.detailgrid>*,.field,.heading{min-width:0}
.dashboard{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.detailgrid{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
.nav-short{display:none}
nav button .nav-label{width:auto;text-align:left;font-size:14px;color:inherit}
nav button .nav-icon{flex-shrink:0}
.row,.cardhead{gap:12px}
.row{align-items:flex-start}
.row>.btn{flex-shrink:0}
.sub,.cardhead h3,.formula-line,.customer-meta{overflow-wrap:anywhere}
.cardhead .badge{flex-shrink:0}
.toolbar{flex-wrap:wrap;align-items:flex-start}
.filters{flex-wrap:wrap;min-width:0;gap:10px}
.toolbar>.filters{flex:1 1 300px}
.toolbar>.input{flex:1 1 220px}
.input{min-width:0;max-width:100%;width:240px}
.filters>.input{flex:1 1 200px}
.toolbar select{max-width:100%}
.btn,.iconbtn,.pill,.link,input,select{min-height:44px}
.btn,.btn.small,.link,.pill{font-size:14px}
.pill{font-family:inherit;line-height:1.4}
input,select,textarea,.field input,.formula-line input{min-width:0;font-size:16px;max-width:100%}
.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}
.field label,.statlabel,.sub,.eventtext,.formula-line,.cardhead .sub{font-size:14px}
.badge{font-size:12px;max-width:100%}
.formula-line{align-items:flex-start;gap:12px}
.formula-line>span{min-width:0;flex:1}
.formula-line>b{max-width:48%;text-align:right}
.weigh-line{align-items:center}
.weigh-line input{width:112px;flex-shrink:0}
.eventdot{flex-shrink:0}
.tablewrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.customer-meta{display:flex;flex-wrap:wrap;gap:3px 10px}
.muted,.eventtext small,.delta{font-size:12px}
.panel table th{font-size:12px}
.panel table td{font-size:14px}
.toast{max-width:calc(100vw - 32px);width:max-content;text-align:center;z-index:100}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Mid-size laptops and landscape tablets: give the data the full content width. */
@media(max-width:1399px){
  #main{padding:28px}
  .dashboard,.detailgrid{grid-template-columns:minmax(0,1fr)}
}

/* Pad: compact, fully accessible sidebar and two-column forms and metrics. */
@media(min-width:768px) and (max-width:1199px){
  .sidebar{width:88px;padding:24px 8px 16px;min-height:0}
  .brand{padding:0 0 24px;justify-content:center}
  .brand>div:last-child,.workspace-label,.online,.user>div:not(.avatar),.user>span{display:none}
  nav button{flex-direction:column;justify-content:center;gap:5px;padding:12px 4px}
  nav button .nav-label{display:none}
  nav button .nav-short{display:block;width:auto;font-size:12px;color:inherit;white-space:nowrap}
  nav button .nav-icon{font-size:22px;line-height:1.2}
  .user{justify-content:center;padding:16px 0 0}
  #main{padding:24px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .headright{gap:8px}
  .date{display:none}
}

/* Phone: bottom navigation, stacked forms, and cards instead of wide tables. */
@media(max-width:767px){
  .shell{display:block}
  .sidebar{position:static;display:block;width:100%;height:auto;min-height:0;padding:14px 16px;border:0;border-bottom:1px solid var(--line);overflow:visible}
  .brand{padding:0;gap:10px}
  .brand b{font-size:15px}
  .brand small{font-size:9px}
  .logo{width:34px;height:34px;border-radius:10px;font-size:18px}
  .workspace-label,.side-bottom{display:none}
  #nav{position:fixed;z-index:50;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;border-top:1px solid var(--line);background:#fff;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -3px 18px #10282b08}
  #nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 2px;min-height:54px;min-width:0;border-radius:10px}
  #nav button .nav-label{display:none}
  #nav button .nav-short{display:block;width:auto;max-width:100%;font-size:11px;line-height:1.4;white-space:nowrap;color:inherit}
  #nav button .nav-icon{font-size:22px;line-height:1.1;width:auto;color:inherit}
  #nav button.active{box-shadow:none;background:#e2f9fb}
  #main{width:100%;padding:20px max(16px,env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  header{gap:12px;align-items:center;margin-bottom:20px}
  .crumb{font-size:11px}
  h1{font-size:23px;margin-top:6px;line-height:1.3}
  .headright{gap:6px;flex-shrink:0}
  .iconbtn{width:40px;min-height:44px}
  .headright .iconbtn:first-child,.date{display:none}
  .row{flex-direction:column;align-items:stretch;gap:12px}
  .row>.btn{align-self:flex-start}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}
  .card{padding:16px;border-radius:12px}
  .stats .card{padding:14px}
  .statlabel{font-size:12px}
  .statvalue{font-size:27px;margin:8px 0 4px}
  .stats .sub{font-size:12px}
  .dashboard,.detailgrid{gap:16px}
  .toolbar{flex-direction:column;gap:10px}
  .toolbar>.filters,.toolbar>.input{flex:0 1 auto;width:100%}
  .filters{width:100%}
  .filters>.input{flex:1 1 100%;width:100%}
  .toolbar>.btn{align-self:flex-end}
  .toolbar .filters>.btn{flex:1 1 auto}
  .toolbar .filters>select{flex:1 1 140px}
  .formgrid{grid-template-columns:minmax(0,1fr);gap:16px}
  .form-actions>.btn{flex:1 1 120px;white-space:normal}
  .field textarea{min-height:110px}
  .pill{flex:1}
  .steps{margin:16px 0 20px}
  .step{font-size:10px;padding:0 2px;overflow-wrap:anywhere}
  .step:before{width:18px;height:18px}
  .step:after{top:8px}
  .cardhead{align-items:flex-start;flex-wrap:wrap}
  .cardhead h3{font-size:15px}
  .cardhead .link{margin-top:-9px;margin-bottom:-9px}
  .tablewrap.panel{border:0;background:transparent;border-radius:0;overflow:visible}
  .tablewrap table,.tablewrap tbody{display:block;width:100%}
  .tablewrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .tablewrap tbody{display:grid;gap:12px}
  .tablewrap tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}
  .panel.tablewrap td{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:0;border:0;font-size:14px;white-space:normal;overflow-wrap:anywhere}
  .tablewrap td[data-label]:before{content:attr(data-label);color:#71858a;font-size:11px}
  .tablewrap td:first-child{grid-column:1/-1;border-bottom:1px solid #edf1f1;padding-bottom:12px}
  .tablewrap td:first-child:before{display:none}
  .tablewrap td:nth-child(2){grid-column:1/-1}
  .customer{font-size:16px}
  .customer-meta{flex-direction:column;gap:3px}
  .tablewrap .table-action{justify-content:flex-end;align-items:stretch}
  .table-action .link{width:100%;background:var(--accent-soft);border-radius:8px;text-align:center;min-height:44px}
  .table-action .link:hover{background:#e2f9fb}
  .formula{padding:12px}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom))}
}

@media(max-width:359px){
  #main{padding-left:12px;padding-right:12px}
  .stats .card{padding:12px}
  .weigh-line{flex-wrap:wrap}
  .weigh-line>span{flex-basis:100%}
  .weigh-line input{width:100%}
  .panel.tablewrap tr{padding:14px;gap:12px}
}

/* Detailed workflow screens. */
.prototype-note{background:#e8f7f8;border:1px solid #cae9ec;border-radius:9px;padding:10px 13px;margin-bottom:22px;color:var(--accent-ink);font-size:12px;line-height:1.6}
.prototype-note.storage-warning{background:#fff5e8;border-color:#edd8b8;color:#8a5920}
.eyebrow{display:block;color:var(--accent-ink);font-size:11px;font-weight:600;letter-spacing:1.4px;margin-bottom:8px}
.welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(110deg,#dff9fb 0%,#f4fcfd 75%);border:1px solid #ccecef;border-radius:14px;padding:25px 27px;margin-bottom:22px}
.welcome h2{font-size:24px;letter-spacing:-.5px;margin:0 0 8px}
.welcome p{font-size:14px;color:#4b5b60;margin:0}
.welcome>.btn{flex-shrink:0}
.metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;font-family:inherit;color:inherit;min-height:140px}
button.metric{cursor:pointer;transition:box-shadow .15s,border-color .15s}
button.metric:hover{border-color:#8ac8ce;box-shadow:0 5px 16px #10282b08}
.metric .statvalue{display:block}
.metric .delta{margin-top:auto;text-align:left}
.section-head{margin-bottom:18px}
.section-head h3,.section-head p{margin:0}
.section-head h3{font-size:16px}
.section-head p{font-size:13px;color:var(--muted);margin-top:6px}
.pipeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:28px}
.pipeline-item{border:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:12px;padding:17px 14px;border-radius:10px;text-align:left;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.pipeline-item:hover{border-color:#8ac8ce;background:var(--accent-soft)}
.pipeline-item strong{display:block;color:var(--ink);font-size:22px;font-weight:600;margin-top:3px}
.pipeline-icon{width:36px;height:36px;display:grid;place-items:center;background:#eaf8f9;color:var(--accent-ink);border-radius:10px;flex-shrink:0;font-size:19px}
.tabs{display:flex;gap:7px;overflow-x:auto;max-width:100%;border-bottom:1px solid var(--line);margin-bottom:18px;padding:0 0 7px;overscroll-behavior-x:contain}
.tab{border:0;white-space:nowrap;background:transparent;color:#5d7379;padding:10px 14px;min-height:44px;border-radius:8px;cursor:pointer;font:inherit;font-size:14px;flex-shrink:0}
.tab.selected{background:#e1f7f9;color:var(--accent-ink);font-weight:600}
.tab:hover{background:#ecf6f7}
.result-count{color:#6b8187;font-size:13px;align-self:center;white-space:nowrap}
.search-input{width:330px}
.empty-symbol{font-size:30px;color:#96b5ba;margin-bottom:6px}
.empty b{color:#354c52;font-size:16px}
.empty p{font-size:13px;line-height:1.7;margin-bottom:0}
.stack,.editor-side{display:grid;align-content:start;gap:18px;min-width:0}
.card>h3:first-child{margin-top:0}
.card h3{font-size:16px}
.required{color:#a95a48}
.question-fields{display:grid;gap:15px}
.photo-empty{min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #bfd5d8;background:#f7fbfc;border-radius:10px;color:#7a979d;font-size:27px}
.photo-empty span{font-size:12px;margin-top:8px}
.upload-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.upload-controls>select{min-width:0;flex:1}
.upload-label{display:flex;align-items:center;cursor:pointer;position:relative}
.upload-label:focus-within{outline:2px solid var(--accent-ink);outline-offset:3px}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.photo-grid figure{margin:0;min-width:0}
.photo-open{display:block;width:100%;border:1px solid var(--line);border-radius:9px;padding:0;overflow:hidden;background:#f2f7f8;cursor:pointer}
.photo-open img{display:block;width:100%;height:156px;object-fit:contain}
.photo-grid figcaption{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:6px}
.photo-grid .link{font-size:12px;min-height:36px}
.editor-footer{position:sticky;bottom:16px;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:20px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 18px #10282b0b}
.editor-footer .form-actions{margin:0}
.case-banner{display:flex;justify-content:space-between;gap:20px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px 24px;margin-bottom:24px}
.case-person{display:flex;gap:14px;align-items:center;min-width:0}
.case-avatar{width:52px;height:52px;background:#dbf6f8;color:var(--accent-ink);border-radius:15px;display:grid;place-items:center;font-size:24px;flex-shrink:0}
.case-person h2{margin:0 0 3px;font-size:23px;overflow-wrap:anywhere}
.case-reference{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0}
.case-reference>span:not(.badge),.case-reference small{color:#6b8187;font-size:12px;overflow-wrap:anywhere}
.kv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;margin:16px 0 0}
.kv-grid dt{font-size:12px;color:#71858a;margin-bottom:5px}
.kv-grid dd{margin:0;font-size:14px;color:#22373c;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.next-action p{color:var(--muted);font-size:14px;line-height:1.8}
.next-action .btn{width:100%}
.notice{padding:12px 14px;color:#37666d;background:#f0f9fa;border:1px solid #dceef0;border-radius:9px;font-size:13px;line-height:1.8;overflow-wrap:anywhere;margin:14px 0}
.amber-notice{background:#fff8ee;color:#8d612b;border-color:#f0dfc6}
.history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:14px}
.history-item small{display:block;color:#71858a;margin-top:5px;font-size:12px}
.history-item:last-child{border:0}
.context-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:15px 18px;margin-bottom:18px}
.context-strip span{font-size:13px;overflow-wrap:anywhere;line-height:1.8}
.context-strip b{display:block;color:#71858a;font-size:12px;font-weight:500}
.spaced{margin-top:24px}
.formula-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 112px 44px;align-items:end;gap:9px;margin-bottom:14px}
.formula-editor-row select{width:100%;font-size:14px}
.ratio-input{display:block;min-width:0;font-size:12px;color:#71858a}
.ratio-input input{display:block;width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit;font-size:16px;color:var(--ink);margin-top:5px}
.formula-total{font-weight:600;color:var(--accent-ink);padding-top:14px}
.calculator-card .form-actions{flex-direction:column}
.version{border-bottom:1px solid var(--line);padding:14px 0}
.version:last-child{border-bottom:0}
.version summary{cursor:pointer;font-weight:600;font-size:14px;line-height:1.8}
.version summary small{display:block;font-weight:400;color:#71858a;font-size:12px;margin-top:5px}
.version .badge{margin-left:8px}
.prewrap{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}
.weigh-fields{margin:22px 0}
.weigh-item{display:grid;grid-template-columns:minmax(0,1fr) 122px 76px;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.weigh-item label{font-size:14px;min-width:0;overflow-wrap:anywhere}
.weigh-item small{display:block;font-size:12px;font-weight:400;color:#71858a;margin-top:5px}
.actual-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;padding-right:10px;gap:5px;font-size:13px;color:#71858a;min-width:0}
.actual-input input{width:100%;border:0;background:transparent;border-radius:8px;padding:10px;font:inherit;font-size:16px;color:var(--ink);outline-offset:2px}
.weigh-diff{font-size:12px;color:var(--accent-ink);text-align:right;font-variant-numeric:tabular-nums}
.weigh-diff.out-of-range{color:#b26726;font-weight:600}
.check-label{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.7;margin-top:18px;cursor:pointer}
.check-label input{width:19px;height:19px;min-height:19px;flex-shrink:0;margin:2px 0 0;accent-color:var(--accent-ink)}
.feedback-item{padding:16px 0;border-bottom:1px solid var(--line)}
.feedback-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.feedback-item small{color:#71858a;font-size:12px}
.formula-library,.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.product-card{display:flex;align-items:center;gap:14px;min-width:0}
.product-card h3{margin:0;font-size:15px;overflow-wrap:anywhere}
.product-card p{font-size:12px;color:var(--muted);margin:4px 0 8px}
.product-card>.link{margin-left:auto}
.swatch{display:grid;place-items:center;flex-shrink:0;width:60px;height:70px;background:#e9ddd2;color:#6e5544;font-size:17px;font-weight:600;border-radius:10px}
.swatch.developer{background:#e4f6f8;color:#00636a}
.role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.role-grid article{border:1px solid var(--line);border-radius:10px;padding:18px}
.role-grid p{font-size:14px;line-height:1.8;margin-bottom:0;color:var(--muted)}
#dialog{width:min(680px,calc(100% - 32px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);box-shadow:0 20px 80px #10282b30}
#dialog::backdrop{background:#10282b66;backdrop-filter:blur(2px)}
body:has(#dialog[open]){overflow:hidden}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.modal-head h2{font-size:21px;margin:0}
.modal-head .iconbtn{flex-shrink:0}
.modal-head .eyebrow{font-size:10px;margin-bottom:4px}
.modal-head+p{font-size:14px;color:var(--muted);line-height:1.8}
.form-error{padding:12px;border-radius:8px;background:#fff3eb;color:#9a4e28;font-size:14px}
.photo-full{max-height:68dvh;width:100%;object-fit:contain;border-radius:10px;background:#f2f5f5}
.copy-area{width:100%;min-height:180px;resize:vertical}
.rule-list{padding-left:22px;font-size:14px;color:var(--muted);line-height:2}
.rule-list li{margin:12px 0}
.todo-list{display:grid;gap:4px;margin-top:14px}
.todo-list>button{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:14px 10px;gap:14px;border:0;border-bottom:1px solid var(--line);background:white;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;border-radius:7px;min-width:0}
.todo-list>button:hover{background:var(--accent-soft)}
.todo-list small{display:block;font-size:12px;color:#71858a;margin-top:5px;overflow-wrap:anywhere}
.todo-list .badge{flex-shrink:0}
.modal-search{width:100%}
#print-sheet{display:none}
[hidden]{display:none!important}

@media(max-width:1199px){
  .welcome{padding:23px}
  .welcome h2{font-size:22px}
  .pipeline{gap:8px}
  .pipeline-item{padding:14px 10px;gap:8px}
  .pipeline-icon{display:none}
}
@media(max-width:767px){
  .prototype-note{font-size:11px;padding:9px 11px;margin-bottom:16px}
  .welcome{padding:20px;flex-direction:column;align-items:stretch;gap:18px;margin-bottom:16px}
  .welcome h2{font-size:21px}
  .welcome p{font-size:13px;line-height:1.8}
  .welcome .eyebrow{font-size:9px;letter-spacing:1px}
  .welcome>.btn{align-self:flex-start}
  .metric{min-height:128px}
  .metric .delta{font-size:11px}
  .pipeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}
  .pipeline-item{padding:12px 10px;font-size:11px;min-height:80px}
  .pipeline-item strong{font-size:23px}
  .pipeline-item:nth-child(n+4){background:#f7fcfc}
  .tabs{gap:4px;margin-bottom:14px}
  .tab{font-size:13px;padding:9px 11px}
  .detail-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-tabs .tab{white-space:normal}
  .result-count{align-self:flex-end}
  .stack,.editor-side{gap:16px}
  .editor-footer{bottom:calc(80px + env(safe-area-inset-bottom));padding:12px;display:block}
  .editor-footer>.sub{font-size:12px;display:block;margin-bottom:9px}
  .editor-footer .form-actions{display:flex}
  .case-banner{padding:16px;flex-direction:column;gap:14px;margin-bottom:18px}
  .case-person h2{font-size:22px}
  .case-avatar{width:46px;height:46px;font-size:22px}
  .case-reference{align-items:flex-start;flex-wrap:wrap;flex-direction:row;gap:8px 12px}
  .case-reference .badge{align-self:center}
  .case-reference small{width:100%}
  .case-reference>span:not(.badge){align-self:center}
  .kv-grid{gap:16px 14px}
  .context-strip{grid-template-columns:1fr;gap:12px;padding:14px}
  .context-strip b{display:inline-block;margin-right:8px}
  .formula-editor-row{grid-template-columns:minmax(0,1fr) 85px 40px;gap:7px}
  .formula-editor-row .iconbtn{width:40px}
  .formula-editor-row select{font-size:14px;padding-left:8px;padding-right:8px}
  .weigh-item{grid-template-columns:minmax(0,1fr) 112px;gap:8px 12px}
  .weigh-diff{grid-column:2;text-align:left}
  .feedback-item>div{flex-wrap:wrap}
  .formula-library,.product-grid,.role-grid{grid-template-columns:1fr;gap:14px}
  #dialog{width:calc(100% - 20px);max-height:92dvh;padding:20px 16px;border-radius:14px}
  .modal-head{gap:12px;margin-bottom:18px}
  .modal-head h2{font-size:20px}
  .todo-list>button{gap:10px;padding:14px 2px}
  .todo-list .badge{font-size:11px}
}
@media(max-width:359px){
  .kv-grid{grid-template-columns:1fr}
  .welcome{padding:17px}
  .formula-editor-row{grid-template-columns:minmax(0,1fr) 75px 34px}
  .formula-editor-row .iconbtn{width:34px}
}
@media print{
  body{background:#fff;font-size:14px}
  .shell,#dialog,.toast{display:none!important}
  #print-sheet{display:block;color:#000;max-width:720px;margin:0 auto}
  #print-sheet h1{font-size:24px}
  #print-sheet h2{font-size:18px;margin-top:28px}
  #print-sheet .formula{border:1px solid #bbb;background:white}
  #print-sheet .formula-line,#print-sheet .formula-total{color:#000}
}

/* Customer intake: one continuous sheet, three required items. */
.intake-page{max-width:960px;margin:0 auto}
.intake-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-8px 0 12px}
.intake-topline .link{font-size:13px;padding:0}
.intake-sheet{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px 32px 0}
.intake-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:26px}
.intake-intro h2{font-size:22px;margin:0 0 7px;letter-spacing:-.4px}
.intake-intro p{margin:0;color:#70858a;font-size:14px;line-height:1.7}
.intake-progress{border-radius:20px;padding:6px 11px;background:#f0f4f5;color:#6b8187;font-size:12px;white-space:nowrap;flex-shrink:0}
.intake-progress.complete{background:#e0f7f9;color:var(--accent-ink)}
.intake-basics{margin-bottom:26px}
.intake-label{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.intake-label h3{margin:0;font-size:15px;font-weight:600}
.intake-required{font-size:11px;color:#00636a;background:#eaf8f9;padding:3px 7px;border-radius:5px;font-weight:400}
.intake-account{margin-bottom:26px}
.intake-account-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:end}
.intake-account-pair .field label{font-size:12px;color:#6b8187;margin-bottom:7px}
.intake-account-pair input{min-height:48px;background:#fbfdfd}
.intake-or{font-size:12px;color:#92a3a6;align-self:end;line-height:48px}
.intake-photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.intake-photo-field{min-width:0}
.intake-upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:172px;border:1px dashed #aacdd2;background:#f7fcfc;border-radius:10px;cursor:pointer;color:var(--accent-ink);gap:5px;padding:15px;text-align:center;transition:background .15s,border-color .15s}
.intake-upload:hover{border-color:#00636a;background:#edfafb}
.intake-upload-icon{display:grid;place-items:center;background:#e1f5f7;width:36px;height:36px;border-radius:11px;font-size:23px;font-weight:400;margin-bottom:4px}
.intake-upload b{font-size:14px;font-weight:500}
.intake-upload small{font-size:12px;color:#7a9499;line-height:1.6}
.intake-upload:focus-within,.intake-add-photo:focus-within{outline:2px solid var(--accent-ink);outline-offset:3px}
.intake-photo-tip{font-size:12px;color:#8a9a9f;line-height:1.7;margin:10px 0 0}
.intake-photo-text-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:14px}
.intake-photo-text-notes .field label{font-size:12px;font-weight:400;color:#82969d;margin-bottom:5px}
.intake-photo-text-notes .field input{min-height:40px;padding:8px 10px;border-color:#e7eef0;background:#fcfdfd;color:#5f7881;font-size:14px;box-shadow:none}
.intake-photo-text-notes input::placeholder{color:#a2b1b6;font-size:12px}
.intake-photo-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.intake-photo-thumbs figure{position:relative;margin:0;min-width:0}
.intake-photo-thumbs .photo-open{height:172px}
.intake-photo-thumbs img{height:100%;width:100%;object-fit:contain}
.intake-photo-remove{position:absolute;top:7px;right:7px;min-height:36px;border:0;background:#fffef7ee;border-radius:6px;color:#54696e;font:inherit;font-size:12px;padding:5px 9px;cursor:pointer}
.intake-photo-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;color:#7a9499;font-size:12px;flex-wrap:wrap}
.intake-add-photo{position:relative;display:inline-flex;align-items:center;min-height:36px;color:var(--accent-ink);cursor:pointer}
.intake-optional-heading{display:flex;align-items:center;gap:12px;padding:22px 0 12px;border-top:1px solid #e8eff0;flex-wrap:wrap}
.intake-optional-heading h3{margin:0;font-size:15px;font-weight:600;color:#405b62}
.intake-optional-heading>span{font-size:12px;color:#8a9a9f}
.intake-fold{border-bottom:1px solid #edf1f2}
.intake-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;cursor:pointer;min-height:74px;padding:14px 0}
.intake-fold>summary::-webkit-details-marker{display:none}
.intake-fold summary b{display:block;font-size:14px;font-weight:500;color:#415a61}
.intake-fold summary small{display:block;font-size:12px;color:#8a9a9f;margin-top:4px;line-height:1.6}
.intake-fold-icon{flex-shrink:0;color:#809b9f;font-size:20px;transition:transform .15s}
.intake-fold[open] .intake-fold-icon{transform:rotate(45deg)}
.intake-fold>summary:focus-visible,.intake-questionnaire>summary:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px;border-radius:5px}
.intake-fold-body{padding:5px 0 25px}
.intake-fold-body>.field{margin-bottom:22px}
.intake-fold textarea{min-height:76px}
.intake-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
.intake-choice{border:0;min-width:0;margin:0;padding:0}
.intake-choice legend{font-size:13px;color:#647d84;padding:0;margin-bottom:10px}
.intake-choice-options{display:flex;flex-wrap:wrap;gap:7px}
.intake-choice-options label{position:relative;cursor:pointer}
.intake-choice-options input{position:absolute;clip-path:inset(50%);height:1px;width:1px;min-height:0;padding:0;margin:0;overflow:hidden}
.intake-choice-options span{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #e0e9eb;background:white;border-radius:7px;padding:8px 11px;font-size:13px;color:#6b8187}
.intake-choice-options input:checked+span{background:#edf9fa;color:var(--accent-ink);border-color:#9fcdd2}
.intake-choice-options input[value=""]:checked+span{background:#f5f7f8;color:#879ba0;border-color:#e0e9eb}
.intake-choice-options input:focus-visible+span{outline:2px solid var(--accent-ink);outline-offset:2px}
.intake-questionnaire{margin-top:22px;padding-top:18px;border-top:1px solid #edf1f2}
.intake-questionnaire>summary{font-size:13px;color:#789097;cursor:pointer;min-height:36px}
.intake-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 -32px;padding:22px 32px;background:#fbfdfd;border-radius:0 0 14px 14px}
.intake-footer .form-actions{margin:0;gap:10px;flex-wrap:nowrap}
.intake-footer small{display:block;color:#93a2a6;font-size:11px;margin-top:5px}
.intake-readiness{font-size:13px;color:#5c777e}
.intake-footer .btn{white-space:nowrap}
.intake-field-error{font-size:12px;color:#b75e43;margin:8px 0 0;line-height:1.6}
.intake-error-summary{font-size:13px;background:#fff6f0;color:#9d5a39;border-radius:8px;padding:11px 14px;margin:0 0 20px}
.has-error .intake-upload,.has-error .intake-account-pair input{border-color:#c78870}
.profile-photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.profile-photo-pair h4{font-size:14px;margin:0 0 10px}
.profile-photo-pair .photo-open{margin-bottom:8px}
.profile-photo-pair img{height:210px}
.profile-photo-empty{display:grid;place-items:center;min-height:140px;border-radius:9px;background:#f5f9fa;color:#91a2a6;font-size:13px}
.profile-more{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.profile-more summary{cursor:pointer;font-size:14px;color:#5f7c83;min-height:36px}
@media(max-width:767px){
  .intake-topline{margin-bottom:8px}
  .intake-topline .muted{max-width:54%;text-align:right;overflow-wrap:anywhere}
  .intake-sheet{padding:20px 18px 0;border-radius:12px}
  .intake-intro{gap:12px;flex-wrap:wrap;margin-bottom:22px}
  .intake-intro h2{font-size:20px}
  .intake-intro p{font-size:12px}
  .intake-progress{font-size:11px;padding:5px 9px}
  .intake-account{margin-bottom:22px}
  .intake-account-pair{gap:9px}
  .intake-account-pair input{padding-left:10px;padding-right:10px}
  .intake-photo-pair{gap:12px}
  .intake-photo-text-notes{gap:12px;margin-top:12px}
  .intake-photo-text-notes .field label{font-size:11px}
  .intake-photo-text-notes .field input{font-size:16px}
  .intake-label{gap:6px;min-height:25px;margin-bottom:10px}
  .intake-label h3{font-size:13px}
  .intake-required{font-size:10px;padding:2px 5px}
  .intake-upload{min-height:140px;padding:12px 7px}
  .intake-upload small{font-size:10px}
  .intake-upload b{font-size:13px}
  .intake-upload-icon{height:30px;width:30px;font-size:21px}
  .intake-photo-tip{font-size:11px}
  .intake-photo-thumbs .photo-open{height:140px}
  .intake-photo-thumbs{grid-template-columns:1fr}
  .intake-photo-status{font-size:11px;gap:2px}
  .intake-optional-heading{gap:8px;padding-top:18px}
  .intake-optional-heading>span{font-size:11px}
  .intake-fold>summary{min-height:70px;padding:13px 0;gap:10px}
  .intake-fold summary small{font-size:11px}
  .intake-choice-grid{grid-template-columns:1fr;gap:22px}
  .intake-footer{margin:0 -18px;padding:18px;flex-wrap:wrap;gap:12px;border-radius:0 0 12px 12px}
  .intake-footer .form-actions{width:100%}
  .intake-footer .form-actions .btn{flex:1;min-width:0}
  .profile-photo-pair{gap:10px}
  .profile-photo-pair img{height:150px}
}

/* Display uploaded photos only, with a visible upload action. */
.intake-photo-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.photo-slot{position:relative;margin:0;min-width:0;height:140px;overflow:hidden;border:1px solid #d5e7ea;border-radius:9px;background:#f6fbfc}
.intake-photo-slots.single-photo{grid-template-columns:1fr}
.single-photo .photo-slot{height:180px}
.photo-slot .photo-open{height:100%;width:100%;border:0;border-radius:8px}
.photo-slot .photo-open img{height:100%;width:100%;object-fit:contain}
.photo-slot .intake-photo-remove{top:4px;right:4px;min-height:34px;padding:4px 7px;font-size:11px;box-shadow:0 1px 5px #10282b15}
.intake-add-photo{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:48px;margin-top:12px;padding:11px 16px;border:1px solid #79c7d0;border-radius:8px;background:#def6f9;color:#00636a;font-size:14px;font-weight:600;line-height:1.5;text-align:center}
.intake-add-photo>span{font-size:21px;line-height:1}
.intake-add-photo>small{font-size:12px;font-weight:500;color:#43818a;margin-left:5px}
.intake-add-photo:hover:not(.at-capacity){background:#c9f0f5;border-color:#4caab7}
.intake-add-photo.at-capacity{background:#f1f5f6;border-color:#d8e5e7;color:#7e959c;cursor:default}
.history-gallery .intake-photo-slots{grid-template-columns:repeat(5,minmax(0,1fr))}
.history-gallery .photo-slot{height:96px}
.history-gallery .intake-add-photo{width:max-content;min-width:180px}

/* Frequent questions stay visible; secondary information is folded once. */
.intake-common .intake-optional-heading{margin-top:0;border-top:1px solid #e5edef;padding-bottom:0}
.intake-common-row{padding:20px 0;border-bottom:1px solid #edf1f2}
.intake-common-row:last-child{border-bottom:0}
.intake-scope-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.binary-choice{min-width:0}
.binary-choice legend{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;color:#405e67;font-size:14px}
.choice-clear{border:0;background:transparent;padding:4px 0 4px 8px;min-height:28px;color:#95a5aa;font-family:inherit;font-size:11px;font-weight:400;cursor:pointer;flex-shrink:0}
.choice-clear:hover{color:#00636a;text-decoration:underline;text-underline-offset:3px}
.binary-choice .intake-choice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:640px}
.binary-choice .intake-choice-options label{min-width:0}
.binary-choice .intake-choice-options span{height:100%;min-height:46px;padding:11px 12px;font-size:14px;text-align:center;line-height:1.6}
.binary-choice .intake-choice-options input:checked+span{background:#e0f7fa;border-color:#65bdc9;color:#005b65;font-weight:500}
.choice-legacy{display:block;font-size:11px;color:#8a9a9f;margin-top:8px}
.scope-detail-field{padding-top:5px}
.scope-detail-field input{min-height:46px}
.scope-detail-field.has-error input{border-color:#c78870}
.intake-other{border-top:1px solid #e3ecee}
.intake-other>summary{min-height:84px}
.intake-other>summary b{font-size:15px;font-weight:600}
.intake-subheading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.intake-subheading h4{font-size:15px;font-weight:600;color:#405e67;margin:0}
.intake-subheading>span{font-size:12px;color:#879ba2}
.intake-history-block>.field{margin-bottom:14px}
.intake-notes-block{margin-top:26px;padding-top:22px;border-top:1px solid #e9eff1}
.intake-client-name{max-width:430px;margin-top:22px}
.intake-further{margin-top:24px;padding-top:18px;border-top:1px solid #e9eff1}
.intake-further>summary{min-height:40px;font-size:12px;color:#859ba3;line-height:1.8;cursor:pointer}
.intake-further-body{margin-top:18px}
.history-photo-preview{margin-top:22px}
.history-photo-preview h4{font-size:14px;margin-bottom:12px}
.history-photo-preview .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.history-photo-preview .photo-open img{height:140px}
@media(min-width:768px){.context-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
  .intake-photo-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .photo-slot{height:112px}
  .single-photo .photo-slot{height:142px}
  .photo-slot .intake-photo-remove{min-height:32px;padding:3px 5px;font-size:10px}
  .intake-add-photo{min-height:48px;padding:11px 7px;gap:4px;font-size:13px}
  .intake-add-photo>small{font-size:10px;margin-left:2px}
  .intake-add-photo>span{font-size:18px}
  .intake-scope-row{grid-template-columns:1fr;gap:16px}
  .intake-common-row{padding:18px 0}
  .binary-choice legend{font-size:13px;gap:8px}
  .binary-choice .intake-choice-options{gap:9px}
  .binary-choice .intake-choice-options span{padding:11px 8px;font-size:13px;min-height:46px}
  .scope-detail-field{padding-top:0}
  .intake-other>summary{min-height:78px}
  .intake-subheading{gap:6px}
  .intake-subheading>span{font-size:11px}
  .history-gallery .intake-photo-slots{grid-template-columns:repeat(3,minmax(0,1fr))}
  .history-gallery .photo-slot{height:88px;grid-column:auto}
  .history-photo-preview .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.intake-add-photo.is-empty{min-height:150px;flex-direction:column;gap:8px;margin-top:0;border-style:dashed;background:#f2fbfc}
.intake-add-photo.is-empty>span{font-size:30px}
.intake-add-photo.is-empty>small{margin:0;font-weight:400;color:#7a949b}
.history-gallery .intake-add-photo.is-empty{min-height:48px;flex-direction:row;border-style:solid;gap:8px;background:#def6f9}
.history-gallery .intake-add-photo.is-empty>span{font-size:21px}
@media(max-width:767px){.intake-add-photo.is-empty{min-height:140px}.history-gallery .intake-add-photo.is-empty{min-height:48px}}

/* The assessment workspace keeps source material next to the decision. */
.loading-note{padding:30px;color:#6b858d;font-size:14px}
.is-saving .shell button,.is-saving #dialog button{pointer-events:none;opacity:.65}
.assessment-phase{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;border:1px solid #cce7eb;border-radius:10px;background:#effafb;margin-bottom:20px}
.assessment-phase p{font-size:13px;color:#557780;flex:1;min-width:180px;margin:0;line-height:1.8}
.assessment-phase .btn{font-size:12px;min-height:40px;padding:8px 12px}
.assessment-workbench{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:22px;align-items:start}
.assessment-source,.assessment-controls{border:1px solid var(--line);background:#fff;border-radius:13px;padding:22px;min-width:0}
.assessment-result{min-width:0}
.source-title{padding-bottom:17px;border-bottom:1px solid #e6eef0;margin-bottom:18px}
.source-title h3{font-size:16px;margin:0 0 7px}
.source-title>span{font-size:12px;color:#799198;overflow-wrap:anywhere}
.staff-note{background:#fff9ed;border:1px solid #eee1c9;border-radius:9px;padding:13px 15px;margin-bottom:18px;color:#856a41}
.staff-note b{font-size:12px;font-weight:600}
.staff-note p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:5px 0 0}
.preference-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px;padding-bottom:18px;border-bottom:1px solid #e9eff0}
.preference-summary span{display:block;font-size:11px;color:#879ba2;margin-bottom:4px}
.preference-summary b{font-size:13px;color:#3b5963;font-weight:500;overflow-wrap:anywhere}
.source-photos{margin-top:22px}
.source-photo-title{display:flex;align-items:baseline;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.source-photo-title h4{margin:0;font-size:15px}
.source-photo-title small{font-size:11px;color:#8a9fa5}
.current-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.source-photo{padding:0;display:block;border:1px solid #dce8eb;overflow:hidden;background:#f3f8f9;border-radius:9px;height:140px;cursor:pointer}
.source-photo.lead-photo{grid-column:1/-1;height:300px}
.source-photo img{width:100%;height:100%;object-fit:contain;display:block}
.target-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.target-photo{position:relative;min-width:0;border:2px solid #dfebee;border-radius:10px;overflow:hidden;background:#fff}
.target-photo.selected{border-color:#00b7c6;box-shadow:0 0 0 2px #d6f4f7}
.target-photo>button:first-child{display:block;width:100%;border:0;padding:0;cursor:pointer;background:white;color:#5d7a84;font-family:inherit;font-size:12px}
.target-photo img{width:100%;height:180px;object-fit:contain;display:block;background:#f5f9fa}
.target-photo button>span{padding:9px 6px;display:block;min-height:36px}
.target-photo.selected button>span{background:#ddf7fa;color:#00636a;font-weight:600}
.photo-zoom{position:absolute;right:6px;top:6px;border:0;border-radius:6px;background:#fffffff0;color:#5f7a83;font-family:inherit;font-size:11px;padding:7px;min-height:32px;cursor:pointer}
.source-history{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.source-history h4{margin:0 0 10px;font-size:14px}
.source-history .history-photo-preview{margin-top:12px}
.source-history .history-photo-preview>h4{display:none}
.source-extra{margin-top:20px;border-top:1px solid #e6eef0;padding-top:15px;font-size:13px;color:#6d868f}
.source-extra summary{cursor:pointer;min-height:36px}
.assessment-step-title{margin-bottom:22px}
.assessment-step-title>span{font-size:11px;letter-spacing:1px;color:#4e8e98}
.assessment-step-title h3{font-size:19px;margin:7px 0}
.assessment-step-title p{font-size:12px;color:#81979f;margin:0;line-height:1.8}
.assessment-decision,.assessment-size,.assessment-risks{border:0;padding:0;margin:0 0 22px;min-width:0}
.assessment-decision legend,.assessment-size legend,.assessment-risks legend{font-size:14px;color:#46656f;font-weight:500;padding:0;margin-bottom:12px}
.assessment-decision>label{display:block;position:relative;margin-bottom:9px;cursor:pointer}
.assessment-decision input,.assessment-size input{position:absolute;width:1px;height:1px;min-height:0;margin:0;clip-path:inset(50%);overflow:hidden}
.assessment-decision label>span{display:block;border:1px solid #dce8eb;border-radius:9px;padding:13px 14px;color:#587581}
.assessment-decision b{font-size:14px;font-weight:500}
.assessment-decision small{display:block;margin-top:5px;color:#91a3a9;font-size:11px;line-height:1.7}
.assessment-decision input:checked+span{border-color:#70beca;background:#e7f9fb;color:#00636a}
.assessment-decision input:focus-visible+span,.assessment-size input:focus-visible+span{outline:2px solid #00636a;outline-offset:3px}
.assessment-size>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.assessment-size label{position:relative;min-width:0;cursor:pointer}
.assessment-size label>span{display:flex;justify-content:center;align-items:baseline;gap:5px;padding:13px 8px;border:1px solid #d9e7eb;border-radius:8px;color:#63808b;font-size:23px;min-height:58px;font-weight:600}
.assessment-size small{font-size:11px;font-weight:400}
.assessment-size input:checked+span{border-color:#42b0c1;background:#def7fa;color:#00636a}
.assessment-image-choice{margin-bottom:18px}
.assessment-image-choice>label{display:block;font-size:13px;color:#46656f;margin-bottom:9px}
#chosen-assessment-image{border:1px dashed #cbdfe3;border-radius:9px;background:#f8fbfc;overflow:hidden}
#chosen-assessment-image p{font-size:12px;color:#8a9ea6;padding:14px;line-height:1.9;margin:0}
#chosen-assessment-image img{display:block;width:100%;height:170px;object-fit:contain;background:#f0f8fa}
#chosen-assessment-image>span{display:block;font-size:11px;color:#738f98;padding:9px 12px}
.image-choice-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.image-choice-actions .btn{font-size:12px;flex:1;min-width:130px;justify-content:center;padding:9px}
.assessment-risks{padding-top:24px;margin-top:24px;border-top:1px solid #e4edef}
.assessment-risks>p{color:#91a5ac;font-size:11px;margin:-3px 0 13px}
.risk-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.risk-pick{display:flex;gap:8px;align-items:flex-start;border:1px solid #e0e9ec;padding:11px 10px;border-radius:8px;cursor:pointer;min-width:0}
.risk-pick input{height:16px;width:16px;min-height:16px;flex-shrink:0;margin:2px 0 0;accent-color:#007c89}
.risk-pick b{font-size:12px;color:#617c86;font-weight:500;line-height:1.7}
.risk-pick small{display:none;font-size:11px;color:#8c7c60;line-height:1.8;margin-top:6px}
.risk-pick:has(input:checked){border-color:#ddc99e;background:#fffaf0;grid-column:1/-1}
.risk-pick input:checked+span small{display:block}
.no-risk-check{font-size:12px;color:#6c8791;line-height:1.9}
.assessment-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:9px;margin-top:22px;margin-bottom:10px}
.assessment-actions .btn{padding:11px 9px;font-size:13px}
.assessment-controls>.btn:last-child{width:100%;font-size:12px;background:#f9fbfc;border-color:#e4ecef;color:#8ba0a7}
.assessment-customer-actions{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;margin-top:18px;display:grid;gap:12px}
.report-export-actions{display:flex;gap:10px;margin-top:16px}
.report-export-actions>.btn{flex:1}
.assessment-customer-actions .report-export-actions{margin:0}
.client-report{position:relative;background:radial-gradient(circle at 100% 0,#eef2ff 0,transparent 155px),#fff;border:1px solid #e0e9f3;border-radius:18px;overflow:hidden;padding:30px;color:#27384d;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;font-synthesis:none}
.client-report::after{content:'';position:absolute;top:-27px;right:-23px;width:92px;height:92px;border:1px solid #dceafa;outline:1px solid #e4edf9;outline-offset:14px;border-radius:50%;pointer-events:none}
.client-report-brand{font-size:13px;color:#246b9d;border-left:3px solid #00dce9;padding-left:10px;letter-spacing:.5px;margin-bottom:20px;font-weight:400}
.client-report h2{font-size:26px;line-height:1.5;color:#27384d;margin:0 0 8px;letter-spacing:-.3px;font-weight:500}
.report-verdict-note{font-size:14px;line-height:1.8;color:#6c7b8e;margin:0 0 10px}
.report-for{font-size:12px;color:#83969a;margin:0 0 24px;overflow-wrap:anywhere}
.report-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:22px;margin:0 0 26px}
.report-hero.without-photo{grid-template-columns:minmax(0,1fr)}
.report-color-image{display:block;width:100%;height:320px;object-fit:contain;background:#f2f6f7;border-radius:12px;margin:0}
.report-color-details{min-width:0;padding-top:12px}
.client-report .report-image-label{font-size:12px;color:#6c7b8e;margin:0 0 10px;line-height:1.8}
.client-report h3{font-size:29px;line-height:1.5;margin:0 0 24px;color:#246b9d;font-weight:400;overflow-wrap:anywhere}
.report-order-option{position:relative;background:linear-gradient(125deg,#e9f6ff,#f1efff);border-radius:12px;padding:17px 14px}
.report-order-option::before{content:'';position:absolute;left:0;top:17px;width:3px;height:24px;border-radius:2px;background:#50a5d2}
.report-order-option span{display:block;font-size:12px;color:#6c7b8e;line-height:1.7;margin-bottom:8px}
.report-order-option strong{display:block;color:#246b9d;font-size:18px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}
.report-explanation{border-top:1px solid #e2ecee;padding-top:20px;margin:0 0 22px}
.report-explanation h4,.report-risk-list h4{font-size:16px;color:#27384d;margin:0 0 12px;font-weight:500}
.report-reason{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#6c7b8e;margin:0}
.report-risk-list{position:relative;background:#fff3f5;border:1px solid #f1cfd7;border-radius:12px;padding:20px;margin:0}
.report-risk-list::before{content:'';position:absolute;left:-1px;top:21px;width:3px;height:25px;border-radius:2px;background:#bd384b}
.report-risk-list h4{color:#bd384b}
.report-risk-list ul{margin:0;padding-left:18px;color:#bd384b}
.report-risk-list li{margin-bottom:16px;padding-left:2px;font-size:14px;line-height:1.8}
.report-risk-list li:last-child{margin-bottom:0}
.report-risk-list li b{font-weight:500;color:#bd384b}
.report-risk-list p{font-size:14px;color:#985360;line-height:1.9;margin:4px 0 0;overflow-wrap:anywhere}
.report-risk-list>.prewrap{margin-top:16px}
.assessment-spec-hint{font-size:12px;line-height:1.8;color:#64838b;margin:10px 0 0}
.color-library-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.color-library-picker>button,.color-library-picker>article{border:1px solid #dce8ed;background:white;border-radius:10px;overflow:hidden;padding:0;min-width:0;text-align:left;color:#315f70;font-family:inherit;cursor:pointer}
.color-library-picker>button:hover{border-color:#42b3c4;background:#f2fbfc}
.color-library-picker img{width:100%;height:180px;object-fit:contain;background:#f3f8fa;display:block}
.color-library-picker b{display:block;font-size:13px;font-weight:500;padding:10px 11px 4px}
.color-library-picker small{display:block;font-size:10px;color:#90a4ad;padding:0 11px 12px;line-height:1.7}
.color-library-picker.standalone{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1199px){
 .assessment-workbench{grid-template-columns:minmax(0,1fr)}
 .assessment-controls{padding:24px}
 .assessment-result{max-width:680px;width:100%;margin:0 auto}
 .current-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .source-photo.lead-photo{grid-column:auto;height:180px}
 .source-photo{height:180px}
 .target-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .risk-picks{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 .assessment-phase{gap:9px;padding:12px}
 .assessment-phase p{font-size:12px}
 .assessment-phase .btn{width:100%}
 .assessment-workbench{gap:16px}
 .assessment-source,.assessment-controls{padding:17px;border-radius:11px}
 .source-title h3{font-size:15px}
 .source-title>span{font-size:11px}
 .preference-summary{gap:12px}
 .preference-summary b{font-size:12px}
 .current-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .source-photo.lead-photo{grid-column:1/-1;height:240px}
 .source-photo{height:130px}
 .target-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .target-photo img{height:170px}
 .risk-picks{grid-template-columns:1fr}
 .risk-pick{padding:12px;min-height:44px}
 .risk-pick:has(input:checked){grid-column:auto}
 .assessment-actions{grid-template-columns:1fr}
 .assessment-actions .primary{order:-1}
 .image-choice-actions .btn{min-width:110px}
 .client-report{padding:20px}
 .client-report h2{font-size:21px}
 .report-color-image{height:260px}
 .client-report h3{font-size:26px}
 .color-library-picker,.color-library-picker.standalone{grid-template-columns:repeat(2,minmax(0,1fr))}
 .color-library-picker img{height:160px}
}
.pipeline{grid-template-columns:repeat(6,minmax(0,1fr))}
.pipeline-item{padding-left:11px;padding-right:11px;gap:8px}
.pipeline-icon{width:28px;height:32px;font-size:17px}
@media(max-width:1199px){.pipeline{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Complete, uncropped hair photos on desktop and phone. */
.intake-photo-column{min-width:0}
.intake-photo-text-notes{display:block}
.photo-slot,.single-photo .photo-slot,.history-gallery .photo-slot{height:auto;display:flex;flex-direction:column;background:#f3f8fa}
.photo-slot .photo-open{height:clamp(200px,22vw,300px);min-height:0;flex:none;border-radius:8px 8px 0 0;cursor:zoom-in;background:#f3f8fa}
.single-photo .photo-open{height:clamp(280px,28vw,400px)}
.photo-slot .photo-open img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.photo-slot-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:38px;padding:2px 8px;background:#fff;border-top:1px solid #e8eff1}
.photo-slot-actions>span{font-size:11px;color:#91a3aa}
.photo-slot-actions .intake-photo-remove{position:static;top:auto;right:auto;background:transparent;box-shadow:none;min-height:34px;padding:5px 7px;font-size:12px;color:#6f8790}
.history-gallery .photo-slot .photo-open{height:160px}
.photo-open img{background:#f3f8fa;object-position:center}
.source-photo{cursor:zoom-in}
.photo-full{height:auto;object-position:center}
@media(max-width:767px){
  .intake-photo-pair{grid-template-columns:minmax(0,1fr);gap:24px}
  .photo-slot .photo-open{height:clamp(170px,48vw,250px)}
  .single-photo .photo-open{height:clamp(260px,82vw,380px)}
  .history-gallery .photo-slot .photo-open{height:150px}
  .photo-slot-actions{padding:2px 6px;min-height:44px}
  .photo-slot-actions .intake-photo-remove{min-height:44px}
  .photo-slot-actions>span{font-size:10px}
}
.direct-image-notice{font-size:13px;color:#257783;line-height:1.8;background:#eaf9fb;border:1px solid #bce2e8;border-radius:9px;padding:13px 14px}
.image-choice-help{font-size:12px;color:#8199a3;line-height:1.9;margin:0 0 12px}
.direct-target-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.direct-target-options .target-photo img{height:170px}
.assessment-name-field .muted{font-size:12px;line-height:1.8;margin:8px 0 0}
.assessment-name-field input[readonly]{background:#f1f8fa;color:#3b7280;border-color:#cbdfe5}
.assessment-name-field input:disabled{background:#f8fafb;color:#99acb3;cursor:not-allowed}
.assessment-name-field .known-color-name{color:#4d8d99}
@media(max-width:767px){.direct-target-options .target-photo img{height:160px}}
@media(max-width:479px){
 .report-hero{grid-template-columns:minmax(0,1fr);gap:16px}
 .report-color-image{height:300px}
 .report-color-details{padding-top:0}
 .client-report h3{margin-bottom:16px}
 .report-risk-list{padding:17px}
}

/* Customer revision loop and the stylist's conditions for reconsideration. */
.customer-decision-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.badge.rose{color:#a6384a;background:#fff0f4}
.assessment-info-request{margin-bottom:18px}
.assessment-info-request p{margin-top:0;white-space:pre-wrap}
.customer-decision-actions .btn:last-child{border-color:#dfb1ba;color:#a6384a;background:#fff6f8}
.customer-revision{background:#fff7e9;border:1px solid #f0dab7;border-radius:12px;padding:18px;margin-bottom:22px}
.customer-revision h4{color:#885f2e;font-size:15px;margin:0}
.customer-revision p{font-size:14px;line-height:1.9;color:#635543;margin:10px 0}
.customer-revision>small{color:#9b886e;font-size:12px}
.response-tags{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.response-tags span{padding:4px 9px;border-radius:6px;background:#f7ead2;color:#8c6531;font-size:12px}
.assessment-unavailable{border:1px solid #efd2d9;background:#fff7f9;border-radius:12px;padding:18px;margin:18px 0}
.assessment-unavailable .field{margin-bottom:15px}
.assessment-message-preview{border-top:1px solid #efdce1;padding-top:14px;margin-top:15px}
.assessment-message-preview b{font-size:13px;color:#9c4556;font-weight:500}
.assessment-message-preview p{font-size:13px;color:#816772;line-height:1.9;margin:9px 0 0}
.customer-notice-task{background:#fff5f7;border:1px solid #eed2da;border-radius:12px;padding:18px;margin-top:16px;font-size:14px;color:#8a5360;line-height:1.9}
.customer-notice-task>b{color:#a83c51;font-weight:500}
.customer-notice-task .btn{margin-top:9px;width:100%}
.notice-message{padding:12px;background:white;border-radius:8px;color:#687e89}
.report-prerequisites{background:linear-gradient(125deg,#fff1f4,#fff8f6);border:1px solid #f1cfd7;border-radius:12px;padding:20px;margin:0 0 22px;color:#985360}
.report-prerequisites h4{margin:0 0 12px;font-size:16px;font-weight:500;color:#bd384b}
.report-prerequisites p{font-size:14px;line-height:1.9;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.assessment-history{margin-top:24px;background:#fff;border:1px solid #e2e9ed;border-radius:12px;padding:20px}
.assessment-history>summary{cursor:pointer;color:#61808c;font-size:14px;line-height:1.8;min-height:30px}
.revision-history-item{padding:18px 0;border-bottom:1px solid #edf1f3;font-size:14px;color:#647b85}
.revision-history-item b{font-weight:500;color:#416370}
.revision-history-item p{line-height:1.8;margin:7px 0}
.revision-history-item small{font-size:12px;color:#91a3ab}
.revision-history-photos{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.revision-history-photos .photo-open{width:110px;height:125px}
.previous-assessment{margin-top:16px}
.previous-assessment>summary{cursor:pointer;color:#79919a;font-size:13px;line-height:1.9;padding:8px 0}
.previous-assessment .client-report{max-width:680px;margin-top:10px}
.response-reasons{border:0;padding:0;margin:20px 0}
.response-reasons legend{font-size:14px;color:#416574;margin-bottom:10px}
.response-reasons>div{display:flex;flex-wrap:wrap;gap:9px}
.response-reasons label{cursor:pointer}
.response-reasons input{position:absolute;opacity:0;width:1px;height:1px}
.response-reasons span{display:block;border:1px solid #dbe6eb;background:#f8fafb;border-radius:8px;padding:10px 12px;font-size:14px;color:#6c8590;min-height:44px}
.response-reasons input:checked+span{color:#00636a;border-color:#79c7d0;background:#e6f8fa}
.response-reasons input:focus-visible+span{outline:2px solid #50a5d2;outline-offset:2px}
.response-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:20px}
.response-photo-field{min-width:0}
.response-photo-field h4{margin:0;font-size:14px;color:#436b79}
.response-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.response-photo-grid figure{margin:0;border:1px solid #e3ebef;border-radius:8px;overflow:hidden}
.response-photo-grid .photo-open{width:100%;height:130px;border:0;border-radius:0}
.response-photo-remove{display:block;width:100%;min-height:38px;border:0;border-top:1px solid #e3ebef;background:white;color:#8c7c84;font-size:12px;cursor:pointer}
.response-photo-meta{display:flex;align-items:center;justify-content:space-between;padding:0 6px;border-top:1px solid #e3ebef;background:white}
.response-photo-meta span{font-size:11px;color:#6b94a3}
.response-photo-meta .response-photo-remove{width:auto;border:0;padding:5px;font-size:11px}
.response-photo-zoom{margin-top:18px;padding:12px;background:#f3f8fa;border-radius:10px}
.response-photo-zoom img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:0 auto 10px}
.response-photo-zoom .btn{width:100%}
.shipping-entry>.field{margin:15px 0}
.shipping-paste{padding:15px;background:#f0f9fb;border:1px solid #cde4e9;border-radius:11px}
.shipping-paste .field{margin:0}
.shipping-paste textarea{min-height:92px;background:#fff;font-size:14px;line-height:1.8}
.shipping-paste-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.shipping-paste-controls p{font-size:12px;line-height:1.8;color:#6c8e99;margin:0}
.shipping-paste-controls .btn{flex-shrink:0;min-height:42px}
.shipping-parse-status{font-size:12px;color:#6a919d;line-height:1.8;margin:10px 0 17px}
.shipping-parse-status.needs-check{color:#ad7c39}
.shipping-region-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.shipping-region-row>.field{min-width:0}
.shipping-region-row input{width:100%;min-width:0}
.shipping-payment-note{border-top:1px solid #e5ecef;margin-top:20px;padding-top:17px}
@media(max-width:767px){
 .shipping-region-row{gap:8px}
 .shipping-entry input,.shipping-entry textarea{font-size:16px}
 .shipping-paste{padding:12px}
 .shipping-paste-controls{flex-wrap:wrap;gap:8px}
}
[hidden]{display:none!important}
@media(max-width:767px){
 .customer-decision-actions,.response-photos{grid-template-columns:minmax(0,1fr)}
 .response-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .response-photo-grid .photo-open{height:120px}
 .response-photo-remove{min-height:44px}
 .assessment-unavailable,.customer-revision{padding:15px}
 .customer-notice-task{padding:16px}
}

/* Each role sees the current task; previous rounds stay closed until needed. */
.case-handoff{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:19px 22px;background:#edf8fa;border:1px solid #d8e9ee;border-radius:12px;margin:18px 0 10px}
.case-contact{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:#94a6ae;margin-top:6px;overflow-wrap:anywhere}
.case-handoff span{display:block;font-size:12px;color:#5e8c99;margin-bottom:5px}
.case-handoff h3{font-size:18px;line-height:1.6;color:#245967;font-weight:500;margin:0}
.case-handoff p{font-size:13px;color:#6a8792;line-height:1.8;margin:5px 0 0}
.case-handoff>b{flex-shrink:0;font-weight:400;font-size:12px;padding:5px 9px;background:white;border:1px solid #dcebee;border-radius:6px;color:#6e8e99}
.process-track{margin:0 0 18px}
.process-track>summary{font-size:12px;line-height:1.8;min-height:36px;padding:7px 1px;color:#91a6ad;cursor:pointer}
.process-track .steps{margin-top:10px}
.revision-source .source-title{align-items:flex-start}
.revision-eyebrow{display:block;font-size:11px;color:#4b98a6;letter-spacing:.5px;margin-bottom:5px}
.revision-current .customer-revision{margin-top:18px}
.revision-current .customer-revision h4{font-size:14px}
.revision-field-updates{margin:20px 0}
.revision-field-updates h4{font-size:14px;color:#456c78;font-weight:500;margin-bottom:10px}
.revision-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.revision-photo-grid .source-photo{height:240px;grid-column:auto}
.revision-photo-grid:has(>.source-photo:only-child){grid-template-columns:minmax(0,1fr)}
.revision-photo-grid:has(>.source-photo:only-child) .source-photo{height:330px}
.revision-current .target-photo-grid:has(>.target-photo:only-child){grid-template-columns:minmax(0,1fr)}
.revision-current .target-photo-grid:has(>.target-photo:only-child) .target-photo img{height:330px}
.carried-reference-note,.revision-text-only{font-size:13px;color:#82979f;line-height:1.9;margin:16px 0}
.review-archive{border-top:1px solid #e1e9ed;margin-top:25px;padding-top:12px}
.review-archive>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;cursor:pointer;list-style:none;color:#63828f;font-size:14px;line-height:1.8}
.review-archive>summary::-webkit-details-marker{display:none}
.review-archive>summary span:before{content:'＋';margin-right:8px;color:#7b9ba6}
.review-archive[open]>summary span:before{content:'－'}
.review-archive>summary small{font-size:11px;font-weight:400;color:#98aab1;white-space:nowrap}
.review-archive-body{padding-top:20px}
.review-archive-body>h3,.previous-submission>h3{font-size:15px;font-weight:500;color:#698792;margin:0 0 15px}
.review-archive-body .revision-photo-grid .source-photo{height:190px}
.review-archive-body .revision-photo-grid:has(>.source-photo:only-child) .source-photo{height:260px}
.review-archive-body>.kv-grid{margin:22px 0}
.previous-submission{border-top:1px solid #e6edf0;padding-top:20px;margin-top:24px}
.previous-submission .client-report{padding:20px}
.earlier-rounds>summary{cursor:pointer;color:#8aa0aa;font-size:12px;line-height:1.8;padding:18px 0 0}
.previous-target-choices{margin-top:14px}
.previous-target-choices>summary{font-size:12px;line-height:1.9;color:#8099a4;cursor:pointer;min-height:36px;padding:7px 0}
.previous-target-choices .target-photo-grid{margin-top:9px}
.case-result-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.6fr);gap:24px;align-items:start}
.case-current-result,.case-support{min-width:0}
.case-support{display:grid;gap:16px}
.case-support .assessment-history{margin-top:0}
.support-fold{background:white;border:1px solid #e2e9ed;border-radius:12px;padding:18px}
.support-fold>summary{font-size:14px;line-height:1.8;color:#64818e;cursor:pointer;min-height:32px}
.support-fold>summary small{display:block;font-size:11px;color:#9aadb5;font-weight:400;margin-top:4px}
.support-fold>.assessment-source{padding:18px 0 0;border:0;border-radius:0;box-shadow:none}
.case-support .source-title{display:none}
.case-support .current-photo-grid,.case-support .target-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.case-support .source-photo,.case-support .source-photo.lead-photo{height:180px;grid-column:auto}
.case-support .preference-summary{grid-template-columns:1fr 1fr}
.current-case-actions{margin-bottom:18px}
.current-case-actions .report-export-actions{margin:0}
.submitted-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.submitted-summary h3{font-size:24px;line-height:1.6;font-weight:500;color:#236476;margin:6px 0 8px;overflow-wrap:anywhere}
.submitted-summary p{font-size:14px;color:#74909b;line-height:1.9;margin:6px 0}
.submitted-summary .submitted-photo{width:140px;height:185px;flex-shrink:0}
.submitted-reason{border-top:1px solid #e5edef;padding-top:18px;margin-top:20px!important}
.submitted-risk-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.submitted-risk-tags span{color:#aa5767;background:#fff3f6;font-size:12px;border-radius:6px;padding:5px 8px}
.submitted-summary .submitted-risk-note{color:#a76b79;font-size:13px;margin-top:15px}
.submitted-plan-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.submitted-plan-actions .btn:last-child{color:#8a9da6;border-color:#e0e8ec;background:#fafcfc}
.revision-edit-note{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#7b8390;font-size:13px;line-height:1.8;margin:0 0 18px;padding:12px 16px;background:#f4f7fa;border-radius:9px}
.revision-edit-note .btn{flex-shrink:0}
.info-needed-card{margin-bottom:20px}
.info-needed-card h3,.revision-waiting-note h3,.waiting-case h3{font-size:17px;font-weight:500;line-height:1.7;color:#456b78;margin-top:0}
.info-needed-card p,.revision-waiting-note p,.waiting-case p{font-size:14px;line-height:1.9;color:#77909b}
@media(max-width:1199px){
 .case-result-layout{grid-template-columns:minmax(0,1fr)}
 .case-support{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .review-archive-body .client-report{max-width:680px}
}
@media(max-width:767px){
 .case-handoff{padding:15px;gap:10px;margin-top:15px}
 .case-handoff h3{font-size:16px}
 .case-handoff p{font-size:12px}
 .case-handoff>b{font-size:11px;padding:4px 6px;max-width:90px;line-height:1.7}
 .case-support{grid-template-columns:minmax(0,1fr)}
 .case-result-layout{gap:18px}
 .review-archive>summary{display:block;padding:9px 0}
 .review-archive>summary small{display:block;padding-left:22px;white-space:normal}
 .revision-photo-grid .source-photo{height:190px}
 .revision-photo-grid:has(>.source-photo:only-child) .source-photo{height:300px}
 .revision-current .target-photo-grid:has(>.target-photo:only-child) .target-photo img{height:300px}
 .submitted-summary .submitted-photo{width:105px;height:145px}
 .submitted-summary h3{font-size:21px}
 .submitted-plan-head{gap:14px}
 .submitted-plan-actions .btn{flex:1;min-height:44px}
 .revision-edit-note{align-items:flex-start;flex-direction:column}
 .revision-edit-note .btn{align-self:flex-end}
}

/* Phone reassessments start with the new photos, before explanatory text. */
.revision-photo-section{margin-top:22px}
.revision-new-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.revision-new-photo-grid:has(>.revision-new-photo:only-child){grid-template-columns:minmax(0,1fr)}
.revision-new-photo{margin:0;min-width:0}
.revision-new-photo>figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:1.8;color:#436b79;margin-bottom:8px}
.revision-new-photo>figcaption span{font-size:10px;color:#74a4b1;font-weight:400}
.revision-new-photo .target-photo img,.revision-new-photo .source-photo{height:240px}
.revision-base-photo{border:2px solid #dfebee;border-radius:10px;overflow:hidden;background:#fff}
.revision-base-photo .source-photo{border:0;border-radius:0;width:100%}
.revision-photo-open{display:block;width:100%;min-height:36px;border:0;padding:9px 6px;font:inherit;font-size:12px;color:#78929c;background:white;cursor:pointer}
.revision-new-photo-grid:has(>.revision-new-photo:only-child) .target-photo img,.revision-new-photo-grid:has(>.revision-new-photo:only-child) .source-photo{height:330px}
@media(max-width:767px){
 .revision-current{display:flex;flex-direction:column}
 .revision-current>.revision-photo-section{order:-1;margin:0 0 8px}
 .revision-new-photo-grid{gap:10px}
 .revision-new-photo>figcaption{font-size:12px;display:block;margin-bottom:6px}
 .revision-new-photo>figcaption span{display:none}
 .revision-new-photo .target-photo img,.revision-new-photo .source-photo{height:190px}
 .revision-new-photo-grid:has(>.revision-new-photo:only-child) .target-photo img,.revision-new-photo-grid:has(>.revision-new-photo:only-child) .source-photo{height:280px}
 .revision-new-photo .target-photo button>span,.revision-photo-open{min-height:44px;line-height:1.5;padding:12px 5px;font-size:11px}
 .review-photo-focus #main>header,.review-photo-focus #storage-note{display:none}
 .review-photo-focus .case-banner{padding:12px;gap:8px;margin-bottom:10px}
 .review-photo-focus .case-reference small,.review-photo-focus .case-reference>span:not(.badge){display:none}
 .review-photo-focus .case-handoff{padding:12px;margin:10px 0}
 .review-photo-focus .case-handoff p{display:none}
 .review-photo-focus .process-track{margin-bottom:8px}
 .review-photo-focus .detail-tabs:has(>.tab:only-child){display:none}
 .review-photo-focus .revision-source>.source-title{margin-bottom:14px;padding-bottom:12px}
 .review-photo-focus .revision-source>.source-title>span,.review-photo-focus .revision-eyebrow{display:none}
 .review-photo-focus .revision-source>.source-title h3{font-size:15px;margin:0}
 .revision-waiting>.revision-source{order:0}
 .revision-waiting>.revision-waiting-note{order:1}
}

/* 寄送计算与客服必达：同一组数据，分别突出备料、净重与下一次触达。 */
.weight-presets{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.weight-presets .btn{min-height:40px;padding:8px 13px}
.delivery-formula h4{font-size:15px;margin:22px 0 8px;color:var(--ink)}
.delivery-formula .formula-line{gap:12px}
.delivery-formula .formula-line span{min-width:0;overflow-wrap:anywhere}
.delivery-formula .formula-line b{white-space:nowrap}
.delivery-formula .formula-total{background:#effafa;border-radius:9px;padding:12px}
.delivery-formula details summary{font-size:13px}
.arrival-summary{padding:4px 0 16px}
.arrival-summary h3{margin:10px 0;font-variant-numeric:tabular-nums}
.contact-task{border-top:3px solid #30bdc8}
.contact-task .cardhead{align-items:flex-start;flex-wrap:wrap;gap:10px}
.contact-task .cardhead h3{font-size:17px;line-height:1.6}
.contact-date{font-size:24px;font-weight:500;color:#164f59;font-variant-numeric:tabular-nums;line-height:1.5;margin:12px 0 24px}
.contact-date small{display:block;font-size:12px;color:#75888d;font-weight:400;margin-top:2px}
.contact-task .question-fields [data-contact-complete],.contact-task .question-fields [data-contact-reschedule]{display:grid;gap:16px}
.contact-task [data-contact-complete][hidden],.contact-task [data-contact-reschedule][hidden]{display:none}
.contact-overdue{border-top-color:#d84d53}
.contact-overdue .contact-date,.followup-urgent{color:#c83c46!important}
.followup-inline{display:block;font-size:11px;line-height:1.7;color:#487680;margin-top:7px}
.followup-alert{margin:18px 0;background:#fff2ed;color:#8d3a32;border:1px solid #f5d0c8}
.followup-alert p{font-size:13px;line-height:1.8}
.eta-rules{margin:18px 0;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.eta-rules>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.eta-rules b{white-space:nowrap;font-weight:500}
@media(max-width:600px){
  .eta-rules{grid-template-columns:1fr}
  .contact-task .cardhead h3{font-size:16px}
  .contact-date{font-size:22px}
  .weight-presets{gap:7px}
  .weight-presets .btn{flex:1 0 27%;min-height:44px}
  .delivery-formula .formula-line{font-size:14px}
  .contact-task .form-actions .btn{width:100%;min-height:46px}
}

/* 称量岗位：客户标签 → 两步作业 → 一次完成复核。 */
.fulfillment-focus #main>header{display:none}
.work-page{max-width:1040px;margin:0 auto;min-width:0}
.work-back{margin-bottom:14px}
.work-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 22px}
.work-heading h2{font-size:23px;line-height:1.5;margin:5px 0;font-weight:550;overflow-wrap:anywhere}
.work-heading .eyebrow{font-size:11px;letter-spacing:1px}
.work-id{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.work-heading>.badge{flex-shrink:0}
.work-steps{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.work-step{padding:24px;min-width:0}
.work-step-title{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.work-step-title>span{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;background:#dffbfc;color:#11606c;font-size:17px;font-weight:600}
.work-step-title h3{margin:0;font-size:18px;font-weight:550}
.work-hint{font-size:12px;line-height:1.8;color:#74858a;margin:0 0 14px}
.work-amounts .formula-line{min-height:55px;gap:14px;padding:12px 0;font-size:16px}
.work-amounts .formula-line>span{min-width:0;overflow-wrap:anywhere}
.work-amounts .formula-line>b{font-size:23px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}
.work-total{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f0fafa;padding:14px;border-radius:10px;margin-top:15px;font-size:13px}
.work-total strong{font-size:20px;font-weight:550;white-space:nowrap}
.work-finish{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-top:20px;padding:20px 24px}
.work-person{display:flex;align-items:flex-end;flex:1;gap:10px;min-width:0}
.work-person .field{max-width:240px;flex:1;margin:0}
.work-person select{min-height:48px}
.work-person>.btn{min-height:48px;white-space:nowrap}
.work-complete-button{min-height:54px;min-width:210px;font-size:17px}
.work-completed{margin:20px 0;padding:16px 20px;background:#e8f9f3;border-radius:12px;color:#226e58}
.work-completed>span{font-size:16px;font-weight:550}
.work-completed p{margin:7px 0 0;font-size:13px}
.work-done-actions{margin:18px 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.work-done-actions p{width:100%;margin:0 0 2px}
.work-history{margin:24px 0;color:var(--muted);font-size:13px}
.shipping-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.work-list-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 20px}
.work-list-heading h2{font-size:23px;font-weight:550;margin:0}
.work-search{width:100%;margin:0 0 18px;min-height:48px}
.work-order-list{display:grid;gap:12px}
.work-order{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px}
.work-order h3{margin:0 0 7px;font-size:17px;font-weight:550}
.work-order small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.work-order p{margin:12px 0 0;font-size:14px;color:#416a73}
.work-order>div{min-width:0}
.work-order>div:last-child{display:flex;align-items:center;gap:18px;flex-shrink:0}
.work-empty{padding:30px;text-align:center}
@media(max-width:900px){.work-finish{gap:16px}.work-complete-button{min-width:170px}.work-person .field{max-width:200px}}
@media(max-width:767px){
 .work-steps,.shipping-work{grid-template-columns:1fr;gap:14px}
 .work-heading{margin-bottom:16px;align-items:flex-start}
 .work-heading h2{font-size:21px}
 .work-step{padding:19px}
 .work-step-title h3{font-size:17px}
 .work-amounts .formula-line{min-height:54px}
 .work-amounts .formula-line>b{font-size:24px}
 .work-finish{display:block;padding:18px;margin-top:16px}
 .work-person{gap:8px;margin-bottom:16px}
 .work-person .field{max-width:none}
 .work-person>.btn{font-size:12px;padding-left:11px;padding-right:11px}
 .work-complete-button{width:100%;min-height:56px}
 .work-order{padding:18px;gap:12px;align-items:flex-start}
 .work-order>div:last-child{flex-direction:column;align-items:flex-end;gap:15px}
 .work-order .btn{padding:9px 12px;min-height:44px;font-size:12px}
 .work-order h3{font-size:16px}
 .work-order p{font-size:12px;line-height:1.7}
 .work-list-heading h2{font-size:21px}
 .work-page>.tabs{overflow-x:auto;flex-wrap:nowrap}
 .work-page>.tabs .tab{white-space:nowrap;flex-shrink:0}
}

.auth-screen{width:100%;max-width:none;min-width:0;margin:0;min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#e5fbfd,#f5f8ff)}
.auth-card{width:min(440px,100%);min-width:0;padding:32px;display:grid;gap:18px}
.auth-card h1{font-size:25px;margin:0;font-weight:550}.auth-card p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
.auth-card label{display:grid;gap:9px;font-size:14px}.auth-card input{width:100%;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:9px;font:inherit}
.auth-card .btn{min-height:50px}.auth-card .form-error{color:#b83743}
.work-labels{display:grid;gap:7px;margin-top:10px;font-size:13px}.work-labels b{font-weight:550;color:#225964}.work-labels small{color:var(--muted);font-size:11px}
.optional-address{margin:20px 0}.optional-address>summary,.shipping-payment-note>summary{cursor:pointer;font-size:13px;color:#587780;padding:10px 0}
.library-search{display:flex;gap:10px;margin:18px 0}.library-search input{flex:1;min-width:0}
.managed-library,.managed-accounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.managed-library article>img{display:block;width:100%;height:240px;object-fit:contain;background:#f4f7f8;border-radius:10px}.managed-library h3{font-size:17px;margin:15px 0 8px}
.managed-accounts{grid-template-columns:repeat(2,minmax(0,1fr))}.managed-accounts h3{font-size:16px}.managed-accounts small{font-size:12px;font-weight:400;color:var(--muted)}.managed-accounts p{font-size:13px;line-height:1.8;color:var(--muted)}
.recipe-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.same-color-recipes{margin:20px 0 28px}
.recipe-item .cardhead{align-items:flex-start;flex-wrap:wrap;gap:12px}.recipe-item h3{font-size:16px;margin:0 0 5px}.recipe-item small{font-size:12px;color:var(--muted)}.recipe-item input[type=radio]{accent-color:var(--accent-ink);margin-right:6px}
.recipe-image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;min-width:0}.recipe-image-group{min-width:0;max-width:100%}.recipe-image-group>b{font-size:12px;font-weight:500;color:var(--muted)}.recipe-image-group>div{display:flex;width:100%;max-width:100%;min-width:0;gap:6px;overflow-x:auto;margin-top:9px}
.recipe-image-group img{display:block;flex:0 0 100%;width:100%;min-width:0;max-width:100%;height:170px;object-fit:contain;background:#f4f7f8;border-radius:8px}.recipe-ratios{font-size:13px;line-height:1.9;background:#eff8fa;padding:12px;border-radius:8px;overflow-wrap:anywhere}
.editor-photos{display:flex;gap:8px;overflow-x:auto}.editor-photos figure{margin:0;flex-shrink:0;width:110px}.editor-photos img{width:110px;height:130px;object-fit:contain}.editor-photos .btn{min-height:36px;width:100%;padding:6px}
.editor-color-photo{width:100%;height:260px;object-fit:contain;margin-top:15px}.grant-list{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
@media(max-width:900px){.managed-library{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.managed-library,.managed-accounts,.recipe-library-list{grid-template-columns:1fr}.auth-screen{padding:16px}.auth-card{padding:25px}.recipe-image-group img{height:160px}.grant-list{grid-template-columns:1fr}}

/* 登录页与工作台布局隔离；所有网格内容限制在自己的列内。 */
#content{width:100%;max-width:100%}
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.stats>*,.managed-library>*,.managed-accounts>*,.recipe-library-list>*,.recipe-image-pair>*,.work-steps>*,.shipping-work>*,.formgrid>*{min-width:0;max-width:100%}
.managed-library h3,.managed-accounts h3,.managed-accounts small,.recipe-item h3,.work-labels{overflow-wrap:anywhere}
.database-tools{flex-wrap:wrap;align-items:center}
.database-tools>.sub{flex:1 1 240px}
.database-tools>.filters{flex:0 1 auto}
.sql-results{min-width:0;max-width:100%;overflow:auto}
@media(min-width:768px) and (max-width:1199px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-library-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .database-tools>.sub{flex:0 1 auto}
 .database-tools>.filters{width:100%}
 .sql-results.tablewrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:12px}
 .sql-results.tablewrap table{display:table;width:100%}
 .sql-results.tablewrap thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
 .sql-results.tablewrap tbody{display:table-row-group}
 .sql-results.tablewrap tr{display:table-row;padding:0;background:transparent;border:0}
 .sql-results.tablewrap td{display:table-cell;padding:12px;white-space:nowrap}
 .sql-results.tablewrap td:first-child,.sql-results.tablewrap td:nth-child(2){border-bottom:1px solid var(--line);padding:12px}
}

/* 客户昵称与联系账号放在同一区域，昵称不增加必填项。 */
.intake-account-fields{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,2fr);gap:16px;align-items:end}
.intake-account-fields>*{min-width:0}
.intake-account-name .field label{font-size:12px;color:#6b8187;margin-bottom:7px}
.intake-account-name input{min-height:48px;background:#fbfdfd}
@media(max-width:767px){.intake-account-fields{grid-template-columns:minmax(0,1fr);gap:14px}}

.sql-image-cell{display:flex;align-items:center;gap:10px;white-space:nowrap}.sql-image-cell>a{color:var(--accent-ink);text-decoration:none}.sql-image-cell>.btn{min-height:34px;padding:5px 10px;font-size:12px}

/* 会话恢复提示留在表单中，重新登录不销毁正在填写的内容。 */
.session-notice{margin:0 0 18px;overflow-wrap:anywhere}
.session-notice p{font-size:13px;line-height:1.8;margin:8px 0 12px}
form[aria-busy="true"] button[type="submit"]{cursor:wait}

/* 客户列表：常用筛选常驻，人员和日期按需展开。 */
.customer-filter-panel{background:#fff;border:0;border-radius:12px;padding:18px;margin-bottom:16px;min-width:0}
.customer-filter-main{display:grid;grid-template-columns:minmax(200px,1.5fr) minmax(115px,.65fr) minmax(145px,.9fr) minmax(230px,1.2fr);gap:12px;align-items:end}
.customer-filter-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;color:var(--muted)}
.customer-filter-field select,.customer-filter-field input{height:42px;border:0;border-radius:9px;background:#f2f5f5;color:var(--ink);font:inherit;font-size:13px;padding:8px 10px;width:100%;min-width:0;max-width:100%}
.customer-search{min-width:0}.customer-search .input{width:100%;height:42px;min-width:0}
.customer-sort{display:flex;gap:6px;align-items:end;min-width:0}.customer-sort>.customer-filter-field{flex:1}.sort-direction{height:42px;white-space:nowrap;padding:8px 10px}
.customer-filter-more{margin-top:16px;padding-top:4px;border-top:0}.customer-filter-more summary{font-size:13px;color:var(--accent-ink);cursor:pointer}.filter-count{display:inline-block;background:var(--accent-soft);padding:0 6px;border-radius:4px}
.customer-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-top:16px}.customer-date-range{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.customer-filter-hint{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0 0}
.customer-filter-chips{display:flex;flex-wrap:wrap;gap:6px;padding-top:14px}.customer-filter-chips>span{font-size:12px;color:var(--accent-ink);background:var(--accent-soft);padding:5px 9px;border-radius:5px;overflow-wrap:anywhere;max-width:100%}
.customer-filter-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.customer-filter-bottom .btn{font-size:12px;padding:5px 9px}
.customer-people,.customer-times{display:grid;gap:5px;font-size:12px;white-space:normal;overflow-wrap:anywhere;min-width:140px}.customer-times small{color:#758388;font-size:11px}
@media(max-width:1199px){.customer-filter-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.customer-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-date-range{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.customer-filter-panel{padding:14px}.customer-filter-main{gap:12px}.customer-search{grid-column:1/-1}.customer-sort{grid-column:1/-1}.customer-filter-grid{gap:12px}.customer-date-range{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-date-range>.customer-filter-field:first-child{grid-column:1/-1}.customer-people,.customer-times{min-width:0;max-width:100%}.customer-filter-field select{font-size:14px}}

/* 客户页用留白和浅底色组织信息，移除重复的轮廓和分隔线。 */
.customer-tabs{border-bottom:0;padding-bottom:0;margin-bottom:14px}
.customer-filter-panel{padding:22px 24px;margin-bottom:22px;border-radius:16px}
.customer-search .input{border:0;border-radius:9px;background:#f2f5f5;box-shadow:none}
.customer-filter-panel .sort-direction{border:0;background:#f2f5f5;border-radius:9px}
.customer-filter-panel .customer-filter-bottom .btn{border:0;background:transparent;color:var(--muted)}
.customer-filter-panel select:focus-visible,.customer-filter-panel input:focus-visible,.customer-filter-panel button:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px}
.customer-filter-more[open]{margin-top:22px}.customer-filter-grid{padding-top:20px;gap:20px}
.customer-filter-chips>span{background:#eff7f7}.customer-filter-bottom{margin-top:20px}
.customer-records.panel{border:0;border-radius:16px;background:#fff}
.customer-records.panel table th{border:0;background:#fff;color:#809094;font-weight:400;padding-top:18px;padding-bottom:18px}
.customer-records.panel table td{border:0;padding-top:22px;padding-bottom:22px}
.customer-records tbody tr:nth-child(even){background:#f8fafa}
.customer-records tbody tr:hover{background:#eff8f8}
.customer-records .customer-people,.customer-records .customer-times{gap:7px;line-height:1.6}
@media(max-width:767px){
 .customer-filter-panel{padding:18px 16px;margin-bottom:18px;border-radius:14px}
 .customer-filter-grid{gap:16px 12px}
 .customer-records.panel{border:0;border-radius:0;background:transparent}
 .customer-records.tablewrap tbody{gap:14px}
 .customer-records.tablewrap tr,.customer-records tbody tr:nth-child(even){border:0;border-radius:14px;background:#fff;padding:20px 16px;box-shadow:none}
 .customer-records.panel.tablewrap td{padding:0;border:0}
 .customer-records.tablewrap td:first-child{border:0;padding-bottom:6px}
}

.consultation-page{max-width:900px;margin:0 auto}.consultation-heading{padding:16px 4px 24px}.consultation-heading h2{font-size:27px;margin:0 0 12px}.consultation-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border-radius:16px;padding:24px}.consultation-summary h3{font-size:26px;font-weight:500;margin:8px 0 12px}.consultation-summary p{margin-bottom:0;overflow-wrap:anywhere}.consultation-next{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 4px}.consultation-next h3{font-size:16px;margin:0 0 8px}.consultation-next p{margin:0;line-height:1.8}.consultation-record{padding:18px 4px}.consultation-record summary{font-size:14px;color:var(--accent-ink);cursor:pointer}.consultation-summary .btn,.consultation-next .btn{flex-shrink:0}
@media(max-width:767px){.consultation-summary{padding:20px;align-items:flex-start;flex-direction:column;gap:14px}.consultation-next{align-items:stretch;flex-direction:column;gap:16px}.consultation-summary h3{font-size:24px}.consultation-page .case-contact{flex-wrap:wrap;overflow-wrap:anywhere}}
