@import url("design-tokens.css");
:root{
  --ws-bg:#f4f1ec;
  --ws-surface:#fffdf9;
  --ws-surface-soft:#f7f3ed;
  --ws-surface-muted:#eee8df;
  --ws-line:#ddd5cb;
  --ws-line-strong:#cfc4b7;
  --ws-text:#111418;
  --ws-muted:#716b64;
  --ws-muted-2:#9b9389;
  --ws-shadow:0 18px 50px rgba(54,45,35,.08);
  --ws-shadow-lg:0 26px 80px rgba(36,30,24,.18);
  --ws-radius:18px;
  --ws-radius-sm:12px;
  --ws-green:#228a55;
  --ws-green-bg:#e5f3e9;
  --ws-brown:#8b5a28;
  --ws-brown-bg:#f4eadf;
  --ws-gray-bg:#ecebea;
  --ws-danger:#b7372f;
}
html[data-theme="dark"]{
  --ws-bg:#171614;
  --ws-surface:#211f1c;
  --ws-surface-soft:#282520;
  --ws-surface-muted:#302c26;
  --ws-line:#3d3933;
  --ws-line-strong:#4d473f;
  --ws-text:#f5f0e8;
  --ws-muted:#b7aea4;
  --ws-muted-2:#8f877e;
  --ws-shadow:0 18px 50px rgba(0,0,0,.22);
  --ws-shadow-lg:0 30px 90px rgba(0,0,0,.42);
  --ws-green:#7ec99a;
  --ws-green-bg:#233c2c;
  --ws-brown:#d4ad82;
  --ws-brown-bg:#3b2e22;
  --ws-gray-bg:#302e2b;
  --ws-danger:#ef837b;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{background:radial-gradient(circle at 82% -12%,rgba(198,183,166,.28),transparent 34%),var(--ws-bg);color:var(--ws-text);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.22),transparent 25%);z-index:-1}
html[data-theme="dark"] body::before{background:linear-gradient(180deg,rgba(255,255,255,.02),transparent 25%)}

/* Header */
.workspace-top{height:78px;background:color-mix(in srgb,var(--ws-surface) 86%,transparent);border-bottom:1px solid var(--ws-line);backdrop-filter:blur(18px);position:sticky;top:0;z-index:40}
.workspace-header{width:min(1440px,calc(100% - 56px));height:100%;margin:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.workspace-brand{justify-self:start;display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ws-text)}
.workspace-brand .mark{width:42px;height:42px;border-radius:12px;background:#17191c;color:white;display:grid;place-items:center;font-size:16px;font-weight:900;box-shadow:0 10px 22px rgba(0,0,0,.13)}
.brand-copy{display:flex;flex-direction:column;line-height:1.05}.brand-copy strong{font-size:18px;letter-spacing:-.035em}.brand-copy small{margin-top:5px;font-size:11px;font-weight:750;color:var(--ws-muted)}
.workspace-nav{display:flex;align-items:center;padding:5px;background:var(--ws-surface-muted);border:1px solid var(--ws-line);border-radius:13px;box-shadow:inset 0 1px rgba(255,255,255,.4)}
.workspace-nav button{min-width:94px;border:0;background:transparent;color:var(--ws-muted);border-radius:9px;padding:10px 18px;font-size:13px;font-weight:800;cursor:pointer;box-shadow:none}
.workspace-nav button.active{background:var(--ws-surface);color:var(--ws-text);box-shadow:0 2px 8px rgba(41,34,27,.08)}
.top-actions{justify-self:end;display:flex;align-items:center;gap:10px}.top-link{color:var(--ws-text);text-decoration:none;font-size:13px;font-weight:800;padding:10px 8px}.header-chip{min-width:42px;height:42px;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-surface);color:var(--ws-text);font-weight:850;cursor:pointer;padding:0 12px}.theme-button{font-size:15px}

/* Page */
.web-workspace{padding:50px 0 76px}.workspace-wrap{width:min(1440px,calc(100% - 64px));margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:26px}.page-head h1{font-size:58px;line-height:.98;letter-spacing:-.065em;margin:10px 0 8px;font-weight:900}.page-head p{font-size:16px;margin:0;color:var(--ws-muted)}.kicker{display:inline-block;font-size:11px;line-height:1.2;letter-spacing:.18em;font-weight:900;color:var(--ws-muted)}
.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:58px;padding:0 24px;border:1px solid #16181b;border-radius:13px;background:#17191c;color:#fff;font-size:14px;font-weight:850;box-shadow:0 12px 24px rgba(22,24,27,.15);cursor:pointer}.primary-action .plus{font-size:29px;font-weight:300;line-height:1}.primary-action.compact{min-height:45px;padding:0 18px}
html[data-theme="dark"] .primary-action{background:#eee8df;color:#171614;border-color:#eee8df;box-shadow:none}

/* Filters */
.filter-panel{display:grid;grid-template-columns:minmax(320px,1.55fr) minmax(200px,.65fr) minmax(220px,.75fr) auto;gap:12px;padding:16px;background:color-mix(in srgb,var(--ws-surface) 94%,transparent);border:1px solid var(--ws-line);border-radius:17px;box-shadow:var(--ws-shadow);margin-bottom:34px}
.filter-field{height:66px;border:1px solid var(--ws-line);border-radius:13px;background:var(--ws-surface);display:flex;align-items:center;gap:14px;padding:0 18px;margin:0}.field-icon{font-size:26px;line-height:1;color:var(--ws-text);flex:none}.search-field input,.filter-copy select{border:0;background:transparent;color:var(--ws-text);box-shadow:none;outline:none;margin:0;padding:0;width:100%;font:inherit}.search-field input{font-size:14px}.search-field input::placeholder{color:var(--ws-muted-2)}.filter-copy{display:flex;min-width:0;flex-direction:column;gap:3px;flex:1}.filter-copy small{font-size:11px;color:var(--ws-muted);font-weight:650}.filter-copy select{font-size:14px;font-weight:850;appearance:auto}.refresh-button{height:66px;border:1px solid var(--ws-line);border-radius:13px;background:var(--ws-surface);color:var(--ws-text);padding:0 23px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:850;cursor:pointer}.refresh-icon{font-size:26px;font-weight:300}.refresh-button:hover,.filter-field:hover{border-color:var(--ws-line-strong)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* List toolbar + table */
.list-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 2px 12px}.result-count{color:var(--ws-muted);font-size:14px}.sort-control{display:flex;flex-direction:column;gap:5px;margin:0;color:var(--ws-muted);font-size:11px}.sort-control select{min-width:240px;margin:0;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-surface);color:var(--ws-text);padding:10px 38px 10px 14px;font-size:13px;font-weight:700}
.catalog-card{background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:16px;overflow:hidden;box-shadow:0 10px 34px rgba(48,40,32,.035)}.table-scroll{overflow:auto}.catalog-table{width:100%;border-collapse:separate;border-spacing:0}.catalog-table th{height:48px;padding:0 24px;text-transform:uppercase;letter-spacing:.08em;font-size:10px;color:var(--ws-muted);font-weight:900;text-align:left;background:var(--ws-surface-soft);border-bottom:1px solid var(--ws-line);white-space:nowrap}.catalog-table td{padding:14px 24px;border-bottom:1px solid var(--ws-line);font-size:13px;vertical-align:middle}.catalog-table tbody tr:last-child td{border-bottom:0}.catalog-table tbody tr{transition:background .15s ease;cursor:pointer}.catalog-table tbody tr:hover{background:color-mix(in srgb,var(--ws-surface-soft) 70%,transparent)}
.product-table th:nth-child(1){width:140px}.product-table th:nth-child(3){width:170px}.product-table th:nth-child(4){width:185px}.product-table th:nth-child(5){width:150px}.product-table th:last-child{width:70px}
.date-cell strong{display:block;font-size:14px}.date-cell span{display:block;margin-top:4px;color:var(--ws-muted);font-size:11px}.product-cell{display:flex;align-items:center;gap:18px;min-width:360px}.product-thumb{width:70px;height:70px;flex:0 0 70px;object-fit:contain;border:1px solid var(--ws-line);border-radius:13px;background:#f8f6f2;padding:5px}.product-thumb.placeholder{display:grid;place-items:center;color:var(--ws-muted-2);font-size:22px}.product-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.product-copy strong{font-size:15px;line-height:1.3;font-weight:850;max-width:560px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-copy span{font-size:11px;color:var(--ws-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:520px}.status-badge,.platform-badge{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 14px;font-size:11px;font-weight:850;white-space:nowrap}.status-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.85}.status-badge.sold{color:var(--ws-green);background:var(--ws-green-bg)}.status-badge.listed{color:var(--ws-brown);background:var(--ws-brown-bg)}.status-badge.to_list{color:#5f6163;background:var(--ws-gray-bg)}html[data-theme="dark"] .status-badge.to_list{color:#c8c3bc}.platform-badge{background:var(--ws-surface-muted);color:var(--ws-text);padding:8px 13px}.platforms{display:flex;gap:6px;flex-wrap:wrap}.location-value{color:var(--ws-muted)}.row-open{width:42px;height:42px;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-surface-soft);color:var(--ws-text);font-size:25px;line-height:1;cursor:pointer}.row-open:hover{background:var(--ws-surface-muted)}.table-footer{display:flex;justify-content:space-between;margin:16px 2px 0;color:var(--ws-muted);font-size:13px}.web-empty{padding:62px 20px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:8px;color:var(--ws-muted)}.web-empty[hidden]{display:none!important}.web-empty strong{color:var(--ws-text);font-size:16px}.empty-icon{width:50px;height:50px;border-radius:13px;background:var(--ws-surface-muted);display:grid;place-items:center;font-size:24px;color:var(--ws-text)}

/* Sales */
.sales-page-head{align-items:center}.sales-head-actions{display:flex;align-items:center;gap:10px}.sales-head-actions select,.sales-head-actions input{height:45px;margin:0;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-surface);color:var(--ws-text);padding:0 12px}.sales-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.sales-stats article{background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:15px;padding:21px;box-shadow:0 8px 24px rgba(48,40,32,.03)}.sales-stats span{display:block;color:var(--ws-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.sales-stats strong{display:block;margin-top:7px;font-size:25px;letter-spacing:-.04em}

/* Modal */
dialog{border:0;padding:0;background:transparent;color:var(--ws-text)}dialog::backdrop{background:rgba(31,27,23,.34);backdrop-filter:blur(4px)}.product-dialog{width:min(1030px,calc(100vw - 36px));max-width:none}.small-dialog{width:min(650px,calc(100vw - 36px));max-width:none}.sale-dialog{width:min(820px,calc(100vw - 36px));max-width:none}.modal-card{background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:18px;box-shadow:var(--ws-shadow-lg);overflow:hidden}.product-modal-card{border-radius:18px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding:26px 28px 20px;border-bottom:1px solid var(--ws-line)}.product-modal-head{padding:30px}.modal-product-summary{display:flex;gap:26px;align-items:flex-start;min-width:0}.modal-image-wrap{width:200px;height:190px;flex:0 0 200px;border:1px solid var(--ws-line);border-radius:15px;background:var(--ws-surface-soft);padding:10px;display:grid;place-items:center;overflow:hidden}.modal-product-image{width:100%;height:100%;object-fit:contain;border-radius:9px}.modal-image-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:34px;color:var(--ws-muted-2)}.modal-product-copy{padding-top:4px;min-width:0}.modal-product-copy h2{font-size:28px;line-height:1.18;letter-spacing:-.045em;margin:8px 0 15px;max-width:650px}.modal-meta{display:flex;flex-wrap:wrap;gap:8px}.modal-meta span{padding:7px 11px;border-radius:999px;background:var(--ws-surface-muted);color:var(--ws-muted);font-size:10px;font-weight:800}.modal-close{width:42px;height:42px;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-surface-soft);color:var(--ws-text);font-size:24px;line-height:1;cursor:pointer;flex:none}.product-modal-body{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:16px;padding:20px 28px}.modal-panel{border:1px solid var(--ws-line);border-radius:14px;background:color-mix(in srgb,var(--ws-surface) 96%,var(--ws-surface-soft));padding:18px}.span-full{grid-column:1/-1}.modal-section-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}.modal-section-title strong{font-size:14px}.section-symbol{width:22px;height:22px;display:grid;place-items:center;color:var(--ws-text)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .span-2{grid-column:1/-1}.form-grid label,.sale-note{display:block;margin:0}.form-grid label>span,.sale-note>span{display:block;margin:0 0 6px;color:var(--ws-text);font-size:10px;font-weight:800}.form-grid input,.form-grid select,.form-grid textarea,.sale-note textarea{width:100%;margin:0;background:var(--ws-surface);color:var(--ws-text);border:1px solid var(--ws-line);border-radius:9px;padding:10px 12px;outline:none;resize:vertical}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:var(--ws-line-strong);box-shadow:0 0 0 3px color-mix(in srgb,var(--ws-line) 44%,transparent)}.inline-input{display:grid;grid-template-columns:1fr auto;gap:8px}.inline-input a{display:flex;align-items:center;text-decoration:none;color:var(--ws-text);font-size:11px;font-weight:850;border:1px solid var(--ws-line);border-radius:9px;padding:0 13px;background:var(--ws-surface-soft)}.classification-list{display:grid;gap:12px}.classification-list>div{display:grid;gap:7px}.classification-list>div>span{font-size:10px;font-weight:800;color:var(--ws-muted)}.classification-value{min-height:40px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface);display:flex;align-items:center;padding:0 12px;font-size:12px;overflow:hidden;text-overflow:ellipsis}.classification-value.status-value{color:var(--ws-green)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:18px}.section-title>div>span{display:block;color:var(--ws-muted);font-size:10px;margin-top:-8px}.secondary-action,.section-title button{border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface);color:var(--ws-text);padding:9px 12px;font-size:10px;font-weight:850;cursor:pointer}.listing-rows{margin-top:13px;display:grid;gap:8px}.listing-row{display:grid;grid-template-columns:160px 1fr 100px auto;align-items:center;gap:12px;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-surface);padding:10px 12px;font-size:11px}.listing-row>div{display:flex;flex-direction:column;gap:3px}.listing-origin{color:var(--ws-muted);font-size:9px}.listing-row a{color:var(--ws-text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-empty{padding:18px;color:var(--ws-muted);font-size:11px;border:1px dashed var(--ws-line);border-radius:10px}.edit-listing{border:1px solid var(--ws-line);background:var(--ws-surface-soft);color:var(--ws-text);border-radius:8px;padding:8px 10px;font-size:10px;font-weight:850;cursor:pointer}.modal-footer{padding:15px 28px 18px;border-top:1px solid var(--ws-line);display:flex;justify-content:space-between;align-items:center;gap:16px}.modal-footer>div{display:flex;gap:8px}.danger-link{border:0;background:transparent;color:var(--ws-danger);padding:9px 0;font-size:10px;font-weight:850;cursor:pointer}.quiet-button,.dark-button{border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface);color:var(--ws-text);padding:11px 16px;font-size:11px;font-weight:850;cursor:pointer}.dark-button{background:#17191c;color:#fff;border-color:#17191c}.dark-button.accent{background:#8c8172;border-color:#8c8172;color:#fff}html[data-theme="dark"] .dark-button{background:#eee8df;color:#171614;border-color:#eee8df}html[data-theme="dark"] .dark-button.accent{background:#a89986;border-color:#a89986;color:#171614}.workspace-status{position:fixed;right:24px;bottom:24px;max-width:360px;background:var(--ws-text);color:var(--ws-surface);padding:11px 14px;border-radius:10px;font-size:11px;box-shadow:var(--ws-shadow);z-index:80;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.workspace-status:not(:empty){opacity:1;transform:none}.workspace-status.success{background:#235f3b;color:#eefaf2}

/* Sale dialog internals */
.sale-lines-title{margin:18px 0 10px}.sale-lines{display:grid;gap:8px}.sale-line{display:grid;grid-template-columns:1fr 80px 120px 36px;gap:8px}.sale-line select,.sale-line input{margin:0;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-surface);color:var(--ws-text);padding:9px}.sale-line button{border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-surface-soft);color:var(--ws-text)}.sale-note{margin-top:16px}.sale-total{font-weight:900;font-size:18px}.muted{color:var(--ws-muted)}

/* Dark polish */
html[data-theme="dark"] .product-thumb{background:#26231f}html[data-theme="dark"] .workspace-top{box-shadow:0 1px rgba(255,255,255,.02)}html[data-theme="dark"] .catalog-card,html[data-theme="dark"] .filter-panel,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .sales-stats article{box-shadow:none}html[data-theme="dark"] body{background:radial-gradient(circle at 82% -12%,rgba(111,94,75,.22),transparent 34%),var(--ws-bg)}html[data-theme="dark"] .catalog-table th{background:#282520}html[data-theme="dark"] .row-open,html[data-theme="dark"] .modal-close{background:#2a2722}html[data-theme="dark"] .workspace-nav button.active{box-shadow:none}

@media(max-width:1050px){.workspace-wrap{width:min(100% - 32px,1440px)}.workspace-header{width:calc(100% - 32px)}.filter-panel{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.refresh-button{justify-content:center}.product-modal-body{grid-template-columns:1fr}.classification-panel{grid-column:1/-1}.modal-image-wrap{width:160px;height:160px;flex-basis:160px}.product-table th:nth-child(5),.product-table td:nth-child(5){display:none}}
@media(max-width:760px){.workspace-header{grid-template-columns:1fr auto}.workspace-nav{order:3;grid-column:1/-1;justify-self:center;margin-bottom:8px}.workspace-top{height:auto;padding:10px 0}.brand-copy small{display:none}.web-workspace{padding-top:32px}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:44px}.primary-action{min-height:50px}.filter-panel{grid-template-columns:1fr}.search-field{grid-column:auto}.list-toolbar{align-items:flex-start;flex-direction:column}.sort-control,.sort-control select{width:100%}.product-table th:nth-child(4),.product-table td:nth-child(4){display:none}.catalog-table th,.catalog-table td{padding-left:14px;padding-right:14px}.product-cell{min-width:260px}.product-thumb{width:58px;height:58px;flex-basis:58px}.product-modal-head{padding:20px}.modal-product-summary{gap:16px}.modal-image-wrap{width:110px;height:110px;flex-basis:110px}.modal-product-copy h2{font-size:21px}.product-modal-body{padding:14px}.modal-footer{align-items:flex-start;flex-direction:column}.modal-footer>div{width:100%;flex-wrap:wrap}.listing-row{grid-template-columns:1fr auto}.listing-row>a{grid-column:1/-1}.listing-row>span{display:none}.sales-stats{grid-template-columns:1fr 1fr}.sales-head-actions{flex-wrap:wrap}}
@media(max-width:540px){.top-actions .top-link{display:none}.workspace-brand .mark{width:36px;height:36px}.workspace-header{gap:10px}.page-head h1{font-size:38px}.product-table th:nth-child(1),.product-table td:nth-child(1){display:none}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.modal-product-summary{flex-direction:column}.modal-image-wrap{width:100%;height:180px}.sales-stats{grid-template-columns:1fr}.sale-line{grid-template-columns:1fr 64px 90px 34px}}
.classification-value.status-value.sold{color:var(--ws-green);background:var(--ws-green-bg);border-color:color-mix(in srgb,var(--ws-green) 25%,var(--ws-line))}
.classification-value.status-value.listed{color:var(--ws-brown);background:var(--ws-brown-bg);border-color:color-mix(in srgb,var(--ws-brown) 25%,var(--ws-line))}
.classification-value.status-value.to_list{color:var(--ws-text);background:var(--ws-gray-bg)}

/* v0.3.6 — Sales workspace */
.sales-page-head{margin-bottom:24px}
.sales-filter-panel{display:grid;grid-template-columns:210px 220px 220px 1fr;gap:12px;align-items:end;padding:17px 18px;margin-bottom:18px;border:1px solid var(--ws-line);border-radius:16px;background:var(--ws-surface);box-shadow:var(--ws-shadow)}
.sales-filter-panel label{display:grid;gap:6px}.sales-filter-panel label>span{font-size:10px;font-weight:850;color:var(--ws-muted);text-transform:uppercase;letter-spacing:.07em}.sales-filter-panel select,.sales-filter-panel input{width:100%;height:46px;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-surface-soft);color:var(--ws-text);padding:0 13px;font:inherit;font-size:12px;outline:none}.sales-filter-panel select:focus,.sales-filter-panel input:focus{border-color:var(--ws-line-strong);box-shadow:0 0 0 3px color-mix(in srgb,var(--ws-line) 42%,transparent)}.sales-filter-panel .primary-action{justify-self:end;height:46px;min-height:46px;padding:0 19px}
.modern-sales-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 22px}.modern-sales-stats article{position:relative;overflow:hidden;min-height:104px;padding:18px 20px;border-radius:15px;border:1px solid var(--ws-line);background:var(--ws-surface);box-shadow:var(--ws-shadow)}.modern-sales-stats article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--ws-line-strong);opacity:.35}.modern-sales-stats .net-stat:before{background:var(--ws-green);opacity:.9}.modern-sales-stats span{font-size:10px;font-weight:800;letter-spacing:.03em;color:var(--ws-muted)}.modern-sales-stats strong{display:block;margin-top:10px;font-size:26px;line-height:1;letter-spacing:-.045em}.modern-sales-stats .net-stat strong{color:var(--ws-green)}
.missing-sales-panel{margin:0 0 24px;border:1px solid color-mix(in srgb,var(--ws-brown) 28%,var(--ws-line));border-radius:16px;background:color-mix(in srgb,var(--ws-brown-bg) 65%,var(--ws-surface));overflow:hidden}.missing-sales-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid color-mix(in srgb,var(--ws-brown) 20%,var(--ws-line))}.missing-sales-head>div{display:flex;align-items:flex-start;gap:11px}.warning-dot{width:9px;height:9px;border-radius:50%;background:var(--ws-brown);margin-top:5px;box-shadow:0 0 0 5px color-mix(in srgb,var(--ws-brown) 12%,transparent)}.missing-sales-head strong{display:block;font-size:13px}.missing-sales-head span:not(.warning-dot){display:block;margin-top:3px;color:var(--ws-muted);font-size:10px;line-height:1.45}.missing-count{min-width:30px;height:30px;border-radius:999px;display:grid!important;place-items:center;margin:0!important;background:var(--ws-surface);border:1px solid var(--ws-line);font-weight:900;color:var(--ws-text)!important}.missing-sales-list{display:grid}.missing-sale-row{display:grid;grid-template-columns:52px minmax(0,1fr) 130px 104px auto;gap:14px;align-items:center;padding:13px 18px;border-top:1px solid color-mix(in srgb,var(--ws-brown) 15%,var(--ws-line))}.missing-sale-row:first-child{border-top:0}.missing-sale-thumb,.sale-thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;border:1px solid var(--ws-line);background:var(--ws-surface-soft)}.missing-sale-thumb.placeholder,.sale-thumb.placeholder{display:grid;place-items:center;color:var(--ws-muted-2)}.missing-sale-copy{min-width:0}.missing-sale-copy strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.missing-sale-copy span{display:block;margin-top:3px;font-size:9px;color:var(--ws-muted)}.missing-sale-date{display:grid;gap:3px}.missing-sale-date span{font-size:9px;color:var(--ws-muted)}.missing-sale-date strong{font-size:11px}.missing-badge{justify-self:start;padding:6px 9px;border-radius:999px;background:var(--ws-brown-bg);color:var(--ws-brown);font-size:9px;font-weight:900}.missing-sale-row .secondary-action{white-space:nowrap}
.sales-list-head{display:flex;justify-content:space-between;align-items:end;margin:4px 2px 12px}.sales-list-head strong{display:block;font-size:15px}.sales-list-head span{display:block;margin-top:4px;font-size:10px;color:var(--ws-muted)}.sales-table-card{overflow:hidden}.sales-table tbody tr{cursor:pointer}.sales-table tbody tr:hover{background:color-mix(in srgb,var(--ws-surface-soft) 72%,var(--ws-surface))}.sales-table .date-cell{min-width:122px}.sales-table .date-cell span{display:block;margin-top:4px;font-size:9px;color:var(--ws-muted);font-weight:600}.sale-product-cell{display:flex;align-items:center;gap:12px;min-width:245px}.sale-product-cell>div:last-child{min-width:0}.sale-product-cell strong{display:block;max-width:330px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.sale-product-cell span{display:block;margin-top:4px;color:var(--ws-muted);font-size:9px}.sales-table .platform-badge{white-space:nowrap}.sales-table td{vertical-align:middle}
.sale-dialog{width:min(900px,calc(100vw - 36px));max-width:none}.sale-modal-card{border-radius:18px}.sale-modal-head{padding:26px 28px}.sale-modal-head h2{margin:7px 0 6px;font-size:27px;letter-spacing:-.04em}.sale-modal-head p{margin:0;color:var(--ws-muted);font-size:11px}.sale-modal-body{display:grid;gap:14px;padding:18px 24px}.sale-data-panel,.sale-items-panel{padding:18px}.sale-lines-title{margin:0 0 12px}.sale-lines-title>div>span{margin-top:3px}.sale-lines{display:grid;gap:9px}.sale-line{grid-template-columns:minmax(260px,1fr) 82px 128px 38px;gap:8px;align-items:center}.sale-line select,.sale-line input{height:42px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface);color:var(--ws-text);padding:0 11px}.sale-line select:disabled{opacity:1;color:var(--ws-text);background:var(--ws-surface-soft)}.sale-line button{height:42px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface-soft);color:var(--ws-text);cursor:pointer}.sale-note.modal-panel{margin:0}.sale-note.modal-panel textarea{margin-top:7px}.sale-modal-footer{padding:15px 24px 18px}.sale-total-wrap{display:grid;gap:3px}.sale-total-wrap>span{font-size:9px;color:var(--ws-muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.sale-total{font-size:20px;letter-spacing:-.03em}
html[data-theme="dark"] .sales-filter-panel,html[data-theme="dark"] .modern-sales-stats article,html[data-theme="dark"] .missing-sales-panel{box-shadow:none}html[data-theme="dark"] .missing-sales-panel{background:color-mix(in srgb,var(--ws-brown-bg) 48%,var(--ws-surface));border-color:#4a4034}html[data-theme="dark"] .missing-sale-row{border-color:#41392f}html[data-theme="dark"] .missing-count{background:#292620}html[data-theme="dark"] .sales-table tbody tr:hover{background:#292620}
@media(max-width:1050px){.sales-filter-panel{grid-template-columns:1fr 1fr}.sales-filter-panel .primary-action{justify-self:stretch}.modern-sales-stats{grid-template-columns:repeat(3,1fr)}.missing-sale-row{grid-template-columns:48px minmax(0,1fr) 110px auto}.missing-badge{display:none}.sales-table th:nth-child(6),.sales-table td:nth-child(6),.sales-table th:nth-child(8),.sales-table td:nth-child(8){display:none}}
@media(max-width:760px){.sales-filter-panel{grid-template-columns:1fr}.modern-sales-stats{grid-template-columns:1fr 1fr}.missing-sale-row{grid-template-columns:48px minmax(0,1fr) auto}.missing-sale-date{display:none}.sales-table th:nth-child(4),.sales-table td:nth-child(4),.sales-table th:nth-child(7),.sales-table td:nth-child(7){display:none}.sale-line{grid-template-columns:1fr 72px 105px 34px}.sale-modal-body{padding:12px}.sale-modal-head{padding:20px}.sale-modal-footer{padding:14px;align-items:center}}
@media(max-width:520px){.modern-sales-stats{grid-template-columns:1fr}.missing-sale-row{grid-template-columns:42px 1fr}.missing-sale-row .secondary-action{grid-column:1/-1}.sale-line{grid-template-columns:1fr 70px 95px}.sale-line button{display:none}.sales-table th:nth-child(3),.sales-table td:nth-child(3),.sales-table th:nth-child(5),.sales-table td:nth-child(5){display:none}}


/* v0.3.8 — clearer cloud/webapp separation */
.app-scope-chip{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:1px solid var(--ws-line);border-radius:999px;background:color-mix(in srgb,var(--ws-surface) 92%,transparent);font-size:12px;font-weight:850;color:var(--ws-text);white-space:nowrap}
.workspace-context{display:flex;align-items:flex-start;gap:18px;padding:18px 20px;margin:0 0 28px;border:1px solid var(--ws-line);border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--ws-surface) 95%,transparent),color-mix(in srgb,var(--ws-surface-soft) 88%,transparent));box-shadow:var(--ws-shadow)}
.context-badge{display:inline-flex;align-items:center;justify-content:center;min-width:170px;padding:10px 14px;border-radius:999px;background:var(--ws-surface);border:1px solid var(--ws-line);font-size:11px;font-weight:900;letter-spacing:.04em;white-space:nowrap}
.context-copy{display:grid;gap:6px;min-width:0}.context-copy strong{font-size:18px;letter-spacing:-.03em}.context-copy span{color:var(--ws-muted);font-size:13px;line-height:1.55;max-width:860px}
.workspace-brand .mark{background:linear-gradient(180deg,#11161d,#1d2430)}
.workspace-nav{box-shadow:none}
.catalog-card,.sales-filter-panel,.filter-panel,.modern-sales-stats article{box-shadow:0 14px 34px rgba(48,40,32,.04)}
html[data-theme="dark"] .app-scope-chip{background:#24211d;border-color:#3a352f;color:#f3eee7}
html[data-theme="dark"] .workspace-context{background:linear-gradient(135deg,#201d19,#26231f);border-color:#37322d;box-shadow:none}
html[data-theme="dark"] .context-badge{background:#2a2621;border-color:#403932;color:#f3eee7}
@media(max-width:860px){.workspace-context{flex-direction:column}.context-badge{min-width:0}.top-actions .app-scope-chip{display:none}}

.workspace-nav a{min-width:94px;text-align:center;text-decoration:none;color:var(--ws-muted);border-radius:9px;padding:10px 18px;font-size:13px;font-weight:800}.workspace-nav a.active{background:var(--ws-surface);color:var(--ws-text);box-shadow:0 2px 8px rgba(41,34,27,.08)}

/* v0.4.0 finance navigation */
.workspace-nav .nav-anchor{min-width:94px;text-align:center;text-decoration:none;color:var(--ws-muted);border-radius:9px;padding:10px 14px;font-size:13px;font-weight:800}.workspace-nav .nav-anchor:hover{color:var(--ws-text);background:color-mix(in srgb,var(--ws-surface) 55%,transparent)}.invoice-link,.invoice-create-link{display:inline-flex;align-items:center;padding:6px 9px;border-radius:8px;text-decoration:none;font-size:10px;font-weight:850}.invoice-link{background:var(--ws-green-bg);color:var(--ws-green)}.invoice-create-link{background:var(--ws-surface-muted);color:var(--ws-text)}@media(max-width:1100px){.workspace-nav .nav-anchor{display:none}}

.sale-meta label small{display:block;margin-top:5px;color:var(--ws-muted);font-size:9px;line-height:1.35;font-weight:600}


/* v0.5.0 — Sales journal: operational view, intentionally distinct from Analytics */
.workspace-context{display:none!important}.sales-journal-view{padding-top:2px}.journal-head{align-items:flex-end;margin-bottom:18px}.journal-head h1{margin-bottom:7px}.sales-journal-tools{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;justify-content:flex-end}.journal-period{display:grid;gap:5px}.journal-period>span{font-size:9px;font-weight:850;color:var(--ws-muted);text-transform:uppercase;letter-spacing:.06em}.journal-period select,.journal-period input{height:40px;min-width:112px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-surface);color:var(--ws-text);padding:0 11px;font:inherit;font-size:11px;font-weight:750}.journal-period input[type=month]{min-width:152px}.journal-export{height:40px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-text);color:var(--ws-surface);padding:0 15px;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.sales-summary-strip{display:grid;grid-template-columns:minmax(210px,1.35fr) repeat(5,minmax(120px,.8fr));align-items:stretch;border:1px solid var(--ws-line);border-radius:15px;background:var(--ws-surface);margin-bottom:22px;overflow:hidden;box-shadow:0 10px 30px rgba(48,40,32,.035)}.sales-summary-strip>div{padding:15px 17px;border-left:1px solid var(--ws-line);display:grid;align-content:center;gap:4px}.sales-summary-strip>div:first-child{border-left:0;background:var(--ws-surface-soft)}.summary-primary span,.summary-metric span{font-size:9px;color:var(--ws-muted);font-weight:850;text-transform:uppercase;letter-spacing:.055em}.summary-primary strong{font-size:18px;letter-spacing:-.025em}.summary-metric strong{font-size:16px}.summary-metric.net{border-left:2px solid var(--ws-green)}.summary-metric.net strong{color:var(--ws-green)}.journal-list-head{margin:6px 2px 12px}.sales-journal{display:grid;gap:14px}.journal-day{border:1px solid var(--ws-line);border-radius:15px;background:var(--ws-surface);overflow:hidden;box-shadow:0 10px 32px rgba(48,40,32,.035)}.journal-day-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;background:var(--ws-surface-soft);border-bottom:1px solid var(--ws-line)}.journal-day-head>div:first-child{display:grid;gap:3px}.journal-day-head span{font-size:13px;font-weight:900;text-transform:capitalize}.journal-day-head small{font-size:9.5px;color:var(--ws-muted)}.journal-day-money{text-align:right;display:grid;gap:2px}.journal-day-money small{text-transform:uppercase;letter-spacing:.05em;font-size:8px}.journal-day-money strong{font-size:16px;color:var(--ws-green)}.journal-day-rows{display:grid}.journal-sale{display:grid;grid-template-columns:minmax(330px,1.5fr) minmax(150px,.65fr) minmax(120px,.55fr) 42px;gap:14px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--ws-line);cursor:pointer;transition:.15s}.journal-sale:last-child{border-bottom:0}.journal-sale:hover{background:color-mix(in srgb,var(--ws-surface-soft) 68%,transparent)}.journal-sale:focus-visible{outline:2px solid var(--ws-line-strong);outline-offset:-2px}.journal-sale-product{display:flex;align-items:center;gap:12px;min-width:0}.journal-sale-product>div:last-child{min-width:0}.journal-sale-product strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journal-sale-product span{display:block;margin-top:4px;font-size:9.5px;color:var(--ws-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journal-sale-money{display:grid;gap:4px;text-align:right}.journal-sale-money span{font-size:9px;color:var(--ws-muted)}.journal-sale-money strong{font-size:14px}.journal-sale-invoice{justify-self:end}.journal-empty{border:1px solid var(--ws-line);border-radius:15px;background:var(--ws-surface)}
html[data-theme="dark"] .sales-summary-strip,html[data-theme="dark"] .journal-day{box-shadow:none}
@media(max-width:1100px){.sales-summary-strip{grid-template-columns:repeat(3,1fr)}.sales-summary-strip>div{border-top:1px solid var(--ws-line)}.sales-summary-strip>div:nth-child(-n+3){border-top:0}.summary-primary{grid-column:span 1}.journal-sale{grid-template-columns:minmax(280px,1fr) minmax(130px,.55fr) 42px}.journal-sale-invoice{display:none}}
@media(max-width:760px){.journal-head{align-items:flex-start;flex-direction:column}.sales-journal-tools{justify-content:flex-start;width:100%}.sales-summary-strip{grid-template-columns:1fr 1fr}.sales-summary-strip>div:nth-child(3){border-top:1px solid var(--ws-line)}.journal-sale{grid-template-columns:minmax(0,1fr) auto 36px}.journal-sale-money span{display:none}.journal-sale .row-open{width:36px;height:36px}.journal-day-head{padding:12px 14px}.journal-period{flex:1}.journal-period select,.journal-period input{width:100%;min-width:0}}
@media(max-width:520px){.sales-summary-strip{grid-template-columns:1fr}.sales-summary-strip>div{border-left:0!important;border-top:1px solid var(--ws-line)!important}.sales-summary-strip>div:first-child{border-top:0!important}.journal-sale{grid-template-columns:minmax(0,1fr) 34px}.journal-sale-money{grid-column:1;text-align:left}.journal-sale .row-open{grid-column:2;grid-row:1/3}.sales-journal-tools{display:grid;grid-template-columns:1fr 1fr}.journal-export{width:100%}}

/* v0.5.3 — compact, unified Web App layout */
.workspace-top{height:70px}
.workspace-header{width:min(1380px,calc(100% - 48px));gap:18px}
.workspace-brand .mark{width:40px;height:40px}.brand-copy strong{font-size:17px}.brand-copy small{font-size:10px;margin-top:4px}
.workspace-nav{padding:4px;border-radius:12px}.workspace-nav button,.nav-anchor{min-width:86px;padding:9px 14px;font-size:12px}
.top-actions{gap:8px}.header-chip{height:40px;min-width:40px}.app-scope-chip{height:40px!important}
.web-workspace{padding:30px 0 64px}.workspace-wrap{width:min(1380px,calc(100% - 48px))}
.page-head{align-items:center;margin-bottom:16px;gap:18px}.page-head h1{font-size:var(--ins-font-page-title);line-height:1;letter-spacing:-.055em;margin:0 0 7px}.page-head p{font-size:var(--ins-font-page-subtitle);line-height:1.45;max-width:760px}.page-head>.page-head-actions{display:flex;gap:8px}
.primary-action.compact{min-height:42px;height:42px;padding:0 16px;border-radius:10px;font-size:12px;box-shadow:0 8px 18px rgba(22,24,27,.10)}.primary-action.compact .plus{font-size:21px}
.filter-panel{grid-template-columns:minmax(300px,1.55fr) minmax(170px,.62fr) minmax(190px,.7fr) auto;gap:8px;padding:10px;border-radius:14px;margin-bottom:16px;box-shadow:0 8px 24px rgba(48,40,32,.035)}
.filter-field{height:46px;border-radius:10px;gap:10px;padding:0 13px}.field-icon{font-size:19px}.filter-copy{gap:1px}.filter-copy small{font-size:9px}.search-field input,.filter-copy select{font-size:12px}.filter-copy select{font-weight:800}.refresh-button{height:46px;border-radius:10px;padding:0 15px;gap:8px;font-size:12px;background:var(--ws-text);color:var(--ws-surface);border-color:var(--ws-text);transition:.15s}.refresh-button:hover{transform:translateY(-1px);filter:brightness(1.04)}.refresh-button:active{transform:none}.refresh-button:disabled{opacity:.62;cursor:wait;transform:none}.refresh-icon{font-size:19px}.refresh-button.is-loading .refresh-icon{animation:ws-spin .75s linear infinite}@keyframes ws-spin{to{transform:rotate(360deg)}}
.list-toolbar{align-items:center;margin:0 2px 9px}.result-count{font-size:12px}.sort-control{flex-direction:row;align-items:center;gap:8px;font-size:10px}.sort-control select{min-width:210px;height:38px;padding:0 34px 0 12px;border-radius:9px;font-size:11px}
.catalog-table th{height:42px;padding:0 18px;font-size:9px}.catalog-table td{padding:10px 18px;font-size:12px}.product-table th:nth-child(1){width:125px}.product-table th:nth-child(3){width:155px}.product-table th:nth-child(4){width:170px}.product-table th:nth-child(5){width:140px}.product-cell{gap:13px;min-width:320px}.product-thumb{width:56px;height:56px;flex-basis:56px;border-radius:11px}.product-copy strong{font-size:13px;line-height:1.28}.product-copy span{font-size:10px}.date-cell strong{font-size:12px}.date-cell span{font-size:10px}.status-badge,.platform-badge{padding:6px 10px;font-size:10px}.status-badge::before{width:6px;height:6px}.row-open{width:36px;height:36px;font-size:21px}.table-footer{margin-top:10px;font-size:11px}
.sales-page-head{margin-bottom:14px}.journal-head{align-items:center}.sales-journal-tools{align-items:center}.journal-period{display:flex;align-items:center;gap:7px}.journal-period>span{font-size:8px}.journal-period select,.journal-period input,.journal-export{height:38px}.sales-summary-strip{margin-bottom:16px}.sales-summary-strip>div{padding:12px 14px}.summary-primary strong{font-size:16px}.summary-metric strong{font-size:14px}.journal-list-head{margin:5px 2px 9px}.journal-day{border-radius:13px}.journal-day-head{padding:11px 15px}.journal-sale{padding:10px 14px}

/* Main controls: consistent interaction */
button,.row-open,.refresh-button,.primary-action,.secondary-action,.quiet-button,.dark-button,.journal-export{transition:background .15s,border-color .15s,transform .15s,box-shadow .15s,opacity .15s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid color-mix(in srgb,var(--ws-text) 42%,transparent);outline-offset:2px}
select{cursor:pointer}
button:not(:disabled):active,.primary-action:not(:disabled):active,.dark-button:not(:disabled):active{transform:translateY(1px)}
button:disabled{cursor:not-allowed;opacity:.58}
.dark-button.is-loading{opacity:.62;cursor:wait}

/* Capture workflow */
.capture-dialog{width:min(760px,calc(100vw - 36px));max-width:none}.capture-modal-card{border-radius:18px}.capture-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}.capture-choice{position:relative;min-height:190px;border:1px solid var(--ws-line);border-radius:14px;background:var(--ws-surface);color:var(--ws-text);padding:20px;text-align:left;display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;align-content:start;font:inherit;cursor:pointer}.capture-choice:hover{border-color:var(--ws-line-strong);background:var(--ws-surface-soft);transform:translateY(-1px)}.capture-choice.recommended{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ws-green) 22%,transparent)}.capture-choice-icon{width:42px;height:42px;border-radius:11px;background:var(--ws-surface-muted);display:grid;place-items:center;font-size:20px;font-weight:900}.capture-choice>span:nth-child(2){display:grid;gap:8px}.capture-choice strong{font-size:14px}.capture-choice small{color:var(--ws-muted);font-size:10.5px;line-height:1.55;font-weight:550}.capture-choice b{position:absolute;right:14px;top:14px;padding:5px 8px;border-radius:999px;background:var(--ws-green-bg);color:var(--ws-green);font-size:8px;text-transform:uppercase;letter-spacing:.05em}.capture-choice i{position:absolute;right:16px;bottom:14px;font-size:24px;color:var(--ws-muted);font-style:normal}.manual-product-dialog{width:min(720px,calc(100vw - 36px));max-width:none}.manual-product-form{padding:18px 22px}.manual-product-form input,.manual-product-form textarea{background:var(--ws-surface-soft)}

/* Reduce duplicate visual hierarchy in main page headers only */
.product-page-head>.kicker,.sales-page-head>.kicker{display:none}.product-page-head,.sales-page-head{padding-top:0}

@media(max-width:900px){.workspace-header{width:min(100% - 28px,1380px)}.workspace-wrap{width:min(100% - 28px,1380px)}.filter-panel{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.refresh-button{justify-content:center}.page-head h1{font-size:36px}.capture-choice-grid{grid-template-columns:1fr}.capture-choice{min-height:150px}}
@media(max-width:650px){.web-workspace{padding-top:22px}.page-head{align-items:flex-start;flex-direction:column}.page-head p{font-size:13px}.filter-panel{grid-template-columns:1fr}.search-field{grid-column:auto}.list-toolbar{align-items:flex-start;flex-direction:column}.sort-control{width:100%;justify-content:space-between}.sort-control select{flex:1;min-width:0}.catalog-table th,.catalog-table td{padding-left:12px;padding-right:12px}.capture-choice-grid{padding:12px}}
.filter-panel{grid-template-columns:minmax(270px,1.55fr) minmax(150px,.58fr) minmax(170px,.65fr) minmax(190px,.72fr) auto}.sort-filter .field-icon{font-size:17px}.compact-list-toolbar{margin-bottom:8px}.compact-list-toolbar .result-count{padding-left:2px}
.filter-copy select,.journal-period select,.sort-control select,.form-grid select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23716b64' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 2px center;padding-right:18px}.form-grid select{background-position:right 10px center;padding-right:30px}.filter-copy select option,.journal-period select option,.form-grid select option{background:#fffdf9;color:#111418}.filter-field:focus-within{border-color:var(--ws-line-strong);box-shadow:0 0 0 3px color-mix(in srgb,var(--ws-line) 38%,transparent)}
html[data-theme="dark"] .filter-copy select option,html[data-theme="dark"] .journal-period select option,html[data-theme="dark"] .form-grid select option{background:#211f1c;color:#f5f0e8}
@media(max-width:1150px){.filter-panel{grid-template-columns:1fr 1fr 1fr}.search-field{grid-column:1/-1}.refresh-button{justify-content:center}}
@media(max-width:750px){.filter-panel{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.refresh-button{grid-column:1/-1}.sort-filter{grid-column:1/-1}}
@media(max-width:520px){.filter-panel{grid-template-columns:1fr}.search-field,.refresh-button,.sort-filter{grid-column:auto}}


/* v0.5.5 — stable Web-App / Local workspace switch */
@media(min-width:1051px){
  .workspace-header{position:relative}
  .top-actions{width:400px;min-width:400px;justify-content:flex-start}
}
.workspace-scope-switch{position:relative;width:184px;min-width:184px;height:40px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;padding:3px;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-surface-muted);box-shadow:inset 0 1px rgba(255,255,255,.35);isolation:isolate}
.workspace-scope-switch::before{content:"";position:absolute;z-index:0;left:3px;top:3px;width:calc((100% - 6px)/2);height:32px;border-radius:8px;background:var(--ws-surface);box-shadow:0 2px 7px rgba(41,34,27,.08);transition:transform .16s ease}
.workspace-scope-switch.is-local::before{transform:translateX(100%)}
.workspace-scope-segment{position:relative;z-index:1;width:100%;height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 6px;border:0;border-radius:8px;background:transparent!important;color:var(--ws-muted);font:inherit;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer;box-shadow:none!important}
.workspace-scope-segment.active{color:var(--ws-text);cursor:default}
button.workspace-scope-segment:not(.active):hover{color:var(--ws-text)}
.workspace-scope-segment.is-loading{cursor:wait}
.workspace-scope-segment.is-loading::after{content:"";width:8px;height:8px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:scope-spin .65s linear infinite;margin-left:1px}
@keyframes scope-spin{to{transform:rotate(360deg)}}
.scope-switch-toast{position:fixed;right:24px;bottom:24px;z-index:9999;max-width:390px;padding:11px 14px;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-text);color:var(--ws-surface);font-size:11px;font-weight:750;box-shadow:0 14px 38px rgba(0,0,0,.18);opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s}
.scope-switch-toast.show{opacity:1;transform:none}
html[data-theme="dark"] .workspace-scope-switch{background:#181714;border-color:#39352f;box-shadow:none}
html[data-theme="dark"] .workspace-scope-switch::before{background:#302c26;box-shadow:none}
html[data-theme="dark"] .workspace-scope-segment.active{color:#fff8ef}
html[data-theme="dark"] button.workspace-scope-segment:not(.active):hover{color:#f2eee7}
html[data-theme="dark"] .scope-switch-toast{background:#f2eee7;color:#171614;border-color:#f2eee7}
@media(max-width:1050px){.top-actions{width:auto;min-width:0}.workspace-scope-switch{width:176px;min-width:176px}}
@media(max-width:760px){.workspace-scope-switch{width:88px;min-width:88px}.workspace-scope-segment{padding:0;font-size:13px}.workspace-scope-segment span{display:none}.scope-switch-toast{right:14px;left:14px;bottom:14px;max-width:none}}


/* legacy unified shell foundation */
:root{--brand-charcoal:#0F1115;--brand-taupe:#A89B8F;--brand-sand:#F6F3EE}
body.unified-web-shell{background:radial-gradient(circle at 78% 2%,#eee7de 0,transparent 30%),var(--ws-bg,var(--bg))}
.unified-web-shell .workspace-top{
  height:68px!important;
  position:sticky;
  top:0;
  z-index:80;
  background:color-mix(in srgb,var(--ws-surface,var(--surface)) 94%,transparent);
}
.unified-web-shell .workspace-header{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 18px!important;
  height:68px!important;
  gap:0!important;
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr) auto;
  align-items:center;
}
.unified-web-shell .workspace-brand{
  grid-column:1;
  width:220px;
  min-width:0;
  gap:10px;
}
.unified-web-shell .workspace-brand .brand-image-mark{
  width:42px!important;
  height:42px!important;
  padding:0!important;
  overflow:hidden;
  border-radius:12px!important;
  background:var(--brand-sand)!important;
  box-shadow:0 7px 18px rgba(15,17,21,.08)!important;
  display:block!important;
}
.unified-web-shell .workspace-brand .brand-image-mark img{width:100%;height:100%;display:block;object-fit:cover}
.unified-web-shell .brand-copy strong{font-size:15px!important;letter-spacing:-.025em}
.unified-web-shell .brand-copy small.brand-scope-line{
  margin-top:2px!important;
  display:flex!important;
  align-items:center;
  gap:5px;
  font-size:9px!important;
  color:var(--ws-muted,var(--muted))!important;
}
.unified-web-shell .brand-scope-line .shell-nav-icon-img{width:12px;height:12px}
.unified-web-shell .workspace-nav{display:none!important}
.unified-web-shell .top-actions{
  grid-column:3;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  justify-content:flex-end;
  gap:8px!important;
}
.unified-web-shell .top-actions>.top-link,
.unified-web-shell .top-actions>#adminLink{display:none!important}
.unified-web-shell .locale-toggle-source{display:none!important}

.unified-web-shell .workspace-switch{
  position:relative;
  width:184px;
  min-width:184px;
  height:40px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:0;
  padding:3px;
  border:1px solid var(--ws-line,var(--line));
  border-radius:11px;
  background:var(--ws-surface-muted,var(--surface2));
  box-shadow:inset 0 1px rgba(255,255,255,.35);
  isolation:isolate;
}
.unified-web-shell .workspace-switch::before{
  content:"";
  position:absolute;
  z-index:0;
  left:3px;
  top:3px;
  width:calc((100% - 6px)/2);
  height:32px;
  border-radius:8px;
  background:var(--ws-surface,var(--surface));
  box-shadow:0 2px 7px rgba(31,27,23,.08);
}
.unified-web-shell .workspace-switch.is-local::before{transform:translateX(100%)}
.unified-web-shell .workspace-switch-item{
  position:relative;
  z-index:1;
  width:100%;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 6px;
  border:0;
  border-radius:8px;
  background:transparent!important;
  color:var(--ws-muted,var(--muted));
  font:inherit;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
  box-shadow:none!important;
}
.unified-web-shell button.workspace-switch-item{cursor:pointer}
.unified-web-shell .workspace-switch-item.active{color:var(--ws-text,var(--text));cursor:default}
.unified-web-shell button.workspace-switch-item:not(.active):hover{color:var(--ws-text,var(--text))}
.unified-web-shell .workspace-switch-item:disabled{opacity:1;cursor:wait}
.unified-web-shell .shell-nav-icon-img{width:14px;height:14px;display:block;object-fit:contain;flex:0 0 auto}
.unified-web-shell .workspace-switch-item .shell-nav-icon-img{width:13px;height:13px;opacity:.72}
.unified-web-shell .workspace-switch-item.active .shell-nav-icon-img{opacity:1}

.unified-web-shell .unified-locale-switch{
  height:40px;
  display:flex;
  align-items:center;
  padding:3px;
  gap:0;
  border:1px solid var(--ws-line,var(--line));
  border-radius:11px;
  background:var(--ws-surface-muted,var(--surface2));
}
.unified-web-shell .unified-locale-switch .locale-option{
  min-width:36px;
  height:32px;
  padding:0 8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--ws-muted,var(--muted));
  font:inherit;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}
.unified-web-shell .unified-locale-switch .locale-option.active{
  background:var(--ws-surface,var(--surface));
  color:var(--ws-text,var(--text));
  box-shadow:0 2px 7px rgba(31,27,23,.07);
}
.unified-web-shell .theme-button{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  padding:0!important;
  border-radius:11px!important;
  background:var(--ws-surface,var(--surface))!important;
}

.web-sidebar{
  position:fixed;
  z-index:55;
  left:0;
  top:68px;
  bottom:0;
  width:220px;
  padding:22px 14px 18px;
  border-right:1px solid var(--ws-line,var(--line));
  background:color-mix(in srgb,var(--ws-surface,var(--surface)) 88%,var(--ws-bg,var(--bg)));
  display:flex;
  flex-direction:column;
  gap:14px;
}
.web-sidebar-title{
  min-height:20px;
  padding:0 10px 4px;
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ws-muted,var(--muted));
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.web-sidebar-title .shell-nav-icon-img{width:14px;height:14px}
.web-sidebar-nav{display:grid;gap:6px}
.web-sidebar-nav a{
  min-height:46px;
  width:100%;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ws-muted,var(--muted));
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  transition:.15s;
}
.web-sidebar-nav a:hover{
  background:color-mix(in srgb,var(--ws-surface,var(--surface)) 54%,transparent);
  color:var(--ws-text,var(--text));
}
.web-sidebar-nav a.active{
  background:var(--ws-surface,var(--surface));
  color:var(--ws-text,var(--text));
  border-color:var(--ws-line,var(--line));
  box-shadow:0 7px 18px rgba(31,27,23,.05);
}
.shell-nav-icon{
  width:28px;height:28px;flex:0 0 28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--ws-surface-muted,var(--surface2));
}
.shell-nav-icon .shell-nav-icon-img{width:15px;height:15px}
.web-sidebar-nav a.active .shell-nav-icon{background:var(--brand-sand)}
.web-sidebar-divider{height:1px;background:var(--ws-line,var(--line));margin:4px 4px}
.web-sidebar-scope{
  margin-top:auto;
  padding:13px 11px;
  border:1px solid var(--ws-line,var(--line));
  border-radius:12px;
  background:var(--ws-surface,var(--surface));
  display:grid;
  gap:4px;
}
.web-sidebar-scope strong{display:flex;align-items:center;gap:6px;font-size:10px}
.web-sidebar-scope strong .shell-nav-icon-img{width:13px;height:13px}
.web-sidebar-scope span{font-size:9px;line-height:1.4;color:var(--ws-muted,var(--muted))}

.unified-web-shell .web-workspace,
.unified-web-shell .finance-workspace,
.unified-web-shell .account-workspace,
.unified-web-shell .admin-portal{margin-left:220px}
.unified-web-shell .workspace-wrap,
.unified-web-shell .finance-wrap,
.unified-web-shell .account-wrap,
.unified-web-shell .admin-wrap{
  width:min(1320px,calc(100% - 48px))!important;
}
.unified-web-shell .web-workspace,
.unified-web-shell .finance-workspace,
.unified-web-shell .account-workspace{padding-top:26px!important}

html[data-theme="dark"] .unified-web-shell .workspace-brand .brand-image-mark{
  background:#f5f1eb!important;box-shadow:none!important
}
html[data-theme="dark"] .unified-web-shell .workspace-switch,
html[data-theme="dark"] .unified-web-shell .unified-locale-switch{
  background:#181714;border-color:#39352f;box-shadow:none
}
html[data-theme="dark"] .unified-web-shell .workspace-switch::before,
html[data-theme="dark"] .unified-web-shell .unified-locale-switch .locale-option.active{
  background:#302c26;box-shadow:none
}
html[data-theme="dark"] .unified-web-shell .workspace-switch-item.active,
html[data-theme="dark"] .unified-web-shell .unified-locale-switch .locale-option.active{color:#fff8ef}
html[data-theme="dark"] .web-sidebar{background:color-mix(in srgb,var(--ws-surface,var(--surface)) 88%,var(--ws-bg,var(--bg)))}
html[data-theme="dark"] .web-sidebar-nav a.active{background:#25231f;border-color:#3b3731;box-shadow:none}
html[data-theme="dark"] .shell-nav-icon{background:#312d27}
html[data-theme="dark"] .web-sidebar-nav a.active .shell-nav-icon{background:#eee7dd}

@media(max-width:900px){
  .unified-web-shell .workspace-header{grid-template-columns:190px minmax(0,1fr) auto;padding:0 12px!important}
  .unified-web-shell .workspace-brand{width:190px}
  .web-sidebar{width:190px;padding-left:12px;padding-right:12px}
  .unified-web-shell .web-workspace,
  .unified-web-shell .finance-workspace,
  .unified-web-shell .account-workspace,
  .unified-web-shell .admin-portal{margin-left:190px}
}
@media(max-width:680px){
  .unified-web-shell .workspace-header{display:flex!important;padding:0 10px!important;gap:8px!important}
  .unified-web-shell .workspace-brand{width:auto;flex:1}
  .unified-web-shell .brand-copy{display:none}
  .unified-web-shell .workspace-brand .brand-image-mark{width:38px!important;height:38px!important}
  .unified-web-shell .workspace-switch{width:88px;min-width:88px}
  .unified-web-shell .workspace-switch-item span{display:none}
  .unified-web-shell .unified-locale-switch{display:none}
  .web-sidebar{position:static;width:100%;height:auto;padding:8px 10px;border-right:0;border-bottom:1px solid var(--ws-line,var(--line));display:block}
  .web-sidebar-title,.web-sidebar-scope,.web-sidebar-divider{display:none}
  .web-sidebar-nav{grid-template-columns:repeat(5,1fr);gap:4px}
  .web-sidebar-nav a{min-height:42px;justify-content:center;padding:0 5px;font-size:10px}
  .shell-nav-icon{display:none}
  .web-sidebar-nav #sidebarAdminLink{display:none!important}
  .unified-web-shell .web-workspace,
  .unified-web-shell .finance-workspace,
  .unified-web-shell .account-workspace,
  .unified-web-shell .admin-portal{margin-left:0}
  .unified-web-shell .workspace-wrap,
  .unified-web-shell .finance-wrap,
  .unified-web-shell .account-wrap,
  .unified-web-shell .admin-wrap{width:min(100% - 24px,1320px)!important}
}

html[data-theme="dark"] .unified-web-shell .workspace-switch-item .shell-nav-icon-img,html[data-theme="dark"] .web-sidebar-title .shell-nav-icon-img,html[data-theme="dark"] .web-sidebar-scope .shell-nav-icon-img,html[data-theme="dark"] .web-sidebar-nav a:not(.active) .shell-nav-icon-img{filter:invert(.88) sepia(.08) saturate(.35) brightness(1.3)}
html[data-theme="dark"] .unified-web-shell .brand-scope-line .shell-nav-icon-img{filter:invert(.88) sepia(.08) saturate(.35) brightness(1.3)}

/* v0.5.8 — one shell system: same metrics as the local dashboard */
.unified-web-shell{
  --ws-bg:var(--ins-bg);--ws-surface:var(--ins-surface);--ws-surface-soft:var(--ins-surface-soft);--ws-surface-muted:var(--ins-surface-muted);
  --ws-line:var(--ins-line);--ws-line-strong:var(--ins-line-strong);--ws-text:var(--ins-text);--ws-muted:var(--ins-muted);
}
.unified-web-shell .workspace-top{height:var(--ins-header-h)!important;background:color-mix(in srgb,var(--ins-surface) 94%,transparent)!important;border-color:var(--ins-line)!important}
.unified-web-shell .workspace-header{height:var(--ins-header-h)!important;grid-template-columns:var(--ins-sidebar-w) minmax(0,1fr) auto!important;padding:0 var(--ins-shell-pad-x)!important;font-family:var(--ins-font-sans)!important}
.unified-web-shell .workspace-brand{width:var(--ins-sidebar-w)!important;gap:10px!important}
.unified-web-shell .ins-brand-lockup{gap:10px}.unified-web-shell .ins-brand-name{font-size:var(--ins-font-brand)!important}.unified-web-shell .ins-brand-scope{font-size:var(--ins-font-brand-sub)!important}
.unified-web-shell .top-actions{height:var(--ins-control-h);gap:8px!important}.unified-web-shell .workspace-switch,.unified-web-shell .unified-locale-switch{height:var(--ins-control-h)!important;border-radius:var(--ins-radius-sm)!important;background:var(--ins-surface-soft)!important;border-color:var(--ins-line)!important}
.unified-web-shell .workspace-switch{width:190px!important;min-width:190px!important}.unified-web-shell .workspace-switch::before{height:32px;background:var(--ins-surface)!important;box-shadow:var(--ins-shadow-xs)!important}.unified-web-shell .workspace-switch-item{height:32px;font-size:var(--ins-font-control)!important;font-weight:780!important}
.unified-web-shell .unified-locale-switch .locale-option{height:32px;min-width:38px;font-size:var(--ins-font-control)!important;font-weight:780!important}.unified-web-shell .unified-locale-switch .locale-option.active{background:var(--ins-surface)!important;box-shadow:var(--ins-shadow-xs)!important}.unified-web-shell .theme-button{width:var(--ins-control-h)!important;min-width:var(--ins-control-h)!important;height:var(--ins-control-h)!important;border-radius:var(--ins-radius-sm)!important;background:var(--ins-surface)!important;border-color:var(--ins-line)!important}
.web-sidebar{top:var(--ins-header-h)!important;width:var(--ins-sidebar-w)!important;padding:22px 14px 18px!important;background:color-mix(in srgb,var(--ins-surface) 90%,var(--ins-bg))!important;border-color:var(--ins-line)!important}
.web-sidebar-title{font-size:var(--ins-font-sidebar-title)!important}.web-sidebar-nav{gap:6px!important}.web-sidebar-nav a{min-height:var(--ins-nav-h)!important;padding:0 10px!important;border-radius:var(--ins-radius-md)!important;font-size:var(--ins-font-nav)!important;font-weight:760!important}.web-sidebar-nav a.active{background:var(--ins-surface)!important;border-color:var(--ins-line)!important;box-shadow:var(--ins-shadow-xs)!important}.shell-nav-icon{width:28px!important;height:28px!important;border-radius:9px!important;background:var(--ins-surface-soft)!important}.web-sidebar-nav a.active .shell-nav-icon{background:var(--ins-cream)!important}.web-sidebar-divider{background:var(--ins-line)!important}.web-sidebar-scope{border-color:var(--ins-line)!important;background:var(--ins-surface)!important}
.unified-web-shell .web-workspace,.unified-web-shell .finance-workspace,.unified-web-shell .account-workspace,.unified-web-shell .admin-portal{margin-left:var(--ins-sidebar-w)!important;padding-top:26px!important}
.unified-web-shell .workspace-wrap,.unified-web-shell .finance-wrap,.unified-web-shell .account-wrap,.unified-web-shell .admin-wrap{width:min(var(--ins-content-max),calc(100% - 48px))!important;margin-left:auto!important;margin-right:auto!important}
.unified-web-shell .page-head,.unified-web-shell .finance-head,.unified-web-shell .account-head,.unified-web-shell .portal-head{margin-bottom:16px!important;align-items:center!important}.unified-web-shell .page-head h1,.unified-web-shell .finance-head h1,.unified-web-shell .account-head h1,.unified-web-shell .portal-head h1{font-family:var(--ins-font-display)!important;font-size:var(--ins-font-page-title)!important;line-height:1!important;letter-spacing:-.055em!important;margin:0 0 7px!important}.unified-web-shell .page-head p,.unified-web-shell .finance-head p,.unified-web-shell .account-head p,.unified-web-shell .portal-head p{font-size:var(--ins-font-page-subtitle)!important;line-height:1.45!important;color:var(--ins-muted)!important;margin:0!important}
html[data-theme="dark"] .unified-web-shell .workspace-switch,html[data-theme="dark"] .unified-web-shell .unified-locale-switch{background:var(--ins-surface-soft)!important;border-color:var(--ins-line)!important}html[data-theme="dark"] .unified-web-shell .workspace-switch::before,html[data-theme="dark"] .unified-web-shell .unified-locale-switch .locale-option.active{background:var(--ins-surface-muted)!important}html[data-theme="dark"] .web-sidebar{background:color-mix(in srgb,var(--ins-surface) 92%,var(--ins-bg))!important}html[data-theme="dark"] .web-sidebar-nav a.active{background:var(--ins-surface-soft)!important;border-color:var(--ins-line)!important}html[data-theme="dark"] .shell-nav-icon{background:var(--ins-surface-muted)!important}html[data-theme="dark"] .web-sidebar-nav a.active .shell-nav-icon{background:#4A453F!important}
@media(max-width:900px){.unified-web-shell .workspace-header{grid-template-columns:var(--ins-sidebar-w) minmax(0,1fr) auto!important}.unified-web-shell .workspace-brand{width:var(--ins-sidebar-w)!important}.web-sidebar{width:var(--ins-sidebar-w)!important}.unified-web-shell .web-workspace,.unified-web-shell .finance-workspace,.unified-web-shell .account-workspace,.unified-web-shell .admin-portal{margin-left:var(--ins-sidebar-w)!important}}
@media(max-width:680px){.unified-web-shell .workspace-header{display:flex!important}.unified-web-shell .workspace-brand{width:auto!important}.unified-web-shell .ins-brand-copy{display:none!important}.unified-web-shell .workspace-switch{width:92px!important;min-width:92px!important}.unified-web-shell .web-workspace,.unified-web-shell .finance-workspace,.unified-web-shell .account-workspace,.unified-web-shell .admin-portal{margin-left:0!important}.unified-web-shell .workspace-wrap,.unified-web-shell .finance-wrap,.unified-web-shell .account-wrap,.unified-web-shell .admin-wrap{width:min(100% - 24px,var(--ins-content-max))!important}}
/* Reserve the final language-switch width before JS upgrades the header, preventing a horizontal jump. */
.unified-web-shell #localeToggle:not(.locale-toggle-source){width:82px!important;min-width:82px!important;height:var(--ins-control-h)!important;border-radius:var(--ins-radius-sm)!important;background:var(--ins-surface-soft)!important;border-color:var(--ins-line)!important;color:var(--ins-text)!important}


/* v0.5.8 — canonical shell geometry shared with the local dashboard. */
.unified-web-shell .workspace-top{height:var(--ins-header-h)!important}
.unified-web-shell .workspace-header{height:var(--ins-header-h)!important;width:100%!important;max-width:none!important;margin:0!important;padding:0 var(--ins-shell-pad-x)!important;display:grid!important;grid-template-columns:var(--ins-sidebar-w) minmax(0,1fr) auto!important;align-items:center!important;gap:0!important}
.unified-web-shell .workspace-brand{grid-column:1!important;width:var(--ins-sidebar-w)!important;min-width:0!important;margin:0!important;gap:10px!important}.unified-web-shell .workspace-brand .ins-brand-mark{width:var(--ins-brand-mark)!important;height:var(--ins-brand-mark)!important;flex-basis:var(--ins-brand-mark)!important}
.unified-web-shell .top-actions{grid-column:3!important;height:var(--ins-control-h)!important;margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
.unified-web-shell .workspace-switch{width:190px!important;min-width:190px!important;height:var(--ins-control-h)!important}.unified-web-shell .workspace-switch::before{height:32px!important}.unified-web-shell .workspace-switch-item{height:32px!important;font-size:var(--ins-font-control)!important;font-weight:780!important}.unified-web-shell .unified-locale-switch{height:var(--ins-control-h)!important}.unified-web-shell .unified-locale-switch .locale-option{height:32px!important;min-width:38px!important;font-size:var(--ins-font-control)!important;font-weight:780!important}.unified-web-shell .theme-button{width:var(--ins-control-h)!important;height:var(--ins-control-h)!important}
.web-sidebar{top:var(--ins-header-h)!important;bottom:0!important;width:var(--ins-sidebar-w)!important;padding:var(--ins-sidebar-pad-top) var(--ins-sidebar-pad-x) 18px!important;gap:14px!important}.web-sidebar-title{height:24px!important;min-height:24px!important;padding:0 10px 4px!important;font-size:var(--ins-font-sidebar-title)!important}.web-sidebar-nav{gap:6px!important}.web-sidebar-nav a{height:var(--ins-nav-h)!important;min-height:var(--ins-nav-h)!important;padding:0 10px!important;gap:10px!important;border-radius:var(--ins-radius-md)!important;font-size:var(--ins-font-nav)!important;font-weight:760!important;line-height:1!important}.shell-nav-icon{width:var(--ins-nav-icon)!important;height:var(--ins-nav-icon)!important;flex-basis:var(--ins-nav-icon)!important}.web-sidebar-scope{margin-top:auto!important}
.unified-web-shell .web-workspace,.unified-web-shell .finance-workspace,.unified-web-shell .account-workspace,.unified-web-shell .admin-portal{margin-left:var(--ins-sidebar-w)!important;padding-top:var(--ins-page-top)!important}
.unified-web-shell .workspace-wrap,.unified-web-shell .finance-wrap,.unified-web-shell .account-wrap,.unified-web-shell .admin-wrap{width:min(var(--ins-content-max),calc(100% - (var(--ins-content-gutter) * 2)))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
.unified-web-shell .page-head,.unified-web-shell .finance-head,.unified-web-shell .account-head,.unified-web-shell .portal-head{margin:0 0 var(--ins-page-head-gap)!important;min-height:auto!important;align-items:center!important}.unified-web-shell .page-head h1,.unified-web-shell .finance-head h1,.unified-web-shell .account-head h1,.unified-web-shell .portal-head h1{font-size:var(--ins-font-page-title)!important;line-height:1!important;margin:0 0 7px!important}.unified-web-shell .page-head p,.unified-web-shell .finance-head p,.unified-web-shell .account-head p,.unified-web-shell .portal-head p{font-size:var(--ins-font-page-subtitle)!important;line-height:1.45!important;margin:0!important}
@media(max-width:900px){.unified-web-shell .workspace-header{grid-template-columns:var(--ins-sidebar-w) minmax(0,1fr) auto!important}.web-sidebar{width:var(--ins-sidebar-w)!important}.unified-web-shell .web-workspace,.unified-web-shell .finance-workspace,.unified-web-shell .account-workspace,.unified-web-shell .admin-portal{margin-left:var(--ins-sidebar-w)!important}}
@media(max-width:680px){.unified-web-shell .workspace-header{display:flex!important}.web-sidebar{position:static!important;width:100%!important;height:auto!important}.unified-web-shell .web-workspace,.unified-web-shell .finance-workspace,.unified-web-shell .account-workspace,.unified-web-shell .admin-portal{margin-left:0!important}.unified-web-shell .workspace-wrap,.unified-web-shell .finance-wrap,.unified-web-shell .account-wrap,.unified-web-shell .admin-wrap{width:calc(100% - (var(--ins-content-gutter) * 2))!important}}
