:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#163834;background:#f0f6f5;font-size:16px;--blue:#147d79;--line:#d2e4e0;--muted:#6b7789;--navy:#123c38}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;border:0;border-radius:7px;min-height:42px;font-size:.875rem;padding:10px 17px;font-weight:600}button:disabled{opacity:.55;cursor:wait}button:hover{filter:brightness(.95)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:1.9rem;letter-spacing:-.05em;font-weight:650;margin-bottom:10px}h2{font-size:1rem;font-weight:650;margin:0}h3{font-size:1.1rem}p{line-height:1.7}.muted{color:var(--muted);font-size:.875rem}.eyebrow{display:block;font-size:.75rem;letter-spacing:.15em;color:var(--muted);margin-bottom:12px}.primary{color:#fff;background:var(--blue)}.secondary{color:#25344a;border:1px solid #ccd6e3;background:#fff}.wide{width:100%}.brand{display:flex;gap:12px;align-items:center;font-size:1.1rem;font-weight:700}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--blue);border-radius:11px;color:#fff;font-size:1.55rem;font-weight:850}.brand small{display:block;font-size:.65rem;letter-spacing:.07em;color:#7b8caa;margin-top:7px}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-intro{background:var(--navy);color:#fff;min-height:100vh;padding:60px 12%;display:flex;flex-direction:column;justify-content:center}.login-intro .brand{margin-bottom:90px}.login-intro h1{font-size:2.9rem;line-height:1.4;letter-spacing:-.04em}.login-intro p{color:#b4c4dc;font-size:1rem}.intro-bottom{font-size:.7rem;letter-spacing:.19em;margin-top:90px;color:#8ea4c7}.login-main{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{max-width:370px;width:100%}.login-card h2{font-size:1.8rem;margin-bottom:12px}.login-card label{margin-top:24px}.login-card button{margin-top:8px}.footnote{font-size:.8rem;color:var(--muted);line-height:1.65;margin:16px 0}.error{color:#ba2348;font-size:.875rem;white-space:pre-wrap}.error:empty{display:none}label{display:flex;flex-direction:column;gap:8px;font-size:.875rem;font-weight:550}input,select{background:white;border:1px solid #cbd5e3;border-radius:7px;min-height:43px;padding:10px 12px;width:100%;min-width:0;color:#21334c}input:focus,select:focus{outline:2px solid #65bdb3;border-color:transparent}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:34px 19px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.nav-label{font-size:.7rem;color:#94a0b1;letter-spacing:.12em;margin:55px 14px 15px}nav{display:grid;gap:7px}.nav{display:flex;gap:12px;align-items:center;text-align:left;background:transparent;color:#607088;font-size:.9rem;padding:13px 16px}.nav span{font-size:1.15rem;width:22px;text-align:center}.nav.active{background:#e4f3ef;color:var(--blue)}.sidebar-bottom{margin-top:auto;font-size:.8rem;color:var(--muted);padding:20px 10px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.status-dot{width:7px;height:7px;border-radius:50%;background:#20a681}.link-button{background:transparent;color:var(--muted);padding:5px 0;min-height:30px;font-weight:400;font-size:.8rem}.sidebar-bottom button{width:100%;text-align:left}.topbar{height:76px;background:white;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;font-size:.8rem;color:var(--muted)}.topbar strong{color:#24344d;font-weight:500}.slash{color:#c1cbd8;margin:0 14px}.top-right{font-size:.75rem}.divider{color:#d1d9e3;margin:0 12px}.main{padding:30px 36px;max-width:1650px;margin:auto}.notice{padding:12px 16px;background:#eef2f7;border-left:3px solid #9aacbf;font-size:.8rem;color:#5c6d83;line-height:1.7;margin-bottom:20px;border-radius:3px}.notice.info{background:#e6f3f0;color:#295694;border-left-color:#24968d}.notice.warning{background:#fff3db;color:#8b560a;border-left-color:#e7a52d}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0}.page-heading .eyebrow{color:var(--blue);font-weight:600}.page-heading p{margin:10px 0 0}.filters{display:flex;gap:14px;align-items:end;background:white;border:1px solid var(--line);padding:20px;border-radius:10px;margin-bottom:22px;flex-wrap:wrap}.filters label{font-size:.75rem;color:var(--muted)}.filters label:first-child{min-width:160px;flex:1}.filters input,.filters select{font-size:.875rem}.range-dash{padding-bottom:14px;color:#a6b0bc}.filter-note{font-size:.75rem;align-self:center;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metrics article{border:1px solid var(--line);background:white;padding:24px 22px;border-radius:10px}.metrics article:first-child{border-top:3px solid var(--blue);padding-top:22px}.metrics span{color:#58677a;font-size:.875rem;display:block}.metrics strong{font-size:2rem;font-weight:650;letter-spacing:-.06em;margin:17px 0 14px;display:block;font-variant-numeric:tabular-nums}.metrics small{font-size:.75rem;color:#8995a6}.panel{border:1px solid var(--line);background:white;border-radius:10px;overflow:hidden;margin-bottom:24px}.panel-heading{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.panel-heading .muted{font-size:.75rem}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{padding:17px 22px;text-align:left;vertical-align:middle;border-bottom:1px solid #edf0f5;white-space:nowrap}th{background:#fafbfd;color:#7c8899;font-weight:500;font-size:.75rem}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}.numeric{text-align:right;font-variant-numeric:tabular-nums}td small{display:block;color:var(--muted);font-size:.75rem;margin-top:6px;max-width:340px;white-space:normal;overflow-wrap:anywhere}.empty{padding:48px 24px 55px;text-align:center}.empty p{color:var(--muted);font-size:.875rem}.empty h3{margin:16px 0 10px}.empty-mark{font-size:2rem;background:#e4f3ef;color:#4d7cde;display:grid;place-items:center;width:64px;height:64px;border-radius:15px;margin:auto}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:5px;font-size:.75rem;background:#eef1f5;color:#68758a}.badge.connected,.badge.succeeded{color:#128465;background:#e5f5ef}.badge.error,.badge.failed{color:#bf3656;background:#ffedf0}.badge.queued,.badge.running{color:#2365ca;background:#e9f2ff}.actions{display:flex;gap:6px}.actions button{font-size:.8rem;padding:8px 10px;min-height:34px}.toggle-label{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:.8rem}.toggle-label input{width:18px;min-height:18px;accent-color:var(--blue)}.trend{padding:24px;min-height:190px;display:flex;gap:6px;align-items:stretch;overflow:auto}.trend>p{margin:auto}.bar-column{min-width:45px;flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:end}.bar-column meter{writing-mode:vertical-lr;direction:rtl;block-size:22px;inline-size:100px;accent-color:var(--blue)}.bar-column small{font-size:.65rem;color:var(--muted)}.bar-column b{font-weight:500;font-size:.7rem;color:#345780}.trend-panel{margin-top:4px}footer{display:flex;justify-content:space-between;gap:20px;font-size:.7rem;color:#8995a6;padding:12px 0}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(500px,calc(100% - 32px));color:#163834;box-shadow:0 20px 90px #142b5533}dialog::backdrop{background:#123c3866;backdrop-filter:blur(3px)}dialog label{margin-top:22px}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:1.2rem}.close{background:#f2f5f8;padding:0;width:34px;min-height:34px;font-size:1.4rem}.dialog-actions{display:flex;gap:10px;justify-content:end;margin-top:22px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#132b48;color:white;padding:14px 22px;border-radius:8px;box-shadow:0 6px 30px #132b4833;max-width:90vw;font-size:.875rem;z-index:5}
@media(max-width:1150px){.workspace{grid-template-columns:185px minmax(0,1fr)}.main{padding:24px}.topbar{padding:0 24px}.metrics{gap:10px}.metrics article{padding:20px 15px}.metrics strong{font-size:1.55rem}.filter-note{display:none}.brand{font-size:.95rem}.brand-mark{width:32px;height:32px}.brand small{font-size:.58rem}.sidebar{padding:30px 12px}}
@media(max-width:760px){.workspace{display:block}.sidebar{position:static;height:auto;padding:16px;border-bottom:1px solid var(--line)}.sidebar .brand{display:none}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:5px}.nav{flex:1;padding:10px 8px;font-size:.8rem;justify-content:center}.topbar{height:56px;padding:0 18px}.top-right{display:none}.main{padding:14px 16px}.page-heading{align-items:start;margin:20px 0}.page-heading h1{font-size:1.5rem}.page-heading>button{white-space:nowrap;padding:10px}.filters{gap:10px;padding:14px}.filters label:first-child{flex-basis:100%}.filters label{flex:1;min-width:130px}.range-dash{display:none}.metrics{grid-template-columns:repeat(2,1fr)}.metrics strong{font-size:1.65rem}.metrics article{padding:20px 16px}.panel-heading{padding:18px}.panel-heading .muted{font-size:.7rem}th,td{padding:14px}.login-shell{display:block}.login-intro{min-height:0;padding:28px}.login-intro .brand{margin-bottom:28px}.login-intro h1{font-size:1.6rem}.login-intro p,.intro-bottom{display:none}.login-main{padding:30px}.login-card{max-width:440px}footer{display:block;line-height:1.8}footer span{display:block}}

@media(max-width:760px){.sidebar-bottom{display:flex;margin:8px 0 0;padding:0 8px;justify-content:flex-end}.sidebar-bottom>span{display:none}.sidebar-bottom button{width:auto}}

/* Team and expanded analysis */
.filters {flex-wrap:wrap}
.filters label {min-width:140px}
.management-list {padding:16px 24px;display:grid;gap:12px}
.management-row {display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.management-row strong {flex:1}
fieldset {border:1px solid #dce4ef;border-radius:8px;padding:12px;margin:14px 0}
fieldset>div {display:grid;gap:8px;max-height:220px;overflow:auto}
fieldset label {display:flex;gap:8px;align-items:center;margin:0}
input[type=checkbox] {width:auto;min-height:initial}
#member-dialog {max-height:90vh;overflow:auto}
#comparison {white-space:pre-line;line-height:1.8}
.table-wrap table {min-width:850px}
#report-table-wrap table {min-width:1450px}
#stores-rows select {max-width:160px;margin-top:8px}
@media(max-width:700px){.filters label{min-width:120px}.management-list{padding:12px}}
fieldset label {flex-direction:row;justify-content:flex-start}

/* Compact advertising console */
.workspace {grid-template-columns:156px minmax(0,1fr);grid-template-rows:40px 1fr;background:#f0f6f5;font-size:12px}
.app-ribbon {grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:26px;background:#147d79;color:#fff;padding:0 18px;height:40px;position:sticky;top:0;z-index:40}
.ribbon-brand {display:flex;gap:8px;align-items:center;font-size:15px;font-weight:650}
.ribbon-brand small {font-size:9px;font-weight:400;letter-spacing:1px;color:#e0effb}
.ribbon-icon {border:2px solid #fff;border-radius:5px;width:25px;height:25px;text-align:center;line-height:21px}
.ribbon-active {height:40px;line-height:40px;padding:0 20px;background:#106561;font-weight:650}
.ribbon-note,.ribbon-right {font-size:11px;color:#e6f2fc}
.ribbon-right {margin-left:auto}
.workspace>.sidebar {grid-column:1;grid-row:2;padding:12px 8px;top:40px;height:calc(100vh - 40px);background:#f7f8fa;border-color:#e3e6eb}
.sidebar>.brand {display:none}
.sidebar .nav-label {margin:0;background:#edf0f3;padding:10px;border:1px solid #e1e5e9;color:#434d59;font-size:12px;letter-spacing:0}
.sidebar nav {gap:0;background:white;border:1px solid #e1e5e9;border-top:0}
.sidebar .nav {min-height:36px;padding:9px 10px;border-radius:0;font-size:12px;gap:6px}
.sidebar .nav span {font-size:13px;width:16px}
.sidebar .nav.active {color:#147d79;background:#e4f3ef;border-left:2px solid #147d79;padding-left:8px}
.sidebar-bottom {font-size:11px;padding:14px 3px}
.workspace>.content {grid-column:2;grid-row:2;min-width:0}
.topbar {height:35px;background:transparent;border:0;padding:0 12px;font-size:11px}
.top-right {font-size:10px}
.main {padding:0 12px 16px;max-width:none}
.workspace button,.workspace input,.workspace select {font-size:12px;min-height:28px;border-radius:2px}
.workspace button {padding:5px 10px;font-weight:500}
.workspace input,.workspace select {padding:4px 7px;border-color:#d7dee5}
.workspace .primary {background:#147d79}
.workspace .secondary {border-color:#d4dce4}
.data-basis {padding:6px 10px;margin:0 0 8px;font-size:11px;background:#eef3f8;border:0}
.workspace .notice {font-size:11px;padding:7px 10px;margin-bottom:8px}
.console-filters {border:1px solid #e2e6eb;background:#fff;padding:8px 12px;margin-bottom:8px}
.filter-row {display:flex;align-items:flex-start;gap:10px;padding:7px 0;border-bottom:1px dashed #eef0f3}
.filter-row:last-child {border:0}
.filter-label {width:66px;flex:none;color:#707b86;line-height:26px;font-size:11px}
.filter-controls {display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;flex:1}
.filter-controls input[type=date] {width:132px}
#group-filter {width:132px}
#store-filter {width:150px}
#shop-search {width:170px}
#search-type {width:100px}
#campaign-search {width:300px;max-width:100%}
#dimension,#sort-by {width:146px}
.chip-list {display:flex;align-items:center;gap:4px 9px;flex-wrap:wrap}
.chip-list button {background:transparent;border:0;min-height:24px;line-height:18px;padding:2px 6px;font-size:11px;color:#52606e}
.chip-list button.selected {background:#147d79;color:#fff}
.chip-list button:hover {background:#e6f1fa;color:#2375b3}
.chip-list button.selected:hover {background:#357caf;color:#fff}
#store-chips {flex-basis:100%;gap:3px 8px;margin-top:3px}
#store-chips button {min-width:57px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.capability-line {font-size:11px;color:#83909e;align-items:center}
.console-toolbar {display:flex;justify-content:space-between;gap:10px;align-items:center;margin:8px 0}
.console-toolbar>div {display:flex;gap:6px;flex-wrap:wrap}
.console-toolbar button {font-size:11px}
.console-summary {margin:8px 0}
.workspace .metrics {gap:1px;background:#e5e9ee;border:1px solid #e5e9ee;grid-template-columns:repeat(4,1fr)}
.workspace .metrics article {border:0;border-radius:0;padding:10px 14px}
.workspace .metrics strong {font-size:22px;letter-spacing:0;margin:8px 0}
.workspace .metrics span,.workspace .metrics small {font-size:11px}
.workspace .panel {border-radius:2px;margin-bottom:12px;border-color:#e1e6ec}
.workspace .panel-heading {padding:10px 12px}
.workspace .panel-heading h2 {font-size:12px}
.campaign-tablebar {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px;min-height:39px;border-bottom:1px solid #e5e9ee}
.table-tabs {display:flex;gap:15px;align-items:center;font-size:11px}
.table-tabs>.active {border-bottom:2px solid #147d79;color:#147d79;line-height:38px;font-weight:600}
.table-tabs .muted {font-size:11px}
.pagination {display:flex;align-items:center;gap:6px;font-size:11px;color:#657383;white-space:nowrap}
.pagination button {min-width:26px;font-size:16px;padding:0 4px}
.pagination select {width:89px}
#campaign-table {min-width:1610px;font-size:11px}
#campaign-table th,#campaign-table td {padding:12px 10px}
#campaign-table th {font-size:11px;background:#f4f5f7;white-space:nowrap;border-bottom:1px solid #dfe5eb}
#campaign-table td {height:72px;vertical-align:top}
#campaign-table tbody tr:hover {background:#f4f9fd}
#campaign-table .select-col {width:34px;min-width:34px;text-align:center;position:sticky;left:0;background:#fff;z-index:2}
#campaign-table .campaign-name {width:230px;min-width:230px;max-width:230px;white-space:normal;position:sticky;left:34px;background:#fff;z-index:2;border-right:1px solid #e5e9ee}
#campaign-table th.select-col,#campaign-table th.campaign-name {background:#f4f5f7}
#campaign-table .campaign-name strong {display:block;font-size:11px;line-height:1.65;font-weight:500;overflow-wrap:anywhere}
#campaign-table .campaign-name small {font-size:10px;margin-top:4px;color:#8b96a2}
#campaign-table .table-sort {background:none;padding:0;min-height:18px;font-size:11px;color:#586572}
#campaign-table .row-actions {min-width:64px;text-align:center}
#campaign-table .row-actions button {font-size:11px;color:#147d79}
#campaign-table .unavailable {color:#a8afb9;font-size:10px}
.table-footnote {padding:9px 12px;color:#8b96a2;font-size:10px;border-top:1px solid #edf0f3}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#column-choices {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
#column-choices label {flex-direction:row;align-items:center;gap:8px;font-size:12px;margin:4px 0}
#column-choices input {width:auto}
#columns-dialog {max-height:88vh;overflow:auto}
.workspace .page-heading {margin:14px 0}
.workspace .page-heading h1 {font-size:20px}
.workspace .page-heading .eyebrow {display:none}
.workspace .footnote {padding:0 12px}
@media(max-width:900px){.ribbon-brand small,.ribbon-note,.ribbon-right{display:none}.campaign-tablebar{flex-wrap:wrap;padding-bottom:8px}.console-toolbar{align-items:flex-start}.console-toolbar>div{flex-wrap:wrap}.filter-note{display:none}}
@media(max-width:760px){.workspace{display:block}.app-ribbon{position:sticky;gap:12px}.workspace>.sidebar{height:auto;position:static;padding:6px}.sidebar .nav-label{display:none}.sidebar nav{display:flex;border:0}.sidebar .nav{flex:1;justify-content:center}.sidebar-bottom{display:flex;margin:0;padding:4px 8px}.sidebar-bottom button{width:auto;margin-left:10px}.topbar{height:28px}.main{padding:0 8px 12px}.filter-row{gap:5px}.filter-label{width:54px}.filter-controls{gap:5px}.console-filters{padding:6px 8px}.workspace .metrics{grid-template-columns:repeat(2,1fr)}.pagination{flex-wrap:wrap}.filter-controls input[type=date]{width:124px}#campaign-search{width:190px}.console-toolbar{flex-wrap:wrap}#campaign-table .campaign-name{min-width:170px;width:170px;max-width:170px}}

/* Separate overview and campaign navigation share the same authorized report filters. */
.overview-heading {display:none}
.overview-mode .main {max-width:1660px;margin:auto;padding:24px}
.overview-mode .overview-heading {display:flex;margin:4px 0 30px}
.overview-mode .overview-heading h1 {font-size:28px}
.overview-mode .overview-heading .eyebrow {display:block;color:#147d79}
.overview-mode .console-filters {display:flex;flex-wrap:wrap;gap:12px;padding:20px;border-radius:10px;margin-bottom:22px}
.overview-mode .filter-row {border:0;display:flex;flex-direction:column;padding:0;gap:6px}
.overview-mode .filter-label {width:auto;font-size:12px;line-height:20px}
.overview-mode .filter-controls {flex:initial}
.overview-mode #group-chips,.overview-mode #store-chips,.overview-mode #shop-search,.overview-mode #expand-stores,.overview-mode .capability-line,.overview-mode #date-presets {display:none}
.overview-mode .console-toolbar {justify-content:flex-end}
.overview-mode .console-toolbar>div:first-child,.overview-mode #console-sync {display:none}
.overview-mode .metrics {gap:18px;border:0;background:transparent;margin:0 0 22px}
.overview-mode .metrics article {padding:24px;border:1px solid #d2e4e0;border-radius:10px;background:white;min-height:158px}
.overview-mode .metrics article:first-child {border-top:3px solid #147d79}
.overview-mode .metrics strong {font-size:32px;margin:20px 0 16px;letter-spacing:-1px}
.overview-mode .metrics span {font-size:14px}
.overview-mode .metrics small {font-size:12px}
.overview-mode .trend-panel {border-radius:10px;margin-bottom:24px}
.overview-mode .panel-heading {padding:20px 24px}
.overview-mode .panel-heading h2 {font-size:16px}
.overview-mode .trend {padding:24px}
.overview-mode .workspace input {height:40px}
@media(max-width:760px){.overview-mode .main{padding:12px}.overview-mode .metrics{gap:10px}.overview-mode .metrics article{padding:14px;min-height:130px}.overview-mode .metrics strong{font-size:24px}.overview-mode .overview-heading h1{font-size:24px}.overview-mode .console-filters{padding:12px}}

.performance-form{padding:20px}.perf-selectors,#perf-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}.performance-form label{display:flex;flex-direction:column;gap:6px}.performance-form small{font-size:11px;line-height:1.6;max-height:100px;overflow:auto;white-space:pre-line}.performance-form textarea{min-height:90px;padding:8px;border:1px solid #d2e4e0;resize:vertical}.performance-form select,.performance-form input{max-width:100%}.performance-form .toggle-label{flex-direction:row;margin:16px 0}.perf-data-section{margin-bottom:18px}.perf-data-section h3{font-size:13px}.performance-form td{max-width:350px;white-space:pre-wrap;overflow-wrap:anywhere}.performance-form details{min-width:150px}.performance-form .table-wrap{max-height:65vh;overflow:auto}@media(max-width:900px){.perf-selectors,#perf-fields{grid-template-columns:1fr}}


/* Original v0.1.0 typography, applied after the compact console rules. */
#workspace{font-size:16px}
#workspace button,#workspace input,#workspace select{font:inherit}
#workspace button{font-size:.875rem;font-weight:600}
#workspace h1{font-size:1.9rem;letter-spacing:-.05em;font-weight:650}
#workspace h2{font-size:1rem;font-weight:650}
#workspace h3{font-size:1.1rem}
#workspace p{line-height:1.7}
#workspace .muted{font-size:.875rem}
#workspace .eyebrow{font-size:.75rem;letter-spacing:.15em}
#workspace .brand{font-size:1.1rem;font-weight:700}
#workspace .brand-mark{font-size:1.55rem;font-weight:850}
#workspace .brand small{font-size:.65rem;letter-spacing:.07em}
#workspace .intro-bottom{font-size:.7rem;letter-spacing:.19em}
#workspace .footnote{font-size:.8rem;line-height:1.65}
#workspace .error{font-size:.875rem}
#workspace label{font-size:.875rem;font-weight:550}
#workspace .nav-label{font-size:.7rem;letter-spacing:.12em}
#workspace .nav{font-size:.9rem}
#workspace .nav span{font-size:1.15rem}
#workspace .sidebar-bottom{font-size:.8rem}
#workspace .link-button{font-weight:400;font-size:.8rem}
#workspace .topbar{font-size:.8rem}
#workspace .topbar strong{font-weight:500}
#workspace .top-right{font-size:.75rem}
#workspace .notice{font-size:.8rem;line-height:1.7}
#workspace .page-heading .eyebrow{font-weight:600}
#workspace .filters label{font-size:.75rem}
#workspace .filters input,#workspace .filters select{font-size:.875rem}
#workspace .filter-note{font-size:.75rem}
#workspace .metrics span{font-size:.875rem}
#workspace .metrics strong{font-size:2rem;font-weight:650;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
#workspace .metrics small{font-size:.75rem}
#workspace .panel-heading .muted{font-size:.75rem}
#workspace table{font-size:.875rem}
#workspace th{font-weight:500;font-size:.75rem}
#workspace .numeric{font-variant-numeric:tabular-nums}
#workspace td small{font-size:.75rem}
#workspace .empty p{font-size:.875rem}
#workspace .empty-mark{font-size:2rem}
#workspace .badge{font-size:.75rem}
#workspace .actions button{font-size:.8rem}
#workspace .toggle-label{font-size:.8rem}
#workspace .bar-column small{font-size:.65rem}
#workspace .bar-column b{font-weight:500;font-size:.7rem}
#workspace footer{font-size:.7rem}
#workspace .dialog-heading h2{font-size:1.2rem}
#workspace .close{font-size:1.4rem}
#workspace .toast{font-size:.875rem}
#workspace button,#workspace input,#workspace select,#workspace textarea{font-family:inherit}
#workspace input,#workspace select{font-size:14px;min-height:43px;padding:10px 12px}
#workspace button{min-height:42px;padding:10px 17px}
#workspace .filter-label,#workspace .filter-note,#workspace .performance-form small{font-size:12px;line-height:1.65}
#workspace .filter-label{width:auto;min-width:72px}
#workspace .chip-list button{font-size:14px}
#workspace #campaign-table{font-size:14px}
#workspace #campaign-table th,#workspace #campaign-table .table-sort{font-size:12px}
#workspace #campaign-table .campaign-name strong{font-size:14px;font-weight:550}
#workspace #campaign-table .campaign-name small{font-size:12px}
#workspace .nav{white-space:nowrap;padding:13px 8px}
#workspace .metrics strong{font-size:32px;font-weight:650;letter-spacing:-.06em;margin:17px 0 14px}
#workspace .metrics span{font-size:14px;font-weight:400}
#workspace .metrics small{font-size:12px;font-weight:400}
#workspace .metrics article{min-height:162px}
@media(max-width:760px){#workspace .metrics strong{font-size:26px}#workspace .page-heading h1{font-size:24px}#workspace .sidebar nav{flex-wrap:wrap}#workspace .sidebar .nav{flex:1 0 28%;font-size:13px}}

/* Selected B: readable 17px medium text and separate sorting controls. */
#workspace{font-size:17px;font-weight:500}
#workspace table,#workspace #campaign-table,#workspace td,#workspace label,
#workspace button,#workspace input,#workspace select,#workspace textarea,
#workspace .sidebar .nav,#workspace .filter-label,#workspace .filter-controls,
#workspace #campaign-table .campaign-name strong{font-size:17px;font-weight:500;line-height:1.6}
#workspace th,#workspace #campaign-table th,#workspace #campaign-table .table-sort{font-size:17px;font-weight:650}
#workspace button,#workspace input,#workspace select{min-height:44px}
#workspace #campaign-table .table-sort{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;min-width:44px;min-height:44px;padding:4px 8px;white-space:nowrap}
#workspace #campaign-table .sort-arrow{display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:24px;font-weight:700;line-height:1;width:28px;height:32px;color:#147d79}
#workspace #campaign-table th[aria-sort=none] .sort-arrow{color:#617189}
#workspace #campaign-table td{padding:16px 18px}
#workspace #campaign-table .campaign-name small,#workspace td small,
#workspace .metrics small,#workspace .notice,#workspace .filter-note,
#workspace .pagination,#workspace .table-footnote,#workspace .performance-form small{font-size:14px;line-height:1.6}
#workspace .metrics span{font-size:17px;font-weight:500}
#workspace .trend .bar-column b,#workspace .trend .bar-column small{font-size:14px}
#workspace .sidebar .nav{padding:12px 6px;gap:5px}
#workspace .sidebar .nav span{width:18px;font-size:17px}
#workspace .filter-controls input[type=date]{width:166px}
#workspace .filter-controls{flex-wrap:wrap}
@media(max-width:760px){#workspace .sidebar .nav{flex:1 0 40%}#workspace .metrics strong{font-size:26px}}

#workspace .trend-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}#workspace .trend-controls [role=group]{display:flex;gap:4px}#workspace .trend-controls button{background:#edf2fa;color:#34465e;border:1px solid #d3deed;border-radius:6px}#workspace .trend-controls button[aria-pressed=true]{background:#147d79;border-color:#147d79;color:white}#workspace #trend{display:block;padding:20px 12px;overflow-x:auto}#trend svg{display:block;width:100%;height:290px}#trend .trend-grid{stroke:#e5eaf2;stroke-width:1}#trend .trend-axis{fill:#62728b;font-size:14px}#trend .trend-value{fill:#233e65;font-size:14px;font-weight:500}@media(max-width:760px){#workspace .trend-panel .panel-heading{flex-wrap:wrap}}

/* Fill available desktop space. Narrow screens keep the card layout below. */
#workspace .main{width:100%;max-width:none;margin:0;padding:24px}
#workspace .content,#workspace #view-overview,#workspace .panel{min-width:0}
#workspace #campaign-table{width:100%;min-width:0}
#workspace #campaign-table th,#workspace #campaign-table td{min-width:0;max-width:none;padding:14px 6px;white-space:normal;overflow-wrap:anywhere}
#workspace #campaign-table .select-col{width:36px;min-width:0;position:static}
#workspace #campaign-table .campaign-name{width:18%;min-width:0;max-width:none;position:static}
#workspace #campaign-table .row-actions{width:76px;min-width:0}
#workspace #campaign-table .table-sort{width:100%;min-width:0;padding:4px 0;white-space:normal;overflow-wrap:anywhere;gap:3px}
#workspace #campaign-table .sort-arrow{width:24px}
#workspace .pagination,#workspace .table-tabs{flex-wrap:wrap}
#workspace .table-toolbar{flex-wrap:wrap}
@media(min-width:1201px){
 #workspace #report-table-wrap{scrollbar-gutter:stable}
 #workspace #campaign-table{width:max-content;min-width:100%;table-layout:auto;font-size:clamp(14px,.82vw,16px)}
 #workspace #campaign-table th,#workspace #campaign-table td{min-width:88px;padding:14px 10px;white-space:nowrap;overflow-wrap:normal;word-break:keep-all}
 #workspace #campaign-table th,#workspace #campaign-table .table-sort{font-size:clamp(13px,.78vw,15px)}
 #workspace #campaign-table .select-col{width:38px;min-width:38px}
 #workspace #campaign-table .report-date{width:126px;min-width:126px}
 #workspace #campaign-table .product-image-col{width:112px;min-width:112px}
 #workspace #campaign-table .campaign-name{width:280px;min-width:280px;max-width:320px;white-space:normal;overflow-wrap:anywhere;word-break:normal}
 #workspace #campaign-table .follow-result-col{width:172px;min-width:172px;white-space:normal;overflow-wrap:anywhere;word-break:normal}
 #workspace #campaign-table .row-actions{width:110px;min-width:110px}
 #workspace #campaign-table .table-sort{width:auto;min-width:max-content;padding:4px 2px;white-space:nowrap;overflow-wrap:normal;word-break:keep-all;gap:5px}
}
@media(max-width:1200px){
 #workspace .main{padding:16px}
 #workspace #campaign-table,#workspace #campaign-table tbody{display:block}
 #workspace #campaign-table thead{display:block}
 #workspace #campaign-table thead tr{display:flex;flex-wrap:wrap;gap:6px;padding:12px}
 #workspace #campaign-table thead th{width:auto;flex:0 1 auto;border:0}
 #workspace #campaign-table thead .campaign-name,#workspace #campaign-table thead .row-actions{display:none}
 #workspace #campaign-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #dce4ef;padding:12px;gap:12px}
 #workspace #campaign-table td{display:block;width:auto!important;height:auto;border:0;text-align:left;padding:4px}
 #workspace #campaign-table td.campaign-name{grid-column:span 2;border:0}
 #workspace #campaign-table td[data-label]::before{content:attr(data-label);display:block;font-size:14px;color:#62728b;margin-bottom:6px}
 #workspace #campaign-table .row-actions{grid-column:1/-1}
}
@media(max-width:600px){#workspace #campaign-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace #campaign-table td.campaign-name{grid-column:span 1}}

#workspace .metrics article[data-trend-metric]{cursor:pointer;border-top:3px solid transparent}#workspace .metrics article[aria-pressed=true]{border-color:#147d79;background:#eaf6f2}#workspace .metrics article:focus-visible{outline:3px solid #147d79;outline-offset:3px}

#workspace .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){#workspace .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#workspace .metrics{grid-template-columns:1fr}}

#job-notices{position:fixed;right:24px;bottom:24px;z-index:100;display:grid;gap:12px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto}.job-completion{width:380px;max-width:100%;padding:20px;background:#fff;border:1px solid #cbd8e8;border-left:5px solid #128465;border-radius:10px;box-shadow:0 8px 32px #152e4826;font-size:17px;color:#163834}.job-completion.failure{border-left-color:#bf3656}.job-completion p{font-size:14px;margin:10px 0;overflow-wrap:anywhere}.job-completion button{min-height:44px}

/* Display the supplied logo without changing the original image file. */
.company-logo{display:block;position:relative;overflow:hidden;width:48px;height:35px;flex:none;background:#fff;border-radius:4px}.company-logo img{position:absolute;width:125%;height:auto;max-width:none;left:-12.5%;top:-36.8%}.ribbon-brand{white-space:nowrap}

#workspace .ribbon-right{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}#moscow-clock{font-weight:600}@media(max-width:900px){#workspace .app-ribbon{height:auto;min-height:40px;flex-wrap:wrap;padding:6px 12px;gap:8px}#workspace .ribbon-note{display:none}#workspace{grid-template-rows:auto 1fr}#workspace .ribbon-right{font-size:13px}}

/* Selected skin B: Liangwei teal, typography and layout retained. */
:root{--blue:#147d79;--line:#d2e4e0;--muted:#4e6b68;--navy:#123c38;background:#f0f6f5;color:#163834}
#workspace{background:#f0f6f5;color:#163834}
#workspace .app-ribbon{background:#147d79}
#workspace .ribbon-active{background:#106561}
#workspace>.sidebar{background:#fff;border-color:#d2e4e0}
#workspace .sidebar .nav-label{background:#f0f6f5;color:#4e6b68;border-color:#d2e4e0}
#workspace .sidebar nav{border-color:#d2e4e0}
#workspace .sidebar .nav{color:#4e6b68}
#workspace .sidebar .nav.active{background:#e4f3ef;color:#126e68;border-left-color:#147d79}
#workspace .primary,#workspace .trend-controls button[aria-pressed=true]{background:#147d79;border-color:#147d79}
#workspace .secondary{color:#24524c;border-color:#c6dcd5}
#workspace .metrics article,#workspace .panel,#workspace .console-filters{border-color:#d2e4e0}
#workspace .metrics article[aria-pressed=true]{border-color:#147d79;background:#eaf6f2}
#workspace .metrics span,#workspace .metrics small,#workspace .muted{color:#4e6b68}
#workspace th,#workspace #campaign-table th{background:#f2f8f6;color:#4e6b68;border-color:#d2e4e0}
#workspace #campaign-table th.campaign-name,#workspace #campaign-table th.select-col{background:#f2f8f6}
#workspace tbody tr:hover,#workspace #campaign-table tbody tr:hover{background:#f1f9f6}
#workspace .table-tabs>.active{color:#147d79;border-bottom-color:#147d79}
#workspace .trend-controls button{background:#eef7f3;color:#24524c;border-color:#c6dcd5}
#workspace #campaign-table .sort-arrow{color:#147d79}
#workspace .metrics article:focus-visible{outline-color:#147d79}
#trend .trend-grid{stroke:#dceae5}#trend .trend-axis{fill:#4e6b68}#trend .trend-value{fill:#24524c}

/* Compact navigation: fit the longest menu label inside the sidebar. */
#workspace .sidebar nav{min-width:0}
#workspace .sidebar .nav{font-size:14px;font-weight:500;line-height:1.5;min-width:0;width:100%;min-height:44px;padding:10px 5px;gap:4px;white-space:normal;overflow-wrap:anywhere}
#workspace .sidebar .nav span{flex:0 0 14px;width:14px;font-size:14px;line-height:1;text-align:center}
#workspace .sidebar .nav.active{padding-left:3px}
@media(max-width:760px){#workspace .sidebar .nav{width:auto;flex:1 0 40%;font-size:14px}}

#workspace .management-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px}#workspace .management-row select{width:200px;max-width:100%}

#workspace .group-summary{display:flex;flex-direction:column;gap:4px;min-width:120px;margin-right:auto}#workspace .group-summary small{font-size:14px;line-height:1.5}

#workspace.overview-mode #date-presets{display:flex;flex-wrap:wrap;gap:4px}#workspace #date-presets button{font-size:13px;padding:5px 9px;min-height:32px}#workspace .history-dates .filter-controls{flex-wrap:wrap}

#workspace.overview-mode #shop-search{display:block}#workspace #shop-search{width:220px;max-width:100%;min-width:150px}#workspace #shop-search-status{font-size:12px;color:var(--muted)}#workspace #shop-search-status:empty{display:none}#workspace .store-controls{flex-wrap:wrap}

.shop-search-box{position:relative}.shop-suggestions{position:absolute;top:calc(100% + 4px);left:0;z-index:40;width:320px;max-width:75vw;max-height:300px;overflow:auto;background:white;border:1px solid #c6dcd5;border-radius:6px;box-shadow:0 6px 20px #123c3826}#workspace .shop-suggestions button{display:block;width:100%;text-align:left;background:white;color:#163834;border-radius:0;padding:10px 12px;font-size:14px;white-space:normal}#workspace .shop-suggestions button:hover,#workspace .shop-suggestions button:focus{background:#e4f3ef}#workspace .shop-suggestions p{padding:12px;margin:0;font-size:14px}

/* Operational analysis: scoped tables, explicit evidence, review workflow. */
#workspace .analysis-tabs{display:flex;gap:6px;flex-wrap:wrap}#workspace .analysis-tabs button{background:#eef7f3;color:#24524c}#workspace .analysis-tabs button[aria-pressed=true]{background:#147d79;color:white}
#workspace .analysis-table th,#workspace .analysis-table td{font-size:14px;white-space:normal;min-width:90px;padding:12px;overflow-wrap:anywhere}#workspace .analysis-table button{font-size:13px;display:block;margin:5px 0;padding:7px;min-height:36px}
#workspace .analysis-note{padding:16px;font-size:14px;line-height:1.7}#workspace .analysis-case{padding:18px;margin:12px 0;border:1px solid #d2e4e0;border-radius:8px}#workspace .analysis-case p{margin:10px 0}
#workspace .analysis-followup,#workspace .analysis-rule-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;padding:12px}#workspace .analysis-followup textarea{min-height:80px;border:1px solid #c6dcd5;padding:10px;width:100%;font:inherit}#workspace .analysis-controls label{flex:none}

#analysis-plans{scroll-margin-top:56px}#workspace #view-analysis .panel-heading{flex-wrap:wrap}#workspace #view-analysis .panel-heading>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center}#workspace #analysis-case-filter{width:auto}

#workspace .analysis-followup>button[type="submit"]{align-self:end;justify-self:end;width:auto;min-width:100px;height:36px;padding:0 18px}

.app-ribbon .ribbon-screen{background:transparent;color:white;border:1px solid #ffffff55;padding:5px 12px;margin-left:12px;cursor:pointer}.app-ribbon .ribbon-screen.active{background:#ffffff22}
/* Product/effect analysis */
.category-pad{padding:16px;margin-bottom:14px}.category-tabs{display:flex;gap:8px;padding:12px;margin-bottom:14px}.category-tabs [aria-pressed=true]{background:#147d79;color:white}.category-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.category-filters label{display:grid;gap:6px;min-width:130px}.category-filters input,.category-filters select{max-width:220px}.category-presets{flex-basis:100%;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.category-scroll{overflow:auto;max-height:640px}.category-scroll table{min-width:900px;width:100%}.category-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.category-kpis strong{display:block;font-size:24px;margin-top:8px}.category-bar{height:10px;background:#16a39a;display:inline-block;min-width:0}.category-scroll td{vertical-align:top}.category-scroll details{min-width:220px;max-width:420px}.category-scroll details p{white-space:normal}.category-subnav{padding-left:16px}.category-subnav summary{cursor:pointer;padding:12px 0;color:#147d79;font-weight:600}#category-import-preview{max-height:300px;overflow:auto;margin:12px 0}#category-error{color:#b23d42}@media(max-width:900px){.category-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Match all primary sidebar labels; nested menu labels retain their compact size. */
#workspace .sidebar nav > .nav,
#workspace .sidebar nav > .nav.active,
#workspace .sidebar nav > .category-subnav > summary{font-family:inherit;font-size:17px;font-weight:600;line-height:1.5;color:#147d79}

.category-file-drop{border:1px dashed #79aaa3;padding:16px;margin:12px 0;background:#f4faf8}.category-file-drop.dragging{border-color:#147d79;background:#e4f3ef}.category-file-drop label{display:block;margin-top:12px}.category-file-drop p{font-size:13px;margin:8px 0 0}.category-file-drop input[type=file]{cursor:pointer;pointer-events:auto;position:relative}.category-file-drop button{margin-right:12px}

#workspace .category-sort-button{font:inherit;color:inherit;border:0;background:transparent;padding:2px;min-height:32px;white-space:nowrap;text-align:left}#workspace .category-sort-button:hover{color:#147d79;text-decoration:underline}#workspace .category-sort-button:focus-visible{outline:2px solid #147d79;outline-offset:2px}

.category-effect-picker{display:grid;gap:6px;min-width:180px;max-width:220px}.category-effect-picker input,.category-effect-picker select{width:100%}.category-effect-picker small{font-size:12px;color:#4e6b68}.category-effect-picker small:empty{display:none}

.category-product-image{width:64px;height:64px;object-fit:contain;display:block}.category-image-dialog{width:min(1100px,94vw);max-width:94vw;height:90vh;max-height:90vh;padding:16px;border:1px solid #bed8d6;border-radius:8px;overflow:hidden}.category-image-dialog[open]{display:flex;flex-direction:column;gap:12px}.category-image-dialog>button{align-self:flex-end;flex:none}.category-image-dialog img{display:block;width:100%;height:0;min-height:0;flex:1;max-width:100%;object-fit:contain;object-position:center}.category-image-dialog::backdrop{background:#0009}#category-product-table td small{display:block;color:#b33;max-width:200px}

#workspace #trend{position:relative}.trend-tooltip{position:absolute;z-index:2;max-width:calc(100% - 16px);padding:10px 14px;border-radius:6px;background:#163834;color:#fff;font-size:14px;box-shadow:0 3px 14px #0003;pointer-events:none;white-space:normal}.trend-point{cursor:pointer;stroke:transparent;stroke-width:10px;pointer-events:all}.trend-point.trend-selected{stroke:#e9a536;stroke-width:4px}#trend .trend-value{pointer-events:none}

.store-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;font-size:13px}.store-pagination button{min-height:32px;padding:4px 10px}.store-pagination label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0}.store-pagination input{width:65px;min-height:32px;padding:5px}.store-pagination select{width:110px;min-height:32px;padding:5px}

.store-pagination-bottom{padding:16px 20px;border-top:1px solid var(--line)}

.category-effect-results,.category-scope-results{max-height:220px;overflow-y:auto;background:#fff;border:1px solid #bed8d6;border-radius:4px;padding:4px;box-shadow:0 3px 8px #0001}.category-effect-results button,.category-scope-results button{display:block;width:100%;text-align:left;background:#fff;color:#163834;min-height:34px;padding:6px 10px}.category-effect-results button:hover,.category-effect-results button:focus,.category-scope-results button:hover,.category-scope-results button:focus{background:#e4f3ef}.category-effect-results span,.category-scope-results span{display:block;padding:8px;font-size:13px}

#store-import-dialog{width:min(1100px,95vw);max-height:90vh;overflow:auto}#store-import-dialog p{margin-top:16px}#store-import-results{margin-top:16px;max-height:50vh;overflow:auto}

.category-effect-picker{position:relative;min-width:400px;max-width:500px}.category-effect-controls{display:flex;gap:8px;align-items:center}.category-effect-controls select{width:135px;flex:none}.category-effect-controls input{min-width:150px;flex:1}.category-effect-controls button{flex:none;min-width:68px}.category-effect-picker .category-effect-results{position:absolute;top:100%;left:143px;right:76px;z-index:12}.category-effect-picker small{position:absolute;top:100%;left:0;font-size:11px;pointer-events:none}.category-scope-picker{position:relative;display:grid;gap:6px;min-width:300px;max-width:370px}.category-scope-controls{display:flex;gap:8px;align-items:center}.category-scope-controls select{width:138px;flex:none}.category-scope-controls input{min-width:150px;flex:1}.category-scope-picker .category-scope-results{position:absolute;top:100%;left:146px;right:0;z-index:13}.category-scope-picker>small{position:absolute;top:100%;left:0;font-size:11px;color:#4e6b68;pointer-events:none}.category-total{display:grid;grid-template-columns:1.6fr repeat(5,minmax(0,1fr));gap:18px;align-items:center;background:#eaf8f3;border:1px solid #c6e8de;padding:20px;margin:12px 0 16px;border-radius:6px;color:#145b55}.category-total-intro,.category-total-metric{display:flex;flex-direction:column;gap:7px}.category-total-intro>strong{font-size:20px}.category-total-intro span,.category-total-intro small{font-size:12px}.category-total-metric{border-left:1px solid #c6e8de;padding-left:18px}.category-total-metric>strong{overflow-wrap:anywhere;font-size:26px;font-variant-numeric:tabular-nums}.category-total-metric>span{font-size:13px}@media(max-width:1000px){.category-total{grid-template-columns:repeat(2,1fr)}.category-total-intro{grid-column:1/-1}}@media(max-width:480px){.category-effect-picker,.category-scope-picker{min-width:0;width:100%;max-width:none}.category-effect-controls,.category-scope-controls{display:grid;grid-template-columns:1fr}.category-effect-controls select,.category-effect-controls input,.category-effect-controls button,.category-scope-controls select,.category-scope-controls input{width:100%;min-width:0}.category-effect-picker .category-effect-results,.category-scope-picker .category-scope-results{position:static}.category-effect-picker small,.category-scope-picker>small{position:static}.category-total-metric>strong{font-size:20px}}

/* Overview selection summary: stores are ordered by distinct valid effect count. */
.workspace:not(.overview-mode) .store-product-summary{display:none}.store-product-summary{padding:18px 20px;margin:-8px 0 18px}.store-product-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.store-product-summary-heading h2{flex:none;margin:0;font-size:18px}.store-product-summary-heading p{flex:1;margin:0;text-align:right}.store-product-summary-total{display:flex;align-items:center;gap:12px;min-width:330px;padding:8px 14px;border:1px solid #b8d9d1;border-radius:8px;background:#edf8f5;color:#284b45;box-shadow:0 2px 6px #22665b14;white-space:nowrap}.store-product-summary-total-label{font-size:12px;font-weight:600;color:#4b7770}.store-product-summary-total-value{display:flex;align-items:baseline;gap:4px}.store-product-summary-total-value strong{font-size:28px;line-height:1;color:#168978;font-variant-numeric:tabular-nums}.store-product-summary-total-value span{font-size:14px;font-weight:700}.store-product-summary-total small{margin-left:auto;padding-left:12px;border-left:1px solid #cfe3de;color:#66847f;font-size:12px}.store-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}.store-product-card{padding:15px;border:1px solid #d2e4e0;border-radius:8px;background:#f8fbfa}.store-product-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.store-product-card-heading>span{font-size:12px;color:#147d79;white-space:nowrap}.store-product-effect{display:grid;grid-template-columns:minmax(90px,130px) 1fr;gap:10px;padding:9px 0;border-top:1px solid #dceae6}.store-product-effect>strong{color:#24524c}.store-product-effect>div{display:flex;flex-wrap:wrap;gap:6px}.store-product-effect>div>span{padding:4px 7px;border-radius:5px;background:#e8f5f1;font-size:13px}.store-product-effect small{font-size:11px}@media(max-width:1400px){.store-product-summary-heading{flex-wrap:wrap}.store-product-summary-heading p{flex-basis:100%;text-align:left}}@media(max-width:600px){.store-product-summary-heading,.store-product-card-heading{display:block}.store-product-summary-total{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;min-width:0;width:100%;margin-top:10px;white-space:normal}.store-product-summary-total small{grid-column:1/-1;margin:2px 0 0;padding:6px 0 0;border-top:1px solid #cfe3de;border-left:0}.store-product-summary-heading p{margin-top:8px;text-align:left}.store-product-card-heading>span{display:block;margin-top:4px}.store-product-grid{grid-template-columns:1fr}.store-product-effect{grid-template-columns:1fr}}

.role-dialog{width:min(1100px,95vw);max-height:90vh;overflow:auto}.role-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:20px 0}.role-permissions label,.role-stores label{flex-direction:row;align-items:center;margin:8px 0}.role-permissions input,.role-stores input{width:18px;min-height:18px}.role-stores{max-height:300px;overflow:auto}#roles-content table{margin:20px 0}

/* Keep ranking column labels visible inside the existing scrolling table. */
#category-ranking{position:relative;isolation:isolate}
#category-ranking table{border-collapse:separate;border-spacing:0}
#workspace #category-ranking thead th{position:sticky;top:0;z-index:2;background:#f2f8f6;box-shadow:0 1px 0 #d2e4e0}

#analysis-table{position:relative;isolation:isolate;max-height:70vh;overflow:auto}
#analysis-table table{border-collapse:separate;border-spacing:0}
#workspace #analysis-table thead th{position:sticky;top:0;z-index:2;background:#f2f8f6;box-shadow:0 1px 0 #d2e4e0}

/* Navigation A: consistent line icons and readable secondary labels. */
@media(min-width:761px){#workspace{grid-template-columns:232px minmax(0,1fr)}#workspace>.sidebar{padding:16px 10px;overflow-y:auto}}
#workspace .sidebar nav{display:block;border:0;background:transparent}
#workspace .sidebar .category-subnav{padding:0;margin:0 0 14px}
#workspace .sidebar nav>.category-subnav>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:10px 12px;font-size:15px;font-weight:600;line-height:22px;color:#147d79}
#workspace .sidebar summary::-webkit-details-marker{display:none}
#workspace .sidebar summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-right:4px}
#workspace .sidebar details[open]>summary::after{transform:rotate(45deg)}
#workspace .sidebar .nav{position:relative;display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;margin:2px 0;padding:10px 12px;gap:12px;border:0;border-radius:4px;font-family:inherit;font-size:14px;font-weight:500;line-height:20px;color:#344f54;white-space:nowrap;overflow-wrap:normal;background:transparent;transition:background-color .15s,color .15s}
#workspace .sidebar .nav-icon{display:block;flex:0 0 18px;width:18px;height:18px;color:#45636a}
#workspace .sidebar .nav:hover{background:#f0f7f5;color:#126e68;filter:none}
#workspace .sidebar .nav.active{background:#e4f4ef;color:#126e68;border:0;padding:10px 12px;font-weight:600}
#workspace .sidebar .nav.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:2px;background:#147d79}
#workspace .sidebar .nav.active .nav-icon{color:#147d79}
#workspace .sidebar .nav:focus-visible,#workspace .sidebar summary:focus-visible{outline:2px solid #147d79;outline-offset:1px}
@media(max-width:760px){#workspace .sidebar nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:8px}#workspace .sidebar .category-subnav{margin:0}#workspace .sidebar .nav{font-size:14px;flex:none}}

/* Infinity brand: transparent, legible at navigation size. */
#workspace .company-logo{width:139px;height:34px;background:transparent;border-radius:0;overflow:visible}
#workspace .company-logo img{position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
@media(max-width:760px){#workspace .company-logo{width:112px;height:28px}}

/* Brand login, scoped separately from the workspace. */
.login-shell{grid-template-columns:56% 44%;background:#f5f8f7}
.login-intro{padding:32px 6%;background:radial-gradient(ellipse at 45% 55%,#145c55 0,#0a3935 65%,#123c38 100%);justify-content:space-between;overflow:hidden}
.login-brand{display:flex;align-items:center;gap:22px}.login-brand img{width:185px;height:auto}.login-brand>span{font-size:16px;color:#afd0c9;border-left:1px solid #56847c;padding-left:22px}
.login-story{width:100%;max-width:740px;margin:40px auto 24px}.login-intro h1{font-size:clamp(34px,3.8vw,62px);line-height:1.35;letter-spacing:0;font-weight:650;margin:0 0 18px}.login-intro p{font-size:clamp(14px,1.3vw,19px);color:#c0e4db;line-height:1.8;margin-bottom:12px}.login-art{width:100%;height:auto;display:block;margin:12px 0 20px}.login-features{display:flex;justify-content:space-between;color:#ddf3ed;font-size:16px;max-width:550px}.login-features span+span{border-left:1px solid #54847c;padding-left:28px}.login-intro .intro-bottom{margin:0;font-size:10px;letter-spacing:.22em;color:#83ada4}
.login-main{position:relative;padding:60px 11%;background:#f5f8f7;min-height:100vh;flex-direction:column}.login-card{width:100%;max-width:390px}.login-card .eyebrow{color:#46847c;font-size:12px;letter-spacing:.16em;margin-bottom:18px}.login-card h2{font-size:clamp(32px,3vw,46px);color:#123c38;margin:0 0 16px}.login-card>.muted{font-size:18px;margin-bottom:40px;color:#697b7a}.login-card label{font-size:14px;margin:24px 0 10px;color:#25453f}.login-card input{height:52px;font-size:16px;border:1px solid #d1deda;border-radius:7px;padding:12px 15px}.login-card input::placeholder{color:#91a19d}.login-password{position:relative}.login-password input{padding-right:52px}.login-card #login-password-toggle{position:absolute;right:4px;top:4px;min-height:44px;width:44px;padding:11px;margin:0;background:transparent;color:#718783}.login-password svg{width:22px;height:22px;display:block}.login-card .primary{height:54px;margin-top:32px;font-size:17px;font-weight:600;background:#087970;border-radius:7px}.login-card .primary span{margin-left:18px}.login-card .footnote{text-align:center;font-size:12px;margin-top:20px;color:#758782}.login-card .error{margin:14px 0 0}.login-footer{position:absolute;bottom:30px;font-size:11px;letter-spacing:.12em;color:#82968f}
@media(max-width:900px){.login-shell{grid-template-columns:48% 52%}.login-intro{padding:28px}.login-brand{gap:10px;flex-wrap:wrap}.login-brand img{width:160px}.login-brand>span{border:0;padding:0;font-size:13px}.login-main{padding:60px 9%}.login-features{font-size:13px;gap:12px}.login-features span+span{padding-left:12px}}
@media(max-width:760px){.login-shell{display:block}.login-intro{min-height:0;padding:24px}.login-story{margin:22px 0 0}.login-intro h1{font-size:28px;margin:0}.login-intro p,.login-art,.login-features,.login-intro .intro-bottom{display:none}.login-main{min-height:0;padding:36px 24px 70px}.login-card{max-width:420px}.login-card h2{font-size:30px}.login-card>.muted{font-size:16px;margin-bottom:26px}.login-footer{bottom:20px}}
/* Keep report headings visible while scrolling through campaign rows. */
#workspace #report-table-wrap{max-height:70vh;overflow:auto;overscroll-behavior:auto}
#workspace #campaign-table{border-collapse:separate;border-spacing:0}
#workspace #campaign-table thead{position:sticky;top:0;z-index:5;background:#f2f8f6;box-shadow:0 1px 0 #d2e4e0}
#back-to-top{position:fixed;right:22px;bottom:24px;z-index:45;width:46px;height:46px;min-height:46px;padding:11px;border:1px solid #c9dfd9;border-radius:50%;background:#fff;color:#147d79;box-shadow:0 3px 14px #123c381c}
#back-to-top:hover{background:#e4f4ef}#back-to-top svg{display:block;width:22px;height:22px}
@media(max-width:760px){#back-to-top{right:14px;bottom:18px}}

#owner-rows label{flex-direction:row;align-items:center;margin:10px 0;white-space:normal}#owner-rows input[type=checkbox]{width:18px;min-height:18px;flex:none}#owner-rows details{min-width:280px}#owner-rows .badge{margin-left:8px}

.report-pagination-bottom{display:flex;justify-content:flex-end;align-items:center;gap:6px;padding:12px 16px;border-top:1px solid #d2e4e0;background:#fff}.report-pagination-bottom select{width:auto}

#owner-import-dialog{width:min(850px,95vw);max-height:90vh;overflow:auto}#owner-import-content{width:100%;padding:12px;border:1px solid #c9dfd9;font:inherit}#owner-import-preview{max-height:280px;margin-top:12px}

.role-departments{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;padding:16px;border:1px solid #d9e7e5;border-radius:8px}.role-departments[hidden]{display:none}.role-departments label{display:flex;align-items:center;gap:8px;margin:0}.role-departments input{width:auto}

.filtered-totals{display:flex;flex-wrap:wrap;gap:10px 22px;padding:14px 16px;background:#e8f5f2;border-bottom:1px solid #cde3df;font-size:13px}.filtered-totals strong{color:#087b77}.filtered-totals span{white-space:nowrap}

#view-notifications .panel{padding:20px;margin-bottom:16px}#view-notifications textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0 16px;font-family:inherit}#notification-preview-content pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f7f6;padding:16px}#notification-feedback{white-space:pre-wrap}#notification-variables{flex-wrap:wrap;margin-bottom:14px}

#view-notifications .notification-toggle{display:flex;align-items:center;gap:10px;flex:0 0 auto}#view-notifications .notification-toggle input{width:18px;height:18px;margin:0}#view-notifications textarea{border:1px solid #cbdedd;border-radius:4px;padding:10px;line-height:1.6}

#workspace #campaign-table td .report-department{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px;white-space:normal;}

.group-leader-setting{display:flex;flex-direction:column;gap:4px;min-width:150px}.group-leader-setting small{color:var(--muted);font-size:12px}

.product-sales-dialog{width:min(1100px,95vw);max-height:90vh;overflow:auto}.product-sales-chart{overflow-x:auto;margin-top:18px}.product-sales-chart svg{display:block;width:100%;min-width:760px}.product-sales-dialog button[aria-pressed="true"]{background:#16857e;color:white}

#workspace #category-product-table td .link-button{font-size:inherit;font-weight:inherit;line-height:inherit}

/* Budget follow-up: keep the close control visible while reviewing long histories. */
#budget-dialog{width:min(1100px,95vw);max-width:95vw;max-height:90vh;overflow:auto}
#budget-dialog>.dialog-heading{position:sticky;top:-1px;background:#fff;z-index:2;padding:12px 0;border-bottom:1px solid var(--line)}
#budget-detail h3{margin-top:24px}#budget-detail h4{margin-top:18px}
#budget-detail .filters{display:flex;flex-wrap:wrap;gap:16px;padding:16px}
#budget-detail .filters label{flex:1 1 220px;min-width:0}
#budget-detail textarea{min-height:80px;width:100%}
#budget-detail table{width:100%}#budget-detail details{margin-top:20px}

/* Both office clocks remain visible, including narrow screens. */
#workspace .app-ribbon{height:auto;min-height:40px}
#workspace .ribbon-right{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px 16px}
#workspace .ribbon-right>span{white-space:nowrap}
#beijing-clock{font-weight:600}
#view-audit td:last-child{min-width:260px;white-space:normal;overflow-wrap:anywhere}
#view-audit details{margin-top:6px;font-size:12px;color:#607873}
#view-audit summary{cursor:pointer}
@media(max-width:1300px){#workspace .ribbon-right{flex-direction:column;font-size:11px}}
@media(max-width:900px){#workspace .ribbon-right{display:flex;flex-direction:row;width:100%;margin-left:0;justify-content:flex-start}}

/* Compact multi-select: override generic form label/input sizing. */
#workspace .department-multi{position:relative;min-width:130px;max-width:220px}
#workspace .department-multi summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;box-sizing:border-box;padding:10px 12px;cursor:pointer;list-style:none;border:1px solid #d4e5e5;background:#fff;font:inherit;white-space:nowrap;overflow:hidden}
#workspace .department-multi summary::-webkit-details-marker{display:none}
#workspace .department-multi summary::after{content:'';flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 4px 6px}
#workspace .department-multi #department-options{position:absolute;z-index:50;top:100%;left:0;width:max-content;min-width:100%;max-width:min(360px,85vw);max-height:260px;overflow:auto;background:white;border:1px solid #d4e5e5;border-radius:4px;box-shadow:0 4px 12px #0002;padding:4px}
#workspace .department-multi #department-options label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-width:0;width:auto;min-height:28px;height:auto;margin:0;padding:3px 8px;white-space:nowrap;cursor:pointer;font-size:14px;line-height:22px;font-weight:500;border-radius:3px}
#workspace .department-multi #department-options label:hover,#workspace .department-multi #department-options label:focus-within{background:#e3f3ef}
#workspace .department-multi #department-options input[type=checkbox]{flex:0 0 14px;appearance:auto;width:14px;height:14px;min-height:0;min-width:0;max-width:14px;margin:0;padding:0;accent-color:#147d79}
#workspace .department-multi summary:focus-visible{outline:2px solid #147d79;outline-offset:2px}

.product-business-badge{display:inline-block;margin-left:12px;padding:3px 8px;min-height:0;font-size:12px;line-height:1.5;white-space:nowrap;color:#147d79;background:#e5f3ef;border:1px solid #b9dcd5;border-radius:4px;vertical-align:middle}

#budget-report-content table{width:100%;margin-bottom:18px}#budget-report-content h3{margin-top:24px}
@media print{body.budget-report-printing *{visibility:hidden!important}body.budget-report-printing #budget-report-content,body.budget-report-printing #budget-report-content *{visibility:visible!important}body.budget-report-printing #budget-report-content{position:absolute;left:0;top:0;width:100%;font-size:10px}body.budget-report-printing #budget-report-content .table-wrap{overflow:visible}body.budget-report-printing #budget-report-content table{table-layout:fixed;word-break:break-word;font-size:9px}body.budget-report-printing #budget-report-content button{border:0;padding:0;background:none}body.budget-report-printing #budget-report-content tr{break-inside:avoid}}

.analysis-state-controls{display:flex;align-items:center;gap:14px;padding:12px 16px}.analysis-state-controls details{position:relative}.analysis-state-controls summary{cursor:pointer;border:1px solid #ccdedd;padding:8px 12px}.analysis-state-options{position:absolute;z-index:25;min-width:260px;background:white;border:1px solid #ccdedd;padding:6px;box-shadow:0 4px 12px #0002}.analysis-state-options label{display:flex;align-items:center;gap:8px;padding:6px;margin:0;white-space:nowrap}.analysis-state-options input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:none}

.sidebar-session-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sidebar-session-actions #logout{width:auto;margin:0}.sidebar-session-actions #app-version{font-size:11px;color:#607873;white-space:nowrap}

/* Product ID trends share the overview visual language. */
#workspace #ids-chart{position:relative;display:block;padding:20px 12px;overflow-x:auto}#ids-chart svg{display:block;width:100%;height:290px}#ids-chart .trend-grid{stroke:#e5eaf2;stroke-width:1}#ids-chart .trend-axis{fill:#62728b;font-size:14px}#ids-chart .trend-value{fill:#233e65;font-size:14px;font-weight:500;pointer-events:none}.ids-presets{margin:0 0 12px}#ids-summary small{overflow-wrap:anywhere}

/* Mobile H5 shell: compact header, off-canvas navigation and touch-friendly filters. */
.mobile-menu-toggle,.mobile-nav-header,.mobile-nav-backdrop,.mobile-only{display:none}
@media(max-width:760px){
 body.mobile-nav-lock{overflow:hidden}
 #workspace{display:block;min-height:100dvh;font-size:16px;overflow-x:clip}
 #workspace .app-ribbon{position:sticky;top:0;z-index:70;display:flex;flex-wrap:nowrap;align-items:center;gap:9px;width:100%;min-height:56px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px}
 #workspace .mobile-menu-toggle{display:flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;border:1px solid #ffffff55;border-radius:9px;background:#ffffff14;color:#fff}
 #workspace .mobile-menu-toggle svg{width:23px;height:23px}
 #workspace .ribbon-brand{display:flex;flex:0 1 auto;min-width:0;gap:0}
 #workspace .company-logo{width:106px;height:27px}
 #workspace .ribbon-brand-label,#workspace .ribbon-brand small,#workspace .ribbon-note,#workspace .ribbon-screen,#workspace .ribbon-right{display:none}
 #workspace .ribbon-active{min-width:0;max-width:46vw;margin-left:auto;padding:8px 10px;border-radius:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;text-align:center}
 #workspace>.sidebar{display:flex;position:fixed;inset:0 auto 0 0;z-index:90;width:min(86vw,340px);height:100dvh;padding:calc(12px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;background:#fff;box-shadow:8px 0 34px #123c3840;transform:translateX(-105%);transition:transform .22s ease}
 #workspace.mobile-nav-open>.sidebar{transform:translateX(0)}
 #workspace .mobile-nav-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 12px;border-bottom:1px solid #d2e4e0}
 #workspace .mobile-nav-header>span{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:650}
 #workspace .mobile-nav-header img{width:36px;height:36px;border-radius:9px}
 #workspace .mobile-nav-header button{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;border-radius:9px;background:#eef7f4;color:#24524c;font-size:28px;font-weight:400}
 #workspace .sidebar nav{display:block;padding:10px 0;border:0}
 #workspace .sidebar .category-subnav{margin:0 0 7px}
 #workspace .sidebar nav>.category-subnav>summary{min-height:44px;padding:10px 8px;font-size:15px}
 #workspace .sidebar .nav{display:flex;width:100%;min-height:48px;margin:2px 0;padding:12px 10px;font-size:15px;flex:none}
 #workspace .sidebar .nav.active{padding:12px 10px}
 #workspace .sidebar .mobile-only{display:flex}
 #workspace .sidebar-bottom{display:flex;margin-top:auto;padding:14px 6px 0;border-top:1px solid #d2e4e0;gap:8px 12px;justify-content:flex-start}
 #workspace .sidebar-bottom>span{display:inline-flex;align-items:center}
 #workspace .sidebar-bottom button{width:auto;margin:0}
 #workspace .sidebar-session-actions{display:flex;align-items:center;gap:14px;width:100%}
 #workspace .mobile-nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:80;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:#0b292766;backdrop-filter:blur(2px)}
 #workspace>.content{width:100%;min-width:0}
 #workspace .topbar{display:none}
 #workspace .main,#workspace.overview-mode .main{width:100%;padding:12px 10px calc(20px + env(safe-area-inset-bottom))}
 #workspace .notice{margin-bottom:12px;padding:11px 12px;font-size:14px;line-height:1.65}
 #workspace .page-heading,#workspace.overview-mode .overview-heading{margin:14px 2px 18px}
 #workspace .page-heading h1,#workspace.overview-mode .overview-heading h1{font-size:26px;line-height:1.35}
 #workspace .console-filters,#workspace.overview-mode .console-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px;padding:14px;margin-bottom:14px;border-radius:12px}
 #workspace .console-filters .filter-row,#workspace.overview-mode .filter-row{display:flex;min-width:0;padding:0;gap:6px;flex-direction:column;border:0}
 #workspace .console-filters .history-dates,#workspace .console-filters .store-picker,#workspace .console-filters .search-row,#workspace .console-filters .summary-row,#workspace .console-filters .capability-line{grid-column:1/-1}
 #workspace .filter-label,#workspace.overview-mode .filter-label{width:auto;min-width:0;font-size:13px;line-height:20px}
 #workspace .filter-controls{width:100%;min-width:0;gap:8px}
 #workspace .filter-row>select,#workspace .filter-controls>select,#workspace .filter-controls>input,#workspace .department-multi,#workspace .shop-search-box,#workspace .shop-search-box input{width:100%;max-width:none;min-width:0}
 #workspace .history-dates .filter-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
 #workspace .history-dates #date-presets,#workspace .history-dates .filter-note{grid-column:1/-1}
 #workspace .history-dates input[type=date]{width:100%!important;min-width:0}
 #workspace .store-controls{display:grid;grid-template-columns:1fr;align-items:stretch}
 #workspace #shop-search{width:100%;max-width:none;min-width:0}
 #workspace .shop-suggestions{width:100%;max-width:100%}
 #workspace .search-row .filter-controls{display:grid;grid-template-columns:110px minmax(0,1fr)}
 #workspace .search-row .filter-controls>button{width:100%}
 #workspace .summary-row .filter-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace .summary-row .toggle-label{grid-column:1/-1;min-height:44px;margin:0}
 #workspace .capability-line{font-size:14px;line-height:1.65}
 #workspace .console-toolbar{display:grid;width:100%;gap:8px;margin:12px 0}
 #workspace .console-toolbar>div{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #workspace .console-toolbar button{width:100%;min-width:0;font-size:14px;white-space:normal}
 #workspace .campaign-tablebar{align-items:flex-start;padding:10px;gap:8px}
 #workspace .campaign-tablebar,.workspace .pagination{flex-wrap:wrap}
 #workspace .pagination{width:100%;justify-content:flex-start;white-space:normal}
 #workspace .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #workspace .metrics article,#workspace.overview-mode .metrics article{min-height:128px;padding:14px}
 #workspace .metrics strong{font-size:24px}
 #workspace .category-filters{display:grid;grid-template-columns:1fr;align-items:stretch}
 #workspace .category-filters label,#workspace .category-filters input,#workspace .category-filters select{width:100%;max-width:none;min-width:0}
 #workspace dialog,dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:20px}
 #job-notices{right:10px;bottom:calc(10px + env(safe-area-inset-bottom));left:10px;max-width:none}
 #job-notices .job-completion{width:100%}
}
@media(max-width:370px){
 #workspace .company-logo{width:96px}
 #workspace .ribbon-active{max-width:42vw;font-size:14px;padding-inline:7px}
 #workspace .console-filters,#workspace.overview-mode .console-filters{grid-template-columns:1fr}
 #workspace .console-filters .history-dates,#workspace .console-filters .store-picker,#workspace .console-filters .search-row,#workspace .console-filters .summary-row,#workspace .console-filters .capability-line{grid-column:auto}
 #workspace .metrics{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){#workspace>.sidebar{transition:none}}
