:root {
  --ink: #1f2a24;
  --muted: #6f786f;
  --paper: #f3f4ee;
  --surface: #ffffff;
  --line: #dde1d8;
  --green: #205c44;
  --green-soft: #dfece4;
  --lime: #dceaa6;
  --orange: #d9783d;
  --red: #b74b48;
  --shadow: 0 20px 60px rgba(34, 50, 40, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 34px 24px 24px; background: #e8eadf; border-right: 1px solid #d7dbd0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 46px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 22px/1 Georgia, serif; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand span { margin-top: 3px; font-size: 11px; color: var(--muted); }
nav { display: grid; gap: 8px; }
.nav-item { border: 0; background: transparent; color: #59635b; border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 11px; text-align: left; transition: .2s ease; }
.nav-item span { width: 25px; height: 25px; border: 1px solid #adb5ac; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.nav-item:hover { background: rgba(255,255,255,.55); color: var(--ink); }
.nav-item.active { background: var(--surface); color: var(--green); font-weight: 700; box-shadow: 0 7px 20px rgba(44,60,47,.06); }
.nav-item.active span { border-color: var(--green); background: var(--green-soft); }
.stage-card { margin-top: auto; padding: 14px; display: flex; gap: 10px; align-items: center; border: 1px solid #d1d6cb; border-radius: 13px; background: rgba(255,255,255,.4); }
.stage-dot { width: 9px; height: 9px; background: #3da066; border-radius: 50%; box-shadow: 0 0 0 5px rgba(61,160,102,.12); }
.stage-card strong, .stage-card small { display: block; }
.stage-card strong { font-size: 13px; }.stage-card small { color: var(--muted); margin-top: 2px; }
.privacy-note { font-size: 11px; line-height: 1.6; color: #858d84; margin: 12px 4px 0; }

main { width: min(1320px, 100%); margin: 0 auto; padding: 34px 54px 70px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 42px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 4vw, 47px); font-weight: 500; letter-spacing: -.03em; }
h2 { margin-bottom: 0; font: 500 27px/1.2 Georgia, "Songti SC", serif; }
.eyebrow { margin: 0 0 8px; color: var(--green); letter-spacing: .13em; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.primary-btn, .secondary-btn, .danger-btn { border-radius: 11px; padding: 10px 16px; border: 1px solid transparent; font-weight: 700; transition: .18s ease; }
.primary-btn { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(32,92,68,.18); }
.primary-btn:hover { background: #174b36; transform: translateY(-1px); }
.secondary-btn { color: var(--ink); background: var(--surface); border-color: var(--line); }
.secondary-btn:hover { border-color: #aeb8ad; }
.danger-btn { color: #fff; background: var(--red); }
.text-btn { border: 0; background: none; color: var(--green); font-weight: 700; }

.view { display: none; animation: fade-in .2s ease; }.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.next-card { min-height: 225px; padding: 30px; color: #fff; border-radius: 22px; background: var(--green); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.next-card::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -70px; top: -110px; border: 44px solid rgba(220,234,166,.12); }
.card-kicker { font-size: 12px; color: #d6e4d9; display: flex; align-items: center; gap: 8px; }.card-kicker span { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.next-card h3 { margin: 40px 0 8px; font: 500 clamp(26px, 3vw, 38px)/1.15 Georgia, "Songti SC", serif; }
.next-card p { color: #c5d5ca; font-size: 13px; }
.next-card .next-actions { display: flex; gap: 10px; margin-top: 20px; }
.next-card button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 7px 11px; }
.status-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); align-items: center; padding: 24px; }
.status-card > div { padding: 10px 18px; border-right: 1px solid var(--line); }.status-card > div:last-child { border: 0; }
.metric-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.status-card strong { font: 500 35px/1 Georgia, serif; }.status-card .mode-text { font-family: inherit; font-size: 17px; color: var(--green); }
.operation-layers { margin-top:18px; display:grid; grid-template-columns:minmax(250px,.8fr) 1.6fr; gap:18px; padding:22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.62); }
.operation-layers-copy h2 { font-size:21px; }.operation-layers-copy > p:last-child { margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.65; }
.operation-layer-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.operation-layer { position:relative; display:grid; gap:5px; min-height:94px; padding:14px; border:1px solid #e1d9ca; border-radius:13px; background:#fbf7ef; }
.operation-layer::before { content:""; width:7px; height:7px; border-radius:50%; background:#bf8b55; }.operation-layer.on { border-color:#d0e1d5; background:#f0f7f2; }.operation-layer.on::before { background:#3d9664; }
.operation-layer span { color:var(--muted); font-size:9px; }.operation-layer strong { font-size:13px; }.operation-layer small { color:var(--muted); font-size:9px; line-height:1.5; }

.section-heading { margin: 44px 2px 18px; display: flex; align-items: end; justify-content: space-between; }
.section-heading.compact { margin-top: 38px; }.section-heading.page-section { margin-top: 0; align-items: center; }.section-heading p:last-child { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 19px; min-height: 176px; display: flex; flex-direction: column; transition: .2s ease; }
.plan-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(38,57,44,.08); }
.card-top { display: flex; justify-content: space-between; gap: 10px; }.card-top h3 { font-size: 16px; margin: 0; }
.status-badge { white-space: nowrap; border-radius: 99px; padding: 4px 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 700; }
.status-badge.paused { background: #f1ebd6; color: #8b6b22; }.status-badge.cancelled { background: #eee; color: #777; }
.plan-schedule { margin: 19px 0 8px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.plan-next { color: var(--muted); font-size: 11px; }
.radar-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; }.radar-tags span { padding: 3px 7px; border-radius: 6px; background: #f0f2ec; color: #687168; font-size: 9px; }
.empty-card { grid-column: 1/-1; border: 1px dashed #c8cec3; border-radius: 17px; text-align: center; padding: 48px 20px; color: var(--muted); }
.run-strip { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; }.empty-state { color: var(--muted); font-size: 13px; }
.scope-summary { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.scope-summary > div { padding: 18px; background: var(--surface); }.scope-summary span,.scope-summary strong { display: block; }.scope-summary span { color: var(--muted); font-size: 10px; margin-bottom: 7px; }.scope-summary strong { font-size: 13px; line-height: 1.5; }
.scope-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.scope-card { position: relative; min-height: 238px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }.scope-card h3 { margin-bottom: 10px; font-size: 16px; }.scope-card > p:not(.eyebrow) { min-height: 55px; color: var(--muted); font-size: 11px; line-height: 1.7; }.scope-card small { display: block; margin-top: 13px; color: var(--muted); font-size: 9px; line-height: 1.6; }.scope-share { position: absolute; right: 15px; top: 14px; color: #c9d5cd; font: 500 31px/1 Georgia,serif; }.scope-targets { display: flex; flex-wrap: wrap; gap: 5px; }.scope-targets span,.source-type { border-radius: 99px; padding: 4px 7px; background: var(--green-soft); color: var(--green); font-size: 9px; }
.sourcebook-list { display: grid; gap: 9px; }.source-row { display: grid; grid-template-columns: 1.5fr .6fr .8fr; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.source-row h3 { display: inline; margin-left: 7px; font-size: 14px; }.source-row p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.source-row > div:nth-child(2) strong,.source-row > div:nth-child(2) span { display: block; }.source-row > div:nth-child(2) strong { font-size: 11px; }.source-row > div:nth-child(2) span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.discovery-channel-panel { display:grid; gap:12px; margin-top:16px; padding:18px; border:1px solid #dbe4d5; border-radius:16px; background:#eef3e8; }.discovery-channel-head h3 { margin:4px 0 6px; font-size:16px; }.discovery-channel-head p:last-child { margin:0; color:var(--muted); font-size:11px; line-height:1.6; }.discovery-channel-list { display:grid; gap:8px; }.discovery-channel-row { display:grid; grid-template-columns:1.5fr .9fr .7fr; gap:14px; align-items:center; padding:13px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }.discovery-channel-row h3 { font-size:13px; }.discovery-channel-row p { margin:7px 0; color:var(--muted); font-size:10px; line-height:1.6; }.discovery-channel-row small,.discovery-channel-row > div:nth-child(2) span { display:block; color:var(--muted); font-size:9px; line-height:1.6; }.discovery-channel-row > div:nth-child(2) strong { display:block; font-size:10px; }

.filter-pills { display: flex; padding: 3px; background: #e8eae3; border-radius: 10px; }.pill { border: 0; background: transparent; color: var(--muted); padding: 7px 11px; border-radius: 8px; font-size: 12px; }.pill.active { background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(40,50,42,.08); }
.plan-list, .runs-list { display: grid; gap: 11px; }
.fault-center { margin-bottom:28px; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.fault-center-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }.fault-center-head h2 { font-size:23px; }.fault-center-head p:last-child { margin:7px 0 0; color:var(--muted); font-size:11px; }
.runtime-health { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:18px; }.runtime-chip { display:grid; grid-template-columns:1fr auto; gap:5px 12px; padding:13px 15px; border:1px solid #d8e5dc; border-radius:12px; background:#f3f8f4; }.runtime-chip span,.runtime-chip strong { font-size:11px; }.runtime-chip strong { color:var(--green); }.runtime-chip small { grid-column:1/-1; color:var(--muted); font-size:9px; }.runtime-chip.error,.runtime-chip.stale,.runtime-chip.missing { border-color:#ead3c1; background:#fbf4eb; }.runtime-chip.error strong,.runtime-chip.stale strong,.runtime-chip.missing strong { color:var(--orange); }
.fault-center-list { display:grid; gap:10px; margin-top:13px; }.fault-card { padding:17px 18px; border:1px solid #ead3c1; border-radius:14px; background:#fffaf4; }.fault-card.resolved { border-color:#d8e5dc; background:#f5f9f6; }.fault-card-top { display:flex; justify-content:space-between; gap:15px; }.fault-card-top span { color:var(--muted); font-size:9px; }.fault-card-top h3 { margin:4px 0 0; font-size:14px; }.fault-card-top > strong { color:var(--red); font-size:10px; white-space:nowrap; }.fault-card.resolved .fault-card-top > strong { color:var(--green); }.fault-actions-copy { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:13px; }.fault-actions-copy p { margin:0; padding:11px; border-radius:10px; background:rgba(255,255,255,.72); color:#59635b; font-size:10px; line-height:1.65; }.fault-actions-copy b { color:var(--ink); }.fault-card > small { display:block; margin-top:10px; color:var(--muted); font-size:9px; }
.fault-boundary { margin:14px 0 0; color:var(--muted); font-size:9px; line-height:1.6; }
.reminder-settings-card { display: grid; grid-template-columns: minmax(240px,1.4fr) auto repeat(3,minmax(120px,.55fr)) auto; gap: 14px; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.reminder-summary-card { display:grid; grid-template-columns:minmax(280px,1.4fr) .45fr .45fr minmax(220px,1fr); gap:0; margin-bottom:16px; overflow:hidden; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.reminder-summary-card > div { padding:18px; border-right:1px solid var(--line); }.reminder-summary-card > div:last-child { border:0; }
.reminder-summary-card span,.reminder-summary-card small { display:block; color:var(--muted); font-size:9px; }.reminder-summary-card strong { display:block; margin-top:7px; font-size:13px; }
.reminder-summary-state { display:flex; align-items:center; gap:13px; background:var(--green-soft); }.reminder-summary-state strong { margin:0; color:var(--green); }.reminder-summary-state small { margin-top:6px; line-height:1.5; }
.voice-bars { width:22px; height:34px; border-left:4px solid var(--green); border-right:4px solid var(--green); opacity:.9; }
.reminder-switch-copy strong,.reminder-switch-copy small { display:block; }.reminder-switch-copy strong { font-size:14px; }.reminder-switch-copy small { margin-top:6px; color:var(--muted); font-size:10px; line-height:1.5; }
.switch-field { display:flex; align-items:center; gap:8px; min-height:40px; font-size:11px; font-weight:700; }.switch-field input { accent-color:var(--green); width:18px; height:18px; }
.compact-field { display:grid; grid-template-columns:1fr auto; gap:5px; align-items:center; }.compact-field > span { grid-column:1/-1; color:#495249; font-size:10px; font-weight:700; }.compact-field input { width:100%; min-width:0; border:1px solid #d6dbd2; background:#fff; border-radius:9px; padding:9px; }.compact-field small { color:var(--muted); font-size:10px; }
.reminder-items,.reminder-history { display:grid; gap:10px; }.reminder-item-card { display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center; padding:18px 20px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }.reminder-item-card h3,.reminder-history-row h3 { margin:0; font-size:14px; }.reminder-item-card p,.reminder-history-row p { margin:7px 0 0; color:var(--muted); font-size:10px; }.reminder-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }.reminder-meta span,.reminder-kind { padding:4px 8px; border-radius:99px; background:var(--soft); color:#607064; font-size:9px; }.reminder-item-card .row-actions a { border:1px solid var(--line); color:var(--green); text-decoration:none; border-radius:8px; padding:6px 9px; font-size:11px; }
.reminder-history-row { display:grid; grid-template-columns:1fr 100px minmax(160px,.35fr); gap:16px; align-items:center; padding:15px 18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }.reminder-history-row > div:last-child { display:grid; gap:5px; }.reminder-history-row > div:last-child strong { font-size:11px; }.reminder-history-row > div:last-child small { color:var(--muted); font-size:9px; }
.device-panel { margin-top:18px; padding:22px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }.device-panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }.device-panel-head h2 { font-size:23px; }.device-panel-head p:last-child { margin:7px 0 0; color:var(--muted); font-size:11px; }.device-lock { margin-top:18px; padding:17px 18px; border:1px dashed #c8cec3; border-radius:13px; background:#f7f8f3; }.device-lock strong { font-size:13px; }.device-lock p,.device-safety-note { margin:6px 0 0; color:var(--muted); font-size:10px; line-height:1.7; }.device-unlock-form { margin-top:13px; display:grid; grid-template-columns:minmax(260px,1fr) auto; gap:12px; align-items:end; }.device-add-form { margin-top:18px; display:grid; grid-template-columns:minmax(150px,.7fr) minmax(260px,1.3fr) auto; gap:12px; align-items:end; }.device-list { margin-top:14px; display:grid; gap:9px; }.device-card { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; padding:15px 16px; border:1px solid var(--line); border-radius:13px; background:#fafbf7; }.device-card h3 { margin:0; font-size:14px; }.device-card p { margin:7px 0 0; color:var(--muted); font-size:10px; }.device-card small { display:block; margin-top:5px; color:var(--red); font-size:9px; }.device-safety-note { margin-top:13px; }
.plan-row, .run-row { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 17px 19px; }
.plan-row { display: grid; grid-template-columns: minmax(220px,1.4fr) minmax(200px,1.1fr) minmax(190px,1fr) auto; align-items: center; gap: 18px; }
.plan-row h3, .run-row h3 { margin: 0 0 6px; font-size: 15px; }.plan-row p { margin: 0; color: var(--muted); font-size: 11px; }
.schedule-summary strong, .next-summary strong { display: block; font-size: 12px; margin-bottom: 5px; }.schedule-summary span, .next-summary span { color: var(--muted); font-size: 11px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }.row-actions button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 9px; font-size: 11px; }.row-actions button:hover { border-color: var(--green); color: var(--green); }.row-actions .destructive:hover { border-color: var(--red); color: var(--red); }
.run-row { display: grid; grid-template-columns: minmax(180px,1.2fr) 100px minmax(180px,1fr) 160px auto; gap: 18px; align-items: center; }
.run-meta { color: var(--muted); font-size: 10px; }.run-status { font-size: 11px; font-weight: 700; }.run-status.succeeded { color: var(--green); }.run-status.failed,.run-status.cancelled { color: var(--red); }.run-status.running,.run-status.queued,.run-status.stopping,.run-status.partial_success { color: var(--orange); }
.progress-track { height: 7px; border-radius: 99px; overflow: hidden; background: #edf0ea; }.progress-fill { height: 100%; background: var(--green); border-radius: inherit; transition: width .3s ease; }.progress-label { margin-top: 5px; color: var(--muted); font-size: 10px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(24,34,28,.36); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(600px,100%); height: 100vh; background: #fafbf7; box-shadow: -25px 0 70px rgba(20,30,23,.17); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility 0s linear .25s; }
.drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }.drawer form { height: 100%; display: flex; flex-direction: column; }
.drawer-header { padding: 26px 29px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }.drawer-header h2 { font-size: 29px; }
.icon-btn { border: 0; background: #ecefe8; color: #505951; border-radius: 50%; width: 34px; height: 34px; font-size: 22px; }
.drawer-body { overflow: auto; padding: 24px 29px 120px; display: grid; gap: 20px; }.drawer-footer { position: absolute; bottom: 0; width: 100%; padding: 16px 29px; display: flex; justify-content: flex-end; gap: 10px; background: rgba(250,251,247,.94); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }.field > span, .field legend, .field-title > span { color: #495249; font-size: 12px; font-weight: 700; }.field small { color: #929991; font-weight: 400; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea, .schedule-row input, .schedule-row select { width: 100%; border: 1px solid #d6dbd2; background: #fff; border-radius: 10px; padding: 10px 11px; color: var(--ink); outline: 0; }.field input:focus, .field textarea:focus, .schedule-row input:focus, .schedule-row select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,92,68,.08); }
.check-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }.check-grid input, .frequency-grid input { position: absolute; opacity: 0; }.check-grid label span, .frequency-grid label span { display: block; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 6px; text-align: center; font-size: 11px; }.check-grid input:checked + span, .frequency-grid input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 700; }
.frequency-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; }
.field-title { display: flex; justify-content: space-between; align-items: center; }.small-add, .preview-title button { border: 0; background: none; color: var(--green); padding: 0; font-size: 11px; font-weight: 700; }
#schedule-fields { display: grid; gap: 8px; }.schedule-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }.schedule-row.single { grid-template-columns: 1fr auto; }.remove-row { border: 0; width: 30px; height: 30px; border-radius: 8px; color: #8a5553; background: #f6e9e7; }
.schedule-row.yearly { grid-template-columns: 1fr 1fr 1.4fr auto; }
.row-actions button:disabled { cursor: not-allowed; opacity: .45; }
.preview-panel { padding: 15px; border-radius: 13px; background: #eef3e8; border: 1px solid #dbe4d5; }.preview-title { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }.preview-list { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; }.preview-list p { grid-column: 1/-1; margin: 0; font-size: 11px; color: var(--muted); }.preview-item { font-size: 10px; color: #536153; }.preview-item strong { color: var(--green); margin-right: 6px; }
.coverage-note { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid #dbe4d5; border-radius: 12px; background: #eef3e8; }.coverage-note strong { color: var(--green); font-size: 12px; }.coverage-note span { color: #607064; font-size: 10px; line-height: 1.7; }
.form-error { color: #963f3c; border: 1px solid #e8c4c1; background: #f9eae8; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.6; }
dialog { width: min(420px,calc(100% - 30px)); border: 0; border-radius: 18px; padding: 26px; color: var(--ink); box-shadow: var(--shadow); }dialog::backdrop { background: rgba(20,30,24,.43); }dialog h3 { font: 500 25px Georgia, "Songti SC", serif; }dialog p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.7; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.wide-dialog { width: min(900px,calc(100% - 30px)); max-height: min(86vh,900px); padding: 0; overflow: hidden; }.detail-dialog-head { display:flex; align-items:start; justify-content:space-between; padding:24px 26px 18px; border-bottom:1px solid var(--line); }.detail-dialog-head h3 { margin:4px 0 0; }.run-detail-body { padding:22px 26px 30px; overflow:auto; max-height:calc(86vh - 90px); display:grid; gap:24px; }.run-detail-body h4 { margin:0 0 12px; font-size:14px; }.detail-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }.detail-summary div { background:var(--soft); border-radius:12px; padding:13px; display:grid; gap:5px; }.detail-summary span,.detail-help { color:var(--muted); font-size:10px; }.detail-summary strong { font-size:14px; }.stage-list { display:grid; gap:8px; }.stage-row { border:1px solid var(--line); border-radius:12px; padding:11px 13px; display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:10px; }.stage-row p { margin:3px 0 0; }.stage-row > span:last-child { font-size:10px; font-weight:700; }.stage-number { width:25px; height:25px; border-radius:50%; background:var(--soft); display:grid; place-items:center; font-size:10px; }.stage-row.succeeded > span:last-child { color:var(--green); }.stage-row.failed > span:last-child,.stage-row.cancelled > span:last-child { color:var(--red); }.stage-row.skipped > span:last-child { color:var(--muted); }.query-groups { display:grid; gap:8px; }.query-groups details { border:1px solid var(--line); border-radius:11px; padding:10px 13px; }.query-groups summary { cursor:pointer; font-size:12px; font-weight:700; }.query-groups summary span { color:var(--muted); font-weight:400; }.query-groups ol { margin:12px 0 2px; padding-left:22px; display:grid; gap:8px; }.query-groups li { padding-left:4px; display:grid; grid-template-columns:80px 1fr auto; gap:10px; align-items:start; font-size:11px; }.query-groups li span { color:var(--muted); }.query-groups li em { font-style:normal; font-size:9px; color:var(--muted); }
#confirm-message { white-space: pre-line; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; background: #25352b; color: #fff; border-radius: 10px; padding: 10px 15px; font-size: 12px; transition: .25s ease; box-shadow: var(--shadow); }.toast.show { opacity: 1; transform: translate(-50%,0); }
.loading-line { margin-top: 60px; color: #d2ddd5; }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 84px 1fr; }.sidebar { padding: 28px 15px; }.brand > div:last-child, .nav-item:not(.active)::after, .stage-card div, .privacy-note { display: none; }.brand { justify-content: center; }.nav-item { justify-content: center; font-size: 0; }.nav-item span { font-size: 11px; }.stage-card { justify-content: center; }.plan-grid { grid-template-columns: 1fr 1fr; }.plan-row { grid-template-columns: 1.2fr 1fr; }.row-actions { justify-content: flex-start; }.run-row { grid-template-columns: 1.2fr .7fr 1fr; }.run-row > *:nth-child(4), .run-row > *:nth-child(5) { grid-column: auto; }.scope-grid { grid-template-columns: 1fr 1fr; }.source-row { grid-template-columns: 1.2fr .8fr; }.source-row .radar-tags { grid-column: 1/-1; }.discovery-channel-row { grid-template-columns:1.2fr .8fr; }.discovery-channel-row .radar-tags { grid-column:1/-1; }.reminder-settings-card { grid-template-columns:1fr 1fr; }.reminder-switch-copy { grid-column:1/-1; }.device-add-form { grid-template-columns:1fr 1fr; }.device-add-form button { grid-column:1/-1; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }.sidebar { position: fixed; z-index: 10; left: 0; right: 0; top: auto; bottom: 0; height: 66px; padding: 7px 12px; border: 0; border-top: 1px solid var(--line); flex-direction: row; }.brand,.stage-card,.privacy-note { display: none; }.sidebar nav { width: 100%; display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }.nav-item { flex-direction: column; gap: 2px; padding: 4px; font-size: 9px; }.nav-item span { width: 25px; height: 22px; }.nav-item.active { box-shadow: none; }
  main { padding: 24px 16px 95px; }.topbar { align-items: flex-end; margin-bottom: 26px; }.topbar .primary-btn { width: 42px; height: 42px; overflow: hidden; white-space: nowrap; padding: 0; font-size: 0; }.topbar .primary-btn::first-letter { font-size: 20px; }.hero-grid { grid-template-columns: 1fr; }.status-card { min-height: 110px; }.status-card > div { padding: 5px 12px; }.plan-grid { grid-template-columns: 1fr; }.section-heading { margin-top: 32px; }.section-heading.page-section { align-items: flex-start; gap: 20px; flex-direction: column; }.plan-row,.run-row,.source-row,.discovery-channel-row,.reminder-item-card,.reminder-history-row,.reminder-settings-card,.device-card,.device-add-form,.device-unlock-form { grid-template-columns: 1fr; gap: 12px; }.device-add-form button { grid-column:auto; }.device-panel-head { display:grid; }.check-grid { grid-template-columns: 1fr 1fr; }.frequency-grid { grid-template-columns: repeat(3,1fr); }.drawer-header,.drawer-body,.drawer-footer { padding-left: 18px; padding-right: 18px; }.preview-list { grid-template-columns: 1fr; }.schedule-row { grid-template-columns: 1fr 1fr auto; }.scope-summary,.scope-grid { grid-template-columns: 1fr; }.scope-card > p:not(.eyebrow) { min-height: 0; }
}
@media (max-width: 720px) {
  .fault-center-head { display:grid; }
  .runtime-health,.fault-actions-copy { grid-template-columns:1fr; }
}

@media (max-width: 1020px) {
  .operation-layers { grid-template-columns:1fr; }
  .operation-layer-list { grid-template-columns:repeat(2,1fr); }
  .reminder-summary-card { grid-template-columns:1fr 1fr; }
  .reminder-summary-card > div:nth-child(2) { border-right:0; }
  .reminder-summary-card > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}

@media (max-width: 720px) {
  .operation-layer-list,.reminder-summary-card { grid-template-columns:1fr; }
  .reminder-summary-card > div { border-right:0; border-bottom:1px solid var(--line); }
  .reminder-summary-card > div:last-child { border-bottom:0; }
  .detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-summary strong { overflow-wrap:anywhere; }
}
