@font-face {
    font-family: 'Topestetic';
    src: url('/panel/fonts/topestetic_light.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Topestetic';
    src: url('/panel/fonts/topestetic_regular.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Topestetic';
    src: url('/panel/fonts/topestetic_medium.woff2') format('woff2');
    font-weight: 600 900;
    font-display: swap;
}
:root {
    --ink: #171717;
    --muted: #656565;
    --green: #171717;
    --green-soft: #f5f5f5;
    --paper: #f5f5f5;
    --line: #e3e3e3;
    --warm: #f1eee6;
    --danger: #ae5145;
    --summary: #f5f7ef;
    --compare-after: #eff4e9;
    --compare-after-row: #f5f8f0;
    --good-bg: #ecf5e4;
    --good-ink: #4c6f3d;
    --good-line: #dce8d1;
    font-family: 'Topestetic', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
    font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, summary, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #d71a5d; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 35px; font-weight: 500; letter-spacing: -1.3px; line-height: 1.18; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.35px; }
h3 { font-size: 17px; font-weight: 600; }
label { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; }
input:not([type=range]):not([type=checkbox]), select, textarea { display: block; width: 100%; padding: 12px 13px; border: 1px solid #d7d7d7; border-radius: 8px; background: #fff; color: var(--ink); min-height: 43px; }
input::placeholder, textarea::placeholder { color: #999e98; }
input[type=range] { accent-color: var(--green); width: 100%; }
input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; }
.button { display: inline-flex; gap: 16px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 11px 16px; font-weight: 550; font-size: 16px; min-height: 40px; transition: background .18s, transform .18s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: default; transform: none; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #333; }
.secondary { background: #fff; border-color: #d7d7d7; }
.secondary:hover { background: #f5f5f5; }
.full { width: 100%; }
.text-button { background: none; border: 0; font-size: 15px; color: var(--muted); padding: 6px; }
.eyebrow { font-size: 13px; letter-spacing: 1.8px; font-weight: 650; color: var(--muted); display: block; margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; letter-spacing: -.7px; line-height: 1; }
.brand-symbol { width: 38px; height: 42px; border: 1px solid currentColor; border-radius: 3px; font-family: Georgia, serif; font-size: 32px; display: grid; place-items: center; padding-bottom: 5px; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; display: block; margin-top: 8px; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { padding: 52px 60px; min-height: 100vh; background: #f1f1f1; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-story::after { content: ''; position: absolute; right: -190px; bottom: 45px; width: 430px; height: 530px; border: 1px solid #ccd6c2; border-radius: 50%; transform: rotate(-28deg); pointer-events: none; }
.login-story h1 { font-family: Georgia, serif; font-size: clamp(40px, 4vw, 62px); letter-spacing: -2px; line-height: 1.12; margin: 26px 0; }
.login-story p { font-size: 17px; line-height: 1.9; color: #617261; }
.story-footer { font-size: 15px; color: #778672; }
.login-form { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-inner { width: min(100%, 360px); }
.login-inner h2 { font-size: 31px; font-weight: 500; margin-bottom: 12px; letter-spacing: -1px; }
.login-inner > p { color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.login-inner label { margin: 18px 0 7px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px !important; }
.password-field button { position: absolute; right: 10px; top: 9px; }
.form-error { color: var(--danger); font-size: 16px; min-height: 28px; padding: 8px 0; }
.google-login-copy { color: var(--muted); line-height: 1.7; margin: 0 0 28px; }
.google-button { gap: 12px; min-height: 48px; }
.google-mark { width: 28px; height: 28px; border-radius: 6px; background: #fff; display: inline-grid; place-items: center; flex: none; }
.google-mark svg { width: 16px; height: 16px; display: block; }
.login-note { margin-top: 28px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.small-dot, .live-dot { width: 6px; height: 6px; background: #568b63; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { padding: 28px 20px 18px; overflow-y: auto; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; position: sticky; height: 100vh; top: 0; }
.sidebar .brand { margin: 0 9px 46px; }
.nav-caption { font-size: 13px; letter-spacing: 1.6px; color: #656565; margin: 0 13px 12px; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 12px; margin-bottom: 4px; border: 0; border-radius: 8px; text-align: left; background: transparent; color: #656565; font-size: 16px; }
.nav-item > span { font-size: 17px; width: 18px; text-align: center; }
.nav-item:hover { background: #f5f5f5; }
.nav-item.active { background: #f5f5f5; color: #171717; font-weight: 600; box-shadow: inset 3px 0 #3d4043; }
.nav-item small { font-size: 11px; padding: 3px 4px; background: #eee; border-radius: 4px; margin-left: auto; white-space: nowrap; }
.nav-divider { height: 1px; background: var(--line); margin: 20px 12px; }
.sidebar-bottom { margin-top: auto; }
.environment { display: flex; gap: 9px; padding: 16px 8px; border-top: 1px solid var(--line); font-size: 15px; align-items: flex-start; }
.environment .small-dot { margin-top: 3px; }
.environment small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.account { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 18px 5px 0; font-size: 14px; }
.account button { margin: 0; padding: 6px 0 6px 8px; }
.account-name { min-width: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.2px; }
.avatar { background: #171717; color: #fff; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 650; letter-spacing: .2px; line-height: 1; }
.main-shell { min-width: 0; }
.topbar { background: #fff; min-height: 75px; padding: 16px 32px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted); }
.topbar strong { color: #4c5a4b; font-weight: 500; }
.topbar > div, .topbar-actions { display: flex; gap: 8px; align-items: center; }
.status-pill, .tag, .quiet-badge { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; background: #f5f5f5; border: 1px solid #e5e6db; border-radius: 5px; color: #737d69; white-space: nowrap; font-weight: 500; }
.status-pill.dirty { background: #fff4df; color: #927344; border-color: #eedcb8; }
.content { max-width: 1540px; margin: 0 auto; padding: 36px 36px 22px; }
.page-title { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.page-title p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.quiet-badge { background: transparent; border: 0; font-size: 14px; color: #8b967e; }
.module-bar { display: flex; align-items: center; gap: 26px; background: #f1f1f1; border: 1px solid #e0e5d8; border-radius: 12px; padding: 18px 22px; margin-bottom: 24px; }
.module-bar label { color: #656565; font-size: 13px; letter-spacing: .6px; margin-bottom: 4px; }
.module-bar select { border: 0; background: transparent; min-width: 230px; padding: 3px 22px 3px 0; min-height: auto; font-size: 18px; font-weight: 600; }
.module-description { font-size: 15px; color: #656565; border-left: 1px solid #d5ddcd; padding-left: 25px; line-height: 1.7; flex: 1; }
.version-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-size: 13px; color: #656565; }
.version-info strong { font-size: 15px; color: #171717; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.editor-column { display: grid; gap: 22px; }
.card { border: 1px solid var(--line); background: #fff; padding: 24px; border-radius: 12px; min-width: 0; }
.card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.card-heading > div { display: flex; align-items: center; gap: 10px; }
.card-heading h2 { font-size: 18px; }
.step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f2f3eb; color: #8b957e; font-size: 13px; font-weight: 600; }
.card-copy { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.switch { position: relative; width: 34px; height: 20px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { display: block; border-radius: 20px; background: #dbdfd5; width: 34px; height: 20px; pointer-events: none; }
.switch span::before { content: ''; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: white; transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 3px solid #d71a5d; }
.info-note { padding: 12px 14px; background: #f5f5f5; border-radius: 7px; font-size: 14px; line-height: 1.8; color: #656565; margin: 15px 0; }
.preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.preset { border: 1px solid #e1e5d9; background: #fff; padding: 9px; font-size: 14px; border-radius: 7px; }
.preset:hover { background: #f0f4e9; border-color: #c9d6b9; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #656565; }
.field-help { color: #656565; font-size: 14px; line-height: 1.8; margin-top: 10px; }
.slider-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(80px, 1fr) 34px; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f1eb; }
.slider-row:last-child { border-bottom: 0; }
.slider-row label { font-size: 15px; }
.slider-row span { display: block; font-size: 12px; color: #656565; margin-top: 4px; }
.slider-row output { border: 1px solid #e3e7d9; background: #f5f5f5; padding: 6px 4px; border-radius: 5px; text-align: center; font-size: 14px; }
.advanced { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.advanced summary { font-size: 15px; color: #656565; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 20px 0; }
.field-grid label { color: #656565; font-size: 14px; }
.field-grid input { margin-top: 8px; }
.number-field { position: relative; }
.number-field input { padding-right: 42px !important; }
.number-field span { position: absolute; right: 14px; top: 13px; color: #8d9786; font-size: 15px; }
.margin-note { display: flex; gap: 13px; padding: 20px 0 0; margin-top: 14px; border-top: 1px solid var(--line); }
.margin-note strong { font-size: 16px; }
.margin-note p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 7px 0 10px; }
.round-icon { display: grid; place-items: center; border-radius: 50%; background: #f0f1e6; width: 38px; height: 38px; font-size: 22px; color: #8b9776; flex-shrink: 0; }
.preview-column { position: sticky; top: 22px; }
.preview-card { padding: 22px; }
.preview-card .button { font-size: 15px; }
.quick-results { margin: 18px 0; }
.empty-preview { text-align: center; padding: 30px 14px; background: #fafafa; border: 1px dashed #e2e6d6; border-radius: 8px; }
.empty-preview > span { display: block; font-size: 25px; color: #bdc9ab; margin-bottom: 12px; }
.empty-preview h3 { font-size: 16px; margin-bottom: 8px; }
.empty-preview p { font-size: 14px; line-height: 1.9; color: #919b84; }
.gentle-note { padding: 22px; font-size: 15px; color: #6c7a60; }
.gentle-note p { font-size: 14px; color: #97a087; line-height: 1.9; margin-top: 8px; }
.picker { position: relative; margin: 15px 0; }
.picker > label { margin-bottom: 7px; font-size: 14px; }
.picker .selected { border-color: #98b298; background: #f6faf3; }
.picker-list { position: absolute; top: 100%; left: 0; right: 0; max-height: 280px; overflow: auto; background: white; border: 1px solid #dde3d5; box-shadow: 0 10px 25px #26352e12; border-radius: 8px; padding: 5px; z-index: 20; }
.picker-option { display: block; background: white; border: 0; text-align: left; padding: 11px; border-radius: 5px; width: 100%; font-size: 15px; }
.picker-option:hover { background: #eef4e8; }
.picker-option small { display: block; color: #8c9880; font-size: 13px; margin-top: 5px; }
.product-row { display: grid; grid-template-columns: 22px 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f1e8; }
.product-row:last-child { border: 0; }
.product-row .rank { color: #a0ac92; font-size: 16px; }
.product-row img { width: 48px; height: 55px; object-fit: contain; background: #fafbf6; border-radius: 6px; }
.product-info { min-width: 0; }
.product-info strong { display: block; font-size: 14px; color: #6c825b; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 5px; }
.product-info h3 { font-size: 15px; line-height: 1.55; font-weight: 500; }
.product-info .reason { font-size: 13px; color: #899d78; margin-top: 6px; line-height: 1.5; }
.product-price { font-size: 15px; white-space: nowrap; font-weight: 600; }
.product-price small { display: block; margin-top: 8px; font-size: 12px; color: #9ea78f; font-weight: 400; }
.preview-card .product-row { grid-template-columns: 15px 38px minmax(0, 1fr); gap: 8px; }
.preview-card .product-row img { width: 38px; height: 43px; }
.preview-card .product-price { grid-column: 3; margin-top: -4px; font-size: 14px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.after-card { border-color: #bfd0b2; }
.green { color: var(--good-ink); background: var(--good-bg); border-color: var(--good-line); }
.test-controls { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.test-controls > div { flex: 1; min-width: 200px; }
.test-controls .picker { margin: 0; }
.rule-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 22px 0; font-size: 14px; color: #88947c; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.boost { background: #849862; }
.pin { background: #b29955; }
.exclude { background: #b47768; }
.rule-row { display: flex; gap: 15px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.rule-row > div { flex: 1; }
.rule-row h3 { font-size: 16px; }
.rule-row p { font-size: 14px; color: #99a18d; margin-top: 7px; line-height: 1.7; }
.rule-row .tag { min-width: 90px; justify-content: center; }
.rule-row .delete-rule { color: #ae7967; }
.history-row { border-top: 1px solid var(--line); padding: 20px 0; display: flex; gap: 20px; align-items: center; }
.history-row > div { flex: 1; }
.history-row strong { font-size: 16px; }
.history-row p { font-size: 15px; color: #7b876e; margin-top: 8px; }
.history-row small { font-size: 13px; color: #a0a891; }
.coming-soon { min-height: 400px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; }
.coming-soon p { font-size: 16px; color: var(--muted); max-width: 370px; line-height: 1.9; }
.content-footer { display: flex; justify-content: space-between; gap: 20px; color: #656565; font-size: 13px; margin-top: 28px; }
dialog { border: 1px solid #dfe6d6; border-radius: 14px; width: min(560px, calc(100% - 30px)); max-height: 90vh; padding: 28px; color: var(--ink); background: #fff; box-shadow: 0 25px 100px #15291c30; }
dialog::backdrop { background: #1e302445; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.close-button { border: 0; background: #f5f5f5; width: 28px; height: 28px; border-radius: 50%; font-size: 22px; }
dialog label { margin: 16px 0 6px; }
dialog label select, dialog label textarea { margin-top: 8px; }
dialog > p { color: var(--muted); font-size: 16px; line-height: 1.9; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.publish-summary { margin: 20px 0; background: #f5f7ef; border-radius: 8px; padding: 16px; font-size: 15px; line-height: 2; }
.toast { position: fixed; bottom: 24px; right: 24px; max-width: min(430px, calc(100vw - 48px)); border-radius: 10px; background: #171717; color: #fff; padding: 16px 22px; z-index: 100; box-shadow: 0 8px 30px #18302025; font-size: 16px; line-height: 1.7; }
.toast.error { background: #86463e; }
@media (min-width: 1550px) { .content { padding-top: 45px; } .card { padding: 28px; } }
@media (max-width: 1150px) { .workspace { grid-template-columns: 228px minmax(0, 1fr); } .sidebar { padding: 28px 12px; } .sidebar .brand { font-size: 20px; } .brand-sub { letter-spacing: 1px; } .content { padding: 28px 24px; } .topbar { padding: 16px 24px; } .editor-grid { gap: 16px; grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr); } .quiet-badge { display: none; } .status-pill { display: none; } .card { padding: 20px; } h1 { font-size: 29px; } .module-description { display: none; } }
@media (max-width: 920px) { .editor-grid { grid-template-columns: 1fr; } .preview-column { position: static; } .comparison { gap: 15px; } .slider-row { grid-template-columns: minmax(150px, 1fr) minmax(90px, 1fr) 34px; } .login-story { padding: 40px; } .product-row { grid-template-columns: 16px 38px minmax(0, 1fr); gap: 8px; } .product-row img { width: 38px; height: 45px; } .product-price { grid-column: 3; } }
@media (max-width: 700px) { .workspace { display: block; } .sidebar { height: auto; position: static; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar .brand { margin: 0 0 20px; } .sidebar nav { display: flex; gap: 5px; overflow-x: auto; } .nav-item { width: auto; white-space: nowrap; padding: 10px; font-size: 14px; } .nav-item > span, .nav-item small, .nav-caption, .nav-divider, .environment { display: none; } .sidebar-bottom { position: absolute; right: 15px; top: 19px; } .account { padding: 0; border: 0; } .account .avatar { display: none; } .topbar { min-height: 60px; padding: 12px 16px; } .topbar > span { display: none; } .topbar > div { width: 100%; justify-content: flex-end; } .topbar .button { flex: 1; font-size: 14px; gap: 5px; } .content { padding: 26px 16px; } h1 { font-size: 27px; } .eyebrow { font-size: 12px; letter-spacing: 1.2px; } .module-bar { padding: 16px; gap: 12px; } .module-bar select { min-width: 0; width: 100%; max-width: 210px; font-size: 16px; } .version-info { margin-left: auto; } .card { padding: 20px 16px; } .slider-row { grid-template-columns: minmax(100px, 1fr) minmax(80px, 1fr) 32px; gap: 10px; } .slider-row label { font-size: 14px; } .field-grid { gap: 18px 12px; } .comparison { grid-template-columns: 1fr; } .card-heading { align-items: flex-start; } .card-heading h2 { font-size: 17px; } .rule-row { gap: 10px; flex-wrap: wrap; } .rule-row > div { min-width: 55%; } .rule-row .tag { min-width: 0; } .history-row { flex-wrap: wrap; } .login-screen { display: block; } .login-story { min-height: 220px; padding: 26px; } .login-story > div { margin-top: 30px; } .login-story h1 { font-size: 30px; margin: 0; } .login-story h1 br { display: none; } .login-story p, .story-footer, .login-story .eyebrow { display: none; } .login-form { padding: 35px 24px; } .content-footer { font-size: 12px; } dialog { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.strategy-guidance { margin: 18px 0; padding: 16px; background: #f5f5f5; border-radius: 10px; font-size: 15px; line-height: 1.8; }
.strategy-guidance p { margin: 8px 0; }
.strategy-guidance ul { padding-left: 16px; margin: 12px 0; }
.strategy-guidance li { margin: 8px 0; }
.strategy-guidance li span { display: block; color: var(--muted); }
.strategy-guidance small, .preview-impact small { color: var(--muted); font-size: 14px; }
.guidance-warning { color: #855a35; }
.preset[aria-pressed=true] { border-color: var(--green); background: #f5f5f5; }
.preview-impact { margin-top: 18px; padding: 12px; background: #f5f5f5; border-radius: 8px; font-size: 15px; line-height: 1.7; }
.preview-impact:empty { display: none; }
.preview-impact p { margin: 10px 0; }
.impact-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.impact-stats span { flex: 1; min-width: 75px; font-size: 14px; color: var(--muted); }
.impact-stats b { display: block; color: var(--ink); font-size: 18px; }
.weight-help { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 5px; }

.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.decision-grid section { padding: 16px; background: #f5f5f5; border-radius: 10px; }
.decision-grid h3 { margin: 12px 0; font-size: 18px; }
.decision-grid label { display: block; margin: 16px 0 8px; font-size: 15px; line-height: 1.7; }
.decision-grid .button { margin-top: 14px; }
.decision-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.decision-check { background: #f4f5f1; padding: 18px; border-radius: 10px; border-left: 3px solid #c8cfc3; }
.decision-check.met { border-color: #46865c; }
.decision-check.unmet { border-color: #b58745; }
.decision-check h3 { font-size: 16px; margin: 0 0 12px; }
.decision-check strong { font-size: 17px; }
.decision-check p { font-size: 15px; line-height: 1.9; color: var(--muted); }
.finance-table-wrap { overflow-x: auto; }
.finance-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.finance-table th { text-align: left; background: #edf1e8; padding: 12px; }
.finance-table td { padding: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .decision-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .decision-checks { grid-template-columns: 1fr; } .finance-table { min-width: 520px; } }

.scenario-row { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 20px; }
.scenario-row > div:first-child { flex: 1; min-width: 0; }
.scenario-row h3 { font-size: 18px; margin: 0 0 10px; }
.scenario-row p, .scenario-row small { font-size: 15px; line-height: 1.9; color: var(--muted); overflow-wrap: anywhere; }
.scenario-actions { display: flex; flex-wrap: wrap; gap: 10px; max-width: 240px; }
.scenario-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.scenario-chip { border: 1px solid #d6ddce; background: #f5f5f5; border-radius: 20px; padding: 6px 12px; font-size: 15px; }
@media (max-width: 700px) { .scenario-row { flex-direction: column; } .scenario-actions { max-width: none; } }

.picker-list { max-height: 360px; padding: 8px; border-radius: 14px; box-shadow: 0 16px 45px #26352e20; }
.picker-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; min-height: 58px; }
.picker-option:hover, .picker-option:focus-visible, .picker-option[aria-selected=true] { background: #eef4e8; }
.picker-option:focus-visible { outline: 2px solid #789a80; outline-offset: -2px; }
.picker-option:disabled { opacity: .45; cursor: not-allowed; }
.choice-copy { flex: 1; min-width: 0; }
.choice-copy strong { display: block; font-weight: 500; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.picker-option .choice-copy small { color: #656565; font-size: 14px; line-height: 1.5; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choice-icon { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: #f1f4ed; color: #4c6d52; }
.choice-arrow { flex-shrink: 0; color: #789074; font-size: 13px; }
.choice-summary { padding: 8px 12px; font-size: 14px; color: var(--muted); }
.choice-more { width: 100%; padding: 12px; border: 0; background: #f5f5f5; border-radius: 8px; color: var(--green); font-size: 15px; text-align: center; }
.search-select { position: relative; width: 100%; }
.native-select { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid #d7d7d7; border-radius: 9px; background: #fff; text-align: left; color: var(--ink); }
.select-trigger:focus-visible, .select-trigger[aria-expanded=true] { outline: 3px solid #91af9870; border-color: #789a80; }
.select-value { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.select-chevron { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; font-size: 0; color: var(--muted); }
.select-popup { display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain; position: absolute; top: calc(100% + 7px); left: 0; min-width: 100%; width: max(100%, 280px); max-width: min(400px, calc(100vw - 48px)); background: #fff; border: 1px solid #dce4d5; border-radius: 14px; padding: 8px; box-shadow: 0 18px 45px #26352e24; z-index: 40; }
.select-popup > input { margin: 0 !important; min-height: 38px !important; font-size: 16px; background: #f5f5f5; }
.select-popup .choice-summary, .select-popup > input { flex-shrink: 0; }
.select-popup .choice-options { min-height: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.module-bar .search-select { width: 280px; max-width: 100%; }
.module-bar .select-trigger { background: #ffffff70; }
.module-bar .select-value { font-size: 16px; font-weight: 600; }
@media (max-width: 700px) { .module-bar .search-select { width: 210px; } .select-popup { width: 280px; } .picker-list { max-height: 300px; } }
.picker-field { position: relative; }
.picker-field input { padding-right: 48px !important; }
.picker-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 0; }
.picker-toggle::before, .select-chevron::before { content: ''; display: block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.picker-toggle:hover { background: #f5f5f5; }

.comparison-legend { margin: 22px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.comparison-board { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.comparison-head, .comparison-row { display: grid; grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr); }
.comparison-head { border-bottom: 1px solid var(--line); background: #f5f5f5; }
.comparison-head > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; }
.comparison-head h2 { margin: 0; font-size: 18px; line-height: 1.6; }
.comparison-head > div:last-child { background: var(--compare-after); }
.comparison-change-heading { align-self: center; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }
.comparison-row { border-bottom: 1px solid #e9ede3; }
.comparison-row:last-child { border-bottom: 0; }
.comparison-before, .comparison-after { min-width: 0; padding: 8px 20px; display: flex; }
.comparison-after { background: var(--compare-after-row); }
.comparison-board .product-row { flex: 1; width: 100%; min-width: 0; min-height: 112px; border: 0; grid-template-columns: 22px 48px minmax(0, 1fr); align-content: center; }
.comparison-board .product-price { grid-column: 3; margin-top: -3px; }
.comparison-board .product-info { min-width: 0; }
.comparison-board .product-info h3 { overflow-wrap: anywhere; }
.comparison-board .product-row > .rank { grid-row: 1 / 3; align-self: center; }
.comparison-board .product-row > img, .comparison-board .product-row > .round-icon { grid-row: 1 / 3; align-self: center; }
.comparison-change { display: flex; align-items: center; justify-content: center; background: #fafbf7; }
.comparison-change > span { display: grid; place-items: center; min-width: 42px; min-height: 36px; padding: 6px; border-radius: 9px; font-size: 16px; font-weight: 600; }
.comparison-change.equal > span { color: #287445; background: #e4f2e7; font-size: 22px; }
.comparison-change.up > span { color: #287445; background: #e4f2e7; }
.comparison-change.down > span { color: #a05732; background: #faece3; }
.comparison-change.new > span { color: #446a73; background: #eaf1f3; font-size: 14px; }
.comparison-change.missing > span { color: #858c7f; background: #eef0e9; font-size: 14px; }
.comparison-no-product { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 112px; color: #909b86; font-size: 14px; line-height: 1.8; }
.comparison-no-product .rank { min-width: 22px; font-size: 16px; }
.comparison-empty { padding: 24px; }
@media (max-width: 1100px) { .comparison-head > div { flex-direction: column; align-items: flex-start; padding: 18px; } .comparison-before, .comparison-after { padding: 8px 14px; } .comparison-board .product-row { grid-template-columns: 18px 38px minmax(0, 1fr); gap: 8px; } .comparison-board .product-row img { width: 38px; height: 45px; } }
@media (max-width: 700px) { .comparison-head, .comparison-row { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); } .comparison-head > div { padding: 12px 10px; gap: 7px; } .comparison-head h2 { font-size: 15px; } .comparison-head .tag { font-size: 12px; padding: 4px 6px; } .comparison-change-heading { font-size: 11px; } .comparison-before, .comparison-after { padding: 8px; } .comparison-board .product-row { grid-template-columns: 16px minmax(0, 1fr); gap: 8px; min-height: 190px; } .comparison-board .product-row > .rank { grid-column: 1; grid-row: 1 / 4; } .comparison-board .product-row > img, .comparison-board .product-row > .round-icon { grid-column: 2; grid-row: 1; width: 32px; height: 36px; justify-self: start; } .comparison-board .product-info { grid-column: 2; grid-row: 2; } .comparison-board .product-info h3 { font-size: 14px; line-height: 1.6; } .comparison-board .product-info strong { font-size: 11px; } .comparison-board .product-price { grid-column: 2; grid-row: 3; font-size: 14px; white-space: normal; } .comparison-board .product-price small { font-size: 11px; } .comparison-board .reason { font-size: 12px; } .comparison-change > span { min-width: 30px; min-height: 30px; padding: 4px; font-size: 15px; } .comparison-change.equal > span { font-size: 22px; } .comparison-change.new > span, .comparison-change.missing > span { font-size: 12px; } .comparison-no-product { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; font-size: 12px; } }

.overview-section { margin-top: 38px; }
.overview-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.overview-section-heading h2 { font-size: 24px; font-weight: 500; }
.overview-section-heading p { margin-top: 6px; color: var(--muted); font-size: 16px; }
#overview-result-count { flex-shrink: 0; font-size: 14px; color: var(--muted); }
.overview-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin: 24px 0 16px; }
.overview-tabs { display: flex; gap: 4px; padding: 4px; background: #eaeaea; border-radius: 8px; }
.overview-tabs button { border: 0; border-radius: 5px; padding: 12px 18px; min-height: 46px; background: transparent; color: var(--muted); font-size: 15px; }
.overview-tabs button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px #00000008; font-weight: 600; }
.overview-search { width: 340px; }
.overview-search input { margin: 0; min-height: 52px; font-size: 16px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.overview-stats > span { display: flex; flex-direction: column; padding: 22px 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 15px; line-height: 1.5; }
.overview-stats > span.has-changes { border-top: 3px solid #d71a5d; padding-top: 20px; }
.overview-stats small { font-size: 14px; }
.overview-stats b { display: block; margin: 6px 0 4px; font-size: 40px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.overview-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-filters button { background: transparent; border: 1px solid transparent; border-radius: 20px; min-height: 40px; padding: 8px 14px; color: var(--muted); font-size: 14px; }
.overview-filters button:hover { background: #eaeaea; }
.overview-filters button[aria-pressed=true] { color: var(--ink); background: #fff; border-color: #d7d7d7; font-weight: 500; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 20px; }
.overview-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .18s; }
.overview-card:hover { border-color: #bdbdbd; }
.overview-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.overview-card-top .tag { font-size: 12px; background: #f5f5f5; border: 0; padding: 6px 10px; }
.overview-card-top .tag.green { background: #edf6ef; color: #247a3b; }
.overview-change { font-size: 12px; color: #ad154a; display: inline-flex; gap: 6px; align-items: center; }
.overview-change::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.overview-card h2 { font-size: 23px; font-weight: 500; margin: 20px 0 8px; line-height: 1.25; }
.overview-purpose { min-height: 48px; margin: 0 0 24px; font-size: 16px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.overview-direction { display: inline-block; padding: 6px 10px; background: #f5f5f5; border-radius: 5px; font-size: 14px; margin-top: 12px; }
.overview-effect { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.overview-details { padding: 16px 0 0; margin-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.overview-details summary { cursor: pointer; color: var(--muted); }
.overview-details[open] summary { color: var(--ink); }
.overview-all-weights { max-height: 320px; overflow: auto; margin-top: 12px; }
.overview-all-weights > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.overview-all-weights b { white-space: nowrap; font-weight: 500; }
.overview-all-weights small { color: var(--muted); font-weight: 400; }
.overview-facts { display: grid; gap: 8px; margin: 16px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.overview-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-card-actions .button { font-size: 15px; padding: 10px 16px; min-height: 44px; }
.overview-card-actions .text-button { color: var(--ink); font-size: 15px; padding: 10px 0; }
.overview-card-actions .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.overview-empty { grid-column: 1 / -1; padding: 32px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.customer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.customer-grid .card > label { display: block; font-size: 15px; margin: 20px 0 10px; line-height: 1.8; }
.customer-grid .card > label.checkbox-row { display: flex; }
.customer-grid .field-grid { margin: 24px 0 14px; }
.customer-grid .checkbox-row { font-size: 15px; }
.customer-summary { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--summary); font-size: 14px; line-height: 1.8; color: var(--muted); }
.customer-simulation { margin: 24px 0; padding: 16px; background: #f5f5f5; border-radius: 10px; font-size: 15px; line-height: 1.8; }
.customer-simulation p { color: var(--muted); margin-bottom: 0; }
.customer-examples { flex-wrap: wrap; }
@media (max-width: 1350px) { .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) { .customer-grid { grid-template-columns: 1fr; } .overview-toolbar { flex-wrap: wrap; } .overview-search { width: 100%; } .overview-stats { grid-template-columns: repeat(2, 1fr); } .overview-stats > span:nth-child(2) { border-right: 0; } }
@media (max-width: 700px) { .overview-grid { grid-template-columns: 1fr; } .overview-card { padding: 20px; } .overview-stats > span { padding: 16px; font-size: 14px; } .overview-stats b { font-size: 22px; } .overview-tabs { width: 100%; } .overview-tabs button { flex: 1; padding: 12px 8px; } }

/* Shared filter history is independent from the business configuration. */
.filter-history-dialog { width: min(760px, calc(100vw - 32px)); max-height: 85dvh; padding: 28px; overflow-y: auto; }
.filter-history-dialog > label { display: block; margin-top: 20px; font-size: 16px; }
.filter-history-dialog > label > input { width: 100%; margin: 8px 0 16px; }
.filter-history-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.filter-history-tabs button { background: #f1f4ef; border: 1px solid var(--line); border-radius: 20px; padding: 9px 13px; color: var(--muted); cursor: pointer; font: inherit; font-size: 15px; }
.filter-history-tabs button[aria-pressed="true"] { background: #234d3b; border-color: #234d3b; color: white; }
.filter-history-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.filter-history-row > div { min-width: 0; display: grid; justify-items: start; gap: 7px; }
.filter-history-row strong { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.filter-history-row small { color: var(--muted); font-size: 14px; }
.filter-history-row .button { flex-shrink: 0; font-size: 15px; }
.filter-recent-options { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.filter-recent-option { color: #234d3b; font-size: 16px; }
@media (max-width: 700px) { .filter-history-dialog { padding: 20px; } .filter-history-row { align-items: stretch; flex-direction: column; gap: 10px; } .filter-history-row .button { align-self: flex-start; } }

@media (max-width: 700px) { .topbar > div { flex-wrap: wrap; } #filter-history-open { flex: 0 0 100%; padding: 9px 12px; } }

/* Shared Topestetic shell: the same fonts and neutral palette as customer account and help. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.brand img { display: block; width: 160px; height: auto; }
.brand-sub { font-size: 12px; letter-spacing: .6px; font-weight: 400; margin: 0; color: var(--muted); }
.sidebar .brand { margin: 0 12px 32px; }
.nav-item { min-height: 48px; font-size: 16px; padding: 12px; border-radius: 4px; }
.nav-caption { font-size: 12px; }
.environment { font-size: 14px; }
.environment small { font-size: 12px; line-height: 1.5; }
.account { font-size: 14px; }
.content { padding: 36px; max-width: 1450px; }
.page-title { margin-bottom: 30px; }
.page-title h1 { font-size: 38px; font-weight: 500; letter-spacing: -.8px; }
.page-title p { font-size: 17px; max-width: 680px; }
.page-title .eyebrow { font-size: 12px; letter-spacing: 1.6px; margin-bottom: 10px; }
.topbar { padding: 18px 28px; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.topbar-actions { flex-wrap: wrap; margin-left: auto; }
.topbar-actions .button,
.topbar-actions .status-pill,
.topbar-actions .text-button { box-sizing: border-box; height: 40px; min-height: 40px; font-size: 14px; border-radius: 8px; }
.topbar-actions .button { gap: 8px; padding: 0 14px; }
.topbar-actions .button:hover { transform: none; }
.topbar-actions .status-pill { padding: 0 12px; font-size: 13px; }
.topbar-actions .text-button { display: inline-flex; align-items: center; padding: 0 10px; }
.button { border-radius: 5px; min-height: 46px; }
.card { border-radius: 8px; }
.module-bar { background: #eee; border-color: var(--line); border-radius: 8px; flex-wrap: wrap; }
.module-bar label { color: var(--muted); font-size: 13px; }
.slider-row { grid-template-columns: minmax(130px, 1.2fr) minmax(80px, 1fr) 44px; }
.field-help, .card-copy { color: var(--muted); line-height: 1.6; }
@media (max-width: 1150px) {
    .content { padding: 28px 24px; }
    .topbar { padding: 16px 24px; }
    .nav-item { font-size: 15px; }
}
@media (max-width: 920px) {
    .overview-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .overview-stats > span { padding: 18px; }
    .overview-stats > span.has-changes { padding-top: 16px; }
    .overview-stats small { font-size: 13px; }
    .overview-stats > span > span { font-size: 14px; }
    .overview-toolbar { align-items: stretch; gap: 12px; }
    .overview-search { width: 100%; }
    .overview-section-heading { align-items: flex-start; }
}
@media (max-width: 700px) {
    .sidebar { padding: 16px; }
    .sidebar .brand { margin: 0 0 18px; }
    .brand img { width: 130px; }
    .brand-sub { font-size: 11px; }
    .sidebar-bottom { top: 25px; }
    .account { font-size: 14px; }
    .sidebar nav { gap: 6px; padding-bottom: 2px; }
    .nav-item { font-size: 15px; min-height: 44px; padding: 10px 14px; }
    .topbar { padding: 12px 16px; }
    .topbar > div { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .topbar .button { font-size: 14px; padding: 10px 8px; }
    #filter-history-open { grid-column: 1 / -1; justify-self: start; min-height: 36px; padding: 6px 0; border: 0; background: transparent; font-size: 13px; }
    #discard-draft { grid-column: 1 / -1; justify-self: start; }
    .content { padding: 26px 16px; }
    .page-title h1 { font-size: 30px; }
    .page-title p { font-size: 16px; }
    .overview-stats { gap: 8px; }
    .overview-stats > span { padding: 14px 10px; font-size: 13px; }
    .overview-stats > span.has-changes { padding-top: 12px; }
    .overview-stats small { display: none; }
    .overview-stats b { font-size: 30px; margin: 0 0 6px; }
    .overview-stats > span > span { font-size: 13px; }
    .overview-section { margin-top: 28px; }
    .overview-section-heading { display: block; }
    .overview-section-heading h2 { font-size: 23px; }
    #overview-result-count { display: block; margin-top: 12px; }
    .overview-tabs button { font-size: 14px; }
    .overview-grid { gap: 12px; }
    .overview-card { padding: 22px; }
    .overview-card h2 { font-size: 23px; }
    .overview-purpose { min-height: 0; }
    .overview-filters { gap: 4px; }
    .overview-filters button { font-size: 13px; padding: 8px 10px; }
    .content-footer { font-size: 12px; flex-direction: column; gap: 8px; }
    .slider-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; }
    .slider-row > div { grid-column: 1 / -1; }
    .slider-row > input[type=range] { grid-column: 1; }
    .slider-row > output { grid-column: 2; }
    .slider-row label { font-size: 15px; }
    .card-heading { flex-wrap: wrap; }
    .card .button { white-space: normal; max-width: 100%; }
    .field-grid { grid-template-columns: 1fr; }
}

@media (min-width: 921px) {
    .editor-grid { height: var(--editor-height, calc(100dvh - 360px)); }
    .editor-column, .preview-column { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding-right: 6px; }
    .editor-column { grid-auto-rows: max-content; align-content: start; }
    .preview-column { position: static; }
}

/* Merchant editor and storefront preview. */
.preview-breadcrumb { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.preview-breadcrumb > span:first-child { color: var(--ink); font-weight: 500; }
.preview-extra { margin: 12px 0 18px; padding-top: 12px; }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.preview-actions .overview-tabs button { padding: 10px 14px; min-height: 42px; }
.preview-actions .button { width: auto; font-size: 14px; }
.preview-status { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 12px 0; }
.preview-changes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.preview-changes:empty { display: none; }
.preview-changes > span { padding: 10px; background: #f5f5f5; border-radius: 5px; font-size: 12px; color: var(--muted); }
.preview-changes b { display: block; color: var(--ink); font-size: 22px; font-weight: 500; }
.storefront-heading { margin: 24px 0 16px; }
.storefront-heading h2 { font-size: 25px; font-weight: 600; }
.storefront-heading p { font-size: 18px; margin-top: 4px; }
.quick-results { margin: 16px 0 20px; }
.preview-outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.preview-outcome > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.preview-outcome small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.preview-outcome b { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.preview-outcome b.up { color: #247a3b; }
.preview-outcome b.down { color: #a52835; }
.preview-outcome b.flat { color: var(--ink); }
.store-products { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 16px) / 2)); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 14px; }
.store-product { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; flex-direction: column; scroll-snap-align: start; }
.store-product-position { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.store-product-position > b { font-size: 15px; font-weight: 500; }
.position-badge { border-radius: 4px; background: #f5f5f5; padding: 5px 7px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.position-badge.new { color: #ad154a; background: #f7edf1; }
.position-badge.up { color: #247a3b; background: #edf6ef; }
.position-badge.down { color: #855a35; background: #faf1e5; }
.store-product-image { height: 200px; display: flex; align-items: center; justify-content: center; margin: 14px 0 18px; }
.store-product-image img { width: 100%; height: 100%; object-fit: contain; }
.store-product-image > span { font-size: 14px; color: var(--muted); }
.store-product-copy { flex: 1; }
.store-brand { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.store-product h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.store-secondary { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; min-height: 40px; }
.store-rating { margin: 18px 0; font-size: 14px; }
.store-rating > span:first-child { color: #e6a400; }
.store-rating > span:last-child, .store-rating.muted { color: var(--muted); }
.store-rating.muted { font-size: 12px; }
.store-price { display: block; font-size: 25px; font-weight: 600; margin: 0 0 20px; }
.store-product-details { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--muted); }
.store-product-details p { margin-top: 10px; line-height: 1.5; }
#preview-removed-list p { font-size: 14px; line-height: 1.5; padding: 10px 0; border-bottom: 1px solid var(--line); }
#preview-removed-list small { display: block; color: var(--muted); }
.weight-group { margin: 24px 0 10px; }
.weight-group > h3 { font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid #171717; }
.business-weight { grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; padding: 18px 0; }
.business-weight > div { grid-column: 1 / -1; }
.business-weight > input { grid-column: 1; min-height: 24px; }
.business-weight > output { grid-column: 2; font-size: 15px; }
.business-weight .weight-help { font-size: 13px; line-height: 1.5; margin-top: 5px; }
.business-weight .weight-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; margin: 0; color: var(--muted); }
.business-weight .weight-scale > span { margin: 0; font-size: inherit; color: inherit; }
.editor-column .preset-row { display: grid; gap: 8px; grid-template-columns: 1fr; }
.editor-column .preset { font-size: 15px; padding: 12px 14px; text-align: left; }
.editor-column .card-heading h2 { font-size: 21px; }
.editor-column .card-heading .tag { display: none; }
.editor-column .card-copy { font-size: 14px; }
.editor-column .card { padding: 20px; }
@media (min-width: 921px) {
    .editor-grid { grid-template-columns: minmax(290px, .85fr) minmax(360px, 1.55fr); gap: 20px; }
    .preview-card { padding: 24px; }
}
@media (max-width: 1100px) and (min-width: 921px) {
    .workspace { grid-template-columns: 200px minmax(0, 1fr); }
    .editor-grid { grid-template-columns: minmax(250px, .85fr) minmax(300px, 1.2fr); gap: 16px; }
    .preview-card { padding: 18px; }
    .store-products { grid-auto-columns: 220px; }
}
@media (max-width: 700px) {
    .preview-actions .overview-tabs { width: auto; }
    .store-products { grid-auto-columns: minmax(230px, 80%); }
    .preview-changes { gap: 6px; }
    .preview-changes > span { font-size: 11px; padding: 8px; }
}

.storefront-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-navigation { display: flex; gap: 8px; }
.store-navigation button { width: 36px; height: 36px; border: 1px solid #d9d9d9; border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; cursor: pointer; }
.store-navigation button:hover { background: #f3f3f3; }
.store-navigation button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.workspace[data-current-view=strategy] .content { padding-top: 20px; }
.workspace[data-current-view=strategy] .page-title { margin-bottom: 16px; }
.workspace[data-current-view=strategy] .page-title .eyebrow { display: none; }
.workspace[data-current-view=strategy] .page-title h1 { font-size: 28px; }
.workspace[data-current-view=strategy] .page-title p { margin-top: 6px; font-size: 15px; }
.workspace[data-current-view=strategy] .module-bar { padding: 10px 18px; margin-bottom: 16px; }

.business-weight label { font-size: 16px; }
.business-weight .weight-help { font-size: 14px; line-height: 1.5; }
.weight-scale { font-size: 12px; }
.store-brand, .store-secondary { font-size: 15px; }
.position-badge { font-size: 12px; }

@media (min-width: 921px) {
    .preview-breadcrumb { position: sticky; top: 0; z-index: 3; background: #fff; padding: 10px 0; }
}

@media (min-width: 921px) {
    .workspace[data-current-view=strategy] .content-footer { display: none; }
}

.store-product-copy { display: flex; flex-direction: column; }
.store-rating { margin-top: auto; padding-top: 18px; }
.store-price { white-space: nowrap; margin-bottom: 12px; }
.store-margin { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.store-margin strong { color: var(--ink); font-weight: 500; }
.margin-impact { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.margin-impact b { display: block; margin-top: 6px; }
.margin-impact .positive { color: #247a3b; }
.margin-impact .negative, .store-margin.negative strong { color: #a52835; }
@supports (grid-template-rows: subgrid) {
    .store-products { grid-template-rows: repeat(10, auto); row-gap: 0; }
    .store-product { display: grid; grid-template-rows: subgrid; grid-row: span 10; row-gap: 0; }
    .store-product-copy { display: contents; }
    .store-rating { margin-top: 18px; padding-top: 0; }
}

.business-weight { grid-template-columns: minmax(0, 1fr) 116px; }
.business-weight > .weight-stepper { grid-column: 2; display: flex; align-items: center; gap: 4px; }
.weight-stepper button { width: 32px; height: 36px; flex-shrink: 0; border: 1px solid #dedede; border-radius: 5px; background: #fff; color: var(--ink); font-size: 21px; cursor: pointer; }
.weight-stepper button:hover:not(:disabled) { background: #f3f3f3; }
.weight-stepper button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.weight-stepper button:disabled { opacity: .35; cursor: default; }
.weight-stepper output { min-width: 40px; text-align: center; font-size: 15px; }

.base-product { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.base-product-image { display: grid; place-items: center; width: 110px; height: 140px; flex-shrink: 0; color: var(--muted); font-size: 14px; }
.base-product-image img { width: 100%; height: 100%; object-fit: contain; }
.base-product-copy { flex: 1; min-width: 0; }
.base-product-copy h3 { margin: 4px 0; font-size: 20px; line-height: 1.3; }
.base-product-copy p { margin: 4px 0 12px; color: var(--muted); font-size: 16px; }
.base-product-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 10px; }
.base-product-facts > strong { font-size: 22px; }
.base-product-facts .store-rating { margin: 0; font-size: 16px; }
.base-product-copy small { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .base-product { gap: 12px; padding: 12px; } .base-product-image { width: 76px; height: 110px; } .base-product-copy h3 { font-size: 18px; } }

.product-sales { margin: 0 0 16px; padding: 12px; border-radius: 8px; background: #f5f5f5; }
.product-sales > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.product-sales > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.product-sales small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.product-sales strong { display: block; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.base-product .product-sales { margin: 12px 0 0; }

.score-explanation { padding-top: 12px; font-size: 14px; }
.score-explanation > strong { color: var(--ink); font-size: 16px; }
.score-explanation ol { list-style: none; padding: 0; margin: 16px 0; }
.score-explanation li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-explanation li > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink); }
.score-explanation li b { white-space: nowrap; color: #247a3b; }
.score-explanation li b.negative { color: #a52835; }
.score-explanation small { display: block; margin-top: 6px; font-size: 12px; }
.score-bar { height: 4px; background: #eef1eb; margin-top: 8px; border-radius: 4px; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: #8ba17e; }

.store-products:has(.store-product-details[open]) { grid-auto-columns: minmax(320px, calc((100% - 16px) / 2)); }
.theme-switch { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.theme-switch-track { width: 34px; height: 18px; border-radius: 999px; background: #d0d0d0; position: relative; flex: none; }
.theme-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #00000030; transition: transform .16s ease; }
.theme-switch[aria-pressed="true"] .theme-switch-track { background: #171717; }
.theme-switch[aria-pressed="true"] .theme-switch-track::after { transform: translateX(16px); }
.sidebar-bottom .theme-switch { margin: 0 8px 12px; }
.login-inner .theme-switch { margin-top: 12px; }
.topbar-actions .theme-switch { height: 40px; }

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f2f2f2;
    --muted: #b5b5b5;
    --green: #f2f2f2;
    --green-soft: #2a2a2a;
    --paper: #121212;
    --line: #333333;
    --warm: #1a1a1a;
    --danger: #f0a8a0;
    --summary: #1c1c1c;
    --compare-after: #2a2a2a;
    --compare-after-row: #1c1c1c;
    --good-bg: #2a2a2a;
    --good-ink: #d6d6d6;
    --good-line: #3a3a3a;
    background: #121212;
    color: #f2f2f2;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .login-form,
html[data-theme="dark"] .login-story,
html[data-theme="dark"] .card,
html[data-theme="dark"] .module-bar,
html[data-theme="dark"] dialog,
html[data-theme="dark"] .select-popup,
html[data-theme="dark"] .picker-list,
html[data-theme="dark"] .store-product,
html[data-theme="dark"] .base-product,
html[data-theme="dark"] .preview-outcome > span,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .overview-stats > span,
html[data-theme="dark"] .overview-empty,
html[data-theme="dark"] .comparison-board,
html[data-theme="dark"] input:not([type=range]):not([type=checkbox]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .secondary,
html[data-theme="dark"] .preset,
html[data-theme="dark"] .select-trigger,
html[data-theme="dark"] .weight-stepper button,
html[data-theme="dark"] .store-navigation button {
    background: #1c1c1c;
    color: #f2f2f2;
    border-color: #3a3a3a;
}
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .info-note,
html[data-theme="dark"] .product-sales,
html[data-theme="dark"] .preview-changes > span,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .strategy-guidance,
html[data-theme="dark"] .preview-impact,
html[data-theme="dark"] .decision-grid section,
html[data-theme="dark"] .position-badge,
html[data-theme="dark"] .slider-row output,
html[data-theme="dark"] .close-button,
html[data-theme="dark"] .overview-tabs,
html[data-theme="dark"] .scenario-chip,
html[data-theme="dark"] .customer-simulation,
html[data-theme="dark"] .comparison-head,
html[data-theme="dark"] .comparison-after,
html[data-theme="dark"] .comparison-change,
html[data-theme="dark"] .publish-summary,
html[data-theme="dark"] .finance-table th,
html[data-theme="dark"] .empty-preview,
html[data-theme="dark"] .step,
html[data-theme="dark"] .preset:hover,
html[data-theme="dark"] .preset[aria-pressed=true],
html[data-theme="dark"] .overview-tabs button[aria-pressed=true],
html[data-theme="dark"] .overview-filters button[aria-pressed=true],
html[data-theme="dark"] .nav-item small,
html[data-theme="dark"] .score-bar,
html[data-theme="dark"] .select-popup > input {
    background: #2a2a2a;
    color: #d6d6d6;
    border-color: #3a3a3a;
}
html[data-theme="dark"] .nav-item { color: #c8c8c8; }
html[data-theme="dark"] .nav-item.active { color: #f2f2f2; box-shadow: inset 3px 0 #f2f2f2; }
html[data-theme="dark"] .primary,
html[data-theme="dark"] .google-button.primary { background: #f2f2f2; color: #111111; }
html[data-theme="dark"] .primary:hover,
html[data-theme="dark"] .google-button.primary:hover { background: #e4e4e4; }
html[data-theme="dark"] .google-mark { background: #fff; }
html[data-theme="dark"] .brand img {
    filter: none;
    background: #fff;
    -webkit-mask-image: linear-gradient(#fff, #fff), url("/panel/topestetic.svg");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-composite: xor;
    mask-image: linear-gradient(#fff, #fff), url("/panel/topestetic.svg");
    mask-size: 100% 100%, contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-mode: alpha, alpha;
    mask-composite: exclude;
}
html[data-theme="dark"] .topbar-actions .secondary { background: #262626; border-color: #454545; }
html[data-theme="dark"] .topbar-actions .status-pill { background: #262626; color: #d6d6d6; border-color: #454545; }
html[data-theme="dark"] .topbar-actions .status-pill.dirty { background: #3a2c1e; color: #efc39a; border-color: #5c4630; }
html[data-theme="dark"] .login-story::after { border-color: #333; }
html[data-theme="dark"] .login-story p,
html[data-theme="dark"] .story-footer,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .module-description,
html[data-theme="dark"] .checkbox-row,
html[data-theme="dark"] .info-note,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar strong { color: #c8c8c8; }
html[data-theme="dark"] .toast { background: #f2f2f2; color: #111111; }
html[data-theme="dark"] .toast.error { background: #86463e; color: #fff; }
html[data-theme="dark"] .avatar { background: #f2f2f2; color: #111111; }
html[data-theme="dark"] .position-badge.new { color: #ffb3c7; background: #3a2430; }
html[data-theme="dark"] .position-badge.up { color: #9ddeb0; background: #1c3324; }
html[data-theme="dark"] .position-badge.down { color: #efc39a; background: #3a2c1e; }
html[data-theme="dark"] .preview-outcome b.up,
html[data-theme="dark"] .score-explanation li b { color: #9ddeb0; }
html[data-theme="dark"] .preview-outcome b.down,
html[data-theme="dark"] .store-margin.negative strong,
html[data-theme="dark"] .score-explanation li b.negative { color: #f0a8a0; }
html[data-theme="dark"] .preview-outcome b.flat { color: #f2f2f2; }
html[data-theme="dark"] .preview-changes b,
html[data-theme="dark"] .overview-stats b,
html[data-theme="dark"] .version-info strong,
html[data-theme="dark"] .store-price { color: #f2f2f2; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #8a8a8a; }
html[data-theme="dark"] .weight-group > h3 { border-bottom-color: #f2f2f2; }
html[data-theme="dark"] dialog::backdrop { background: #000000b0; }
html[data-theme="dark"] .theme-switch { background: #262626; color: #f2f2f2; border-color: #454545; }
html[data-theme="dark"] .theme-switch-track { background: #3a3a3a; }
html[data-theme="dark"] .theme-switch[aria-pressed="true"] .theme-switch-track { background: #f2f2f2; }
html[data-theme="dark"] .theme-switch[aria-pressed="true"] .theme-switch-track::after { background: #171717; }
html[data-theme="dark"] .customer-summary { color: #d6d6d6; }
html[data-theme="dark"] .customer-summary strong { color: #f2f2f2; }
html[data-theme="dark"] .comparison-head > div:last-child,
html[data-theme="dark"] .comparison-after { color: #f2f2f2; }
html[data-theme="dark"] .comparison-change { background: #222222; }
html[data-theme="dark"] .comparison-change.equal > span,
html[data-theme="dark"] .comparison-change.up > span { color: #9ddeb0; background: #1c3324; }
html[data-theme="dark"] .comparison-change.down > span { color: #efc39a; background: #3a2c1e; }
html[data-theme="dark"] .comparison-change.new > span { color: #c5dde4; background: #1e2c30; }
html[data-theme="dark"] .comparison-change.missing > span { color: #b5b5b5; background: #2a2a2a; }
html[data-theme="dark"] .green,
html[data-theme="dark"] .tag.green,
html[data-theme="dark"] .overview-card-top .tag.green { color: var(--good-ink); background: var(--good-bg); border-color: var(--good-line); }
html[data-theme="dark"] .product-row img { background: #2a2a2a; }
html[data-theme="dark"] .picker .selected {
    background: #1c1c1c;
    color: #f2f2f2;
    border-color: #3a3a3a;
}
html[data-theme="dark"] .select-popup > input {
    background: #262626;
    color: #f2f2f2;
    border-color: #3a3a3a;
}
html[data-theme="dark"] .picker-option,
html[data-theme="dark"] .filter-recent-option {
    background: transparent;
    color: #f2f2f2;
}
html[data-theme="dark"] .picker-option:hover,
html[data-theme="dark"] .picker-option:focus-visible,
html[data-theme="dark"] .picker-option[aria-selected=true] {
    background: #2a2a2a;
    color: #f2f2f2;
}
html[data-theme="dark"] .picker-option small,
html[data-theme="dark"] .picker-option .choice-copy small,
html[data-theme="dark"] .choice-arrow { color: #b5b5b5; }
html[data-theme="dark"] .choice-icon { background: #2a2a2a; color: #d6d6d6; }
html[data-theme="dark"] .choice-more { background: #2a2a2a; color: #f2f2f2; }
html[data-theme="dark"] .picker-toggle:hover { background: #2a2a2a; }
html[data-theme="dark"] .preview-breadcrumb { background: var(--paper); }
@media (max-width: 700px) { .topbar-actions .theme-switch { grid-column: 1 / -1; justify-self: end; } }

/* Panel HR — rozszerzenia shellu Studio */
.hr-toolbar { display:flex; gap:16px; align-items:end; flex-wrap:wrap; margin:12px 0 24px; }
.hr-toolbar > label, .hr-toolbar > div { flex:1; min-width:180px; }
.hr-toolbar label { margin:0; }
.hr-table-wrap { overflow:auto; max-width:100%; }
.hr-table { border-collapse:collapse; width:100%; font-size:14px; }
.hr-table th { text-align:left; font-size:12px; letter-spacing:.035em; color:var(--muted); font-weight:500; padding:14px 12px; background:var(--paper); border-bottom:1px solid var(--line); }
.hr-table td { padding:17px 12px; border-bottom:1px solid var(--line); vertical-align:top; line-height:1.55; }
.hr-table tr:last-child td { border-bottom:0; }
.hr-table small { display:block; color:var(--muted); margin-top:5px; }
.hr-table .button { padding:7px 12px; font-size:12px; min-height:34px; margin:3px; }
.hr-table .tag { white-space:normal; }
.hr-person-link { text-align:left; font-weight:500; }
.hr-identity { display:flex; gap:12px; align-items:center; min-width:200px; }
.hr-empty { padding:45px 24px; text-align:center; color:var(--muted); }
.hr-empty > span { font-size:32px; }
.hr-empty p { max-width:540px; margin:12px auto; }
.hr-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.hr-full { grid-column:1/-1; }
.hr-fields label { margin:0; }
.hr-fields label > input, .hr-fields label > textarea { margin-top:8px; }
.hr-check { display:flex; align-items:center; gap:10px; }
.hr-check input { width:18px; height:18px; }
.hr-dialog { width:min(900px, calc(100vw - 32px)); max-height:90vh; overflow-y:auto; }
.hr-tabs { flex-wrap:wrap; margin:22px 0; gap:6px; }
.hr-tabs button { font-size:14px; }
.hr-pre { white-space:pre-wrap; line-height:1.8; }
.hr-person-head { display:flex; align-items:center; gap:24px; margin-bottom:25px; }
.hr-photo { height:104px; width:104px; object-fit:cover; border:1px solid var(--line); border-radius:4px; flex-shrink:0; }
.hr-photo.hr-empty { font-size:36px; padding:24px; }
.hr-team { padding:28px; display:flex; flex-direction:column; min-height:250px; border:1px solid var(--line); background:#fff; }
.hr-team h2 { margin:20px 0 12px; font-size:24px; }
.hr-team p { color:var(--muted); line-height:1.7; }
.hr-team-bottom { margin-top:auto; padding-top:24px; display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center; }
.hr-team-bottom > span { color:var(--muted); font-size:13px; }
.hr-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:20px 0; }
.hr-metrics div { padding:18px; border:1px solid var(--line); }
.hr-metrics small { display:block; color:var(--muted); }
.hr-metrics b { display:block; font-weight:500; font-size:32px; margin-top:12px; }
.hr-details { max-width:420px; max-height:360px; overflow:auto; }
.hr-details dt { color:var(--muted); margin:10px 0 4px; font-size:12px; }
.hr-details dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.hr-check-list { display:grid; grid-template-columns:1fr 1fr; max-height:240px; overflow:auto; gap:10px; padding:12px; border:1px solid var(--line); }
.hr-check-list label { display:flex; align-items:center; gap:8px; font-size:14px; }
.hr-actions { display:flex; gap:8px; flex-wrap:wrap; }
.hr-danger { color:var(--danger); }
.view > .card, .view > .info-note { margin-bottom:24px; }
.sidebar nav { max-height:calc(100vh - 330px); overflow-y:auto; }
.nav-item { white-space:normal; font-size:14px; line-height:1.4; }
.select-trigger:focus-visible { outline:3px solid #d71a5d; }
html[data-theme="dark"] .hr-team { background:#202020; border-color:#404040; }
html[data-theme="dark"] .hr-table th { background:#282828; color:#bcbcbc; }
html[data-theme="dark"] .hr-metrics div, html[data-theme="dark"] .hr-check-list { border-color:#404040; }
@media(max-width:700px) {
    .hr-fields, .hr-metrics { grid-template-columns:1fr; }
    .hr-check-list { grid-template-columns:1fr; }
    .hr-person-head { align-items:flex-start; gap:15px; }
    .hr-photo { width:72px; height:72px; }
    .hr-table { min-width:580px; }
    .sidebar nav { max-height:none; overflow-x:auto; overflow-y:visible; }
    .nav-item { white-space:nowrap; }
    .hr-toolbar > label, .hr-toolbar > div { min-width:150px; }
}

/* RI workspace: shared Studio controls, compact navigation and readable source. */
.ri-dialog { width: min(1080px, calc(100% - 30px)); max-height: 90vh; }
.ri-dialog .hr-tabs { flex-wrap: wrap; margin: 16px 0 24px; }
.ri-dialog .hr-table td { vertical-align: top; }
.ri-dialog .hr-table td:first-child { min-width: 200px; }
.ri-dialog .hr-table .select-choices { min-width: 160px; }
.ri-dialog .card { margin-bottom: 18px; }
.ri-insight { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ri-insight:last-child { border-bottom: 0; }
.ri-insight details { margin: 10px 0; }
.ri-insight .hr-actions { margin-top: 12px; }
.ri-section-title { margin: 28px 0 12px; }
.ri-dialog pre { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 700px) {
    .ri-dialog { padding: 18px; }
    .ri-dialog .hr-tabs button { white-space: normal; }
}
.ri-dialog .hr-empty { min-height: 0; padding: 18px 12px; }

/* Patch 1: team context, readable pay conditions and private PDF preview. */
.hr-team-shortcuts { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; }
.hr-context { margin-bottom:20px; }
.hr-context small { color:var(--muted); }
.hr-more { margin:16px 0; }
.hr-more summary { cursor:pointer; padding:10px 0; }
.hr-pay-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.hr-pay-card { border:1px solid var(--line); border-radius:12px; padding:20px; overflow-wrap:anywhere; }
.hr-pay-card h3 { font-size:18px; margin:0 0 16px; }
.hr-pay-card p { margin:10px 0; }
.hr-pay-card small { display:block; color:var(--muted); }
.hr-pay-amount { font-size:24px; font-weight:600; }
.hr-pdf { width:100%; height:65vh; border:1px solid var(--line); }
@media (max-width:1100px) { .hr-pay-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .hr-pay-grid { grid-template-columns:1fr; } .hr-team-shortcuts { flex-direction:column; align-items:stretch; } }

.hr-pdf-pages canvas { display:block; width:100%; height:auto; border:1px solid var(--line); }

/* Patch 2 — simple RI actions; green marks completed work only. */
.ri-person-name .hr-person-link { font-size: 20px; font-weight: 600; }
.ri-priorities { min-width: 220px; max-width: 620px; }
.ri-priorities p { margin: 6px 0 18px; }
.ri-completed { border-left: 3px solid #247a3b; padding-left: 12px; }
.ri-done-label, button.ri-completed { color: #247a3b; background: #edf6ef; border-color: #247a3b; }
.ri-done-label { display: inline-block; padding: 6px 10px; border-radius: 4px; }
html[data-theme="dark"] .ri-done-label, html[data-theme="dark"] button.ri-completed { color: #a4d9b0; background: #193622; border-color: #a4d9b0; }
html[data-theme="dark"] .ri-completed { border-left-color: #a4d9b0; }
@media (max-width: 700px) { .ri-priorities { min-width: 190px; } .ri-person-name .hr-person-link { font-size: 18px; } }

/* Patch 3 — payroll reconciliation and the agreed organization diagram. */
.pay-filters { flex-wrap: wrap; }
.pay-filters > div { min-width: 200px; flex: 1; }
.org-root { border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-align: center; font-weight: 600; margin-bottom: 22px; }
.org-tree, .org-tree ul { list-style: none; padding: 0; margin: 0; }
.org-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.org-tree ul { border-left: 1px solid var(--line); padding-left: 18px; margin-top: 12px; display: grid; gap: 10px; }
.org-tree > li:first-child { grid-column: 1 / -1; }
.org-tree > li:first-child > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.org-node { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 18px; min-height: 88px; text-align: left; background: var(--panel, #fff); color: var(--text, #171717); border: 1px solid var(--line); border-radius: 8px; }
.org-node span { color: var(--muted); font-weight: 400; }
html[data-theme="dark"] .org-node { background: #1c1c1c; color: #f2f2f2; }
@media (max-width: 700px) { .org-tree, .org-tree > li:first-child > ul { grid-template-columns: 1fr; } .pay-filters > div { min-width: 0; width: 100%; } }

/* Team efficiency: existing Studio surfaces, charts inherit both themes. */
.eff-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.eff-chart-scroll { overflow-x: auto; }
.eff-chart { width: 100%; min-width: 360px; height: auto; color: var(--ink); }
.eff-chart text { fill: currentColor; font-size: 12px; font-family: inherit; }
.eff-category { margin-top: 14px; border-top: 1px solid var(--line); padding: 14px 0; }
.eff-category summary { cursor: pointer; }
.eff-category summary span { float: right; }
@media(max-width: 700px) { .eff-chart-grid { grid-template-columns: 1fr; } }

/* Patch 4: shared person task list and in-row editing. */
.aff-task { padding: 18px; border-bottom: 1px solid var(--line, #ddd); border-radius: 8px; margin-bottom: 10px; }
.aff-task strong { display: block; overflow-wrap: anywhere; }
#dashboard-view .table-scroll { overflow-x: auto; }
#dashboard-view input[type=date] { min-width: 145px; }
#aff-edit-error { color: var(--danger, #b42318); }
#ri-view .overview-stats, #dashboard-view .overview-stats { margin-bottom: 20px; }
@media (max-width: 700px) {
    #ri-view .overview-stats small, #dashboard-view .overview-stats small { display: block; font-size: 12px; }
}

/* Keep account controls out of the horizontal navigation at the mobile breakpoint. */
@media (max-width: 700px) {
    .sidebar-bottom { position: static; margin-top: 12px; }
    .sidebar-bottom .theme-switch { display: none; }
    .sidebar-bottom .account { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Shared RI status selector uses Studio theme and searchable controls. */
.ri-task-status { min-width: 170px; max-width: 260px; }
.ri-task-status > label { font-size: 12px; color: var(--muted); }

/* Compact payroll allowance editor; other entity dialogs keep their layout. */
#entity-dialog:has(#allowance-description) { width: min(560px, calc(100% - 30px)); }
#entity-dialog:has(#allowance-description) #entity-fields { grid-template-columns: 1fr; }

/* Dashboard Czat: Studio surfaces; read-only demonstration until source delivery. */
.chat-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.chat-value { display: block; font-size: 30px; font-weight: 500; }
.chat-stats small { display: block; color: var(--muted); margin-top: 8px; }
.chat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; }
.chat-grid > .card { min-width: 0; margin: 0; }
.chat-bar-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.chat-progress { width: 100%; height: 9px; border: 0; border-radius: 8px; overflow: hidden; appearance: none; margin: 8px 0 16px; background: var(--line); }
.chat-progress::-webkit-progress-bar { background: var(--line); }
.chat-progress::-webkit-progress-value { background: var(--ink); }
.chat-progress::-moz-progress-bar { background: var(--ink); }
.chat-chart { width: 100%; display: block; }
.chat-chart text { fill: var(--muted); font: 12px Topestetic,sans-serif; }
.chat-chart line { stroke: var(--line); }
.chat-chart circle { fill: var(--ink); }
.chat-chart .chat-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.chat-insights li { padding: 10px 0; }
#chat-view details { margin-top: 16px; }
#chat-view summary { cursor: pointer; padding: 8px 0; }
@media(max-width:1100px) { .chat-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .chat-grid,.chat-stats { grid-template-columns: 1fr; } }
.chat-donut { display: block; width: 180px; height: 180px; margin: 0 auto 20px; }
.chat-donut text { fill: var(--ink); font: 16px Topestetic,sans-serif; }
.chat-ring { fill: none; stroke: var(--ink); stroke-width: 25px; transform: rotate(-90deg); transform-origin: 90px 90px; }
.chat-chart rect { fill: var(--ink); }
.chat-series-0 { opacity: 1; }
.chat-series-1 { opacity: .7; }
.chat-series-2 { opacity: .45; }
.chat-series-3 { opacity: .2; }

/* Approved UX review, October 2026: same records, compact presentation. */
.ux-status-options { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ux-status-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 400; min-height: 36px; white-space: nowrap; }
.ux-status-options input[type="radio"] { appearance: auto; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--ink); }
.ux-status-options input:focus-visible { outline: 3px solid #d71a5d; outline-offset: 3px; }
.ux-status-options input:disabled + span { opacity: .65; }
#tasks-content .aff-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 16px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
#tasks-content .aff-task > strong { grid-column: 1; font-size: 16px; line-height: 1.5; }
#tasks-content .aff-task > p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
#tasks-content .aff-task > .hr-actions { grid-column: 2; grid-row: 1 / 3; margin: 0; }
#tasks-content .aff-task > small { grid-column: 1 / -1; }
.ux-task-title { text-align: left; white-space: normal; padding: 0; font-weight: 500; }
.ux-compact-stats { margin: 12px 0; }
.ux-compact-stats b { font-size: 24px; }
.ux-pay-options { margin: 12px 0; }
.ux-pay-options > div { margin-top: 12px; }
.ux-fold { margin: 16px 0; }
.ux-fold > summary { padding: 12px 0; font-weight: 500; }
.ux-fold > .card { margin-top: 10px; }
.ux-trend-choice { margin: 12px 0; max-width: 300px; }
#efficiency-view .eff-chart-grid:has(.ux-trend-choice) { grid-template-columns: 1fr; }
#efficiency-view .eff-chart-grid > section:not([hidden]) { grid-column: 1 / -1; }
.ux-demo-note { font-size: 13px; padding: 10px 14px; }
.ux-chat-person { margin: 14px 0; }
#person-view > .card .hr-person-head + details { margin-top: 16px; }
@media (max-width: 700px) {
    #tasks-content .aff-task { grid-template-columns: minmax(0, 1fr); }
    #tasks-content .aff-task > .hr-actions { grid-column: 1; grid-row: auto; }
    .ux-status-options label { min-height: 44px; }
}
.ux-status-options { max-width: none; }
.ux-status-options input[type="radio"] { appearance: none; border: 1px solid var(--muted); border-radius: 4px; background: transparent; display: grid; place-content: center; flex-shrink: 0; }
.ux-status-options input[type="radio"]:checked { background: var(--ink); border-color: var(--ink); }
.ux-status-options input[type="radio"]:checked::after { content: '✓'; color: #fff; font-size: 15px; }
html[data-theme="dark"] .ux-status-options input[type="radio"]:checked::after { color: #111; }
html[data-theme="dark"] .ux-status-options input[type="radio"]:checked { background: var(--ink); border-color: var(--ink); }
.ux-task-head { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; background: var(--paper); padding: 12px 0; font-size: 12px; color: var(--muted); }
.ux-task-head > div { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
#tasks-content .ux-status-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: 270px; }
#tasks-content .ux-status-options label { justify-content: center; }
#tasks-content .ux-status-options label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#tasks-content .ux-status-options > small { grid-column: 1 / -1; }
@media (max-width: 700px) {
    .ux-task-head { display: none; }
    #tasks-content .ux-status-options { width: 100%; min-width: 0; display: flex; gap: 12px; }
    #tasks-content .ux-status-options label span { position: static; width: auto; height: auto; clip-path: none; }
}

/* Competency catalogue and person ratings share the same records. */
.competency-row { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.competency-row h3 { margin: 0 0 8px; }
.competency-row p { color: var(--muted); }
.competency-row textarea { width: 100%; min-height: 90px; margin-top: 8px; }
.competency-row details { margin-top: 12px; }
.competency-row summary { cursor: pointer; }
.competency-scores { display: flex; gap: 10px; border: 0; padding: 0; }
.competency-scores label { display: flex; align-items: center; gap: 6px; }
.competency-scores input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ink); }
.competency-scores legend { margin-bottom: 8px; }
@media(max-width:700px) { .competency-row { grid-template-columns: 1fr; gap: 12px; } }

/* Two-line affairs list with aligned status columns. */
.affairs-compact { width: 100%; min-width: 850px; table-layout: fixed; }
.affairs-compact th:nth-child(1) { width: 30%; }
.affairs-compact th:nth-child(2) { width: 17%; }
.affairs-compact th:nth-child(3) { width: 16%; }
.affairs-compact th:nth-child(4) { width: 13%; }
.affairs-compact th:nth-child(5) { width: 240px; }
.affairs-compact th:nth-child(6) { width: 0; padding: 0; }
.affairs-compact td:last-child:has(.hr-actions:empty) { padding: 0; }
.affairs-compact:has(#aff-edit-due) th:last-child { width: 140px; }
.aff-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.5; }
.aff-description.expanded { display: block; }
.aff-description .ux-task-title { line-height: 1.5; }
.aff-expand { display: block; margin-top: 5px; font-size: 13px; }
.aff-status-head,.affairs-compact .ux-status-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; width: 216px; min-width: 216px; text-align: center; }
.aff-status-head { font-size: 12px; }
.affairs-compact .ux-status-options label { justify-content: center; }
.affairs-compact .ux-status-options label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.affairs-compact .ux-status-options small { grid-column: 1 / -1; }
.aff-description { display: block; }
.aff-description > button,.aff-description > strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; }
.aff-description.expanded > button,.aff-description.expanded > strong { display: block; }
.affairs-compact td { padding: 14px 5px; border-bottom: 1px solid var(--line); }

/* Travel: isolated module; shared Studio surfaces and theme variables. */
.travel-filters { display:grid; grid-template-columns: 2fr 1fr; gap:20px; margin-bottom:24px; }
.travel-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:20px 0; }
.travel-summary strong,.travel-summary small { display:block; }
.travel-summary strong { font-size:24px; margin-top:8px; }
.travel-approval { display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; align-items:center; border-bottom:1px solid var(--line); padding:16px 0; }
#travel-view .card { margin-top:20px; }
#travel-view td { vertical-align:top; }
#travel-view td p { margin:6px 0; }
#travel-view .hr-toolbar { flex-wrap:wrap; }
@media(max-width:700px) { .travel-filters,.travel-summary,.travel-approval { grid-template-columns:1fr; } }

/* Warehouse manager overview: six metrics visible together. */
.eff-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.eff-kpi-grid .hr-pay-card { min-width: 0; }
.eff-kpi-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 16px; }
.eff-kpi-compare p { margin: 4px 0; }
.eff-year-bar { display: grid; grid-template-columns: 48px 1fr 80px; align-items: center; gap: 12px; margin: 18px 0; font-variant-numeric: tabular-nums; }
.eff-year-bar > div > div { background: currentColor; height: 10px; }
#efficiency-view .eff-chart-grid > section:not([hidden]) { grid-column: auto; }
@media(max-width: 700px) { .eff-kpi-grid { grid-template-columns: 1fr; } }
/* Chat source fingerprints stay within narrow cards. */
.ca-hash { overflow-wrap: anywhere; }

/* RI: independent completion of the two priorities. */
.ri-priority-table { min-width: 850px; }
.ri-priority-table td { vertical-align: top; }
.ri-priority-table td:nth-child(2) { max-width: 560px; }
.ri-priority-table .ri-priority-first > td:nth-child(2),
.ri-priority-table .ri-priority-first > td.ri-priority-tick { border-bottom: 0; }
.ri-priority-table .ri-priority-tick { text-align: center; }
.ri-priority-check { width: 24px; height: 24px; min-height: 24px; padding: 0; accent-color: var(--green); }

/* TOP 10: wymagania i trzy perspektywy oceny. */
.cp-toolbar { display:flex; align-items:center; gap:8px; background:#eaeaea; border-radius:10px; padding:5px; margin-bottom:24px; }
.cp-toolbar .overview-tabs { flex:1; margin:0; flex-wrap:wrap; }
.cp-toolbar .cp-add { flex:0 0 40px; width:40px; height:40px; padding:0; font-size:25px; }
.cp-area-copy { color:var(--muted); margin-bottom:10px; }
.cp-list-title { margin-bottom:20px; }
.cp-rating-grid { display:grid; grid-template-columns:minmax(180px,1.8fr) repeat(3,minmax(120px,1fr)); gap:16px; }
.cp-rating-header { color:var(--muted); font-size:13px; padding:12px 0; border-bottom:1px solid var(--line); }
.cp-rating-header span:not(:first-child) { text-align:center; }
.cp-rating-row { padding:18px 0; border-bottom:1px solid var(--line); }
.cp-rating-row:last-child { border-bottom:0; }
.cp-rating-row h3 { font-size:16px; }
.cp-rating-row details { margin-top:8px; }
.cp-rating-row summary { font-size:13px; color:var(--muted); }
.cp-rating-row details p { margin-top:8px; color:var(--muted); }
.cp-rating-cell { min-width:0; text-align:center; }
.cp-rating-value { display:inline-block; padding:5px 11px; border-radius:6px; background:var(--paper); font-size:19px; font-variant-numeric:tabular-nums; }
.cp-rating-value small,.cp-count { font-size:12px; color:var(--muted); font-weight:400; }
.cp-count { display:block; margin-top:4px; }
.cp-missing { display:block; padding:7px 0; font-size:13px; color:var(--muted); }
.cp-mobile-label { display:none; }
.cp-editor { text-align:left; margin-top:12px; }
.cp-editor label { font-size:13px; margin:8px 0; }
.cp-editor textarea { min-height:80px; }
.cp-editor .button { white-space:normal; font-size:13px; padding:8px; }
.cp-edit-details { text-align:left; }
.cp-edit-details > summary { text-align:center; }
.cp-scale { margin-bottom:18px; color:var(--muted); font-size:14px; }
.cp-scale p { margin-top:8px; }
html[data-theme="dark"] .cp-toolbar { background:#2a2a2a; }
@media(max-width:1100px) { .cp-rating-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .cp-rating-row > div:first-child { grid-column:1/-1; } .cp-rating-header { display:none; } .cp-mobile-label { display:block; font-size:12px; color:var(--muted); margin-bottom:6px; } }
@media(max-width:700px) { .cp-toolbar { align-items:flex-start; } .cp-toolbar .overview-tabs button { font-size:13px; padding:8px; } .cp-rating-row { gap:10px; } .cp-edit-details[open] { grid-column:1/-1; } .cp-rating-row:has(.cp-edit-details[open]) { grid-template-columns:1fr; } .cp-rating-row:has(.cp-edit-details[open]) .cp-rating-cell { text-align:left; } .cp-rating-row:has(.cp-edit-details[open]) .cp-edit-details > summary { text-align:left; } }

/* Warehouse targets: text accompanies color in both themes. */
.eff-target-good { color: var(--good-ink); }
.eff-target-bad { color: var(--danger); }

/* Monthly efficiency input uses the existing theme and dialog. */
.eff-monthly-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 20px; }
.eff-monthly-fields label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eff-monthly-fields input { width: 100%; }
@media (max-width: 700px) { .eff-monthly-fields { grid-template-columns: 1fr; } }

/* Warehouse UX test: isolated from standard efficiency layouts. */
.content:has(.warehouse-ux:not([hidden])) > .page-title { display: none; }
.warehouse-ux .wh-heading { display:flex; align-items:baseline; gap:20px; flex-wrap:wrap; margin-bottom:20px; }
.warehouse-ux .wh-heading h2 { margin:0; font-size:30px; }
.warehouse-ux .wh-heading span,.warehouse-ux .wh-delta { color:var(--muted); }
.warehouse-ux .wh-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
.warehouse-ux .wh-toolbar > div { flex:1; min-width:210px; }
.warehouse-ux .wh-toolbar label { display:block; margin-bottom:8px; }
.warehouse-ux .wh-hero { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center; }
.warehouse-ux .wh-delta { display:inline; white-space:nowrap; }
.warehouse-ux .wh-chart { width:100%; min-width:950px; display:block; }
.warehouse-ux .wh-chart text { fill:currentColor; font-size:13px; }
.warehouse-ux .wh-series-1 { color:#57816b; }
html[data-theme="dark"] .warehouse-ux .wh-series-1 { color:#91bda4; }
.warehouse-ux .eff-category { margin:20px 0; }
.warehouse-ux .text-button { text-align:left; }
@media(max-width:760px) { .warehouse-ux .wh-hero { grid-template-columns:1fr; } .warehouse-ux .wh-toolbar > div { min-width:100%; } }

.warehouse-ux .wh-year-track { width:100%; height:10px; }
.warehouse-ux .wh-hero .hr-pay-amount { font-size:46px; margin:12px 0; }
.warehouse-ux .wh-hero .hr-pay-amount small { font-size:20px; font-weight:400; }
.warehouse-ux .wh-toolbar > div > .button { margin:6px 0 0 10px; }

/* Agreed Cosmetology time allocation. */
.warehouse-ux .ct-year { margin:24px 0; }
.warehouse-ux .ct-year-bar { display:block; width:100%; height:24px; margin:10px 0; }
.warehouse-ux .ct-other-fill { fill:#57816b; }
.warehouse-ux .ct-legend { display:flex; gap:24px; flex-wrap:wrap; }
.warehouse-ux .ct-legend span:last-child { color:#57816b; }
html[data-theme="dark"] .warehouse-ux .ct-other-fill { fill:#91bda4; }
html[data-theme="dark"] .warehouse-ux .ct-legend span:last-child { color:#91bda4; }
.sales-view { min-width: 0; }
.sales-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.sales-stats .overview-card { min-width: 0; }
.sales-stats strong { display: block; font-size: 28px; margin: 12px 0; font-variant-numeric: tabular-nums; }
.sales-delta { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 6px; white-space: nowrap; }
.sales-heading,.sales-people-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.sales-heading h2 { margin: 0; }
.sales-period-buttons,.sales-channel-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sales-channel-buttons { justify-content: flex-end; margin: 0 0 16px; }
.sales-people-toolbar > div:first-child { min-width: 220px; }
.sales-link { appearance: none; border: 0; padding: 8px 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sales-link:hover { text-decoration: none; color: var(--ink); background: var(--paper); }
.sales-chart-scroll { overflow-x: auto; max-width: 100%; }
.sales-chart { display: block; width: 100%; min-width: 1020px; height: auto; }
.sales-chart text { fill: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.sales-chart .sales-value { font-size: 14px; }
.sales-grid { stroke: var(--line); stroke-width: 1; }
.sales-line { fill: none; stroke-width: 2; }
.sales-year-0 { stroke: var(--ink); }
.sales-point.sales-year-0 { fill: var(--ink); }
.sales-year-1 { stroke: #557e69; }
.sales-line.sales-year-1 { stroke-dasharray: 5 4; }
.sales-point.sales-year-1 { fill: #557e69; }
.sales-legend { display: flex; flex-wrap: wrap; gap: 24px; }
.sales-legend span { color: #557e69; }
.sales-source { margin: 24px 0; }
html[data-theme="dark"] .sales-year-1 { stroke: #96bca7; }
html[data-theme="dark"] .sales-point.sales-year-1 { fill: #96bca7; }
html[data-theme="dark"] .sales-legend span { color: #96bca7; }
@media(max-width:1100px) { .sales-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .sales-stats { grid-template-columns: 1fr; } .sales-channel-buttons { justify-content: flex-start; } }

/* Top Analityk: existing shell, evidence behind a deliberate expansion. */
.analyst-heading { margin: 12px 0 22px; }
.analyst-heading h2 { margin-bottom: 6px; }
.analyst-heading p, .analyst-range span { color: var(--muted); }
.analyst-toolbar > div { min-width: 240px; max-width: 100%; }
.analyst-comparisons { display: flex; flex-wrap: wrap; gap: 8px; }
.analyst-range { padding: 16px 0; font-weight: 550; }
.analyst-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.analyst-insight { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.analyst-insight h3 { font-size: 18px; margin: 4px 0 12px; }
.analyst-insight p { line-height: 1.65; }
.analyst-status { color: var(--muted); font-size: 12px; margin: 0 0 10px; letter-spacing: .5px; }
.analyst-question { border-left: 3px solid var(--line); padding-left: 14px; margin: 18px 0; }
.analyst-question p { margin-top: 5px; }
.analyst-evidence { margin-top: 16px; color: var(--muted); font-size: 13px; }
.analyst-evidence p { white-space: pre-line; }
.analyst-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.analyst-channel { margin: 24px 0; }
.analyst-channel > h3 { font-size: 20px; }
.analyst-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.analyst-person-link { padding: 18px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.analyst-person-link p { margin: 8px 0 0; }
.analyst-person-period { margin: 24px 0; }
.analyst-person > .analyst-insight { margin: 14px 0; }
.analyst-method { padding: 20px 0; color: var(--muted); }
html[data-theme="dark"] .analyst-insight { background: #1c1c1c; }
@media (max-width: 1100px) { .analyst-overview { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .analyst-grid, .analyst-people { grid-template-columns: 1fr; } .analyst-insight { padding: 16px; } .analyst-comparisons .button { flex: 1 1 45%; } }
