.customer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px;margin-bottom:8px}.customer-toolbar>div{display:flex;align-items:center;gap:14px;font-size:var(--fs-note);color:var(--muted)}.customer-count{font-size:var(--fs-small);letter-spacing:0;color:var(--ink)}.customer-card{border:0;border-top:1px solid var(--line);background:transparent;border-radius:var(--r-0);overflow:hidden}.customer-table-wrap{position:relative;overflow:auto}.customer-table{border-collapse:collapse;width:100%;text-align:left;font-size:var(--fs-note)}.customer-table th{height:40px;padding:8px 16px;border-bottom:1px solid var(--line);white-space:nowrap}.customer-table td{height:64px;padding:0 16px;border-bottom:1px solid var(--bone);vertical-align:middle}.customer-table tr:last-child td{border-bottom:0}.customer-table td strong{font-weight:500}.customer-table small{display:block;color:var(--muted);font-size:var(--fs-note);margin-top:5px}.customer-sequence{font-family:var(--mono);font-size:var(--fs-note);overflow-wrap:anywhere;min-width:180px;max-width:380px;letter-spacing:0}.customer-type{font-size:var(--fs-note);border:1px solid var(--line);background:var(--ivory);color:var(--st-neutral-t);padding:4px 8px;border-radius:var(--r-ctl)}.customer-row-actions{white-space:nowrap}.customer-row-actions button+button{margin-left:8px}.customer-empty{text-align:center;padding:60px 25px}.customer-empty-symbol{display:grid;place-items:center;margin:0 auto 23px;width:44px;height:44px;border:1px solid var(--line);border-radius:var(--r-pill);font-size:var(--fs-title);color:var(--forest)}.customer-empty h3{font-size:var(--fs-title);letter-spacing:-.015em;font-weight:500;margin-bottom:13px}.customer-empty p{max-width:410px;margin:0 auto 25px;font-size:var(--fs-note);line-height:1.9;color:var(--muted)}.customer-library{margin-top:42px}.customer-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:24px}.customer-section-heading .eyebrow{margin-bottom:9px}.customer-section-heading h2{font-size:var(--fs-section);letter-spacing:0;font-weight:500;margin:0;line-height:1.25}.customer-section-heading p:not(.eyebrow){color:var(--muted);line-height:1.8;margin:0}.customer-section-heading>.button,.customer-section-heading>.text-link{flex-shrink:0}.customer-universal{border-block:1px solid var(--line)}.customer-universal>summary{padding:20px 0;font-size:var(--fs-note);cursor:pointer}.customer-universal>summary>span{float:right;font-size:var(--fs-note);color:var(--muted)}.customer-universal .customer-table-wrap{border-top:1px solid var(--line)}.customer-note{margin-top:24px;padding:17px 20px;border-left:2px solid var(--gold);background:var(--sunken);display:flex;align-items:baseline;gap:18px;color:var(--muted)}.customer-note .small-label{white-space:nowrap}.customer-note p{font-size:var(--fs-note);line-height:1.8;margin:0}.customer-record-link{font-family:var(--mono);background:none;text-align:left;padding:0;font-size:var(--fs-note);font-weight:600}.customer-record-link:hover{text-decoration:underline;text-underline-offset:3px}.customer-security-links{display:flex;flex-wrap:wrap;gap:18px}.customer-dialog{padding:32px;max-width:min(560px,calc(100vw - 32px));width:560px;max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:var(--r-float);background:var(--surface);color:var(--ink);overscroll-behavior:contain}.customer-dialog::backdrop{background:color-mix(in srgb,var(--night) 44%,transparent);backdrop-filter:blur(3px)}.customer-dialog-wide{width:880px;max-width:min(880px,calc(100vw - 32px))}.customer-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}.customer-dialog-heading .eyebrow{margin-bottom:8px}.customer-dialog-heading h2{font-size:var(--fs-title);font-weight:500;letter-spacing:-.015em;line-height:1.15;margin:0}.customer-dialog-heading>.icon-button{flex-shrink:0}.customer-form{display:grid;gap:20px}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.customer-field{display:grid;gap:9px;min-width:0}.customer-field>span{font-size:var(--fs-note);font-weight:500}.customer-field input,.customer-field select,.customer-field textarea{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--surface);font:400 var(--fs-small) var(--sans);color:var(--ink)}.customer-field textarea{line-height:1.7;resize:vertical}.customer-radio{border:0;margin:0;padding:0;display:flex;gap:25px}.customer-radio legend{font-size:var(--fs-note);font-weight:500;margin-bottom:12px}.customer-radio label{display:flex;align-items:center;gap:8px;font-size:var(--fs-note)}.customer-radio input{accent-color:var(--forest)}.customer-form-actions{display:flex;justify-content:flex-end;gap:15px;padding-top:20px;border-top:1px solid var(--line)}.customer-form-error{margin:0}.customer-quote-lines{display:grid;gap:20px}.customer-quote-line{display:grid;grid-template-columns:2fr 1.2fr 85px 85px 44px;gap:12px;align-items:end;padding-bottom:22px;border-bottom:1px solid var(--line)}.customer-quote-line .icon-button{width:44px;min-width:0;align-self:end;font-size:var(--fs-title);line-height:1;height:44px}.customer-line-price{min-height:69px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;font-size:var(--fs-note);color:var(--muted);padding-bottom:12px}.customer-line-price strong{font-size:var(--fs-caption);color:var(--ink);font-weight:500}.customer-add-line{justify-self:start}.customer-quote-total{display:flex;align-items:center;justify-content:flex-end;gap:25px;padding:20px 0;font-size:var(--fs-note)}.customer-quote-total strong{font-size:var(--fs-title);font-weight:400;letter-spacing:-.015em}.customer-quote-document>h2{font-size:var(--fs-kpi);font-family:var(--sans);font-weight:500;letter-spacing:-.015em;margin-bottom:2px}.customer-quote-reference{font-size:var(--fs-note);font-weight:600}.customer-quote-warning{background:var(--sunken);border-left:2px solid var(--gold);padding:12px 16px;font-size:var(--fs-note);line-height:1.8}.customer-quote-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.customer-quote-meta>div{display:flex;gap:15px;font-size:var(--fs-note)}.customer-quote-meta dt{color:var(--muted)}.customer-quote-meta dd{margin:0}.customer-quote-comments{font-size:var(--fs-note);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.customer-quote-document>.field-help{margin-bottom:25px}
@media(max-width:1100px){.customer-quote-line{grid-template-columns:2fr 1.3fr 75px 65px 44px;gap:10px}.customer-toolbar>div{gap:10px}.customer-toolbar .button{padding-inline:12px}}
@media(max-width:700px){.customer-toolbar{align-items:flex-start;flex-wrap:wrap}.customer-toolbar>div:last-child{flex-wrap:wrap}.customer-section-heading{flex-wrap:wrap}.customer-empty{padding:43px 20px}.customer-empty h3{font-size:var(--fs-title)}.customer-table td,.customer-table th{padding:16px}.customer-library{margin-top:35px}.customer-note{display:block;padding:16px}.customer-note .small-label{display:block;margin-bottom:7px}.customer-dialog{padding:24px 20px;max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px)}.customer-form-grid{grid-template-columns:1fr;gap:18px}.customer-field input,.customer-field textarea,.customer-field select{font-size:var(--fs-body)}.customer-quote-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:16px}.customer-quote-line>.customer-field:first-child{grid-column:1/3}.customer-quote-line>.customer-field:nth-child(2){grid-column:1}.customer-quote-line>.customer-quantity{grid-column:2}.customer-quote-line>.customer-line-price{grid-row:3;grid-column:1/3;min-height:0;display:flex;flex-direction:row;padding:0;justify-content:flex-start;gap:15px}.customer-quote-line>.icon-button{grid-column:3;grid-row:1;align-self:end}.customer-quote-meta{grid-template-columns:1fr;gap:12px}.customer-form-actions>.button{flex:1;min-width:0}.customer-quote-total{justify-content:space-between}.customer-type{white-space:nowrap}}
.customer-print-root{display:none}
@media print{body.customer-print{background:white}body.customer-print>*{display:none!important}body.customer-print>.customer-print-root{display:block!important;padding:25px;color:var(--night)}body.customer-print .customer-table-wrap{overflow:visible}body.customer-print .customer-quote-document .field-help{color:var(--night-2)}body.customer-print .customer-quote-warning{border:1px solid var(--muted);background:white}}

/* Account: one quiet grouped list for identity, laboratory and preferences. */
.account-groups{max-width:1040px;display:grid;gap:32px}
.account-group{min-width:0;border:0;border-radius:var(--r-0);background:transparent}
.account-group h2{margin:0 0 12px;font-size:var(--fs-section);font-weight:500;letter-spacing:0}
.account-group dl{margin:0;border-top:1px solid var(--line)}
.account-row{min-height:52px;display:grid;grid-template-columns:176px minmax(0,1fr) auto;gap:16px;align-items:center;border-bottom:1px solid var(--line);font-size:var(--fs-small)}
.account-row dt{color:var(--muted);font-size:var(--fs-caption)}
.account-row dd{margin:0;min-width:0;overflow-wrap:anywhere;line-height:1.45;padding-block:8px}
.account-row>.account-row-actions{margin:0;padding:0}
.account-row-actions{display:flex;align-items:center;gap:16px;white-space:nowrap}
.account-row-actions .text-link{font-size:var(--fs-small);min-height:44px;margin:0}
.account-avatar-row dd{display:flex;align-items:center;gap:16px;padding:0}
.settings-avatar{width:40px;height:40px;flex-shrink:0;border-radius:var(--r-pill);overflow:hidden;display:grid;place-items:center;font-size:var(--fs-small);background:var(--bone)}
.avatar-art{width:100%;height:100%;display:grid;place-items:center;border-radius:var(--r-pill);overflow:hidden;background:var(--bone);color:var(--ink)}
.account-photo{width:100%;height:100%;object-fit:cover;border-radius:var(--r-pill);display:block}
.profile-chip .avatar{border:0;overflow:hidden}
.avatar-upload{position:relative;cursor:pointer;overflow:hidden}
.avatar-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.avatar-upload:focus-within{outline:2px solid var(--forest);outline-offset:3px}
.avatar-upload:has(input:disabled){opacity:.5;cursor:wait}
.avatar-file-note{font-size:var(--fs-caption);color:var(--muted)}
#avatar-message:empty,#settings-security-status:empty{display:none}
.settings-export-heading h2{margin-bottom:16px}
.settings-export-controls{display:flex;flex-wrap:wrap;align-items:center;gap:24px;margin:0 0 12px;padding-top:16px;border-top:1px solid var(--line)}
.settings-export-controls .customer-field{flex:1;max-width:500px;min-width:200px}
.settings-sequence-option{display:flex;align-items:center;gap:8px;font-size:var(--fs-small);min-height:44px;cursor:pointer}
.settings-sequence-option input{accent-color:var(--forest);width:16px;height:16px;margin:0}
.settings-download-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:16px}
.settings-download-actions>span{font-size:var(--fs-note);color:var(--forest)}
.settings-api{border-top:1px solid var(--line);margin-top:24px}
.settings-api summary{cursor:pointer;min-height:52px;font-size:var(--fs-small);font-weight:500}
.settings-api-status{font-size:var(--fs-caption);font-weight:400;color:var(--muted)}
.settings-api>div{padding-top:8px;font-size:var(--fs-small)}
.settings-endpoints{display:grid;gap:12px;margin:16px 0!important;border-top:0!important}
.settings-endpoints>div{display:grid;grid-template-columns:176px minmax(0,1fr);gap:16px}
.settings-endpoints dt{color:var(--muted);font-size:var(--fs-caption)}
.settings-endpoints dd{margin:0;font-size:var(--fs-caption);overflow-wrap:anywhere}
.settings-api .settings-api-example{font-family:var(--mono);font-size:var(--fs-small);line-height:1.8;white-space:pre;overflow:auto;resize:vertical}
.customer-native-control{display:block;position:relative;min-width:0}
.customer-native-control select,.customer-native-control input[type="date"]{appearance:none;padding-right:40px;background-image:none}
.customer-native-control>.ui-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
.customer-native-control input[type="date"]::-webkit-calendar-picker-indicator{position:absolute;right:8px;width:24px;height:24px;opacity:0;cursor:pointer}
.customer-field input,.customer-field select{height:44px}
.customer-field textarea{min-height:88px}
.customer-table tbody tr:hover{background:var(--sunken)}
.customer-table .customer-date,.customer-table .customer-amount,.customer-table .customer-quantity-cell{text-align:right;white-space:nowrap}
@media(max-width:700px){
  .account-groups{gap:24px}.account-row{grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:4px 0}.account-row dt{grid-column:1;grid-row:1;align-self:end}.account-row dd:not(.account-row-actions){grid-column:1;grid-row:2;padding:2px 0 0;align-self:start}.account-row>.account-row-actions{grid-column:2;grid-row:1/3;gap:8px}.account-row-actions .text-link{font-size:var(--fs-caption)}
  .account-avatar-row{grid-template-columns:72px 40px minmax(0,1fr);gap:8px;padding:0}.account-avatar-row dt{align-self:center}.account-avatar-row dd:not(.account-row-actions){grid-column:2;grid-row:1;padding:0;align-self:center}.account-avatar-row>.account-row-actions{grid-column:3;grid-row:1;justify-content:flex-end}.avatar-file-note{display:none}
  .settings-export-controls{gap:8px}.settings-export-controls .customer-field{min-width:0;flex-basis:100%}.settings-endpoints>div{grid-template-columns:1fr;gap:4px}
  .customer-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;max-height:calc(100dvh - 24px);border-radius:var(--r-float) var(--r-float) 0 0;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .customer-quote-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
}
@media(max-width:760px){.customer-field input,.customer-field select,.customer-field textarea,.settings-api .settings-api-example{font-size:var(--fs-body)}.customer-field input,.customer-field select{height:48px}}

.export-with-help{display:inline-flex;align-items:center;gap:8px;min-width:0}
button.export-help,.results-viewer button.export-help{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;background:transparent;color:var(--st-neutral-t);font-size:var(--fs-note);font-weight:600;line-height:1;border:0;position:relative}

button.export-help:hover,button.export-help[aria-expanded="true"]{color:var(--st-ready-t)}

.export-tooltip[popover]{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:13px 15px;border:1px solid var(--line);border-radius:var(--r-float);background:var(--surface);color:var(--st-neutral-t);box-shadow:0 6px 22px color-mix(in srgb,var(--night-2) 9%,transparent);font:var(--fs-note)/1.65 var(--sans);overflow-wrap:anywhere}
.export-tooltip strong{display:block;font-size:var(--fs-note);font-weight:600;color:var(--night-2);margin-bottom:4px}
.settings-download-actions>.export-with-help{color:inherit}
@media(max-width:760px){.results-viewer .rv-export-actions .export-with-help{flex:1;min-width:0}.results-viewer .rv-export-actions .export-with-help>.rv-button{padding-left:9px;padding-right:9px}.export-tooltip[popover]{font-size:var(--fs-note)}.export-tooltip strong{font-size:var(--fs-note)}}.customer-sequence{font-family:var(--mono)}

.verification-state{display:inline-flex;align-items:center;gap:8px}

.customer-card{font-size:var(--fs-note)}.customer-card .text-link,.customer-table .text-link{font-size:inherit}
.customer-universal>summary,.settings-api>summary{display:flex;align-items:center;gap:8px}
.customer-universal>summary>span,.settings-api-status{margin-left:auto}
.export-help .ui-icon,.results-viewer .export-help .ui-icon{width:16px;height:16px}

/* List edges share the page grid; quotation documents retain their table inset. */
.customer-table:is(.customer-primers-table,.customer-quotes-table) :is(th,td):first-child{padding-left:0}
.customer-table:is(.customer-primers-table,.customer-quotes-table) :is(th,td):last-child{padding-right:0}
@media(max-width:700px){
  .customer-card:has(.customer-primers-table,.customer-quotes-table),.customer-table-wrap:has(.customer-primers-table,.customer-quotes-table){overflow:visible}
  .customer-primers-table,.customer-quotes-table,.customer-primers-table tbody,.customer-quotes-table tbody{display:block;min-width:0}
  .customer-primers-table thead,.customer-quotes-table thead{display:none}
  .customer-table:is(.customer-primers-table,.customer-quotes-table) tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px 0;border-bottom:1px solid var(--line)}
  .customer-table:is(.customer-primers-table,.customer-quotes-table) tbody tr:last-child{border-bottom:0}
  .customer-table:is(.customer-primers-table,.customer-quotes-table) td{display:block;height:auto;min-width:0;max-width:none;padding:0;border:0}
  .customer-primer-name,.customer-quote-name{grid-column:1;grid-row:1;overflow-wrap:anywhere}
  .customer-primer-type,.customer-quote-status{grid-column:2;grid-row:1;align-self:start;text-align:right}
  .customer-primers-table .customer-sequence{grid-column:1/-1;grid-row:2;overflow-wrap:anywhere}
  .customer-quotes-table .customer-date{grid-column:1;grid-row:2;text-align:left}
  .customer-quotes-table .customer-amount{grid-column:2;grid-row:2;text-align:right}
  .customer-table:is(.customer-primers-table,.customer-quotes-table) td[data-label]::before{content:attr(data-label);display:block;font:400 var(--fs-note)/1.5 var(--sans);color:var(--muted);margin-bottom:4px}
  .customer-table:is(.customer-primers-table,.customer-quotes-table) .customer-row-actions{grid-column:1/-1;grid-row:3;display:flex;align-items:center;gap:16px}
  .customer-table:is(.customer-primers-table,.customer-quotes-table) .customer-row-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0}
  .customer-quotes-table .customer-record-link{min-height:44px;max-width:100%;overflow-wrap:anywhere}
}

/* Account actions use the same 16px icon rhythm as the workspace. */
.account-group h2{display:flex;align-items:center;gap:8px}
.account-group h2>.ui-icon{width:16px;height:16px;color:var(--muted)}
.customer-empty-symbol .ui-icon,.customer-empty>.empty-state-icon{display:block;width:40px;height:40px;margin:0 auto 16px;color:var(--muted)}
.customer-record-link{gap:8px;max-width:100%}
.customer-record-link>.ui-icon{color:var(--muted)}
.customer-empty-symbol{border:0;border-radius:0;width:40px;height:40px;margin-bottom:16px}.customer-empty-symbol .ui-icon{margin:0}

/* The printed quotation uses the same settings-backed supplier block as its preview. */
.customer-quote-supplier{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:20px 0;border-block:1px solid var(--line);margin-top:20px;font-size:var(--fs-note);break-inside:avoid}
.customer-quote-supplier>div{min-width:0}.customer-quote-supplier span{display:block;color:var(--muted);margin-bottom:6px}.customer-quote-supplier strong{font-weight:500}.customer-quote-supplier p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.6;margin:6px 0 0}
@media(max-width:700px){.customer-quote-supplier{grid-template-columns:1fr;gap:16px}}
@media print{.customer-quote-supplier{grid-template-columns:1fr 1fr}.customer-quote-supplier span{color:var(--night-2)}}

.customer-market-proposal{border-top:1px solid var(--line);padding-top:20px;margin:20px 0}.customer-market-proposal h3{font-size:var(--fs-title);overflow-wrap:anywhere}.customer-market-proposal h4{font-size:var(--fs-note);margin:20px 0 6px}.customer-quotes-table .customer-row-actions{white-space:normal}.customer-quotes-table .customer-row-actions>a{display:inline-flex;align-items:center;min-height:44px;margin-left:16px}@media(max-width:760px){.customer-table.customer-quotes-table .customer-row-actions{flex-wrap:wrap}.customer-quotes-table .customer-row-actions>a{margin-left:0}}
