:root {
  color-scheme: light;
  --ink: #17243b;
  --muted: #667085;
  --line: #e6e9ef;
  --paper: #f5f7fa;
  --white: #ffffff;
  --navy: #13213a;
  --blue: #356ae6;
  --blue-soft: #eaf0ff;
  --teal: #1ca38b;
  --orange: #ef8c42;
  --red: #d84c5b;
  --shadow: 0 18px 50px rgba(24, 42, 72, .10);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.muted { color: var(--muted); line-height: 1.65; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(380px, .85fr); }
.auth-brand { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--navy); }
.auth-brand::before { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -120px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.auth-brand::after { content: ""; position: absolute; inset: auto 8% 9% auto; width: 170px; height: 110px; background: linear-gradient(135deg, transparent 45%, rgba(67,112,225,.65)); transform: skewX(-18deg); opacity: .65; }
.auth-brand .eyebrow { color: #79a1ff; }
.auth-brand h1 { position: relative; margin: 0; max-width: 650px; font-size: clamp(44px, 6vw, 80px); line-height: 1.04; letter-spacing: -.05em; }
.auth-intro { position: relative; max-width: 560px; margin: 28px 0; color: #b8c4d7; font-size: 17px; line-height: 1.8; }
.brand-mark { position: relative; display: flex; gap: 6px; align-items: end; height: 38px; margin-bottom: 48px; }
.brand-mark span { width: 10px; border-radius: 2px; background: #6f99ff; transform: skewX(-12deg); }
.brand-mark span:nth-child(1) { height: 17px; }.brand-mark span:nth-child(2) { height: 28px; }.brand-mark span:nth-child(3) { height: 38px; }
.trust-list { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-list span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: #cdd6e4; font-size: 12px; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: #eef1f6; }
.auth-card { width: min(440px, 100%); padding: clamp(30px, 5vw, 52px); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.auth-card form { display: grid; gap: 20px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d5dae3; border-radius: 10px; padding: 12px 14px; color: var(--ink); background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,106,230,.12); }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.safe-note { margin: 22px 0 0; color: #8a94a5; font-size: 11px; line-height: 1.5; }

.primary, .secondary, .light-button { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 800; }
.primary { color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(53,106,230,.22); }
.primary:hover { background: #285bd2; }
.secondary { color: var(--blue); background: var(--blue-soft); }
.light-button { color: var(--navy); background: #fff; }
.wide { width: 100%; padding: 14px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; display: flex; flex-direction: column; color: #fff; background: var(--navy); }
.logo { display: flex; align-items: baseline; gap: 5px; color: #fff; text-decoration: none; font-size: 15px; }
.logo strong { letter-spacing: .06em; }.logo span:last-child { color: #8b9bb4; font-size: 12px; }
.logo-dot { width: 8px; height: 24px; margin-right: 3px; display: inline-block; background: var(--blue); transform: skewX(-12deg); }
.sidebar nav { display: grid; gap: 8px; margin-top: 58px; }
.sidebar nav a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 9px; color: #9eabc0; text-decoration: none; font-size: 13px; font-weight: 700; }
.sidebar nav a span { color: #62738f; font-size: 10px; }
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: rgba(255,255,255,.075); }
.sidebar-foot { margin-top: auto; display: grid; gap: 14px; }
.mode-pill { padding: 10px; border-radius: 8px; color: #9fd7c9; background: rgba(28,163,139,.12); font-size: 11px; text-align: center; }
.mode-pill.write { color: #ffd0aa; background: rgba(239,140,66,.13); }
.text-button { border: 0; color: #8998af; background: transparent; font-size: 12px; }
.workspace { min-width: 0; padding: 30px clamp(20px, 4vw, 56px) 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.topbar h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.connection { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; font-size: 11px; }
.connection span { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(28,163,139,.12); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 19px; }
.user-chip { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 0 0 0 rgba(53,106,230,.18); font-size: 12px; font-weight: 800; transition: box-shadow .2s, transform .2s; }
.user-chip:hover,.user-chip:focus-visible { box-shadow: 0 0 0 4px rgba(53,106,230,.18); transform: translateY(-1px); }

.hero-grid { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(420px, .9fr); gap: 20px; }
.hero-card { min-height: 270px; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #182947 0%, #203d75 72%, #315baf 100%); box-shadow: var(--shadow); }
.hero-card .eyebrow { color: #8db0ff; }.hero-card h2 { max-width: 480px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; }
.hero-card p:not(.eyebrow) { max-width: 510px; color: #bcc9dc; line-height: 1.65; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric { min-height: 128px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.metric span { color: var(--muted); font-size: 12px; }.metric strong { font-size: 36px; letter-spacing: -.04em; }.metric small { color: #98a2b3; }
.metric.warning { border-top: 3px solid var(--orange); }.metric.success { border-top: 3px solid var(--teal); }

.section-card { margin-top: 22px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(20,38,68,.045); scroll-margin-top: 18px; }
.workspace-panel.section-card { margin-top: 0; }
.workspace-panel[hidden] { display: none !important; }
.workbench-card { margin-top: 22px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(20,38,68,.045); }
.workbench-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.workbench-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.workbench-heading > span { color: #8a94a5; font-size: 11px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quick-action { min-width: 0; padding: 18px; display: flex; align-items: flex-start; flex-direction: column; gap: 7px; border: 1px solid #e1e7f0; border-radius: 14px; color: var(--ink); background: linear-gradient(145deg,#fff,#f8faff); text-align: left; transition: border-color .18s,box-shadow .18s,transform .18s; }
.quick-action:hover { border-color: #b7c9f4; box-shadow: 0 10px 24px rgba(53,106,230,.10); transform: translateY(-2px); }
.quick-action.primary-action { border-color: #b9caf3; background: linear-gradient(145deg,#f2f6ff,#fff); }
.quick-action-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); font-size: 19px; font-weight: 800; }
.quick-action strong { margin-top: 3px; font-size: 14px; }
.quick-action small { min-height: 32px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.quick-action em { margin-top: auto; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 800; }
.workbench-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr); gap: 20px; }
.setup-steps,.today-status { display: grid; gap: 9px; }
.setup-step { width: 100%; padding: 13px 14px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid #e2e7ef; border-radius: 11px; color: inherit; background: #fff; text-align: left; }
.setup-step:hover { border-color: #b7c9f4; }
.setup-step > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #315db6; background: var(--blue-soft); font-size: 11px; font-weight: 900; }
.setup-step.done > span { color: #087e68; background: #e3f7f2; }
.setup-step strong,.setup-step small { display: block; }
.setup-step strong { font-size: 11px; }
.setup-step small { margin-top: 4px; color: #8792a3; font-size: 9px; line-height: 1.45; }
.setup-step em { color: #8792a3; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.setup-step.done em { color: #087e68; }
.today-row { padding: 13px 14px; display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 11px; border-radius: 11px; background: #f8f9fc; }
.today-row > span { width: 9px; height: 9px; border-radius: 50%; background: #99a4b4; box-shadow: 0 0 0 4px rgba(153,164,180,.13); }
.today-row.ok > span { background: var(--teal); box-shadow: 0 0 0 4px rgba(28,163,139,.13); }
.today-row.warning > span { background: var(--orange); box-shadow: 0 0 0 4px rgba(239,140,66,.13); }
.today-row.alert > span { background: var(--red); box-shadow: 0 0 0 4px rgba(216,76,91,.13); }
.today-row strong,.today-row small { display: block; }
.today-row strong { font-size: 11px; }
.today-row small { margin-top: 4px; color: #8792a3; font-size: 9px; line-height: 1.45; }
.today-row b { color: #53627a; font-size: 11px; }
.text-route { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 800; }
.report-summary,.problem-summary { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.report-chip,.problem-chip { padding: 8px 11px; border-radius: 9px; color: #53627a; background: #f0f3f8; font-size: 10px; font-weight: 800; }
.report-chip strong,.problem-chip strong { margin-left: 5px; color: var(--ink); font-size: 13px; }
.report-chip.changed { color: #315db6; background: #eaf0ff; }.report-chip.waiting { color: #9b551e; background: #fff1e5; }.report-chip.failed,.problem-chip.critical { color: #9f2f3a; background: #fde7ea; }
.spend-change-chart { display: grid; gap: 17px; }
.spend-chart-group { display: grid; gap: 9px; }
.spend-chart-group > strong { color: #59677b; font-size: 10px; }
.spend-chart-row { display: grid; grid-template-columns: minmax(110px,180px) minmax(120px,1fr) minmax(100px,auto); align-items: center; gap: 12px; }
.spend-chart-label strong,.spend-chart-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.spend-chart-label strong { font-size: 10px; }.spend-chart-label small { margin-top: 3px; color: #8a94a5; font-size: 8px; }
.spend-bar-track { height: 12px; overflow: hidden; border-radius: 99px; background: #edf0f5; }
.spend-bar { min-width: 3px; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),#7598ef); transition: width .35s; }.spend-chart-row.unchanged .spend-bar { background: #aab3c1; }.spend-chart-row.failed .spend-bar { background: var(--red); }.spend-chart-row.baseline .spend-bar { background: var(--teal); }
.spend-chart-value { text-align: right; }.spend-chart-value strong,.spend-chart-value small { display: block; white-space: nowrap; }.spend-chart-value strong { font-size: 11px; }.spend-chart-value small { margin-top: 3px; color: #8a94a5; font-size: 8px; }
.report-boundary { margin: 16px 0 0; color: #8b95a5; font-size: 9px; line-height: 1.6; }
.problem-list { display: grid; gap: 9px; }
.problem-row { padding: 13px 14px; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: start; gap: 12px; border: 1px solid #f0d7da; border-radius: 11px; background: #fffafa; }
.problem-row > span { width: 7px; height: 100%; min-height: 36px; border-radius: 99px; background: var(--red); }.problem-row.warning { border-color: #f1dfca; background: #fffaf4; }.problem-row.warning > span { background: var(--orange); }
.problem-row strong,.problem-row small { display: block; }.problem-row strong { font-size: 11px; }.problem-row small { margin-top: 5px; color: #7c8798; font-size: 9px; line-height: 1.5; }.problem-row em { color: #9f2f3a; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }.problem-row.warning em { color: #9b551e; }
.problem-empty { padding: 18px; border-radius: 11px; color: #087e68; background: #f0faf7; font-size: 11px; text-align: center; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.heading-actions button:disabled { opacity: .45; cursor: not-allowed; }
.list-stack { display: grid; gap: 10px; }
.empty-state { padding: 34px; border: 1px dashed #d6dbe4; border-radius: 12px; color: #8b95a5; text-align: center; font-size: 13px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.account-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(150deg, #fff 55%, #f7f9fd); }
.account-card.off { opacity: .66; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-head strong { display: block; font-size: 15px; }.account-id { margin-top: 4px; color: var(--blue); font-family: ui-monospace, monospace; font-size: 13px; }
.account-meta { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 7px; }.account-meta span { padding: 6px 8px; border-radius: 7px; color: #617089; background: #eef1f6; font-size: 10px; }
.account-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8a94a5; font-size: 10px; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.account-action { border: 0; border-radius: 7px; padding: 7px 9px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.account-action.sync { color: #087e68; background: #e3f7f2; }
.account-action:disabled { opacity: .52; cursor: not-allowed; }
.account-toggle { border: 0; border-radius: 7px; padding: 7px 9px; color: #9b551e; background: #fff1e5; font-size: 10px; font-weight: 800; }
.account-toggle.enable { color: #087e68; background: #e3f7f2; }
.account-action.automation { color: #6d4ea1; background: #f1ebfb; }
.ads-automation-panel { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfe; }
.ads-automation-panel .subheading { align-items: center; }.ads-automation-panel .subheading button { padding: 8px 11px; }
.automation-copy { margin: -4px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.scheduler-runtime-panel { margin: 0 0 16px; padding: 14px; border: 1px solid #d8e2f1; border-radius: 11px; background: #f6f9ff; }.scheduler-runtime-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.scheduler-runtime-heading strong,.scheduler-runtime-heading small { display: block; }.scheduler-runtime-heading strong { font-size: 12px; }.scheduler-runtime-heading small { margin-top: 4px; color: #748197; font-size: 9px; line-height: 1.5; }.scheduler-runtime-list { margin-top: 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.scheduler-runtime-card { min-width: 0; padding: 11px; border: 1px solid #dfe6f1; border-left: 4px solid var(--teal); border-radius: 9px; background: #fff; }.scheduler-runtime-card.starting,.scheduler-runtime-card.running { border-left-color: var(--blue); }.scheduler-runtime-card.error,.scheduler-runtime-card.overdue { border-left-color: var(--red); background: #fffafa; }.scheduler-runtime-card.disabled { border-left-color: #9aa4b2; }.scheduler-runtime-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.scheduler-runtime-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.scheduler-runtime-card span { padding: 3px 6px; border-radius: 99px; color: #087e68; background: #e3f7f2; font-size: 8px; font-weight: 800; white-space: nowrap; }.scheduler-runtime-card.starting span,.scheduler-runtime-card.running span { color: #315db6; background: #eaf0ff; }.scheduler-runtime-card.error span,.scheduler-runtime-card.overdue span { color: #9f2f3a; background: #fde7ea; }.scheduler-runtime-card.disabled span { color: #667085; background: #eef1f6; }.scheduler-runtime-card p { margin: 8px 0 5px; color: #59677b; font-size: 9px; line-height: 1.5; }.scheduler-runtime-card small { color: #8c96a6; font-size: 8px; line-height: 1.5; }
.batch-sync-summary { margin: -8px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.batch-sync-panel { margin-bottom: 22px; padding: 18px; border: 1px solid #dbe3f0; border-radius: 13px; background: linear-gradient(145deg,#fbfcff,#f6f9ff); }
.acceptance-center-panel { margin-bottom: 22px; padding: 20px; border: 1px solid #cddbf1; border-radius: 14px; background: linear-gradient(145deg,#f9fbff,#f1f6ff); }.acceptance-center-heading { align-items: center; }.acceptance-center-heading > div:first-child h3 { margin: 0; }.acceptance-center-heading > div:first-child span { display: block; margin-top: 5px; color: #7c8798; font-size: 10px; }.acceptance-center-actions { display: flex; gap: 8px; }.acceptance-center-actions button { padding: 8px 11px; }.acceptance-center-summary { margin-top: 14px; display: flex; align-items: center; gap: 12px; }.acceptance-center-summary p { margin: 0; color: #59677b; font-size: 11px; line-height: 1.55; }.acceptance-center-status { white-space: nowrap; }.acceptance-center-status.waiting_deployment,.acceptance-center-status.waiting_accounts { color: #9b551e; background: #fff1e5; }.acceptance-center-status.ready_for_external_review { color: #087e68; background: #e3f7f2; }.acceptance-center-metrics { margin-top: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }.acceptance-center-metrics > div { min-width: 0; padding: 12px; border: 1px solid #dce5f2; border-radius: 9px; background: rgba(255,255,255,.78); }.acceptance-center-metrics span,.acceptance-center-metrics strong,.acceptance-center-metrics small { display: block; }.acceptance-center-metrics span { color: #7c8798; font-size: 9px; }.acceptance-center-metrics strong { margin: 6px 0 3px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }.acceptance-center-metrics small { color: #98a2b3; font-size: 8px; }.acceptance-center-checks { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.acceptance-center-check { padding: 11px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid #e2e8f2; border-radius: 9px; background: #fff; }.acceptance-center-check > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #9b551e; background: #fff1e5; font-size: 10px; font-weight: 900; }.acceptance-center-check.pass > span { color: #087e68; background: #e3f7f2; }.acceptance-center-check.pending > span { color: var(--blue); background: var(--blue-soft); }.acceptance-center-check.manual > span { color: #65529f; background: #f0ecff; }.acceptance-center-check strong,.acceptance-center-check small { display: block; }.acceptance-center-check strong { font-size: 10px; }.acceptance-center-check small { margin-top: 4px; color: #8792a3; font-size: 8px; line-height: 1.45; }.acceptance-center-check em { color: #8792a3; font-size: 8px; font-style: normal; font-weight: 800; }.acceptance-account-heading { margin-top: 16px; }.acceptance-account-heading h4 { margin: 0; }.acceptance-center-accounts { display: grid; gap: 7px; }.acceptance-account { width: 100%; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #ead7bd; border-radius: 9px; color: inherit; background: #fffaf4; text-align: left; }.acceptance-account.accepted { border-color: #b8e4d9; background: #f2fbf8; }.acceptance-account strong,.acceptance-account small { display: block; }.acceptance-account strong { font-size: 10px; }.acceptance-account small { margin-top: 3px; color: #8792a3; font-size: 8px; }.acceptance-account em { color: #7c8798; font-size: 9px; font-style: normal; font-weight: 800; }.acceptance-external { margin-top: 14px; }
.batch-sync-runs { display: grid; gap: 10px; }
.batch-sync-run { min-width: 0; padding: 13px 14px; border: 1px solid #dce2ec; border-left: 4px solid var(--blue); border-radius: 10px; background: #fff; }
.batch-sync-run.succeeded { border-left-color: var(--teal); }.batch-sync-run.completed_with_errors { border-left-color: var(--red); }.batch-sync-run.no_tasks { border-left-color: #9aa4b2; }
.batch-sync-run-head,.batch-sync-run-counts { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.batch-sync-run-head strong { font-size: 11px; }.batch-sync-run-head span { padding: 4px 7px; border-radius: 99px; color: #315db6; background: #eaf0ff; font-size: 9px; font-weight: 800; white-space: nowrap; }.batch-sync-run.succeeded .batch-sync-run-head span { color: #087e68; background: #e3f7f2; }.batch-sync-run.completed_with_errors .batch-sync-run-head span { color: #a12f3c; background: #fde9ec; }.batch-sync-run.no_tasks .batch-sync-run-head span { color: #667085; background: #eef1f6; }
.batch-sync-progress { margin: 11px 0 8px; height: 7px; overflow: hidden; border-radius: 99px; background: #e9edf4; }.batch-sync-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--teal)); }
.batch-sync-run-counts { color: #6e7b90; font-size: 9px; line-height: 1.5; }.batch-sync-run-counts span:last-child { text-align: right; }
.batch-sync-errors { margin: 9px 0 0; padding: 8px 10px; border-radius: 7px; color: #9f2f3a; background: #fff2f3; font-size: 9px; line-height: 1.55; }
.automation-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; }
.automation-state { min-width: 0; padding: 13px; border: 1px solid #dde2ea; border-left: 4px solid #9aa4b2; border-radius: 9px; background: #fff; }
.automation-state > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.automation-state strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.automation-state span { padding: 4px 6px; border-radius: 99px; color: #667085; background: #eef1f6; font-size: 9px; font-weight: 800; white-space: nowrap; }
.automation-state p { margin: 9px 0 5px; color: #53627a; font-size: 10px; line-height: 1.45; }.automation-state small { color: #8c96a6; font-size: 9px; }
.automation-state.ready,.automation-state.task_pending { border-left-color: var(--teal); }.automation-state.ready span,.automation-state.task_pending span { color: #087e68; background: #e3f7f2; }
.automation-state.missing_timezone,.automation-state.timezone_unverified,.automation-state.timezone_stale,.automation-state.timezone_mismatch,.automation-state.missing_campaigns,.automation-state.missing_schedule,.automation-state.device_offline,.automation-state.capability_missing { border-left-color: var(--orange); }.automation-state.missing_timezone span,.automation-state.timezone_unverified span,.automation-state.timezone_stale span,.automation-state.timezone_mismatch span,.automation-state.missing_campaigns span,.automation-state.missing_schedule span,.automation-state.device_offline span,.automation-state.capability_missing span { color: #9b551e; background: #fff1e5; }
.ads-health-panel { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.ads-health-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 9px; }.health-state { min-width: 0; padding: 13px; border: 1px solid #dde2ea; border-left: 4px solid #9aa4b2; border-radius: 9px; background: #fff; }.health-state > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.health-state strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.health-state span { padding: 4px 6px; border-radius: 99px; color: #667085; background: #eef1f6; font-size: 9px; font-weight: 800; white-space: nowrap; }.health-state p { margin: 9px 0 5px; color: #53627a; font-size: 10px; line-height: 1.45; }.health-state small { color: #8c96a6; font-size: 9px; }.health-state.healthy { border-left-color: var(--teal); }.health-state.healthy span { color: #087e68; background: #e3f7f2; }.health-state.refreshing,.health-state.waiting_first_snapshot { border-left-color: var(--blue); }.health-state.refreshing span,.health-state.waiting_first_snapshot span { color: #315db6; background: #eaf0ff; }.health-state.degraded { border-left-color: var(--red); background: #fffafa; }.health-state.degraded span { color: #9f2f3a; background: #fde7ea; }
.spend-window-panel { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.spend-window-estimates { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.spend-window-card { min-width: 0; padding: 14px; border: 1px solid #d8e0ed; border-left: 4px solid var(--teal); border-radius: 10px; background: #fff; }.spend-window-card.pending,.spend-window-card.baseline_only { border-left-color: var(--blue); }.spend-window-card.uncertain { border-left-color: var(--orange); }
.spend-window-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.spend-window-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.spend-window-card > div:first-child span { padding: 4px 7px; border-radius: 99px; color: #087e68; background: #e3f7f2; font-size: 9px; font-weight: 800; white-space: nowrap; }.spend-window-card.pending > div:first-child span,.spend-window-card.baseline_only > div:first-child span { color: #315db6; background: #eaf0ff; }.spend-window-card.uncertain > div:first-child span { color: #9b551e; background: #fff1e5; }
.spend-window-value { margin: 12px 0 8px; display: flex; align-items: baseline; gap: 8px; }.spend-window-value b { color: #173467; font-size: 23px; }.spend-window-value small { color: var(--muted); font-size: 9px; }.spend-window-card p { margin: 8px 0 5px; color: #53627a; font-size: 10px; line-height: 1.5; }.spend-window-card > small { display: block; color: #8c96a6; font-size: 9px; line-height: 1.5; }.spend-window-card em { margin-top: 8px; display: block; color: #7c8798; font-size: 9px; font-style: normal; line-height: 1.5; }.spend-window-boundary { grid-column: 1 / -1; margin: 1px 0 0; color: #8c96a6; font-size: 9px; line-height: 1.55; }
.settlement-panel { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.settlement-settings-form { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.settlement-settings-form label { min-width: 0; color: #53627a; font-size: 9px; font-weight: 800; }
.settlement-settings-form input,.settlement-settings-form select { width: 100%; margin-top: 5px; }
.settlement-settings-form button { min-height: 39px; }.settlement-sheet-url { grid-column: span 2; }
.settlement-run-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.settlement-run-form label { display: grid; gap: 6px; color: #53627a; font-size: 9px; font-weight: 800; }
.settlement-run-form input { min-height: 39px; }
.settlement-run-form span { color: var(--muted); font-size: 11px; }
.settlement-readiness { display: grid; grid-template-columns: repeat(3,minmax(180px,1fr)); gap: 9px; margin: 14px 0 10px; }
.settlement-readiness article { padding: 12px; border: 1px solid #dbe3ef; border-radius: 9px; background: #fff; }
.settlement-readiness strong { display: block; color: #173467; font-size: 11px; }.settlement-readiness span { display: block; margin-top: 5px; color: #6f7c91; font-size: 9px; line-height: 1.5; }
.settlement-windows { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 10px; }
.settlement-window { padding: 13px; border: 1px solid #d8e0ed; border-left: 4px solid var(--blue); border-radius: 9px; background: #fff; }
.settlement-window.reconciled { border-left-color: var(--teal); }.settlement-window.uncertain { border-left-color: var(--orange); }
.settlement-window > div { display: flex; justify-content: space-between; gap: 8px; }.settlement-window strong { font-size: 11px; }.settlement-window b { color: #173467; font-size: 19px; }
.settlement-window p,.settlement-window small { color: #6f7c91; font-size: 9px; line-height: 1.5; }
.settlement-boundary { margin: 10px 0 0; color: #9b551e; font-size: 9px; line-height: 1.55; }
@media (max-width: 900px) { .settlement-settings-form { grid-template-columns: 1fr 1fr; }.settlement-sheet-url { grid-column: 1 / -1; }.settlement-readiness { grid-template-columns: 1fr; } }
.campaign-alerts { margin-top: 14px; overflow: hidden; border: 1px solid #f3b9bf; border-radius: 10px; background: #fff8f8; }.campaign-alerts[hidden] { display: none; }
.campaign-alert-heading,.campaign-alert-row { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.campaign-alert-heading { color: #9f2f3a; background: #fff0f2; }.campaign-alert-heading strong,.campaign-alert-heading span,.campaign-alert-row strong,.campaign-alert-row span { display: block; }.campaign-alert-heading strong { font-size: 11px; }.campaign-alert-heading span { color: #b45b65; font-size: 9px; }
.campaign-alert-row { border-top: 1px solid #f6d7db; }.campaign-alert-row strong { font-size: 11px; }.campaign-alert-row span { margin-top: 4px; color: #96545d; font-size: 9px; }.campaign-alert-row button { border: 0; border-radius: 7px; padding: 7px 9px; color: #9f2f3a; background: #fde7ea; font-size: 10px; font-weight: 800; white-space: nowrap; }
.checkbox-field { align-self: end; min-height: 42px; display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: #53627a; font-size: 11px; }.checkbox-field input { width: auto; margin: 0; }
.monitor-summary { margin: -8px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.monitor-summary p { margin: 0; line-height: 1.65; }.sound-toggle { min-width: max-content; display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }.sound-toggle input { width: auto; }
.desktop-notification-panel { margin: 0 0 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #c9d8f6; border-radius: 11px; background: #f7f9ff; }.desktop-notification-panel strong { display: block; font-size: 12px; }.desktop-notification-panel p { margin: 5px 0 0; max-width: 680px; color: #6f7d92; font-size: 10px; line-height: 1.55; }.desktop-notification-panel p.notification-error { color: #a12f3c; }.desktop-notification-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }.desktop-notification-actions label { display: flex; align-items: center; gap: 6px; color: #53627a; font-size: 10px; white-space: nowrap; }.desktop-notification-actions input { width: auto; margin: 0; }.desktop-notification-actions button { padding: 8px 10px; white-space: nowrap; }
.remote-notification-panel { align-items: flex-start; }.remote-notification-panel > div:first-child { max-width: 410px; }.remote-notification-config { min-width: min(560px,58%); display: grid; grid-template-columns: auto minmax(120px,160px) minmax(220px,1fr); align-items: end; gap: 10px; }.remote-toggle-group { display: grid; gap: 7px; align-self: center; }.remote-notification-toggle { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; white-space: nowrap; }.remote-notification-toggle input { width: 16px; height: 16px; margin: 0; }.remote-notification-config label { font-size: 10px; }.remote-notification-config select,.remote-notification-config input { padding: 9px 10px; font-size: 10px; }.remote-notification-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }.remote-notification-actions button { padding: 8px 10px; font-size: 10px; white-space: nowrap; }
.repeat-notification-panel select { width: auto; min-width: 94px; padding: 8px 28px 8px 10px; font-size: 10px; }.repeat-notification-panel .desktop-notification-actions label:last-child { display: flex; align-items: center; gap: 7px; }
.incident-strip { margin-bottom: 16px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #f3b9bf; border-radius: 10px; color: #9f2f3a; background: #fff1f2; font-size: 12px; }.incident-strip span { overflow: hidden; color: #b45b65; text-overflow: ellipsis; white-space: nowrap; }
.monitor-table { min-width: 980px; }.monitor-row > td:first-child { max-width: 310px; }.monitor-row strong,.monitor-row a,.monitor-row small { display: block; }.monitor-row a { margin-top: 5px; overflow: hidden; color: var(--blue); text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }.monitor-row small { margin-top: 5px; max-width: 290px; overflow: hidden; color: #8a94a5; text-overflow: ellipsis; white-space: nowrap; }
.monitor-row.danger { background: #fff8f8; }.monitor-row.down { background: #fffbf7; }.monitor-tag { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #667085; background: #f0f2f6; font-size: 10px; font-weight: 800; }.monitor-tag.good { color: #087e68; background: #e3f7f2; }.monitor-tag.warn { color: #9b551e; background: #fff1e5; }.monitor-tag.bad { color: #a12f3c; background: #fde9ec; }
.row-actions { display: flex; gap: 5px; }.row-actions button { border: 0; border-radius: 7px; padding: 7px 9px; color: #53627a; background: #eef1f6; font-size: 10px; font-weight: 800; white-space: nowrap; }.row-actions button:first-child { color: var(--blue); background: var(--blue-soft); }.row-actions button:disabled { opacity: .55; }
.monitor-boundary { margin: 16px 0 0; color: #8a94a5; font-size: 11px; line-height: 1.6; }
.device-row { padding: 16px; display: grid; grid-template-columns: 44px minmax(160px, 1fr) minmax(120px, .6fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; }
.deployment-readiness-panel { margin-bottom: 22px; padding: 18px; border: 1px solid #dfe6f2; border-radius: 13px; background: linear-gradient(145deg,#fbfcff,#f5f8fd); }
.automatic-backup-panel { margin-bottom: 22px; padding: 18px; border: 1px solid #dfe6f2; border-radius: 13px; background: #fbfcff; }.automatic-backup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.automatic-backup-heading strong,.automatic-backup-heading small { display: block; }.automatic-backup-heading strong { font-size: 13px; }.automatic-backup-heading small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }.automatic-backup-controls { margin-top: 15px; display: grid; grid-template-columns: .8fr .8fr .8fr 1.5fr 1.5fr; align-items: end; gap: 10px; }.automatic-backup-controls label { min-width: 0; font-size: 10px; }.automatic-backup-controls .backup-toggle { align-self: center; display: flex; align-items: center; gap: 7px; white-space: nowrap; }.automatic-backup-controls .backup-toggle input { width: auto; margin: 0; }.automatic-backup-boundary { margin: 13px 0; color: #6f7d92; font-size: 10px; line-height: 1.6; }.automatic-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }.automatic-backup-actions button { padding: 8px 11px; font-size: 10px; }.automatic-backup-actions button:disabled { opacity: .5; cursor: not-allowed; }.automatic-backup-list { margin-top: 14px; }.automatic-backup-row { padding: 10px 4px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; border-bottom: 1px solid #edf0f4; font-size: 10px; }.automatic-backup-row:last-child { border-bottom: 0; }.automatic-backup-row strong { overflow-wrap: anywhere; }.automatic-backup-row span,.automatic-backup-row time { color: var(--muted); white-space: nowrap; }
.deployment-stage { width: fit-content; padding: 5px 9px; border-radius: 99px; color: #53627a; background: #e9edf4; font-size: 10px; font-weight: 800; }.deployment-stage.pass { color: #087e68; background: #e3f7f2; }.deployment-stage.warn { color: #9b551e; background: #fff1e5; }
.deployment-checks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.deployment-check { min-width: 0; padding: 12px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.deployment-check > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #a12f3c; background: #fde9ec; font-size: 12px; font-weight: 900; }.deployment-check.pass > span { color: #087e68; background: #e3f7f2; }.deployment-check.warn > span { color: #9b551e; background: #fff1e5; }.deployment-check strong,.deployment-check small { display: block; }.deployment-check strong { font-size: 11px; }.deployment-check small { margin-top: 4px; overflow-wrap: anywhere; color: #8792a3; font-size: 9px; line-height: 1.45; }.deployment-check em { color: #8792a3; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.deployment-manual { margin-top: 13px; color: #53627a; font-size: 11px; }.deployment-manual summary { cursor: pointer; font-weight: 800; }.deployment-manual ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 5px; line-height: 1.55; }
.device-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 18px; }
.device-row strong { display: block; font-size: 14px; }.device-row small { color: #8c96a6; }
.device-actions { display: grid; justify-items: end; gap: 7px; }.device-actions .secondary { padding: 7px 10px; font-size: 10px; white-space: nowrap; }.device-actions small { max-width: 160px; text-align: right; }
.status-tag { width: fit-content; padding: 5px 8px; border-radius: 99px; color: #617089; background: #f0f2f6; font-size: 10px; font-weight: 800; }
.device-diagnostics { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }.subheading { margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }.subheading h3 { margin: 0; font-size: 14px; }.subheading span { color: #8a94a5; font-size: 10px; }.event-state { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #53627a; background: #eef1f6; font-size: 10px; font-weight: 800; }.event-state.succeeded,.event-state.connected { color: #087e68; background: #e3f7f2; }.event-state.failed,.event-state.uncertain,.event-state.report-failed,.event-state.lease-lost,.event-state.disconnected { color: #a12f3c; background: #fde9ec; }
.status-tag.online { color: #087e68; background: #e3f7f2; }
.danger-link { border: 0; color: var(--red); background: transparent; font-size: 11px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { padding: 10px 12px; color: #8b94a4; font-size: 10px; letter-spacing: .06em; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; font-size: 12px; border-bottom: 1px solid #edf0f4; }
tbody tr:last-child td { border-bottom: 0; }
.task-id { max-width: 130px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; color: #5c6a80; }
.task-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; background: #f1f3f7; font-size: 10px; font-weight: 800; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #a6afbd; }.dot.pending { background: var(--blue); }.dot.done { background: var(--teal); }.dot.alert { background: var(--orange); }
.legend { display: flex; align-items: center; gap: 6px; color: #8b95a5; font-size: 10px; }.legend .dot:not(:first-child) { margin-left: 10px; }
.task-heading-tools { display: flex; align-items: center; gap: 12px; }.task-sync-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; color: #087e68; background: #e3f7f2; font-size: 9px; font-weight: 800; white-space: nowrap; }.task-sync-badge::before { width: 6px; height: 6px; content: ''; border-radius: 50%; background: currentColor; }.task-sync-badge.starting { color: #315db6; background: #eaf0ff; }.task-sync-badge.error,.task-sync-badge.resync { color: #9b551e; background: #fff1e5; }
.empty-cell { padding: 32px; color: #8b95a5; text-align: center; }
.approve-button { border: 0; border-radius: 7px; padding: 7px 9px; color: #9b551e; background: #fff1e5; font-size: 10px; font-weight: 800; }
.task-row-actions { display: flex; gap: 6px; }.task-detail-button { border: 0; border-radius: 7px; padding: 7px 9px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }

.task-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wide-field { grid-column: 1 / -1; }.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-foot p { margin: 0; max-width: 650px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-list { margin-bottom: 24px; display: grid; gap: 12px; }.plan-card { padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: #fbfcff; }.plan-card.succeeded { border-left-color: var(--teal); }.plan-card.uncertain,.plan-card.failed { border-left-color: var(--red); }.plan-head,.plan-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.plan-head h3 { margin: 10px 0 3px; font-size: 16px; }.plan-head p,.plan-foot { margin: 0; color: #7c8798; font-size: 10px; }.plan-head code { color: #6b7890; font-size: 10px; }.plan-changes { margin: 16px 0; padding: 0; display: grid; gap: 8px; list-style: none; }.plan-changes li { padding: 10px 12px; display: grid; grid-template-columns: minmax(120px,.35fr) 1fr; gap: 14px; border-radius: 8px; background: #f0f3f8; font-size: 11px; }.plan-changes span { color: #53627a; line-height: 1.6; }.approve-plan { border: 0; border-radius: 8px; padding: 8px 11px; color: #fff; background: var(--orange); font-size: 10px; font-weight: 800; }.plan-form { padding-top: 24px; border-top: 1px solid var(--line); }.plan-rules { display: flex; flex-wrap: wrap; gap: 8px; }.plan-rules span { padding: 7px 9px; border-radius: 7px; color: #53627a; background: #eef1f6; font-size: 10px; font-weight: 700; }
.plan-card.expired { border-left-color: #9aa4b2; opacity: .78; }
.guided-plan-form > label > small,.field-help { display: block; margin-top: 7px; color: #8792a3; font-size: 10px; line-height: 1.5; }
.plan-action-fields { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfe; }
.plan-action-fields[hidden] { display: none; }
.plan-action-fields > label { display: block; max-width: 520px; }
.money-input { display: flex; align-items: stretch; margin-top: 7px; }.money-input input { margin: 0; border-radius: 8px 0 0 8px; }.money-input span { min-width: 70px; padding: 0 13px; display: grid; place-items: center; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; color: #53627a; background: #eef1f6; font-size: 11px; font-weight: 800; }
.schedule-mode-row { display: grid; grid-template-columns: minmax(240px,.7fr) 1fr; align-items: end; gap: 18px; }.schedule-mode-row strong,.schedule-mode-row small { display: block; }.schedule-mode-row strong { color: #315bac; font-size: 12px; }.schedule-mode-row small { margin-top: 5px; color: #8792a3; font-size: 10px; }
.schedule-day-picker { margin: 16px 0; padding: 13px; display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 10px; }.schedule-day-picker legend { padding: 0 7px; color: #53627a; font-size: 10px; font-weight: 800; }.schedule-day-picker label { padding: 7px 9px; display: flex; align-items: center; gap: 6px; border-radius: 7px; color: #53627a; background: #eef1f6; font-size: 10px; font-weight: 800; }.schedule-day-picker input { width: 15px; height: 15px; margin: 0; }
.schedule-time-row { display: flex; align-items: end; gap: 12px; }.schedule-time-row label { flex: 0 1 240px; }.schedule-time-row > span { padding-bottom: 11px; color: #8792a3; font-size: 11px; }.schedule-hint { margin: 10px 0 0; color: #6f7d91; font-size: 10px; line-height: 1.6; }
.plan-preview { padding: 16px; display: grid; grid-template-columns: minmax(120px,.6fr) 1fr auto 1fr; align-items: center; gap: 13px; border: 1px solid #cfdcf4; border-radius: 12px; background: #f6f9ff; }.plan-preview > strong { overflow-wrap: anywhere; font-size: 12px; }.plan-preview div { min-width: 0; padding: 10px; border-radius: 8px; background: #fff; }.plan-preview span,.plan-preview small { display: block; color: #8792a3; font-size: 9px; }.plan-preview p { margin: 5px 0 0; overflow-wrap: anywhere; color: #42516a; font-size: 11px; line-height: 1.55; }.plan-preview > b { color: var(--blue); }.plan-preview > small { grid-column: 2 / -1; }.plan-preview .plan-preview-error { color: #a12f3c; }
.plan-advanced { padding: 13px 15px; border: 1px dashed #cdd5e2; border-radius: 10px; }.plan-advanced summary { cursor: pointer; color: #6f7d91; font-size: 10px; font-weight: 800; }.plan-advanced label { display: block; margin-top: 13px; }.plan-advanced p { margin: 8px 0 0; color: #8792a3; font-size: 9px; }
.guard-badge { padding: 7px 10px; border-radius: 99px; color: #5b6a80; background: #f0f2f6; font-size: 10px; }
.guard-badge.verified { color: #087e68; background: #e3f7f2; }.guard-badge.broken { color: #a12f3c; background: #fde9ec; }
.audit-list { display: grid; gap: 0; }
.audit-row { padding: 13px 4px; display: grid; grid-template-columns: 58px minmax(130px,.7fr) minmax(170px,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f4; font-size: 11px; }
.audit-row:last-child { border-bottom: 0; }.audit-seq { color: #8b95a5; font-family: ui-monospace, monospace; }.audit-action { font-weight: 800; }.audit-target { overflow: hidden; color: #647188; text-overflow: ellipsis; white-space: nowrap; }.audit-time { color: #8b95a5; white-space: nowrap; }

dialog { width: min(470px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(12,22,39,.62); backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 34px; }.dialog-card h2 { margin: 0; font-size: 28px; }
.dialog-close { position: absolute; right: 20px; top: 18px; border: 0; color: #8390a3; background: transparent; font-size: 25px; }
.pairing-code { margin: 26px 0; padding: 23px; border: 1px dashed #b7c6e8; border-radius: 12px; color: var(--blue); background: #f5f8ff; font-family: ui-monospace, monospace; font-size: clamp(24px, 7vw, 36px); font-weight: 800; letter-spacing: .08em; text-align: center; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.session-dialog { width: min(650px, calc(100% - 32px)); }.session-card { padding: 34px; }.session-list { max-height: 48vh; margin: 24px 0 16px; display: grid; gap: 10px; overflow-y: auto; }.session-row { padding: 15px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; }.session-row.current { border-color: #bfd0f4; background: #f5f8ff; }.session-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 18px; }.session-copy { min-width: 0; }.session-copy strong,.session-copy span { display: block; }.session-copy strong { font-size: 13px; }.session-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }.session-current { padding: 6px 9px; border-radius: 99px; color: #087e68; background: #e3f7f2; font-size: 9px; font-weight: 800; white-space: nowrap; }.session-revoke { border: 0; border-radius: 8px; padding: 8px 10px; color: #a12f3c; background: #fde9ec; font-size: 9px; font-weight: 800; white-space: nowrap; }.session-security-note { margin-bottom: 18px; padding: 12px 14px; border-radius: 9px; color: #647188; background: #f0f3f8; font-size: 10px; line-height: 1.6; }.session-actions { justify-content: space-between; }
.password-change-panel { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.password-change-panel summary { padding: 13px 15px; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; }.password-change-panel[open] summary { border-bottom: 1px solid var(--line); }.password-change-form { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.password-change-form label:first-child { grid-column: 1 / -1; }.password-change-form p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.password-change-form button { grid-column: 1 / -1; justify-self: end; }
.two-factor-panel { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.two-factor-panel summary { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; }.two-factor-panel[open] summary { border-bottom: 1px solid var(--line); }.security-status { padding: 4px 7px; border-radius: 99px; color: #667085; background: #eef1f6; font-size: 8px; }.security-status.enabled { color: #087e68; background: #e3f7f2; }.security-status.pending { color: #9b551e; background: #fff1e5; }.two-factor-body { padding: 15px; }.two-factor-body > p,.two-factor-setup p,.two-factor-recovery p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }.two-factor-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }.two-factor-form button { white-space: nowrap; }.two-factor-setup,.two-factor-recovery { padding: 13px; border: 1px solid #d8e2f1; border-radius: 9px; background: #f7f9fd; }.two-factor-setup { display: grid; gap: 12px; }.two-factor-setup input[readonly] { color: #315db6; background: #fff; font-family: ui-monospace,monospace; letter-spacing: .08em; }.two-factor-setup-actions { display: flex; justify-content: flex-end; gap: 8px; }.two-factor-recovery strong { display: block; margin-bottom: 6px; font-size: 11px; }.recovery-code-grid { margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.recovery-code-grid code { padding: 8px; border: 1px solid #dfe5ef; border-radius: 7px; color: #273852; background: #fff; font-size: 10px; text-align: center; letter-spacing: .05em; }.two-factor-recovery button { width: 100%; }.danger-button { border: 0; border-radius: 8px; padding: 10px 13px; color: #9f2f3a; background: #fde7ea; font-weight: 800; }
#account-dialog { width: min(620px, calc(100% - 32px)); }.account-form { width: 100%; box-sizing: border-box; }.dialog-grid { margin: 24px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }.dialog-grid label,.dialog-grid input,.dialog-grid select { min-width: 0; }
.monitor-form-grid { margin: 24px 0; display: grid; gap: 16px; }.interval-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert-dialog { width: min(520px, calc(100% - 32px)); }.alert-card { padding: 38px; }.alert-symbol { width: 48px; height: 48px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 0 0 8px rgba(216,76,91,.1); font-size: 25px; font-weight: 900; }.alert-card h2 { margin: 0; font-size: 28px; }.alert-url { margin: 17px 0 8px; overflow-wrap: anywhere; color: var(--blue); font-size: 15px; font-weight: 800; }.alert-reason { margin: 0 0 6px; padding: 14px; border-left: 4px solid var(--red); border-radius: 6px; color: #852d37; background: #fff2f3; line-height: 1.55; }
.history-dialog { width: min(850px, calc(100% - 32px)); }.history-dialog h2 { margin: 0; font-size: 28px; }.history-wrap { max-height: 62vh; margin-top: 20px; }.history-wrap table { min-width: 700px; }.history-wrap td small { display: block; margin-top: 4px; color: #8a94a5; }
.account-import-dialog { width: min(900px, calc(100% - 32px)); }.account-import-card h2 { margin: 0; font-size: 28px; }.import-summary { margin: 20px 0 12px; padding: 14px 16px; border-radius: 10px; color: #42516a; background: #f4f7fb; font-weight: 700; }.import-summary.success { color: #087e68; background: #e3f7f2; }.import-summary.error { color: #9b3c48; background: #fff0f2; }.import-table-wrap { max-height: 48vh; }.import-table-wrap table { min-width: 700px; }.import-row-error { color: #9b3c48; font-weight: 800; }.import-row-valid { color: #087e68; font-weight: 800; }
.snapshot-dialog { width: min(1080px, calc(100% - 32px)); }
.snapshot-card { min-height: min(720px, calc(100vh - 42px)); box-sizing: border-box; }
.snapshot-heading { padding-right: 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.snapshot-heading h2 { overflow-wrap: anywhere; }.snapshot-heading .muted { margin: 8px 0 0; }
.snapshot-status { margin: 22px 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.snapshot-state { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9fc; }
.snapshot-state strong,.snapshot-state small { display: block; }.snapshot-state strong { font-size: 11px; }.snapshot-state small { margin-top: 5px; color: #8390a3; font-size: 10px; }
.snapshot-state.complete { border-color: #b8e4d9; background: #f1fbf8; }.snapshot-state.partial { border-color: #f0cfad; background: #fff8f0; }
.snapshot-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.snapshot-tabs { display: flex; overflow-x: auto; }
.snapshot-tabs button { padding: 11px 14px; border: 0; border-bottom: 3px solid transparent; color: #6c788b; background: transparent; font-size: 11px; font-weight: 800; white-space: nowrap; }
.snapshot-tabs button.active { border-bottom-color: var(--blue); color: var(--blue); }
.snapshot-search { min-width: min(240px, 38%); padding-bottom: 8px; color: #7c8798; font-size: 10px; }.snapshot-search input { margin-top: 4px; padding: 8px 10px; }
.snapshot-content { margin-top: 16px; min-height: 280px; }
.snapshot-content:not(.empty-state) { padding: 0; border: 0; text-align: left; }
.snapshot-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.snapshot-metric { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(150deg, #fff, #f7f9fd); }.snapshot-metric span,.snapshot-metric small { display: block; }.snapshot-metric span { color: #7c8798; font-size: 11px; }.snapshot-metric strong { margin: 9px 0 5px; display: block; overflow-wrap: anywhere; font-size: 25px; }.snapshot-metric small { color: #96a0af; font-size: 10px; }
.snapshot-note { margin-top: 14px; padding: 12px 14px; border-radius: 9px; color: #53627a; background: #f1f4f8; font-size: 11px; line-height: 1.6; }
.snapshot-errors { margin: 12px 0 0; padding: 12px 14px 12px 30px; border-left: 4px solid var(--orange); border-radius: 7px; color: #8c521f; background: #fff8f0; font-size: 11px; line-height: 1.6; }
.snapshot-table { min-width: 780px; }.snapshot-table td strong,.snapshot-table td small { display: block; }.snapshot-table td small { margin-top: 4px; color: #8a94a5; }
.snapshot-pager { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7c8798; font-size: 11px; }.snapshot-pager[hidden] { display: none; }.snapshot-pager div { display: flex; gap: 7px; }.snapshot-pager button { padding: 7px 11px; }
.snapshot-boundary { margin: 18px 0 0; color: #8a94a5; font-size: 10px; line-height: 1.6; }
.schedule-lines { display: grid; gap: 4px; }.schedule-lines span { width: fit-content; padding: 4px 7px; border-radius: 6px; color: #53627a; background: #eef1f6; font-size: 10px; }
.task-dialog { width: min(900px, calc(100% - 32px)); }.task-detail-card { min-height: min(680px, calc(100vh - 42px)); box-sizing: border-box; }
.acceptance-dialog { width: min(980px, calc(100% - 32px)); }.acceptance-status { white-space: nowrap; }.acceptance-status.blocked,.acceptance-status.needs_attention { color: #9b551e; background: #fff1e5; }.acceptance-status.waiting_data { color: var(--blue); background: var(--blue-soft); }.acceptance-status.ready_for_manual_review { color: #087e68; background: #e3f7f2; }
.readiness-status { white-space: nowrap; }.readiness-status.blocked,.readiness-status.failed,.readiness-status.stale { color: #9b551e; background: #fff1e5; }.readiness-status.waiting,.readiness-status.queued,.readiness-status.running { color: var(--blue); background: var(--blue-soft); }.readiness-status.passed { color: #087e68; background: #e3f7f2; }
.readiness-result { padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; background: #fbfcff; }.readiness-result.passed { border-left-color: var(--teal); }.readiness-result.failed,.readiness-result.stale { border-left-color: var(--orange); }.readiness-result strong,.readiness-result span,.readiness-result small { display: block; }.readiness-result strong { font-size: 12px; }.readiness-result span { margin-top: 6px; color: #53627a; font-size: 10px; line-height: 1.55; }.readiness-result small { margin-top: 8px; color: #8a94a5; font-size: 9px; line-height: 1.55; }
.acceptance-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.acceptance-check { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcff; }.acceptance-check > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #9b551e; background: #fff1e5; font-size: 12px; font-weight: 900; }.acceptance-check.pass > span { color: #087e68; background: #e3f7f2; }.acceptance-check.pending > span { color: var(--blue); background: var(--blue-soft); }.acceptance-check strong,.acceptance-check small { display: block; }.acceptance-check strong { font-size: 11px; }.acceptance-check small { margin-top: 4px; overflow-wrap: anywhere; color: #8a94a5; font-size: 9px; }.acceptance-check em { color: #8a94a5; font-size: 9px; font-style: normal; font-weight: 800; }
.acceptance-snapshots { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.acceptance-snapshot { min-width: 0; padding: 14px; border: 1px solid #f0cfad; border-top: 4px solid var(--orange); border-radius: 10px; background: #fffaf5; }.acceptance-snapshot.pass { border-color: #b8e4d9; border-top-color: var(--teal); background: #f4fbf9; }.acceptance-snapshot.pending { border-color: #c9d8f6; border-top-color: var(--blue); background: #f7f9ff; }.acceptance-snapshot > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }.acceptance-snapshot strong { font-size: 12px; }.acceptance-snapshot span { color: #7c8798; font-size: 9px; }.acceptance-snapshot p { min-height: 34px; margin: 10px 0; color: #59677b; font-size: 10px; line-height: 1.6; }.acceptance-snapshot small { overflow-wrap: anywhere; color: #8792a3; font-size: 9px; }.acceptance-manual { margin: 0; padding-left: 23px; display: grid; gap: 7px; color: #53627a; font-size: 11px; line-height: 1.55; }.acceptance-actions { margin-top: 20px; }
.commissioning-status { white-space: nowrap; }.commissioning-status.blocked,.commissioning-status.waiting_connection,.commissioning-status.waiting_reads { color: #9b551e; background: #fff1e5; }.commissioning-status.ready_for_manual { color: var(--blue); background: var(--blue-soft); }.commissioning-status.accepted { color: #087e68; background: #e3f7f2; }.commissioning-steps { grid-template-columns: repeat(3,1fr); }.commissioning-evidence { display: block; padding: 12px 14px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 9px; color: #53627a; background: #f7f9fc; font-size: 9px; line-height: 1.6; }.commissioning-checks { display: grid; gap: 8px; }.commissioning-check { padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 9px; color: #42516a; background: #fbfcff; font-size: 11px; line-height: 1.5; }.commissioning-check input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }.commissioning-confirmation { margin-top: 14px; display: block; color: #53627a; font-size: 10px; font-weight: 800; }.commissioning-confirmation input { margin-top: 7px; }
.task-detail-status { margin: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.task-detail-stat { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9fc; }.task-detail-stat span,.task-detail-stat small { display: block; }.task-detail-stat span { color: #7c8798; font-size: 10px; }.task-detail-stat strong { margin: 7px 0 3px; display: block; overflow-wrap: anywhere; font-size: 14px; }.task-detail-stat small { color: #98a2b3; font-size: 9px; }
.task-detail-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.task-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.task-result-item { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }.task-result-item span,.task-result-item small { display: block; }.task-result-item span { color: #7c8798; font-size: 10px; }.task-result-item strong { margin: 8px 0 4px; display: block; font-size: 20px; }.task-result-item small { color: #98a2b3; font-size: 9px; }
.task-failure { margin-bottom: 12px; padding: 13px 15px; border-left: 4px solid var(--red); border-radius: 7px; color: #912f3b; background: #fff1f2; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }.task-event-wrap { max-height: 280px; }.task-event-wrap table { min-width: 650px; }.task-event-wrap td small { display: block; margin-top: 4px; color: #8a94a5; }
.diagnostic-issues { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }.diagnostic-issues li { padding: 10px 12px; display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; border: 1px solid #f0d5d9; border-radius: 8px; background: #fff8f8; font-size: 10px; }.diagnostic-issues li strong { color: #8c3542; text-transform: uppercase; }.diagnostic-issues li span { color: #53627a; }.diagnostic-issues li code { color: #7c8798; font-size: 9px; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 20; right: 24px; top: 24px; max-width: min(380px, calc(100% - 48px)); padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }.toast.error { background: #9f2f3a; }
.acceptance-center-status.accepted { color: #087e68; background: #e3f7f2; }
.external-acceptance-state { margin: 10px 0; padding: 10px 12px; border-radius: 8px; color: #53627a; background: rgba(255,255,255,.75); font-size: 10px; line-height: 1.55; }
.stability-observation-panel { margin: 12px 0; padding: 13px; border: 1px solid #cddbf1; border-radius: 10px; background: rgba(255,255,255,.72); }.stability-observation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.stability-observation-heading strong,.stability-observation-heading small { display: block; }.stability-observation-heading strong { font-size: 11px; }.stability-observation-heading small { margin-top: 4px; color: #7c8798; font-size: 9px; line-height: 1.45; }.stability-observation-status.running,.stability-observation-status.evaluating { color: var(--blue); background: var(--blue-soft); }.stability-observation-status.passed { color: #087e68; background: #e3f7f2; }.stability-observation-status.failed,.stability-observation-status.stale { color: #9b551e; background: #fff1e5; }.stability-observation-progress { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e6ebf3; }.stability-observation-progress span { height: 100%; width: 0; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--teal)); transition: width .25s; }.stability-observation-detail { margin-top: 10px; color: #53627a; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }.stability-observation-actions { margin-top: 10px; display: flex; align-items: end; gap: 10px; }.stability-observation-actions label { flex: 1; color: #53627a; font-size: 9px; font-weight: 800; }.stability-observation-actions input { margin-top: 5px; }.stability-observation-actions button { flex: 0 0 auto; }
.external-acceptance-form { display: grid; gap: 12px; }.external-acceptance-checks { display: grid; gap: 7px; }.external-acceptance-check { padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #dce5f2; border-radius: 8px; color: #42516a; background: #fff; font-size: 10px; line-height: 1.5; }.external-acceptance-check input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }.external-acceptance-check input:disabled + span { color: #8a94a5; }.external-acceptance-fields { display: grid; grid-template-columns: 1fr; gap: 10px; }.external-acceptance-fields label { color: #53627a; font-size: 10px; font-weight: 800; }.external-acceptance-fields code { display: block; margin: 4px 0 6px; overflow-wrap: anywhere; color: #315bac; font-size: 9px; }.external-acceptance-fields input { margin-top: 6px; }.external-acceptance-form > button { justify-self: start; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 240px; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; }
  .workbench-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-brand { min-height: 46vh; padding: 46px 28px; }.auth-panel { padding: 24px; }
  .app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; padding: 16px 20px; flex-direction: row; align-items: center; gap: 20px; }.sidebar nav { margin: 0; display: flex; overflow-x: auto; }.sidebar nav a { white-space: nowrap; }.sidebar nav a span, .sidebar-foot { display: none; }
  .workspace { padding: 24px 16px 50px; }.connection { display: none; }.topbar { align-items: flex-start; }.metric-grid { grid-template-columns: 1fr 1fr; }
  .device-row { grid-template-columns: 44px 1fr auto; }.device-row > :nth-child(3) { grid-column: 2; }.device-row > :nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
  .deployment-checks { grid-template-columns: 1fr 1fr; }
  .automatic-backup-controls { grid-template-columns: 1fr 1fr; }.automatic-backup-controls .backup-toggle { grid-column: 1 / -1; }.automatic-backup-controls label:nth-child(4),.automatic-backup-controls label:nth-child(5) { grid-column: 1 / -1; }
  .task-form { grid-template-columns: 1fr; }.wide-field { grid-column: auto; }.form-foot { align-items: stretch; flex-direction: column; }.form-foot button { width: 100%; }
  .plan-changes li { grid-template-columns: 1fr; }.plan-head { align-items: stretch; flex-direction: column; }.plan-head code { overflow-wrap: anywhere; }
  .schedule-mode-row { grid-template-columns: 1fr; }.plan-preview { grid-template-columns: 1fr; }.plan-preview > b { transform: rotate(90deg); justify-self: center; }.plan-preview > small { grid-column: auto; }
  .monitor-summary { align-items: flex-start; flex-direction: column; }
  .desktop-notification-panel { align-items: stretch; flex-direction: column; }.desktop-notification-actions { justify-content: flex-start; }
  .remote-notification-panel > div:first-child { max-width: none; }.remote-notification-config { width: 100%; min-width: 0; grid-template-columns: 1fr 1fr; }.remote-webhook-field { grid-column: 1 / -1; }.remote-notification-actions { justify-content: flex-start; }
  .scheduler-runtime-list { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 48px 1fr auto; }.audit-target { grid-column: 2 / -1; }.dialog-grid { grid-template-columns: 1fr; }
  .snapshot-card { padding: 28px 22px; }.snapshot-heading { align-items: stretch; flex-direction: column; }.snapshot-heading > button { width: 100%; }.snapshot-status { grid-template-columns: 1fr; }.snapshot-toolbar { align-items: stretch; flex-direction: column; }.snapshot-search { width: 100%; min-width: 0; }.snapshot-metrics { grid-template-columns: 1fr; }
  .task-detail-card { padding: 28px 22px; }.task-detail-status { grid-template-columns: 1fr 1fr; }.task-result-grid { grid-template-columns: 1fr; }
  .task-heading-tools { align-items: flex-end; flex-direction: column; }
  .diagnostic-issues li { grid-template-columns: 1fr; }
  .acceptance-checks,.commissioning-steps { grid-template-columns: 1fr; }.acceptance-snapshots { grid-template-columns: 1fr; }
  .external-acceptance-fields { grid-template-columns: 1fr; }.external-acceptance-form > button { width: 100%; }
  .stability-observation-heading,.stability-observation-actions { align-items: stretch; flex-direction: column; }.stability-observation-actions button { width: 100%; }
}
@media (max-width: 520px) {
  .auth-brand h1 { font-size: 42px; }.auth-intro { font-size: 14px; }.brand-mark { margin-bottom: 30px; }
  .sidebar nav a { padding: 10px 7px; font-size: 11px; }.logo span:last-child { display: none; }
  .metric-grid { grid-template-columns: 1fr; }.metric { min-height: 108px; }.hero-card { padding: 26px; }.hero-card h2 { font-size: 34px; }
  .quick-action-grid { grid-template-columns: 1fr; }.quick-action small { min-height: 0; }.workbench-heading { align-items: flex-start; flex-direction: column; }.setup-step { grid-template-columns: 30px minmax(0,1fr); }.setup-step em { grid-column: 2; }.today-row { grid-template-columns: 9px minmax(0,1fr); }.today-row b { grid-column: 2; }
  .spend-chart-row { grid-template-columns: minmax(0,1fr) auto; }.spend-bar-track { grid-column: 1 / -1; grid-row: 2; }.problem-row { grid-template-columns: 7px minmax(0,1fr); }.problem-row em { grid-column: 2; }
  .section-heading { align-items: flex-start; flex-direction: column; }.section-heading button { width: 100%; }.heading-actions { width: 100%; }.legend { display: none; }
  .task-heading-tools { width: 100%; align-items: flex-start; }
  .interval-fields { grid-template-columns: 1fr; }
  .desktop-notification-actions { align-items: stretch; flex-direction: column; }.desktop-notification-actions button { width: 100%; }
  .remote-notification-config { grid-template-columns: 1fr; }.remote-webhook-field,.remote-notification-actions { grid-column: auto; }.remote-notification-actions { align-items: stretch; flex-direction: column; }.remote-notification-actions button { width: 100%; }
  .device-row { grid-template-columns: 40px 1fr; }.device-row > :nth-child(3) { grid-column: 2; }.device-row > :nth-child(4) { grid-column: 1 / -1; grid-row: auto; justify-self: end; }
  .deployment-readiness-panel { padding: 15px; }.deployment-checks { grid-template-columns: 1fr; }.deployment-check { grid-template-columns: 24px minmax(0,1fr); }.deployment-check em { grid-column: 2; }
  .automatic-backup-panel { padding: 15px; }.automatic-backup-heading { flex-direction: column; }.automatic-backup-controls { grid-template-columns: 1fr; }.automatic-backup-controls .backup-toggle,.automatic-backup-controls label:nth-child(4),.automatic-backup-controls label:nth-child(5) { grid-column: auto; }.automatic-backup-actions { align-items: stretch; flex-direction: column; }.automatic-backup-actions button { width: 100%; }.automatic-backup-row { grid-template-columns: 1fr; }.automatic-backup-row span,.automatic-backup-row time { white-space: normal; }
  .acceptance-center-panel { padding: 15px; }.acceptance-center-heading,.acceptance-center-summary { align-items: stretch; flex-direction: column; }.acceptance-center-actions { width: 100%; }.acceptance-center-actions button { flex: 1; }.acceptance-center-metrics { grid-template-columns: 1fr 1fr; }.acceptance-center-checks { grid-template-columns: 1fr; }
  .account-foot { align-items: flex-start; flex-direction: column; }.account-actions { width: 100%; justify-content: stretch; }.account-actions button { flex: 1; }
  .acceptance-center-metrics { grid-template-columns: 1fr; }.acceptance-center-actions { flex-direction: column; }.acceptance-account { align-items: flex-start; flex-direction: column; }
  .snapshot-dialog { width: calc(100% - 16px); }.snapshot-card { min-height: calc(100vh - 16px); padding: 24px 16px; }.snapshot-tabs { width: 100%; }.snapshot-tabs button { flex: 1; padding-inline: 8px; }.snapshot-pager { align-items: stretch; flex-direction: column; }.snapshot-pager div,.snapshot-pager button { flex: 1; }
  .task-dialog { width: calc(100% - 16px); }.task-detail-card { min-height: calc(100vh - 16px); padding: 24px 16px; }.task-detail-status { grid-template-columns: 1fr; }.task-row-actions { flex-direction: column; }
  .schedule-time-row { align-items: stretch; flex-direction: column; }.schedule-time-row > span { padding: 0; text-align: center; }.schedule-time-row label { flex-basis: auto; }
  .acceptance-actions { align-items: stretch; flex-direction: column; }.acceptance-actions button { width: 100%; }
  .session-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }.session-card { max-height: calc(100dvh - 16px); padding: 24px 16px; overflow-y: auto; }.session-row { grid-template-columns: 36px minmax(0,1fr); }.session-icon { width: 36px; height: 36px; }.session-row > :last-child { grid-column: 2; justify-self: start; }.session-actions { align-items: stretch; flex-direction: column; }.session-actions button { width: 100%; }
  .password-change-form { grid-template-columns: 1fr; }.password-change-form label:first-child,.password-change-form p,.password-change-form button { grid-column: auto; }.password-change-form button { width: 100%; }
  .two-factor-form { grid-template-columns: 1fr; }.two-factor-form button,.two-factor-setup-actions button { width: 100%; }.two-factor-setup-actions { flex-direction: column; }.recovery-code-grid { grid-template-columns: 1fr; }
}
.tencent-sheet-sync-panel{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--surface) 92%,#1f8f63 8%)}
.tencent-sheet-token-form,.tencent-sheet-sync-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:12px}
.tencent-sheet-token-form label{flex:1 1 360px}.tencent-sheet-token-form a{padding:10px 2px;color:var(--accent);font-weight:700}
.tencent-sheet-sync-controls label{display:flex;align-items:center;gap:8px}.tencent-sheet-sync-controls select{min-width:110px}
.tencent-sheet-sync-inventory{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:12px;max-height:320px;overflow:auto}
.tencent-sheet-sync-inventory article{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.tencent-sheet-sync-inventory article small{grid-column:1/-1;color:var(--muted)}
.tencent-sheet-sync-inventory article.matched{border-color:#73c69f}.tencent-sheet-sync-inventory article.unbound{border-color:#d9a441}.tencent-sheet-sync-inventory article.missing{opacity:.65}
