:root {
  --bg-canvas: #f7f8f6;
  --bg-surface: #fff;
  --bg-subtle: #f0f3f1;
  --bg-muted: #e7ece9;
  --border-light: #e2e8e4;
  --border-strong: #c8d3cd;
  --text-primary: #14251e;
  --text-secondary: #52655b;
  --text-muted: #62766a;
  --brand-teal: #087f68;
  --brand-teal-soft: #edf8f3;
  --brand-teal-border: #abd8c5;
  --accent-blue: #0284c7;
  --status-avail: #078464;
  --status-avail-bg: #ecfdf5;
  --status-avail-border: #a7f3d0;
  --status-5h: #b77912;
  --status-5h-bg: #fffbeb;
  --status-5h-border: #fde68a;
  --status-7d: #ca4242;
  --status-7d-bg: #fef2f2;
  --status-7d-border: #fecaca;
  --status-expired: #7552b3;
  --status-expired-bg: #f5f3ff;
  --status-expired-border: #ddd6fe;
  --status-disabled: #64748b;
  --status-disabled-bg: #f8fafc;
  --status-disabled-border: #cbd5e1;
  --shadow-sm: 0 1px 2px rgb(20 37 30 / 4%);
  --shadow-md: 0 10px 40px rgb(20 37 30 / 8%);
  --focus-ring: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--brand-teal);
  --font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
}
[data-theme="dark"] {
  --bg-canvas: #0d1512;
  --bg-surface: #131e19;
  --bg-subtle: #1b2821;
  --bg-muted: #27372e;
  --border-light: #28382f;
  --border-strong: #3a4c40;
  --text-primary: #edf4ef;
  --text-secondary: #b5c5bb;
  --text-muted: #889d90;
  --brand-teal: #65d5ab;
  --brand-teal-soft: #1b342a;
  --brand-teal-border: #3a6d56;
  --accent-blue: #64badc;
  --status-avail: #65d5ab;
  --status-avail-bg: #173b2c;
  --status-avail-border: #2c6450;
  --status-5h: #e0b46a;
  --status-5h-bg: #352b18;
  --status-5h-border: #675031;
  --status-7d: #f08787;
  --status-7d-bg: #3d2425;
  --status-7d-border: #713b3d;
  --status-expired: #c6a8ed;
  --status-expired-bg: #2d2440;
  --status-expired-border: #51416f;
  --status-disabled: #a0ada7;
  --status-disabled-bg: #26332c;
  --status-disabled-border: #4a5c51;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 20%);
  --shadow-md: 0 10px 40px rgb(0 0 0 / 25%);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.workbench-body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-canvas);
  min-height: 100dvh;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.workbench-app { display: flex; flex-direction: column; height: 100dvh; width: 100%; }
.workbench-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; background: var(--bg-surface); border-bottom: 1px solid var(--border-light); }
.brand-zone { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-badge { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--brand-teal); color: var(--bg-surface); border-radius: 12px; }
.brand-icon { width: 24px; height: 24px; }
.brand-title-row { display: flex; align-items: center; gap: 9px; }
.brand-title { font-size: 18px; letter-spacing: -.45px; font-weight: 650; }
.brand-tag { font-size: 10px; letter-spacing: .5px; font-weight: 600; padding: 2px 6px; color: var(--brand-teal); background: var(--brand-teal-soft); border: 1px solid var(--brand-teal-border); border-radius: var(--radius-sm); }
.brand-desc { margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.summary-zone { display: flex; align-items: center; gap: 2px; padding: 5px 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.metric-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; font-size: 11px; white-space: nowrap; }
.chip-label { color: var(--text-secondary); }
.chip-val { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); }
.metric-chip.is-available .chip-dot { background: var(--status-avail); }
.metric-chip.is-warning .chip-dot { background: var(--status-5h); }
.metric-chip.is-danger .chip-dot { background: var(--status-7d); }
.metric-chip.is-expired .chip-dot { background: var(--status-expired); }
.metric-chip.is-estimate .chip-dot { background: var(--brand-teal); }
.chip-sub-tag { font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-left: 3px; }
.metric-divider { width: 1px; height: 12px; background: var(--border-light); flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 11px; color: var(--text-muted); margin-right: 6px; white-space: nowrap; }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.sync-dot.live { background: var(--status-avail); }
.sync-dot.syncing { background: var(--accent-blue); animation: pulseDot 1.4s infinite ease-in-out; }
.sync-dot.error { background: var(--status-7d); }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 12px; font-size: 12px; font-weight: 550; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:focus-visible, .btn-icon:focus-visible, .btn-link:focus-visible, .clear-btn:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 3px; }
.btn-secondary { background: var(--bg-surface); border-color: var(--border-strong); color: var(--text-primary); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-subtle); border-color: var(--text-muted); }
.btn-primary { background: var(--brand-teal); color: var(--bg-surface); }
.btn-primary:hover:not(:disabled) { filter: brightness(.94); }
.btn:disabled, .btn-icon:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; }
.btn-icon:hover { background: var(--bg-subtle); color: var(--text-primary); }
.btn-link { background: none; border: none; color: var(--brand-teal); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-svg { width: 16px; height: 16px; flex-shrink: 0; }
.theme-icon { width: 17px; height: 17px; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: block; }
.workbench-toolbar { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--bg-surface); border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; flex: 1; min-width: 190px; max-width: 390px; }
.search-icon { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.search-input { width: 100%; height: 36px; padding: 0 78px 0 35px; background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 13px; color: var(--text-primary); outline: none; }
.search-input::placeholder { color: var(--text-muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-input:focus { border-color: var(--brand-teal); background: var(--bg-surface); box-shadow: 0 0 0 3px var(--brand-teal-soft); }
.shortcut-tag { position: absolute; right: 29px; font: 10px var(--font-family); padding: 1px 4px; border-radius: 4px; background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-muted); pointer-events: none; }
.clear-btn { position: absolute; right: 7px; background: transparent; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; width: 21px; height: 26px; }
.filter-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.select-field { min-width: 96px; height: 34px; padding: 0 7px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.select-field:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.filter-reset-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-secondary); }
.workbench-workspace { flex: 1; min-height: 0; display: flex; overflow: hidden; position: relative; }
.master-column { flex: 0 0 370px; min-width: 0; max-width: 42%; display: flex; flex-direction: column; background: var(--bg-surface); border-right: 1px solid var(--border-light); overflow: hidden; }
.column-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 17px 24px; border-bottom: 1px solid var(--border-light); }
.column-title-group { display: flex; align-items: center; gap: 8px; }
.column-title { font-size: 13px; font-weight: 650; color: var(--text-secondary); }
.counter-badge { font-size: 11px; font-weight: 550; padding: 1px 7px; border-radius: 6px; background: var(--bg-subtle); color: var(--text-muted); }
.column-hint { font-size: 11px; color: var(--text-muted); }
.cards-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.cards-stack { display: flex; flex-direction: column; gap: 3px; }
.account-row { display: flex; align-items: center; width: 100%; gap: 12px; padding: 17px 15px; color: var(--text-primary); background: transparent; border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer; text-align: left; position: relative; transition: background .15s, border-color .15s; user-select: none; }
.account-row:hover { background: var(--bg-subtle); }
.account-row.selected { background: var(--brand-teal-soft); border-color: var(--brand-teal-border); }
.account-row:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: -2px; }
.account-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: transparent; border-radius: 0 2px 2px 0; }
.account-row.selected::before { background: var(--brand-teal); }
.account-avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-subtle); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text-secondary); flex-shrink: 0; }
.account-row.selected .account-avatar { color: var(--brand-teal); background: var(--bg-surface); border-color: var(--brand-teal-border); }
.account-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.account-row-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-name { font-size: 15px; font-weight: 650; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.badge-status { display: inline-flex; align-items: center; font-size: 10px; font-weight: 550; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.badge-status.is-available { background: var(--status-avail-bg); color: var(--status-avail); border: 1px solid var(--status-avail-border); }
.badge-status.is-exhausted-5h { background: var(--status-5h-bg); color: var(--status-5h); border: 1px solid var(--status-5h-border); }
.badge-status.is-exhausted-7d { background: var(--status-7d-bg); color: var(--status-7d); border: 1px solid var(--status-7d-border); }
.badge-status.is-token-expired { background: var(--status-expired-bg); color: var(--status-expired); border: 1px solid var(--status-expired-border); }
.badge-status.is-disabled { background: var(--status-disabled-bg); color: var(--status-disabled); border: 1px solid var(--status-disabled-border); }
.badge-status.is-error { background: var(--status-7d-bg); color: var(--status-7d); border: 1px solid var(--status-7d-border); }
.badge-status.is-unknown { background: var(--bg-muted); color: var(--text-secondary); }
.account-row-meta { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-secondary); }
.row-plan { font-size: 14px; font-weight: 650; padding: 1px 7px; border-radius: 5px; background: var(--brand-teal-soft); color: var(--brand-teal); border: 1px solid var(--brand-teal-border); }
.account-row-id { font-size: 13px; letter-spacing: .2px; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.account-row-quotas { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.mini-quota { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; font-size: 11px; color: var(--text-muted); }
.mini-bar { flex: 1; min-width: 18px; height: 9px; background: var(--bg-muted); border-radius: 5px; overflow: hidden; position: relative; }
.mini-fill { height: 100%; border-radius: 5px; background: var(--brand-teal); position: relative; overflow: hidden; }
.detail-column { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg-canvas); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.mobile-nav-bar { display: none; padding: 10px 16px; background: var(--bg-surface); border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.detail-empty { margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; max-width: 360px; }
.detail-empty-icon { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 16px; }
.detail-empty-title { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.detail-empty-desc { font-size: 13px; color: var(--text-muted); }
.detail-sheet { display: flex; flex-direction: column; padding: 32px 40px; max-width: 1060px; width: 100%; margin: 0 auto; }
.detail-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.detail-avatar { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-teal-soft); border: 1px solid var(--brand-teal-border); display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 18px; color: var(--brand-teal); flex-shrink: 0; }
.detail-hero-body { flex: 1; min-width: 0; }
.detail-hero-title { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.detail-account-name { font-size: 22px; letter-spacing: -.7px; font-weight: 650; overflow-wrap: anywhere; }
.detail-hero-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-sub { font-size: 14px; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 6px; background: var(--bg-subtle); color: var(--text-secondary); border: 1px solid var(--border-light); }
.chip-sub.plan-chip { font-weight: 600; background: var(--brand-teal-soft); color: var(--brand-teal); border-color: var(--brand-teal-border); }
.text-email { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.detail-alert-box { display: flex; align-items: flex-start; padding: 12px 14px; margin-top: 20px; border-radius: var(--radius-md); background: var(--status-7d-bg); border: 1px solid var(--status-7d-border); color: var(--status-7d); font-size: 13px; overflow-wrap: anywhere; }
.detail-section { display: flex; flex-direction: column; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--border-light); }
.detail-section:last-child { border-bottom: none; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-title { font-size: 13px; font-weight: 650; color: var(--text-secondary); }
.section-pill { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border-light); }
.meters-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.meter-box { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.meter-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.meter-name { font-size: 13px; color: var(--text-secondary); }
.meter-val { font-size: 23px; letter-spacing: -.6px; font-weight: 650; font-variant-numeric: tabular-nums; }
.meter-box.is-unknown .meter-val { font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--text-muted); }
.meter-box.is-stale .meter-val { color: var(--status-5h); }
.meter-track { width: 100%; height: 22px; background: var(--bg-muted); border-radius: 8px; overflow: hidden; position: relative; box-shadow: inset 0 1px 3px rgb(0 0 0 / 8%); }
.meter-fill { height: 100%; width: 0; border-radius: 7px; transition: width .35s cubic-bezier(.4, 0, .2, 1); background: var(--brand-teal); position: relative; overflow: hidden; }
.meter-fill.is-low, .mini-fill.is-low { background: var(--status-7d); }
.meter-fill.is-medium, .mini-fill.is-medium { background: var(--status-5h); }
.meter-fill.is-liquid::before, .mini-fill.is-liquid::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: calc(100% + 192px);
  height: calc(100% + 12px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='40' viewBox='0 0 192 40'%3E%3Cpath d='M0 12Q24 0 48 12T96 12T144 12T192 12V40H0Z' fill='%23ffffff' fill-opacity='.22'/%3E%3C/svg%3E") repeat-x left center / 192px 40px;
  animation: liquidFlow 4.8s linear infinite;
  pointer-events: none;
}
.meter-fill.is-liquid::after, .mini-fill.is-liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 28%), transparent 55%, rgb(0 0 0 / 7%));
  pointer-events: none;
}
@keyframes liquidFlow { from { transform: translateX(0); } to { transform: translateX(-192px); } }
.auto-refresh-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.auto-refresh-state::before { content: "↻"; color: var(--brand-teal); font-size: 17px; line-height: 1; }
.meter-box.is-unknown .meter-track { background: repeating-linear-gradient(90deg, var(--border-light) 0, var(--border-light) 10px, transparent 10px, transparent 14px); }
.meter-foot { min-height: 32px; }
.meter-reset { font-size: 11px; color: var(--text-muted); }
.estimate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.estimate-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.estimate-k { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.estimate-val { font-size: 23px; letter-spacing: -.6px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-primary); overflow-wrap: anywhere; }
.estimate-val.is-empty { font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--text-muted); }
.estimate-sub { font-size: 11px; color: var(--text-muted); min-height: 16px; }
.section-note { font-size: 11px; color: var(--text-muted); margin-top: 14px; }
.meta-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.meta-pair { display: flex; flex-direction: column; gap: 8px; }
.meta-k { font-size: 12px; color: var(--text-muted); }
.meta-v { font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.warnings-strip { flex-shrink: 0; padding: 9px 28px; background: var(--status-5h-bg); border-bottom: 1px solid var(--status-5h-border); color: var(--status-5h); font-size: 12px; }
.warnings-strip p + p { margin-top: 4px; }
.progress-strip { flex-shrink: 0; padding: 9px 28px; background: var(--brand-teal-soft); border-bottom: 1px solid var(--brand-teal-border); }
.progress-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--brand-teal); margin-bottom: 6px; }
.inline-spinner { width: 12px; height: 12px; border: 2px solid var(--brand-teal-border); border-top-color: var(--brand-teal); border-radius: 50%; animation: spin .8s linear infinite; }
.progress-track { height: 3px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--brand-teal); transition: width .25s; }
.skeleton-group { display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.skeleton-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 14px; border-bottom: 1px solid var(--border-light); }
.sk-line { height: 10px; background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%); background-size: 200% 100%; border-radius: 4px; animation: shimmer 1.5s infinite; }
.sk-w60 { width: 60%; }
.sk-w40 { width: 40%; }
.sk-bar { height: 4px; width: 100%; background: var(--bg-subtle); border-radius: 2px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state-wrap { margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 24px; text-align: center; }
.empty-state-icon { margin-bottom: 14px; color: var(--text-muted); }
.empty-state-icon svg { width: 32px; height: 32px; }
.empty-state-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.empty-state-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; max-width: 260px; }
.empty-state-actions { display: flex; gap: 8px; }
.workbench-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 28px; background: var(--bg-surface); border-top: 1px solid var(--border-light); font-size: 11px; color: var(--text-muted); }
.footer-meta { display: flex; align-items: center; gap: 10px; }
.footer-meta strong { font-weight: 500; }
.sep { color: var(--border-strong); }
.modal-dialog { border: 1px solid var(--border-strong); border-radius: 16px; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-md); padding: 0; max-width: 440px; max-height: calc(100dvh - 40px); width: calc(100vw - 40px); margin: auto; overflow-y: auto; }
.modal-dialog::backdrop { background: rgb(8 18 12 / 42%); backdrop-filter: blur(3px); }
.dialog-box { display: flex; flex-direction: column; gap: 24px; padding: 24px; }
.dialog-head { display: flex; gap: 14px; }
.dialog-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--status-5h-bg); color: var(--status-5h); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dialog-icon svg { width: 20px; height: 20px; }
.dialog-title { font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.dialog-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast-zone { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; max-width: 360px; background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-size: 13px; animation: slideInToast .2s ease-out; }
.toast.toast-error { border-color: var(--status-7d-border); color: var(--status-7d); }
.toast.toast-success { border-color: var(--status-avail-border); color: var(--status-avail); }
@keyframes slideInToast { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }
@media (max-width: 1280px) {
  .workbench-header { flex-wrap: wrap; gap: 14px 20px; }
  .summary-zone { order: 3; width: 100%; justify-content: flex-start; padding: 0; }
  .sync-pill { display: none; }
}
@media (max-width: 1040px) {
  .detail-sheet { padding: 24px; }
  .master-column { flex-basis: 320px; }
  .meters-duo { gap: 14px; }
  .estimate-grid { gap: 16px; }
  .meter-box { padding: 16px; }
  .meta-pairs { grid-template-columns: 1fr; gap: 16px; }
  .meta-pair { flex-direction: row; justify-content: space-between; gap: 16px; }
}
@media (max-width: 768px) {
  .summary-zone { flex-wrap: wrap; row-gap: 6px; overflow-x: visible; }
  .metric-chip.is-estimate { order: -1; flex-basis: 100%; padding: 4px 6px; }
  .auto-refresh-state { margin-left: 0; width: 100%; font-size: 12px; }
  .btn, .btn-icon { min-height: 40px; }
  .btn-icon { width: 40px; }
  .workbench-header { padding: 16px; }
  .brand-title { font-size: 16px; }
  .brand-tag { display: none; }
  .workbench-toolbar { padding: 12px 16px; gap: 10px; }
  .search-box { max-width: none; min-width: 100%; }
  .filter-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .select-field { min-width: 0; max-width: 100%; width: 100%; }
  .workbench-workspace { flex-direction: column; }
  .master-column { flex: 1 1 auto; max-width: 100%; width: 100%; border-right: none; }
  .detail-column { display: none; }
  .workbench-workspace.show-detail .master-column { display: none; }
  .workbench-workspace.show-detail .detail-column { display: flex; flex: 1; width: 100%; }
  .workbench-workspace.show-detail .mobile-nav-bar { display: flex; }
  .workbench-footer { display: none; }
  .detail-sheet { padding: 20px; }
  .detail-account-name { font-size: 19px; }
  .detail-hero { gap: 12px; }
  .toast-zone { bottom: 16px; right: 16px; left: 16px; align-items: center; }
}
@media (max-width: 480px) {
  .brand-desc { display: none; }
  .header-actions { justify-content: flex-end; flex: 1; }
  .summary-zone { gap: 0; }
  .metric-chip { padding: 3px 6px; font-size: 10px; gap: 4px; }
  .shortcut-tag { display: none; }
  .search-input { padding-right: 30px; }
  .filter-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .column-header { padding: 14px 20px; }
  .meters-duo { grid-template-columns: 1fr; }
  .estimate-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-hero-body { min-width: calc(100% - 66px); }
  .detail-hero > .btn { margin-left: 60px; }
  .meta-pair { flex-direction: column; gap: 5px; }
  .warnings-strip { padding: 8px 16px; font-size: 11px; }
  .dialog-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .meter-fill.is-liquid::before, .mini-fill.is-liquid::before { transform: none; background-size: 192px 40px; }
}
