/* Moysam / Framed sheet. Shared visual roles; legacy CSS retains chart geometry.
   Desktop: 228px navigation + (viewport - 236px) sheet + 8px inset.
   Sheet: 24px + flexible content + 24px. All sections use the same 16px gap. */
:root {
  color-scheme: light;
  --ground: #f6f6f6;
  --surface: #fff;
  --raised: #f8f8f8;
  --active: #eeeeee;
  --border: #e7e7e7;
  --rule: #f0f0f0;
  --control: #c6c6c6;
  --text: #222222;
  --muted: #606060;
  --faint: #686868;
  --accent: #c62835;
  --accent-soft: #fff0f1;
  --negative: #a62d36;
  --negative-soft: #fff0f1;
  --warning: #825b13;
  --warning-soft: #fff7e6;
  --radius: 8px;
  --gap: 16px;
  --font: 'Segoe UI', sans-serif;
}
body { background:var(--ground); color:var(--text); font:14px/1.5 var(--font); }
button,input,select,textarea { font:inherit; }
button { min-height:36px; padding:7px 12px; border:1px solid var(--control); border-radius:6px; background:var(--surface); color:var(--text); font-weight:500; box-shadow:none; }
button:hover { background:var(--raised); border-color:var(--muted); }
button:disabled { opacity:1; cursor:not-allowed; color:var(--faint); background:var(--raised); border-color:var(--border); }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.primary { color:white; background:var(--text); border-color:var(--text); }
.primary:hover { color:white; background:#3a3a3a; border-color:#3a3a3a; }
input,select,textarea { min-height:40px; padding:8px 10px; border:1px solid var(--control); border-radius:6px; background:var(--surface); color:var(--text); }
input::placeholder,textarea::placeholder { color:var(--faint); opacity:1; }
input:disabled,select:disabled,textarea:disabled { opacity:1; color:var(--faint); background:var(--raised); }
input[type=checkbox],input[type=radio] { accent-color:var(--accent); }
label { font-size:13px; line-height:1.45; color:var(--muted); gap:6px; }
h1 { font-size:24px; line-height:1.3; font-weight:600; letter-spacing:-.025em; margin:0; }
h2 { font-size:16px; line-height:1.4; font-weight:600; letter-spacing:-.015em; }
h3 { font-size:14px; font-weight:600; }
.muted,.report-note,.table-title p,.loading,.empty { color:var(--muted); }
.error { color:var(--negative); }
.error:empty,.package-admin-notice:empty { display:none; }
.layout { grid-template-columns:228px minmax(0,1fr); align-items:start; gap:0; padding:8px 8px 8px 0; }
.sidebar { position:sticky; top:8px; height:calc(100dvh - 16px); min-width:0; padding:20px 14px 16px; gap:28px; background:var(--ground); color:var(--text); }
.sidebar-brand { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 10px; }
.brand-lockup { display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--text); }
.brand-mark { width:28px; height:28px; flex:none; fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.brand-lockup strong { display:block; font-size:20px; line-height:1.2; font-weight:650; letter-spacing:-.5px; }
.brand-lockup small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.sidebar-body { display:flex; flex:1; flex-direction:column; min-height:0; }
.sidebar nav { display:grid; gap:4px; overflow-y:auto; }
.sidebar nav button { display:flex; align-items:center; justify-content:flex-start; min-height:44px; gap:10px; padding:9px 12px; background:transparent; color:var(--muted); border:1px solid transparent; border-radius:6px; font-size:14px; font-weight:400; text-align:left; box-shadow:none; }
.sidebar nav button:hover { background:var(--active); color:var(--text); }
.sidebar nav button.active { color:var(--text); background:var(--active); box-shadow:none; font-weight:600; }
.sidebar nav .nav-icon,.sidebar nav button.active .nav-icon { width:18px; height:18px; flex:0 0 18px; stroke:currentColor; color:inherit; }
.sidebar footer { margin-top:auto; padding:20px 12px 0; color:var(--muted); font-size:12px; }
.sidebar footer>span { display:block; font-variant-numeric:tabular-nums; }
.sidebar footer small { display:block; margin-bottom:4px; font-size:11px; }
.sidebar footer button { display:block; min-height:36px; margin-top:6px; padding:5px 0; background:transparent; border:0; color:var(--muted); }
.nav-toggle { display:none; }
.skip-link { position:fixed; top:8px; left:240px; z-index:100; padding:10px 16px; background:var(--text); color:white; border-radius:6px; transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.content { min-height:calc(100dvh - 16px); max-width:none; margin:0; padding:24px; background:var(--surface); border:1px solid var(--border); border-radius:16px; outline:none; }
.content { height:calc(100dvh - 16px); }
.top { min-height:48px; gap:16px; margin-bottom:24px; align-items:center; }
.top p { margin:6px 0 0; font-size:13px; }
.top-actions { display:flex; flex-wrap:wrap; gap:8px; }
.top-actions button,.export-xlsx { font-size:13px; background:var(--surface); border:1px solid var(--control); color:var(--text); }
.panel { border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:var(--gap); background:var(--surface); box-shadow:none; }
.content>.panel:has(.filters) { padding:16px; background:var(--raised); }
.filters-toggle { display:none; }
.filters { gap:12px; }
.filters label,.filter-field>span { color:var(--muted); font-size:12px; }
.filters input,.filters select,.select-trigger,.period-trigger,.admin-select .admin-select-trigger { min-height:40px; font-size:13px; color:var(--text); border-color:var(--control); border-radius:6px; background:var(--surface); }
.period-button { min-height:40px; font-size:13px; border-color:var(--control); border-radius:6px; color:var(--text); }
.admin-select.open .select-trigger,.admin-select .select-trigger:focus-visible { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
.select-menu,.select-menu.admin-select-menu { border-radius:8px; border-color:var(--border); background:var(--surface); box-shadow:0 8px 24px #2222221a; }
.select-option,.admin-select-menu .select-option { font-size:13px; color:var(--text); }
.select-option.active,.admin-select-menu .select-option.active { background:var(--active); color:var(--text); }
.select-field.open .select-trigger { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
.select-menu[popover] { position:fixed; inset:auto; margin:0; max-width:calc(100vw - 16px); box-sizing:border-box; overflow-y:auto; padding:6px; }
.select-menu .select-option { position:relative; min-height:40px; padding:9px 34px 9px 12px; border:0; border-radius:4px; font-size:13px; font-weight:400; line-height:1.4; text-align:left; }
.select-menu .select-option.active { background:var(--accent-soft); color:var(--accent); font-weight:500; }
.select-menu .select-option.active::after { content:''; position:absolute; right:14px; top:14px; width:6px; height:11px; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); }
.select-menu .select-option:hover,.select-menu .select-option.highlighted { background:var(--raised); color:var(--text); box-shadow:none; }
.admin-select .select-trigger:disabled { color:var(--faint); background:var(--raised); }
.admin-select-menu .select-option.highlighted { background:var(--raised); }
.metrics,.cashback-metrics,.customer-metrics,.twopay-metrics,.push-stats { display:grid; gap:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); margin-bottom:16px; }
.metric,.metric:first-child,.cashback-metric,.customer-metric,.twopay-metrics>div,.push-stats>div { padding:16px; border:0; border-right:1px solid var(--border); border-radius:0; background:transparent; color:var(--text); box-shadow:none; min-width:0; }
.metric:last-child,.cashback-metric:last-child,.customer-metric:last-child,.twopay-metrics>div:last-child,.push-stats>div:last-child { border-right:0; }
.metric::before,.cashback-metric::before,.customer-metric::before { display:none; }
.metric strong,.cashback-metric strong,.customer-metric strong,.twopay-metrics strong,.push-stats b { margin:10px 0 6px; font-size:26px; line-height:1.2; letter-spacing:-.025em; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text); }
.metrics .metric span,.metrics .metric small,.cashback-metric span,.cashback-metric small,.customer-metric span,.customer-metric small,.twopay-metrics span,.twopay-metrics small,.push-stats span { color:var(--muted); font-size:12px; }
.cashback-metrics .metric:first-child strong { color:var(--accent); }
.charts,.customer-charts { gap:16px; }
.chart-card,.customer-chart { padding:20px; border-radius:var(--radius); border-color:var(--border); box-shadow:none; }
.chart-card h2,.customer-chart h2 { font-size:16px; }
.chart-card[data-chart-card] { --chart-color:var(--accent); }
.chart-switch { background:var(--raised); border:1px solid var(--border); border-radius:6px; padding:2px; }
.chart-switch button { width:30px; min-width:30px; height:30px; min-height:30px; border:0; border-radius:4px; color:var(--muted); }
.chart-card .chart-switch button[aria-pressed=true] { color:var(--text); background:var(--surface); box-shadow:none; }
.chart-switch svg { width:16px; height:16px; }
.donut::after { inset:7%; }
.chart-body,.bar,.column-track span,.donut { animation:none; }
.cashback-customer-table td.wallet,.cashback-customer-table td:nth-child(3),.cashback-customer-table td:nth-child(5) { color:var(--text); }
.cashback-customer-table .cashback-spent b { color:var(--text); }
.customer-bar>i>span { background:var(--accent); }
.customer-bar>span i,.customer-chart:nth-child(2) .customer-bar>span i { background:var(--accent); }
.customer-total b { color:var(--text); }
.visit-days summary { color:var(--accent); }
.visit-days span { background:var(--raised); }
.customer-table .visit-days summary { margin-left:auto; }
.chart-card header,.customer-chart header { margin-bottom:16px; }
.bar,.cash .bar,.customer-bar i,.customer-hour i { background:var(--accent); border-radius:2px; }
.bar-track { background:var(--raised); border-radius:2px; }
.chart-mode button,.chart-view-switch button { color:var(--muted); background:transparent; border-radius:4px; }
.chart-mode button.active,.chart-view-switch button.active { color:var(--text); background:var(--active); }
table { font-size:13px; font-variant-numeric:tabular-nums; }
th { font-size:12px; line-height:1.4; text-transform:none; letter-spacing:0; font-weight:500; color:var(--muted); padding:12px; background:transparent; border-color:var(--border); }
td { padding:14px 12px; border-color:var(--rule); }
td small { color:var(--muted); font-size:12px; }
.table-title { margin-bottom:12px; }
.table-title h2 { margin-bottom:4px; }
.table-title p { margin-bottom:0; }
.amount { font-weight:600; }
.pill { flex:none; white-space:nowrap; border-radius:4px; font-size:12px; padding:3px 7px; }
.pagination { color:var(--muted); gap:8px; font-size:12px; flex-wrap:wrap; }
.empty { padding:28px 16px; font-size:13px; line-height:1.6; }
.loading { padding:32px 16px; font-size:13px; }
.status-overview { gap:8px; }
.status-overview button { border-radius:6px; box-shadow:none; }
.sms-access { gap:16px; }
.sms-access-card { border-radius:var(--radius); border-color:var(--border); box-shadow:none; }
.sms-access-card header h2 { font-size:16px; }
.twopay-compact { border:1px solid var(--border); border-radius:var(--radius); box-shadow:none; }
.twopay-compact-values { gap:16px; }
.twopay-compact-values>div { padding:0 16px 0 0; background:transparent; border-radius:0; border-right:1px solid var(--border); }
.twopay-compact-values>div:last-child { border-right:0; }
.twopay-compact small,.twopay-compact p { color:var(--muted); }
.twopay-compact-values span,.sms-access-label small { color:var(--muted); font-size:13px; }
.twopay-metric { border:0; border-right:1px solid var(--border); border-radius:0; padding:16px; background:transparent; }
.twopay-metric:last-child { border-right:0; }
.twopay-metric::before { display:none; }
.twopay-metric h2 { font-size:13px; font-weight:400; }
.twopay-metric strong { font-size:26px; font-weight:600; }
.sms-access-list li>span i,.sms-access-card.devices .sms-access-list li>span i { background:var(--accent); }
.payment-proof.refunded,.machine-proof.refunded { color:var(--warning); background:var(--warning-soft); border-color:#e9d6ac; }
.payment-proof.refunded i,.machine-proof.refunded i { background:var(--warning); }
.delivery-refunded .cashback-row-fact { color:var(--warning)!important; }
.payments-table .payment-row.delivery-refunded,.delivery-refunded td { background:#fffcf5; }
.delivery-refunded td:first-child { box-shadow:inset 3px 0 #b08838; }
.status-overview button[data-payment-status="refunded"] { color:var(--muted); background:var(--surface); border-color:var(--control); }
.status-overview button[data-payment-status="refunded"][aria-pressed=true] { color:var(--text); background:var(--active); border-color:var(--control); }
.twopay-tabs { gap:16px; border-bottom:1px solid var(--border); }
.twopay-tabs button { background:transparent; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--muted); padding:10px 0; }
.twopay-tabs button.active,.twopay-tabs button[aria-selected=true] { color:var(--text); background:transparent; border-bottom-color:var(--accent); }
.device-monitor .device-summary,.device-monitor .branch-health { border-radius:var(--radius); border-color:var(--border); }
.device-monitor .device-summary-metrics>div { background:transparent; border-left:1px solid var(--border); border-radius:0; }
.device-summary-main strong,.device-directory-head h2 { font-size:18px; }
.device-summary-main span:last-child,.device-monitor .device-summary-metrics span,.device-directory-head p,.device-row-box small,.device-row-state small,.device-row-time small,.device-attention-place small,.device-attention-time,.device-monitor .device-history-note { color:var(--muted); font-size:12px; }
.device-attention { border-color:var(--border); }
.device-section-head { background:var(--raised); padding:16px 20px; }
.device-section-head h2 { font-size:16px; }
.device-section-head p { color:var(--muted); }
.device-section-head>span { min-width:26px; height:26px; border-radius:4px; background:var(--negative-soft); color:var(--negative); }
.device-row,.device-attention-item { border-color:var(--rule); }
.device-row,.device-attention-item { border:0; border-bottom:1px solid var(--rule); }
.device-monitor .branch-toggle { border:0; border-radius:0; }
.device-attention.panel { padding:0; }
.device-monitor .device-filters button { border-radius:6px; }
.device-monitor .device-filters button[aria-pressed=true] { background:var(--active); border-color:var(--control); color:var(--text); }
.device-monitor .device-filters button[aria-pressed=true] span { background:var(--surface); color:var(--text); }
.ops-card,.ops-location,.ops-branch,.push-rule,.push-languages>label,.push-stats>div,#push-weather-window { border-radius:var(--radius); border-color:var(--border); box-shadow:none; }
.ops-section-head h2,.push-section-head h2 { font-size:16px; }
.ops-notice,.ops-note,.push-fact,.push-compose-actions span,.push-section-head p,.push-history-summary { color:var(--muted); font-size:13px; }
.ops-upload input[type=file]::file-selector-button { background:var(--raised); color:var(--text); border-color:var(--control); }
.ops-upload input[type=file]::file-selector-button:hover { background:var(--active); border-color:var(--muted); }
.ops-switch,.ops-fields,.push-languages { gap:16px; }
.ops-tabs button,.ops-location-tabs button { border-radius:6px; }
.push-status-line,.push-empty-state { border-radius:6px; }
.push-status-line { background:var(--raised); color:var(--text); }
.push-status-line.ready { background:#edf7f1; color:#24764b; }
.push-status-line span { color:var(--muted); }
.push-rule summary b { font-size:12px; border-radius:4px; }
.push-rule summary b.disabled { color:var(--muted); }
.push-rule form { border-color:var(--rule); }
.push-stats>div { border-radius:0; }
#push-results button:disabled { opacity:1; color:var(--faint); background:var(--raised); }
.push-languages fieldset,.ops-fields fieldset { border-radius:var(--radius); border-color:var(--border); }
.push-languages input,.push-languages textarea,.ops-fields input,.ops-fields textarea { border-radius:6px; border-color:var(--control); }
#push-weather-window { background:var(--raised); }
#push-weather-window p { color:var(--muted); font-size:12px; }
.package-plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; }
.package-plan { display:grid; gap:16px; margin:0; }
.package-plan header { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.package-plan header small { color:var(--muted); font-size:12px; }
.package-plan header h2 { margin:4px 0 0; font-size:18px; }
.package-switch { display:flex; align-items:center; gap:8px; color:var(--text); }
.package-switch input { width:18px; height:18px; min-height:18px; flex:none; }
.package-money { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.package-preview { padding:12px; background:var(--raised); border-radius:6px; font-size:13px; color:var(--muted); }
.package-preview b { color:var(--text); font-weight:600; font-variant-numeric:tabular-nums; }
.package-plan footer { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.package-plan .primary { background:var(--surface); border-color:var(--control); color:var(--text); }
.package-mode { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.7fr); gap:24px; }
.package-mode p { max-width:70ch; margin-bottom:0; color:var(--muted); font-size:13px; }
.package-mode form { display:grid; gap:16px; align-content:start; }
.package-mode form button { justify-self:start; }
.package-admin-notice { margin:0 0 16px; color:var(--accent); }
.package-result { font-size:12px; color:var(--muted); }
.package-plan[data-dirty=true] .package-result { color:var(--warning); }
.ai-panel { max-width:100%; }
.ai-connection { border-color:var(--rule); gap:16px; }
.ai-connection small { color:var(--muted); font-size:12px; }
.ai-state { border-radius:4px; color:var(--muted); }
.ai-state.active { background:#edf7f1; color:#24764b; }
.login { background:var(--ground); }
.login-card { max-width:420px; border:1px solid var(--border); border-radius:16px; padding:32px; box-shadow:none; }
.login-card h1 { font-size:24px; margin-bottom:12px; }
.login-card .brand { margin-bottom:28px; }
.login-brand { display:flex; align-items:center; gap:10px; margin-bottom:28px; font-size:20px; font-weight:600; }
.login-card .brand span { background:transparent; color:var(--accent); border-radius:0; }
.login-card .phone { font-size:18px; letter-spacing:0; font-variant-numeric:tabular-nums; }
.otp-slots span { border-color:var(--control); border-radius:6px; font-weight:500; }
.otp-control:focus-within .otp-slots span { border-color:var(--accent); box-shadow:none; }
dialog { max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow:auto; color:var(--text); border:1px solid var(--border); border-radius:12px; box-shadow:0 16px 48px #22222226; }
dialog::backdrop { background:#22222266; backdrop-filter:none; }
.range-dialog,.refund-dialog,.device-history-dialog,.ops-dialog,.logout-dialog { border-radius:12px; }
.range-dialog button,.calendar-day { border-radius:4px; }
@media(min-width:1101px) {
  .filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cashback-metrics,.customer-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media(min-width:701px) {
  .ops-locations:has(>.ops-location:only-child) { grid-template-columns:1fr; }
  .ops-location:only-child { display:grid; grid-template-columns:minmax(160px,.6fr) minmax(0,1.4fr); }
  .ops-location:only-child .ops-photo { height:100%; min-height:180px; }
  .payments-table th:nth-child(4),.payments-table td:nth-child(4),.cashback-customer-table th:nth-child(n+2):nth-child(-n+5),.cashback-customer-table td:nth-child(n+2):nth-child(-n+5),.twopay-table th:nth-child(4),.twopay-table td:nth-child(4) { text-align:right; }
}
@media(max-width:1100px) {
  html,body { height:auto; overflow:visible; }
  .layout { display:block; height:auto; min-height:100dvh; padding:0; }
  .sidebar { position:relative; top:0; height:auto; padding:14px 20px; gap:0; }
  .sidebar-brand { padding:0; min-height:36px; }
  .brand-lockup small { display:none; }
  .brand-lockup strong { font-size:18px; }
  .brand-mark { width:24px; height:24px; }
  .nav-toggle { display:flex; gap:8px; align-items:center; min-height:40px; padding:6px 12px; font-size:13px; background:transparent; }
  .nav-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; }
  .sidebar-body { display:none; }
  .sidebar.is-open .sidebar-body { display:flex; padding-top:20px; min-height:calc(100dvh - 88px); }
  .sidebar nav,.sidebar nav:has([data-view="operations"]) { display:grid; grid-template-columns:1fr!important; gap:4px; }
  .sidebar nav button,.sidebar nav:has([data-view="operations"]) button { font-size:15px; min-height:44px; padding:10px 12px; gap:12px; justify-content:flex-start; }
  .sidebar nav button span { overflow:visible; }
  .content { min-height:calc(100dvh - 68px); height:auto; overflow:visible; border-radius:12px 12px 0 0; padding:24px; }
  .skip-link { left:16px; }
  .cashback-metrics,.customer-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cashback-metrics .metric,.customer-metric { border-bottom:1px solid var(--border); }
  .cashback-metrics .metric:last-child,.customer-metric:last-child { grid-column:1/-1; border-bottom:0; }
  .cashback-metrics .metric:nth-child(2n),.customer-metric:nth-child(2n) { border-right:0; }
}
@media(max-width:700px) {
  .sidebar { padding:12px 16px; }
  .content { padding:20px 16px; }
  h1,.top h1 { font-size:22px; }
  .top { flex-wrap:wrap; gap:12px; margin-bottom:20px; }
  .top-actions { margin-left:0; }
  button,.top-actions button,.filters input,.filters .select-trigger,.period-trigger,.admin-select .admin-select-trigger { min-height:44px; }
  .select-menu .select-option { min-height:44px; }
  .panel,.chart-card,.customer-chart { padding:16px; }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .content>.filter-panel:has(.filters) { padding:0; background:var(--raised); }
  .filters-toggle { display:block; width:100%; padding:12px 16px; border:0; text-align:left; background:transparent; font-size:13px; }
  .filter-panel .filters { display:none; }
  .filter-panel.is-expanded .filters { display:grid; padding:0 16px 16px; }
  .filter-panel .error:not(:empty) { padding:0 16px 12px; }
  .filters .period-field { grid-column:1/-1; }
  .filters label,.filters input,.filters .select-trigger { font-size:13px; }
  .metric,.cashback-metric,.customer-metric,.twopay-metrics>div,.push-stats>div { padding:14px; }
  .metric strong,.cashback-metric strong,.customer-metric strong { font-size:24px; }
  .charts,.customer-charts { grid-template-columns:1fr; gap:16px; }
  .chart-switch button { width:44px; min-width:44px; height:44px; }
  .payments-panel,.cashback-customer-panel { padding:16px; }
  .payments-table .payment-row,.cashback-customer-table tr,.customer-table tr,.twopay-table tr { border-radius:6px; border-color:var(--border); }
  .payments-table .payment-row td::before,.cashback-customer-table td::before,.customer-table td::before,.twopay-table td::before { text-transform:none; letter-spacing:0; color:var(--muted); font-size:12px; }
  .payments-table .payment-row td,.cashback-customer-table td,.customer-table td,.twopay-table td { font-size:13px; }
  .payments-table .payment-row td,.cashback-customer-table td,.customer-table td { grid-template-columns:96px minmax(0,1fr); }
  .payments-table .sms-facts,.payments-table .fact-empty,.payments-table .client-device,.cashback-customer-table td small { grid-column:2; }
  .table-wrap { overflow-x:auto; }
  .twopay-compact-values { grid-template-columns:1fr; gap:12px; }
  .twopay-compact-values>div { display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:0 0 12px; border-right:0; border-bottom:1px solid var(--rule); }
  .twopay-compact-values>div:last-child { border-bottom:0; padding-bottom:0; }
  .twopay-tabs { display:grid; grid-template-columns:1fr; gap:0; overflow:visible; }
  .twopay-tabs button { width:100%; text-align:left; padding:10px 0; }
  .twopay-metrics,.push-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .twopay-metrics>div,.push-stats>div { border-bottom:1px solid var(--border); }
  .twopay-metrics>div:nth-child(2n),.push-stats>div:nth-child(2n) { border-right:0; }
  .twopay-metrics>div:nth-last-child(-n+2),.push-stats>div:nth-last-child(-n+2) { border-bottom:0; }
  .twopay-metrics>article:last-child { grid-column:1/-1; }
  .twopay-metric { border-bottom:1px solid var(--border); }
  .twopay-metric:nth-child(2) { border-right:0; }
  .twopay-metric:last-child { border-bottom:0; }
  .device-monitor .device-summary-metrics span { font-size:12px; }
  .device-monitor .device-filters { gap:8px; }
  .package-mode { grid-template-columns:1fr; gap:20px; }
  .package-plan-grid { grid-template-columns:1fr; }
  .package-money { grid-template-columns:1fr 1fr; }
  .ai-connection { display:flex; flex-wrap:wrap; }
  .ai-connection>div { flex:1 1 150px; min-width:0; }
  .ai-connection strong { overflow-wrap:anywhere; }
  .ai-connection button { margin-left:auto; }
  .push-section-head { gap:12px; }
  .login-card { padding:24px; }
  dialog { max-width:calc(100vw - 24px); }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
