:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #758198;
  --muted-2: #a3adbd;
  --line: #e8ecf2;
  --line-strong: #d9e0ea;
  --blue: #3068d7;
  --blue-strong: #2254bb;
  --blue-soft: #edf3ff;
  --green: #168866;
  --green-soft: #e9f8f2;
  --amber: #b87516;
  --amber-soft: #fff5e4;
  --red: #c64c56;
  --red-soft: #fff0f1;
  --sidebar: #101a2d;
  --sidebar-2: #17243c;
  --shadow: 0 10px 35px rgba(28, 48, 84, .07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: 0 0 248px; min-height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); color: #dbe4f3; padding: 25px 14px 15px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 12px 27px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #3c70d7; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .4px; box-shadow: 0 5px 14px rgba(48, 104, 215, .28); }
.brand strong { display: block; color: #fff; font-size: 15px; letter-spacing: .2px; }
.brand span { display: block; margin-top: 3px; color: #8391a9; font-size: 11px; }
.workspace-switcher { padding: 0 10px 22px; }
.eyebrow, .nav-label { display: block; color: #7585a1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.workspace-button { width: 100%; margin-top: 9px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #273750; border-radius: 7px; background: #182640; color: #eef4ff; font-size: 12px; text-align: left; }
.workspace-dot { width: 7px; height: 7px; border-radius: 50%; background: #49c69c; box-shadow: 0 0 0 4px rgba(73, 198, 156, .11); }
.chevron { margin-left: auto; color: #8796ad; font-size: 16px; line-height: 10px; }
.nav-groups { flex: 1; overflow-y: auto; }
.nav-group { margin-bottom: 22px; }
.nav-label { padding: 0 13px 7px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 13px; margin: 2px 0; color: #9aa9c1; background: transparent; border-radius: 7px; font-size: 12px; text-align: left; transition: .16s ease; }
.nav-item:hover { color: #fff; background: #172842; }
.nav-item.active { color: #fff; background: #2a59b5; box-shadow: inset 3px 0 #8eb2ff; }
.nav-icon { width: 15px; color: #8396b4; font-size: 16px; text-align: center; line-height: 1; }
.nav-item.active .nav-icon { color: #e2ecff; }
.nav-item em { margin-left: auto; min-width: 19px; padding: 2px 5px; border-radius: 10px; background: #253552; color: #a9b7cb; font-size: 10px; font-style: normal; text-align: center; }
.nav-item em.warning-count { background: #503e27; color: #e7b56b; }
.nav-item em.alert-count { background: #59343d; color: #f5a2aa; }
.sidebar-footer { padding: 12px 4px 0; border-top: 1px solid #22314b; }
.security-note { display: flex; gap: 8px; align-items: center; padding: 9px 8px 11px; color: #8ea0ba; }
.lock-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #1d2c47; color: #78a2e9; }
.security-note strong, .security-note span { display: block; font-size: 10px; line-height: 1.6; }
.security-note strong { color: #bdc9db; font-size: 11px; }
.user-chip { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 8px; color: #fff; background: transparent; text-align: left; }
.user-chip:hover { background: #172842; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #d9e8ff; color: #3768bc; font-size: 12px; font-weight: 700; }
.user-chip strong, .user-chip small { display: block; line-height: 1.5; }
.user-chip strong { font-size: 11px; }
.user-chip small { color: #8b9ab2; font-size: 10px; }
.more { margin-left: auto; color: #8290a5; letter-spacing: 2px; }
.main-content { flex: 1; min-width: 0; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.slash { color: #c5ccd7; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.environment-pill { display: flex; gap: 7px; align-items: center; padding: 6px 9px; border: 1px solid #dbece6; border-radius: 5px; color: var(--green); background: #f2fbf7; font-size: 11px; }
.environment-pill span { width: 6px; height: 6px; border-radius: 50%; background: #32ae80; }
.icon-button, .help-button, .mobile-menu { position: relative; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; color: #748197; background: transparent; }
.icon-button:hover, .help-button:hover { background: var(--surface-soft); color: var(--blue); }
.icon-button i { position: absolute; top: 6px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #df656b; border: 1px solid white; }
.bell { font-size: 19px; transform: rotate(180deg); display: block; }
.help-button { border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; font-weight: 700; }
.mobile-menu { display: none; font-size: 18px; }
.page-content { max-width: 1480px; margin: 0 auto; padding: 30px 38px 54px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.primary-button, .secondary-button, .quiet-button { min-height: 34px; padding: 0 13px; border-radius: 6px; font-size: 12px; font-weight: 600; transition: .15s ease; }
.primary-button { color: #fff; background: var(--blue); box-shadow: 0 4px 10px rgba(48, 104, 215, .18); }
.primary-button:hover { background: var(--blue-strong); }
.secondary-button { border: 1px solid var(--line-strong); color: #45546e; background: #fff; }
.secondary-button:hover, .quiet-button:hover { border-color: #aab7cd; background: #fafbfd; }
.quiet-button { color: #5e6d83; background: transparent; }
.button-icon { margin-right: 5px; font-size: 14px; vertical-align: -1px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.metric-card { min-height: 126px; padding: 17px 18px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; right: -26px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; border: 13px solid rgba(48,104,215,.05); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 14px; }
.metric-card:nth-child(2) .metric-icon { color: var(--green); background: var(--green-soft); }
.metric-card:nth-child(3) .metric-icon { color: var(--amber); background: var(--amber-soft); }
.metric-card:nth-child(4) .metric-icon { color: var(--red); background: var(--red-soft); }
.metric-value { margin: 13px 0 7px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.metric-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.trend-up { color: var(--green); font-weight: 700; }
.trend-down { color: var(--red); font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 18px; }
.panel { padding: 19px 20px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title { margin: 0; font-size: 14px; font-weight: 700; }
.panel-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-link { color: var(--blue); background: none; font-size: 11px; font-weight: 600; }
.panel-link:hover { text-decoration: underline; }
.chart-wrap { height: 226px; padding: 6px 2px 0; }
.chart-grid { height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; padding: 2px 0 25px; }
.chart-grid::before { content: ""; position: absolute; inset: 0 0 25px; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #edf0f5 calc(25% - 1px), #edf0f5 25%); pointer-events: none; }
.chart-bars { height: 100%; position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-around; gap: 9px; padding: 5px 5px 0; }
.chart-bar-group { height: 100%; min-width: 18px; flex: 1; display: flex; align-items: center; flex-direction: column; justify-content: flex-end; gap: 8px; }
.chart-bar { width: min(22px, 68%); height: var(--height); min-height: 8px; border-radius: 4px 4px 2px 2px; background: #cbdaf7; transition: height .35s ease, background .15s ease; }
.chart-bar-group.current .chart-bar { background: var(--blue); }
.chart-bar-group:hover .chart-bar { background: #6e99e8; }
.chart-label { color: var(--muted-2); font-size: 10px; }
.chart-legend { display: flex; gap: 18px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #cbdaf7; }
.legend-dot.blue { background: var(--blue); }
.status-list { display: grid; gap: 12px; }
.status-row { display: flex; align-items: center; gap: 10px; }
.status-row + .status-row { padding-top: 12px; border-top: 1px solid #f0f2f6; }
.status-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; }
.status-mark.blue { color: var(--blue); background: var(--blue-soft); }
.status-mark.amber { color: var(--amber); background: var(--amber-soft); }
.status-mark.red { color: var(--red); background: var(--red-soft); }
.status-mark.green { color: var(--green); background: var(--green-soft); }
.status-copy { flex: 1; min-width: 0; }
.status-copy strong, .status-copy span { display: block; }
.status-copy strong { font-size: 11px; }
.status-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-count { font-size: 16px; font-weight: 700; }
.site-health { display: grid; gap: 12px; }
.site-health-row { display: grid; grid-template-columns: 1fr 100px 49px; align-items: center; gap: 12px; font-size: 11px; }
.site-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.site-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #40b68c; }
.site-dot.amber { background: #e5a044; }
.progress { height: 5px; overflow: hidden; border-radius: 6px; background: #eef1f5; }
.progress i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.site-health-row small { color: var(--muted); text-align: right; font-size: 10px; }
.activity-list { display: grid; gap: 16px; }
.activity { display: flex; gap: 11px; }
.activity-line { position: relative; width: 15px; display: flex; justify-content: center; }
.activity-line::before { content: ""; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #9db8ee; box-shadow: 0 0 0 4px #edf3ff; }
.activity:not(:last-child) .activity-line::after { content: ""; position: absolute; top: 16px; bottom: -20px; width: 1px; background: #e6ebf2; }
.activity strong { display: block; font-size: 11px; font-weight: 600; }
.activity span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 210px; }
.search-box span { position: absolute; left: 10px; top: 7px; color: #9aa6b7; font-size: 13px; }
.search-box input, .filter-select, .field input, .field select, .field textarea { width: 100%; height: 33px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; }
.search-box input { padding: 0 10px 0 29px; }
.filter-select { width: auto; min-width: 105px; padding: 0 26px 0 10px; }
.search-box input:focus, .filter-select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #91afea; box-shadow: 0 0 0 3px rgba(48,104,215,.08); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { padding: 10px 12px; color: var(--muted); background: #fafbfd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #eef1f5; font-size: 11px; vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
.row-title { display: block; color: var(--ink); font-weight: 600; }
.row-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.success { color: var(--green); background: var(--green-soft); }
.status-badge.info { color: var(--blue); background: var(--blue-soft); }
.status-badge.warning { color: var(--amber); background: var(--amber-soft); }
.status-badge.danger { color: var(--red); background: var(--red-soft); }
.status-badge.neutral { color: #738197; background: #f0f2f5; }
.table-action { color: var(--blue); background: none; font-size: 11px; font-weight: 600; }
.table-action + .table-action { margin-left: 10px; }
.empty-state { padding: 45px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.page-grid .wide { grid-column: 1 / -1; }
.info-strip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 17px; border: 1px solid #dce7fb; border-radius: 7px; background: var(--blue-soft); color: #4e6590; font-size: 11px; line-height: 1.6; }
.info-strip strong { color: #315aa6; }
.detail-list { display: grid; gap: 12px; }
.detail-item { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 11px; border-bottom: 1px solid #eff1f5; font-size: 11px; }
.detail-item:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-item span:first-child { color: var(--muted); }
.detail-item span:last-child { text-align: right; font-weight: 600; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(13, 23, 42, .43); }
.modal { width: min(570px, 100%); max-height: min(720px, calc(100vh - 44px)); overflow: auto; border-radius: 11px; background: #fff; box-shadow: 0 22px 70px rgba(9, 21, 42, .22); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 28px; height: 28px; border-radius: 6px; color: #7d8a9d; background: transparent; font-size: 20px; }
.modal-close:hover { background: #f1f3f6; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 19px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #5f6d82; font-size: 11px; font-weight: 600; }
.field input, .field select, .field textarea { padding: 0 10px; }
.field textarea { height: 75px; padding-top: 9px; resize: vertical; }
.qr-preview { width: 160px; height: 160px; display: grid; place-items: center; margin: 8px auto 19px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.qr-code { width: 126px; height: 126px; background: repeating-linear-gradient(90deg, #182033 0 4px, transparent 4px 8px), repeating-linear-gradient(0deg, #182033 0 4px, transparent 4px 8px), #fff; box-shadow: inset 0 0 0 7px #fff; transform: rotate(1deg); }
.ratio-preview { display: grid; grid-template-columns: 30% 70%; height: 12px; overflow: hidden; margin: 12px 0 17px; border-radius: 8px; background: #e7edf8; }
.ratio-preview i { background: var(--blue); }
.ratio-preview b { background: #aac2ef; }
.toast-root { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: grid; gap: 9px; }
.toast { display: flex; gap: 9px; align-items: center; min-width: 250px; max-width: 360px; padding: 12px 14px; border: 1px solid #dce4ef; border-radius: 8px; color: #31405a; background: #fff; box-shadow: 0 10px 30px rgba(19, 36, 65, .15); font-size: 11px; animation: toast-in .2s ease-out; }
.toast.success { border-left: 3px solid var(--green); }
.toast.warning { border-left: 3px solid var(--amber); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) { .sidebar { width: 220px; flex-basis: 220px; } .topbar, .page-content { padding-left: 25px; padding-right: 25px; } .metric-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sidebar { position: fixed; z-index: 15; left: 0; top: 0; width: 248px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 35px rgba(8, 18, 37, .2); } .sidebar.open { transform: translateX(0); } .topbar { height: 60px; padding: 0 16px; } .mobile-menu { display: grid; } .breadcrumbs span:first-child, .breadcrumbs .slash { display: none; } .topbar-actions { gap: 5px; } .environment-pill { display: none; } .page-content { padding: 22px 16px 40px; } .page-heading { display: block; } .heading-actions { margin-top: 17px; } .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; } .metric-card { padding: 13px; min-height: 112px; } .metric-value { font-size: 21px; } .panel { padding: 15px; } .page-grid { grid-template-columns: 1fr; } .page-grid .wide { grid-column: auto; } .table-toolbar { align-items: stretch; flex-direction: column; } .search-box { width: 100%; } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } }
@media (max-width: 420px) { .metric-grid { grid-template-columns: 1fr; } .heading-actions { display: grid; grid-template-columns: 1fr 1fr; } .heading-actions button { width: 100%; } }

/* Shared dimensions keep tables, forms, and tools stable across views. */
:root { --bg: #f6f7f8; --ink: #252a32; --muted: #717986; --line: #e2e6e8; --line-strong: #ced5d9; --blue: #15775e; --blue-strong: #0d614b; --blue-soft: #edf6f2; --sidebar: #24292f; --shadow: none; }
* { letter-spacing: 0 !important; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
button { touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #15775e; outline-offset: 3px; }
.sidebar { position: sticky; top: 0; height: 100dvh; min-height: 0; padding-top: 24px; }
.nav-group { margin-bottom: 16px; }
.nav-item { padding: 10px 13px; font-size: 13px; color: #b9c1c9; border-radius: 5px; }
.nav-item:hover, .user-chip:hover { background: #333a42; }
.nav-item.active { background: #375047; box-shadow: inset 3px 0 #80c7a8; }
.nav-icon { width: 18px; height: 18px; color: #a2aea9; }
.brand-mark { border-radius: 6px; background: #19785d; box-shadow: none; }
.brand span, .nav-label, .eyebrow { color: #a1aab5; }
.workspace-button { background: #30363d; border-color: #46515b; font-size: 12px; min-height: 36px; }
.workspace-button option { background: #30363d; }
.sidebar-footer { border-color: #3c444d; }
.lock-icon { background: #303d38; color: #aad3be; }
.user-chip strong { font-size: 12px; }
.user-chip small { font-size: 11px; }
.user-chip > svg { margin-left: auto; }
.avatar { background: #dbeae3; color: #21634d; }
.topbar { background: #fff; height: 64px; }
.topbar .icon-button svg { position: static; border: 0; border-radius: 0; background: none; }
.page-heading h1 { font-size: 23px; }
.page-heading p { font-size: 12px; }
.heading-actions { flex-wrap: wrap; }
.primary-button, .secondary-button, .quiet-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; font-size: 12px; box-shadow: none; border-radius: 5px; white-space: nowrap; }
.primary-button svg, .secondary-button svg { width: 15px; height: 15px; }
.metric-card { border-radius: 6px; min-height: 132px; }
.metric-card::after { display: none; }
.metric-top { font-size: 12px; }
.metric-meta { font-size: 11px; }
.metric-icon { border-radius: 5px; }
.metric-value { font-size: 26px; }
.panel { padding: 20px 0; border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; }
.panel + .panel { margin-top: 15px; }
.dashboard-grid { gap: 32px; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.dashboard-grid > div { min-width: 0; }
.dashboard-grid table { min-width: 560px; }
.panel-title { font-size: 14px; }
.panel-link { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-button { width: 100%; text-align: left; background: transparent; color: var(--ink); min-height: 42px; padding: 0; }
.status-button:hover { background: #eef2f0; }
.status-copy strong { font-size: 12px; }
.status-mark { flex: 0 0 32px; width: 32px; height: 32px; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.funnel div { border-left: 2px solid #d4ddd7; padding: 0 12px; }
.funnel span { display: block; color: var(--muted); font-size: 12px; }
.funnel strong { display: block; margin-top: 12px; font-size: 22px; }
.launch-checklist { display: grid; gap: 14px; padding-left: 20px; color: #5d6671; font-size: 12px; line-height: 1.6; }
.tabs { display: flex; gap: 24px; overflow-x: auto; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs button { flex-shrink: 0; padding: 0 2px 12px; font-size: 13px; color: var(--muted); background: none; border-bottom: 2px solid transparent; }
.tabs button.selected { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.integration-note { display: flex; align-items: flex-start; gap: 8px; color: #7c6846; background: #fff8e9; border-left: 3px solid #d0aa64; padding: 11px 13px; font-size: 12px; line-height: 1.7; margin: 0 0 20px; }
.integration-note svg { margin-top: 2px; width: 16px; height: 16px; }
.list-section { background: transparent; }
.table-toolbar { gap: 12px; }
.filters { flex: 1; gap: 8px; }
.search-box { min-width: 190px; max-width: 260px; }
.search-box > svg { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: var(--muted); }
.search-box input, .filter-select { height: 35px; font-size: 12px; }
.filter-date { min-width: 0; width: 130px; height: 35px; padding: 5px 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; font-size: 11px; color: #5b646f; }
.range-dash { font-size: 11px; color: var(--muted); }
.data-source { font-size: 11px; color: var(--muted); white-space: nowrap; }
.table-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { min-width: 780px; }
th { font-size: 11px; background: #f0f3f2; }
td { font-size: 12px; padding: 15px 12px; }
td:not(:last-child) { max-width: 300px; white-space: normal; overflow-wrap: anywhere; }
.row-title { line-height: 1.6; }
.row-sub { font-size: 10px; line-height: 1.5; font-weight: 400; }
.row-actions { display: flex; gap: 13px; align-items: center; }
.table-action { font-size: 12px; min-height: 30px; white-space: nowrap; padding: 0; }
.table-action + .table-action { margin-left: 0; }
.table-action svg { width: 16px; height: 16px; }
.entry-cell { display: flex; align-items: center; gap: 12px; }
.entry-info { min-width: 135px; }
.qr-thumb { width: 52px; height: 52px; object-fit: contain; flex: 0 0 52px; border: 1px solid var(--line); }
.status-badge { white-space: nowrap; font-size: 11px; }
.ratio-value { color: var(--blue); font-weight: 600; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; align-items: center; gap: 12px; }
.empty-state { display: grid; justify-items: center; gap: 12px; min-height: 180px; }
.empty-state svg { width: 30px; height: 30px; color: #aeb8b1; }
.empty-state strong { font-weight: 400; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 240px; color: var(--muted); font-size: 13px; }
.loading-state svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { padding: 32px 0; color: #a44343; line-height: 1.8; font-size: 13px; }
.modal { border-radius: 7px; }
.modal-open { overflow: hidden; }
.modal-head { align-items: center; }
.modal-head h2 { font-size: 17px; line-height: 1.6; }
.modal-close { display: grid; place-items: center; flex: 0 0 28px; }
.modal-body { overflow-wrap: anywhere; }
.modal-body .panel { padding: 18px 0; }
.modal-body .panel:first-child { border-top: 0; padding-top: 0; }
.field label { font-size: 12px; line-height: 1.5; }
.field input, .field select, .field textarea { height: 38px; font-size: 12px; }
.field select[multiple] { height: 120px; }
.field textarea { min-height: 75px; }
.field input[readonly] { background: #f4f5f6; color: #707986; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; font-size: 12px; }
.checkbox-field input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.checkbox-field label { margin: 0; line-height: 1.7; }
.form-error { color: #b33b44; min-height: 0; font-size: 12px; line-height: 1.7; margin: 12px 0 0; }
.form-error:empty { display: none; }
.detail-list { margin: 0; }
.detail-item { margin: 0; font-size: 12px; }
.detail-item dt { flex: 0 0 34%; color: var(--muted); font-weight: 400; }
.detail-item dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.qr-detail { margin: 0 auto 22px; text-align: center; }
.qr-detail img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; }
.qr-detail figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; }
.action-target { font-weight: 600; margin: 0 0 20px; font-size: 14px; }
.action-target ~ .field { margin-top: 16px; }
.calculation-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.calculation-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.calculation-totals span { display: block; font-size: 12px; color: var(--muted); }
.calculation-totals strong { display: block; font-size: 25px; color: var(--blue); margin-top: 9px; }
.calculation-totals div:last-child strong { color: #886828; }
.json-detail { white-space: pre-wrap; font-size: 12px; line-height: 1.7; background: #f4f6f5; padding: 12px; border-radius: 5px; }
.deletion-steps { padding: 0; margin-top: 22px; list-style: none; }
.deletion-steps li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; background: #f6f7f8; padding: 28px; }
.login-form { width: min(350px, 100%); }
.login-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 42px; }
.login-brand strong { font-size: 20px; }
.login-form h1 { font-size: 26px; margin: 0 0 9px; }
.login-meta { font-size: 13px; color: var(--muted); margin: 0 0 30px; }
.login-form .field { margin-bottom: 20px; }
.login-form .field input { height: 43px; }
.login-form > button { width: 100%; margin-top: 8px; height: 44px; font-size: 14px; }
.login-footer { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); color: #89919a; font-size: 11px; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) 115px; gap: 8px; align-items: stretch; }
.verification-row .secondary-button { min-width: 0; height: 43px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.toast-root { max-width: calc(100vw - 32px); }
.toast { min-width: 0; max-width: 380px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; border-radius: 6px; }
@media (max-width: 1120px) { .dashboard-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .sidebar { position: fixed; width: 248px; height: 100dvh; padding-top: 18px; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 15px 0 35px rgba(8, 18, 37, .2); }
  .topbar { height: 60px; }
  .page-content { padding-top: 22px; }
  .page-heading h1 { font-size: 21px; line-height: 1.5; }
  .page-heading p { line-height: 1.8; }
  .heading-actions { margin-top: 14px; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
  .search-box { grid-column: 1 / 3; min-width: 0; max-width: none; }
  .filter-select { min-width: 0; grid-column: 3; }
  .filter-date { width: 100%; }
  .range-dash { text-align: center; }
  .data-source { text-align: right; }
  .metric-card { min-height: 126px; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 25px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100dvh - 24px); }
  .modal-head, .modal-body { padding: 17px; }
  .modal-foot { padding: 13px 17px 17px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 23px; }
  .toast-root { right: 16px; bottom: 16px; }
}
@media (max-width: 420px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .heading-actions { display: flex; } .heading-actions button { width: auto; } }
