:root {
  color-scheme: light;
  --ink: #263332;
  --muted: #687571;
  --soft: #88928e;
  --line: #e4e9e5;
  --paper: #f6f7f5;
  --green: #237b69;
  --green-dark: #195f52;
  --green-pale: #e9f3ee;
  --amber: #a96630;
  --amber-pale: #fbf2e7;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); font-size: 14px; }
button { font: inherit; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: 0 0 236px; display: flex; flex-direction: column; padding: 24px 14px 16px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 39px; color: var(--ink); text-decoration: none; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--green-pale); color: var(--green); font: 800 19px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.3px; }
.brand small { margin-top: 3px; color: var(--soft); font-size: 11px; }
.side-caption { margin: 0 11px 10px; color: #8a9590; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.sidebar nav { display: grid; gap: 4px; }
.analysis-caption { margin-top: 30px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #56635f; text-align: left; font-size: 13px; cursor: pointer; }
.nav-link:hover { background: #f4f7f4; }
.nav-link.active { background: var(--green-pale); color: var(--green-dark); font-weight: 700; }
.nav-icon { width: 18px; color: #75827d; text-align: center; font-size: 17px; }
.nav-link.active .nav-icon { color: var(--green); }
.badge { margin-left: auto; min-width: 24px; padding: 3px 6px; border-radius: 12px; background: #f3eee6; color: #8d643c; text-align: center; font-size: 11px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; }
.privacy-state, .user-chip { display: flex; align-items: center; gap: 10px; padding: 12px 9px; }
.privacy-state { margin-bottom: 9px; border-top: 1px solid var(--line); color: var(--green); }
.lock-icon { font-size: 16px; }
.privacy-state b, .privacy-state small, .user-chip b, .user-chip small { display: block; }
.privacy-state b, .user-chip b { color: var(--ink); font-size: 12px; }
.privacy-state small, .user-chip small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eee5d8; color: #71563e; font-weight: 700; }
.main { flex: 1; min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb span { padding: 0 9px; color: #b2bbb6; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.demo-label { display: inline-flex; align-items: center; gap: 7px; color: #85673e; font-size: 10px; font-weight: 700; letter-spacing: .6px; }
.demo-label i { width: 7px; height: 7px; border-radius: 50%; background: #d2934f; }
.demo-label.connected { color: #3f8068; }
.demo-label.connected i { background: #58a77f; }
.help-link { padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.content { width: min(1280px, 100%); margin: 0 auto; padding: 30px 34px 20px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.date-label { color: var(--soft); font-size: 10px; font-weight: 700; letter-spacing: .7px; }
h1 { margin: 8px 0 5px; font-size: 27px; letter-spacing: -.8px; line-height: 1.2; }
.intro { margin: 0; color: var(--muted); font-size: 14px; }
.period-button { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 12px; border: 1px solid #dfe5e0; border-radius: 7px; background: #fff; color: #4f5d58; font-size: 12px; white-space: nowrap; }
.calendar-icon { color: var(--green); font-size: 15px; }
.down { margin-left: 6px; color: #87928d; }
.demo-note { display: flex; align-items: center; gap: 10px; min-height: 42px; margin-bottom: 20px; padding: 8px 12px; border: 1px solid #eadfc9; border-radius: 7px; background: #fbf8f1; color: #766648; font-size: 12px; line-height: 1.45; }
.demo-note b { color: #625234; }
.info { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1px solid #c5ad7e; border-radius: 50%; color: #977b4b; font: 700 11px Georgia, serif; }
.filter-row { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.filter-row h2 { margin: 0; color: #65716c; font-size: 12px; font-weight: 700; }
.country-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.country-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #596660; font-size: 12px; cursor: pointer; }
.country-button:hover { background: #fff; }
.country-button.selected { border-color: #b9d6c9; background: #eaf4ee; color: var(--green-dark); font-weight: 700; }
.country-button span { font-size: 14px; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric-card { min-height: 132px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.metric-heading { display: flex; align-items: center; gap: 9px; color: #55625d; font-size: 13px; font-weight: 600; }
.metric-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 15px; font-weight: 700; }
.sales-icon { background: #e7f3ec; color: #33816a; }
.question-icon { background: var(--amber-pale); color: var(--amber); }
.message-icon { background: #eef0f8; color: #6875a0; }
.metric-card strong { display: block; margin: 11px 0 4px 35px; color: #293634; font-size: 27px; letter-spacing: -.6px; line-height: 1; }
.metric-card small { display: block; margin-left: 35px; color: var(--muted); font-size: 11px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .9fr); gap: 15px; margin-bottom: 15px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.priority-panel, .country-panel { min-height: 275px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px 14px; }
.panel-title h2 { margin: 0; color: #2c3936; font-size: 15px; letter-spacing: -.2px; }
.panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.plain-link { flex: 0 0 auto; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.plain-link span { margin-left: 4px; font-size: 14px; }
.task-list { padding: 0 17px 6px; }
.task-row { display: flex; align-items: center; gap: 11px; min-height: 67px; border-top: 1px solid #edf0ed; }
.task-kind { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; }
.question-kind { background: var(--amber-pale); color: var(--amber); }
.message-kind { background: #f0eef7; color: #76659a; }
.task-copy { min-width: 0; flex: 1; }
.task-copy b { color: #3d4a46; font-size: 12px; font-weight: 700; }
.task-copy p { overflow: hidden; margin: 3px 0 2px; color: #687571; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-context { color: #89938f; font-size: 10px; }
.task-context i { padding: 0 3px; font-style: normal; }
.task-age { min-width: 62px; text-align: right; }
.task-age b, .task-age small { display: block; }
.task-age b { color: #8c633d; font-size: 11px; }
.task-age small { margin-top: 3px; color: #929b97; font-size: 9px; }
.task-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.reply-action, .label-action, .send-button { border: 0; border-radius: 7px; background: var(--green); color: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.reply-action { padding: 6px 9px; }
.reply-action:hover, .send-button:hover { background: #174c3f; }
.readonly-tag { color: #929b97; font-size: 9px; }
.label-action { margin-left: 5px; padding: 4px 7px; background: #edf3ef; color: var(--green); }
.label-action:hover { background: #dce9e1; }
.reply-dialog { width: min(520px, calc(100% - 30px)); padding: 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 18px 70px #16231f44; }
.reply-dialog::backdrop { background: #17231f77; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-heading h2 { margin: 0; font-size: 19px; }
.dialog-heading p { margin: 5px 0 18px; color: var(--muted); font-size: 12px; }
.dialog-close { border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.reply-label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.reply-dialog textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-size: 13px; }
.reply-dialog textarea:focus { outline: 2px solid #a8c4b7; border-color: var(--green); }
.reply-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 11px; }
.send-button { padding: 10px 14px; font-size: 12px; }
.send-button:disabled { opacity: .6; cursor: progress; }
.detail-view[hidden] { display: none; }
.detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 2px 0 14px; color: var(--muted); font-size: 12px; }
.detail-count { font-weight: 700; color: var(--ink); }
.filter-label { display: flex; align-items: center; gap: 8px; }
.filter-label select { padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.inbox-filters { display: flex; gap: 7px; }
.inbox-filter { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.inbox-filter.selected { border-color: #b6cec1; background: #edf4ef; color: var(--green); }
.inbox-filter b { margin-left: 4px; }
.detail-panel { padding: 16px 20px; }
.detail-task-list .task-row { min-height: 82px; }
.detail-task-list .task-copy p { white-space: normal; }
.quiet-action { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.quiet-action:hover { background: #f5f7f5; color: var(--ink); }
.quiet-action:disabled, .ready-action:disabled, .label-action:disabled { opacity: .6; cursor: progress; }
.danger-action { color: #9a514b; }
.order-detail-row { display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(110px,.7fr) minmax(200px,1fr) minmax(150px,.8fr); align-items: center; gap: 14px; min-height: 76px; border-bottom: 1px solid #edf0ed; font-size: 12px; }
.order-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.order-product>i { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: #f0f3f0; font-style: normal; }
.order-product>div { min-width: 0; }
.order-product b, .order-product small, .order-money b, .order-money small, .shipment-state b, .shipment-state small { display: block; }
.order-product b { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.order-product small, .order-money small, .shipment-state small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.order-money b { color: var(--ink); white-space: nowrap; }
.shipment-state { display: flex; align-items: center; gap: 8px; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: #b7bcb9; }
.state-dot.state-ready { background: #3d8964; box-shadow: 0 0 0 3px #e6f1ea; }
.shipment-state b { color: #46534e; font-size: 11px; }
.order-actions { display: flex; justify-content: flex-end; }
.ready-action { padding: 7px 10px; border: 0; border-radius: 7px; background: #f0e8dc; color: #825a32; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.ready-action:hover { background: #e9d9c3; }
.recent-row .status-pill small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.sales-channel-panel .country-table { overflow-x: auto; }
.sales-summary-head, .sales-summary-line { min-width: 650px; grid-template-columns: minmax(150px,1.2fr) repeat(3,minmax(125px,1fr)); }
.sales-summary-head span:not(:first-child) { text-align: right; }
.sales-summary-line .sales-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.sales-cell b { color: var(--ink); font-size: 11px; }
.sales-cell small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.sales-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; }
.include-finalized { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.include-finalized input { accent-color: var(--green); }
.sales-total-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sales-total-card { min-width: 0; padding: 13px; border: 1px solid #e8ece8; border-radius: 9px; background: #fcfdfb; }
.sales-total-card>small { display: block; min-height: 25px; color: var(--muted); font-size: 10px; }
.sales-total-card>strong { display: block; margin: 4px 0 8px; color: var(--green); font-size: 21px; }
.sales-total-card>div { display: grid; gap: 4px; }
.sales-total-card>div span { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.sales-total-card>div b { color: var(--ink); white-space: nowrap; }
.login-screen[hidden], #app-shell[hidden] { display: none !important; }
.login-screen { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: #eef2ef; }
.login-card { box-sizing: border-box; width: min(420px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 18px 60px #273a301c; }
.login-card>.brand-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--green); color: white; font-size: 21px; font-weight: 800; }
.login-eyebrow { margin: 23px 0 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.login-card h1 { margin: 0; color: var(--ink); font-size: 25px; }
.login-description { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.login-card form>label, .new-user-form label { display: block; margin: 13px 0 6px; color: var(--ink); font-size: 11px; font-weight: 700; }
.login-card input, .new-user-form input, .new-user-form select { box-sizing: border-box; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 13px; }
.login-card input:focus, .new-user-form input:focus, .new-user-form select:focus { outline: 2px solid #b9d0c3; border-color: var(--green); }
.login-card .send-button { width: 100%; margin-top: 11px; }
.login-local-note { display: block; margin-top: 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.login-error { min-height: 14px; margin: 8px 0 0; color: #9a514b; font-size: 11px; }
.logout-button { margin-left: auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.logout-button:hover { color: var(--ink); background: #f3f5f3; }
.user-admin-grid { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(400px,1.5fr); gap: 22px; }
.new-user-form { align-self: start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.new-user-form h2, .user-table-wrap h2 { margin: 0 0 7px; color: var(--ink); font-size: 15px; }
.new-user-form>p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.new-user-form .send-button { margin-top: 8px; }
.user-table-wrap { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.user-table th { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; }
.user-table td { padding: 11px 8px; border-bottom: 1px solid #edf0ed; color: var(--ink); white-space: nowrap; }
.user-table td:first-child b, .user-table td:first-child small { display: block; }
.user-table td:first-child small { margin-top: 3px; color: var(--muted); }
.user-table td select { max-width: 135px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; font-size: 10px; }
.user-enabled { color: #9a514b; font-size: 10px; }
.user-enabled.enabled { color: var(--green); }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px 16px; padding: 13px 4px; border-bottom: 1px solid #edf0ed; color: var(--ink); font-size: 11px; }
.audit-row time, .audit-row small { color: var(--muted); font-size: 10px; }
.audit-row small { grid-column: 1 / -1; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .order-detail-row { grid-template-columns: minmax(180px,1fr) minmax(100px,.7fr) minmax(160px,.9fr); }
  .order-actions { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 10px; }
}
@media (max-width: 650px) {
  .detail-toolbar { align-items: flex-start; flex-direction: column; }
  .inbox-filters { flex-wrap: wrap; }
  .order-detail-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
  .order-product { grid-column: 1 / -1; }
  .order-actions { grid-column: 1 / -1; }
  .sales-total-grid { grid-template-columns: 1fr; }
  .include-finalized { margin-left: 0; }
  .login-card { padding: 26px; }
  .user-admin-grid { grid-template-columns: 1fr; }
}
.task-action { min-width: 50px; min-height: 29px; border: 1px solid #dce6df; border-radius: 5px; background: #fff; color: var(--green-dark); font-size: 11px; font-weight: 600; cursor: pointer; }
.task-action:hover { background: #f2f8f4; }
.empty-row { padding: 19px 12px; color: #74807a; font-size: 12px; text-align: center; }
.account-list { padding: 0 17px 10px; }
.account-line { display: flex; align-items: center; gap: 9px; min-height: 39px; border-top: 1px solid #edf0ed; }
.account-flag { width: 23px; flex: 0 0 23px; text-align: center; font-size: 15px; }
.account-names { min-width: 0; flex: 1; }
.account-names b, .account-names small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-names b { color: #3d4a46; font-size: 11px; }
.account-names small { margin-top: 2px; color: #84908a; font-size: 10px; }
.account-state { display: inline-flex; align-items: center; gap: 5px; color: #9a6a3f; font-size: 10px; white-space: nowrap; }
.account-state i { width: 6px; height: 6px; border-radius: 50%; background: #cf9a61; }
.account-state.okay { color: #438368; }
.account-state.okay i { background: #59a781; }
.sales-channel-panel { margin-bottom: 15px; }
.sales-channel-panel .country-table { padding-bottom: 10px; }
.country-table { padding: 0 17px; }
.table-head, .country-line { display: grid; grid-template-columns: minmax(110px, 1fr) 55px minmax(105px, 1fr); align-items: center; gap: 8px; }
.table-head { min-height: 35px; border-bottom: 1px solid var(--line); color: #89938e; font-size: 10px; font-weight: 700; }
.table-head span:nth-child(2), .country-line b:nth-child(2) { text-align: center; }
.table-head span:last-child, .country-line b:last-child { text-align: right; }
.country-line { min-height: 42px; border-bottom: 1px solid #edf0ed; color: #4c5954; font-size: 11px; }
.country-line span { display: flex; align-items: center; gap: 7px; }
.country-line span i { font-size: 14px; font-style: normal; }
.country-line b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.currency-note { padding: 10px 18px 0; color: #89938e; font-size: 10px; }
.recent-panel { margin-bottom: 14px; }
.recent-table { padding: 0 17px 8px; }
.recent-head, .recent-row { display: grid; grid-template-columns: minmax(190px, 1.5fr) minmax(115px, .9fr) minmax(100px, .8fr) minmax(90px, .7fr) minmax(90px, .7fr); align-items: center; gap: 12px; }
.recent-head { min-height: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #87928d; font-size: 10px; font-weight: 700; }
.recent-row { min-height: 50px; border-bottom: 1px solid #edf0ed; color: #58645f; font-size: 11px; }
.product-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.product-name b { overflow: hidden; color: #3d4a46; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cover { width: 26px; height: 33px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 2px; color: #fff8ed; font: 700 11px Georgia, serif; box-shadow: 1px 1px 2px #999; }
.cover-a { background: linear-gradient(145deg, #b78369, #78524b); }
.cover-b { background: linear-gradient(145deg, #7ca79f, #315b55); }
.cover-c { background: linear-gradient(145deg, #c9aa7e, #756047); }
.recent-row> b { color: #3e4c47; font-size: 11px; white-space: nowrap; }
.status-pill { width: max-content; padding: 5px 8px; border-radius: 12px; background: #f8f1e7; color: #986834; font-size: 10px; }
.status-pill.sent { background: #eaf3ed; color: #4f8066; }
.footer { display: flex; justify-content: space-between; padding: 2px 1px; color: #8e9893; font-size: 10px; }
.toast { position: fixed; bottom: 20px; left: 50%; z-index: 3; max-width: min(420px, calc(100% - 30px)); padding: 11px 15px; transform: translate(-50%, 12px); border-radius: 7px; background: #263a36; color: #fff; box-shadow: 0 6px 24px #1d34333a; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 1050px) {
  .sidebar { width: 205px; flex-basis: 205px; }
  .content { padding-right: 22px; padding-left: 22px; }
  .topbar { padding: 0 22px; }
  .main-grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .9fr); }
  .recent-head, .recent-row { grid-template-columns: minmax(160px, 1.4fr) minmax(100px, .9fr) minmax(90px, .7fr) minmax(85px, .7fr) minmax(85px, .7fr); gap: 8px; }
}
@media (max-width: 820px) {
  .sidebar { width: 62px; flex-basis: 62px; padding-right: 7px; padding-left: 7px; }
  .brand { justify-content: center; margin-right: 0; margin-left: 0; }
  .brand>span:last-child, .side-caption, .nav-link:not(.active)::after, .nav-link .badge, .privacy-state span:last-child, .user-chip span:last-child { display: none; }
  .nav-link { justify-content: center; padding: 0; font-size: 0; }
  .nav-icon { font-size: 18px; }
  .privacy-state, .user-chip { justify-content: center; padding-right: 0; padding-left: 0; }
  .privacy-state { border-top: 1px solid var(--line); }
  .main-grid { grid-template-columns: 1fr; }
  .priority-panel, .country-panel { min-height: auto; }
}
@media (max-width: 620px) {
  .topbar { height: 52px; padding: 0 14px; }
  .top-actions { gap: 11px; }
  .help-link { display: none; }
  .content { padding: 22px 13px 16px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  h1 { font-size: 23px; }
  .intro { font-size: 13px; }
  .demo-note { align-items: flex-start; font-size: 11px; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .country-filter { gap: 3px; }
  .country-button { min-height: 32px; padding: 0 8px; font-size: 11px; }
  .metric-row { grid-template-columns: 1fr; gap: 8px; }
  .metric-card { min-height: 104px; padding: 13px 14px; }
  .metric-card strong { margin-top: 8px; font-size: 24px; }
  .task-row { gap: 7px; }
  .task-copy p { max-width: 180px; }
  .task-age { min-width: 46px; }
  .task-action { min-width: 44px; }
  .panel-title { padding-right: 13px; padding-left: 13px; }
  .task-list, .country-table { padding-right: 12px; padding-left: 12px; }
  .table-head, .country-line { grid-template-columns: minmax(85px, 1fr) 42px minmax(90px, 1fr); gap: 4px; }
  .country-line, .country-line b { font-size: 10px; }
  .recent-table { overflow-x: auto; padding-right: 12px; padding-left: 12px; }
  .recent-head, .recent-row { min-width: 670px; }
  .footer { gap: 8px; font-size: 9px; }
}
