:root {
  --ink: #1a1a1a;
  --ink-soft: #71716e;
  --paper: #ffffeb;
  --surface: #fffdf9;
  --white: #ffffff;
  --line: #e4e4d0;
  --line-dark: #c9c9b7;
  --acid: #f0d7ff;
  --acid-dark: #886dc2;
  --orange: #ffa946;
  --blue: #4d65ff;
  --red: #a33c38;
  --green: #034f46;
  --shadow: 0 24px 70px rgba(26, 26, 26, .08);
  --display: "Iowan Old Style", Baskerville, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --body: Figtree, "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

::selection { background: var(--acid); color: var(--ink); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#i-grid path { fill: currentColor; stroke: none; }
.is-hidden { display: none !important; }

.eyebrow,
.breadcrumb,
.metric-card small,
.coordinate {
  margin: 0;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 800 12px/1.02 var(--display);
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 3px;
  width: 24px;
  height: 25px;
}

.brand-mark span { display: block; background: currentColor; }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 24px; }
.brand-mark span:nth-child(3) { height: 17px; }

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(460px, .92fr);
  background: var(--ink);
}

.login-field {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(215, 255, 67, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 67, .035) 1px, transparent 1px),
    radial-gradient(circle at 28% 42%, #304035 0, #202b27 35%, var(--ink) 72%);
  background-size: 44px 44px, 44px 44px, auto;
}

.login-field::before {
  content: "OBSERVE\A INDEX\A COMPARE";
  white-space: pre;
  position: absolute;
  left: 9%;
  bottom: 11%;
  color: var(--acid);
  font: 800 clamp(58px, 7vw, 126px)/.78 var(--display);
  letter-spacing: -.075em;
  opacity: .94;
}

.login-field::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: calc(42% - 5px);
  left: calc(28% - 5px);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 11px rgba(215, 255, 67, .13), 0 0 40px var(--acid);
  animation: ping 2.4s ease-out infinite;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(215, 255, 67, .2);
  border-radius: 50%;
  top: 42%;
  left: 28%;
  transform: translate(-50%, -50%);
}
.orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); top: 50%; left: -3px; }
.orbit-a { width: 35vw; height: 35vw; animation: rotate 26s linear infinite; }
.orbit-b { width: 57vw; height: 57vw; opacity: .48; animation: rotate 42s linear infinite reverse; }
.coordinate { position: absolute; right: 5%; top: 5%; color: rgba(255,255,255,.42); writing-mode: vertical-rl; }

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 112px);
  background: var(--paper);
}

.login-card > .brand-lockup { position: absolute; top: 7%; left: clamp(48px, 7vw, 112px); }
.login-copy { margin-bottom: 38px; max-width: 560px; }
.login-copy .eyebrow { color: var(--green); margin-bottom: 19px; }
.login-copy h1 { margin: 0 0 22px; font: 750 clamp(40px, 4vw, 68px)/.98 var(--display); letter-spacing: -.06em; }
.login-copy p:last-child { max-width: 460px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.login-form { display: grid; gap: 17px; max-width: 520px; }
.login-form label, .field { display: grid; gap: 8px; }
.login-form label > span, .field > span { font-size: 12px; font-weight: 750; letter-spacing: .03em; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: rgba(255,255,255,.5);
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

input, select { height: 45px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(23,32,29,.08); }
.form-error { min-height: 18px; margin: -4px 0; color: var(--red); font-size: 12px; }
.login-foot { position: absolute; bottom: 5%; margin: 0; color: #7c857f; font: 600 10px var(--mono); letter-spacing: .06em; }

.button {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .015em;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button svg { width: 16px; height: 16px; }
.button-wide { width: 100%; height: 52px; justify-content: space-between; padding: 0 20px; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #2b3732; }
.button-accent { background: var(--acid); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.button-accent:hover { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.button-quiet { border-color: var(--line); background: transparent; }
.button-quiet:hover { background: var(--white); border-color: var(--ink); }
.button-danger { border-color: var(--red); color: var(--red); background: transparent; }
.button-danger:hover { color: var(--white); background: var(--red); }

/* Shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 226px 1fr; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 226px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #e7e9e1;
}
.brand-small { height: 92px; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.11); color: var(--acid); }
.brand-small > span:last-child { color: #f3f5ed; }
.nav-list { display: grid; padding-top: 29px; }
.nav-list a {
  position: relative;
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 26px;
  color: #a9b0ab;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s, background .2s;
}
.nav-list a::before { content: ""; position: absolute; left: 0; width: 3px; height: 0; background: var(--acid); transition: height .2s; }
.nav-list a svg { width: 17px; }
.nav-list a b { color: #58625d; font: 600 9px var(--mono); }
.nav-list a:hover { color: white; background: rgba(255,255,255,.035); }
.nav-list a.active { color: var(--acid); background: rgba(215,255,67,.055); }
.nav-list a.active::before { height: 24px; }
.nav-list a.active b { color: var(--acid); }
.sidebar-foot { margin-top: auto; min-height: 86px; border-top: 1px solid rgba(255,255,255,.11); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; }
.scheduler-status { display: flex; align-items: center; gap: 9px; color: #87908b; font-size: 10px; line-height: 1.35; }
.scheduler-status i, .sync-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(215,255,67,.1); }
.scheduler-status strong { color: #d9ddd6; font: 600 9px var(--mono); }
.icon-button { border: 0; background: transparent; color: #8e9792; padding: 7px; cursor: pointer; }
.icon-button:hover { color: var(--acid); }

.workspace { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 76px;
  padding: 0 clamp(24px, 3.5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(238,240,232,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { color: #707873; }
.breadcrumb span { color: var(--ink); }
.sync-line { margin: 7px 0 0; display: flex; align-items: center; gap: 7px; color: #6c756f; font: 500 10px var(--mono); }
.sync-line i { width: 5px; height: 5px; background: var(--green); box-shadow: none; }
.topbar-actions { display: flex; align-items: center; gap: 25px; }
.admin-chip { display: flex; align-items: center; gap: 10px; min-width: 164px; }
.admin-chip > span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--acid); font: 700 12px var(--mono); }
.admin-chip div { min-width: 0; display: grid; }
.admin-chip small { color: #818a84; font: 600 8px var(--mono); letter-spacing: .12em; }
.admin-chip strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.mobile-menu { display: none; }

.page-stage { padding: 0 clamp(24px, 3.5vw, 58px) 70px; outline: none; }
.page { display: none; animation: reveal .35s ease-out both; }
.page.active { display: block; }
.page-heading { min-height: 190px; padding: 46px 0 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-heading h1 { margin: 7px 0 0; font: 730 clamp(38px, 4.3vw, 66px)/.96 var(--display); letter-spacing: -.055em; }
.page-heading h1 em { color: #66706a; font-style: normal; font-weight: 480; }
.page-heading > div > p:last-child:not(.eyebrow) { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; }
.hero-heading { min-height: 252px; }
.date-block { width: 180px; padding: 20px 0 3px; display: grid; border-top: 2px solid var(--ink); }
.date-block span { color: var(--ink-soft); font-size: 12px; }
.date-block strong { margin: 4px 0 11px; font: 700 25px var(--display); }
.date-block small { font: 600 9px var(--mono); letter-spacing: .1em; color: #7c857f; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); }
.metric-card { min-height: 151px; padding: 23px; display: grid; align-content: space-between; border-right: 1px solid var(--line); }
.metric-card:last-child { border: 0; }
.metric-card > span { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.metric-card strong { font: 680 43px/1 var(--display); letter-spacing: -.05em; }
.metric-card small { color: #929992; font-size: 8px; }
.metric-primary { background: var(--acid); }
.metric-primary > span, .metric-primary small { color: #38431f; }

.dashboard-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.5fr); gap: 20px; }
.panel { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.panel-wide, .crawl-panel, .panel-full, .batch-panel, .data-panel, .block-compose { padding: 25px; }
.panel-full { grid-column: 1 / -1; }
.panel-head { min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h2, .filterbar h2 { margin: 4px 0 0; font: 700 19px var(--display); letter-spacing: -.025em; }
.panel-head > a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-decoration: none; }
.panel-head > a:hover { color: var(--ink); }
.panel-head > a svg { width: 14px; }

.trend-list { margin-top: 20px; min-height: 205px; }
.trend-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(130px,1.5fr) 60px 58px; align-items: center; gap: 15px; min-height: 42px; border-top: 1px solid var(--line); font-size: 12px; }
.trend-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 720; }
.trend-row .bar { height: 5px; background: #dde0d7; }
.trend-row .bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: grow .6s ease-out both; }
.trend-row span, .trend-row b { color: var(--ink-soft); font: 600 10px var(--mono); }
.trend-row b { color: var(--ink); text-align: right; }
.empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 9px; color: #77807b; text-align: center; }
.empty-state svg { width: 23px; height: 23px; }
.empty-state strong { font-size: 13px; color: var(--ink); }
.empty-state span { font-size: 11px; }

.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; background: #e4e7de; color: #535c57; font: 650 9px var(--mono); text-transform: uppercase; }
.status-pill.status-active, .status-pill.status-succeeded, .status-pill.status-completed, .status-pill.status-not_modified, .status-pill.status-uploaded { background: #d9eee0; color: var(--green); }
.status-pill.status-running, .status-pill.status-processing, .status-pill.status-preflighting, .status-pill.status-confirming { background: #dce4ff; color: var(--blue); }
.status-pill.status-failed, .status-pill.status-error, .status-pill.status-blocked { background: #f7ded8; color: var(--red); }
.status-pill.status-paused, .status-pill.status-cancelled, .status-pill.status-unsupported, .status-pill.status-expired { background: #e1e2dc; color: #69716c; }
.status-pill.status-review, .status-pill.status-queued, .status-pill.status-retry_wait, .status-pill.status-pending { background: #f3e9bd; color: #7a5f00; }

.crawl-panel { display: flex; flex-direction: column; }
.crawl-dial { --progress: 0deg; width: 152px; height: 152px; margin: 26px auto 23px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at center, var(--surface) 0 61%, transparent 62%), conic-gradient(var(--acid-dark) var(--progress), #dde0d7 0); }
.crawl-dial strong { font: 700 31px var(--display); letter-spacing: -.04em; }
.crawl-dial span { color: var(--ink-soft); font-size: 10px; }
.crawl-legend { margin-top: auto; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-top: 16px; }
.crawl-legend span { display: grid; grid-template-columns: 8px 1fr; align-items: center; column-gap: 6px; color: var(--ink-soft); font-size: 9px; }
.crawl-legend i { width: 6px; height: 6px; border-radius: 50%; background: #afb5ae; }
.crawl-legend i.ok { background: var(--green); }.crawl-legend i.bad { background: var(--orange); }
.crawl-legend b { grid-column: 2; color: var(--ink); font: 700 14px var(--mono); }

.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 34px; color: #7d8580; border-bottom: 1px solid var(--line-dark); font: 650 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { height: 55px; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong { font-size: 12px; }
.keyword-cell { display: grid; gap: 4px; }
.keyword-cell small, .domain-cell small, .subtle { color: #78817c; font: 500 9px var(--mono); }
.language-tag { display: inline-grid; place-items: center; min-width: 27px; height: 21px; border: 1px solid var(--line-dark); font: 650 9px var(--mono); text-transform: uppercase; }
.external-link { display: inline-grid; place-items: center; width: 29px; height: 29px; color: var(--ink-soft); }
.external-link:hover { color: var(--blue); background: #e5e9f6; }
.external-link svg { width: 14px; }

/* Imports */
.import-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(290px,.55fr); gap: 20px; }
.import-compose { padding: 0; }
.mode-tabs { display: inline-flex; gap: 3px; padding: 4px; background: #dde0d7; }
.import-compose > .mode-tabs { width: 100%; padding: 0; border-bottom: 1px solid var(--line); background: transparent; }
.mode-tabs button { min-height: 38px; padding: 0 16px; border: 0; background: transparent; color: #68716b; font-size: 11px; font-weight: 700; cursor: pointer; }
.import-compose > .mode-tabs button { min-height: 50px; border-right: 1px solid var(--line); }
.mode-tabs button.active { color: var(--ink); background: var(--white); box-shadow: 0 1px 4px rgba(23,32,29,.08); }
.import-compose > .mode-tabs button.active { background: var(--acid); box-shadow: none; }
.import-form { display: grid; gap: 20px; padding: 25px; }
.field small { color: #89918c; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: end; }
.scope-note { min-height: 45px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px dashed var(--line-dark); color: #66706a; font-size: 10px; }
.scope-note svg { width: 16px; color: var(--green); }
.import-form > .button { justify-self: start; }
.protocol-card { padding: 25px; background: var(--ink); color: var(--white); border-color: var(--ink); }
.protocol-card .eyebrow { color: var(--acid); }
.protocol-card h2 { margin: 9px 0 28px; font: 700 25px/1.05 var(--display); letter-spacing: -.035em; }
.protocol-card ol { margin: 0; padding: 0; list-style: none; }
.protocol-card li { min-height: 60px; display: grid; grid-template-columns: 30px 1fr; align-items: center; border-top: 1px solid rgba(255,255,255,.14); color: #b8bfba; font-size: 11px; line-height: 1.5; }
.protocol-card li b { color: var(--acid); font: 600 9px var(--mono); }
.drop-zone { min-height: 235px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--line-dark); background: #f2f3ec; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--ink); background: #ecf2d5; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone svg { width: 30px; height: 30px; }
.drop-zone strong { font-size: 13px; }.drop-zone span, .drop-zone small { color: var(--ink-soft); font-size: 10px; }
.batch-panel { margin-top: 20px; }
.card-list { display: grid; gap: 10px; margin-top: 18px; }
.batch-card { border: 1px solid var(--line); background: var(--white); }
.batch-summary { min-height: 69px; padding: 13px 15px; display: grid; grid-template-columns: minmax(170px,1fr) repeat(4,78px) 32px; align-items: center; gap: 12px; cursor: pointer; }
.batch-summary:hover { background: #f4f5ee; }
.batch-id { display: grid; gap: 4px; min-width: 0; }
.batch-id strong { overflow: hidden; text-overflow: ellipsis; font: 650 11px var(--mono); }
.batch-id small { color: #7b847e; font-size: 9px; }
.mini-stat { display: grid; gap: 3px; }.mini-stat span { color: #7c857f; font-size: 8px; }.mini-stat b { font: 700 15px var(--mono); }
.batch-details { display: none; padding: 0 15px 16px; border-top: 1px solid var(--line); }
.batch-card.open .batch-details { display: block; }
.batch-card.open .batch-summary > svg { transform: rotate(90deg); }
.batch-items { margin-top: 12px; }
.batch-context { min-height: 42px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.batch-context small { color: var(--ink-soft); font-size: 9px; }
.operation-tag { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border: 1px solid var(--line-dark); font: 650 9px var(--mono); }
.operation-replace { border-color: var(--blue); color: var(--blue); background: #e7ebfb; }
.operation-rebaseline { border-color: #927000; color: #725700; background: #f4ecc7; }
.batch-item { min-height: 56px; display: grid; grid-template-columns: minmax(200px,1.6fr) 110px 70px repeat(3,70px); gap: 10px; align-items: center; border-bottom: 1px solid var(--line); font-size: 10px; }
.batch-item .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 550 10px var(--mono); }
.batch-item .error { color: var(--red); }
.batch-actions { display: flex; gap: 10px; margin-top: 16px; }

/* Data views */
.split-heading { align-items: flex-end; }
.data-panel { padding-top: 19px; }
.filterbar { min-height: 49px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.filterbar > label:not(.search-box), .discovery-toolbar > label { display: flex; align-items: center; gap: 9px; color: #707973; font-size: 10px; }
.filterbar select, .discovery-toolbar select { width: 138px; height: 36px; background: var(--white); }
.search-box { position: relative; width: min(330px, 45vw); }
.search-box svg { position: absolute; left: 11px; top: 11px; width: 14px; color: #737c76; }
.search-box input { height: 36px; padding-left: 34px; background: var(--white); }
.result-count { margin-left: auto; color: #737b76; font: 600 10px var(--mono); }
.domain-cell { display: grid; max-width: 320px; gap: 5px; }
.domain-cell strong, .domain-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-menu { position: relative; }
.row-menu > button { width: 31px; height: 31px; border: 0; background: transparent; cursor: pointer; }
.row-menu > button:hover { background: #e4e7df; }
.row-menu-pop { position: fixed; z-index: 30; width: 160px; padding: 5px; border: 1px solid var(--line-dark); background: var(--white); box-shadow: var(--shadow); }
.row-menu-pop button { width: 100%; min-height: 34px; padding: 0 10px; border: 0; background: transparent; text-align: left; font-size: 10px; cursor: pointer; }
.row-menu-pop button:hover { background: var(--paper); }.row-menu-pop button.danger { color: var(--red); }
.discovery-toolbar { min-height: 55px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.signal-bar { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.signal-bar i { display: block; height: 5px; background: var(--acid-dark); }
.signal-bar b { font: 700 11px var(--mono); }
.batch-strip { display: grid; grid-template-columns: repeat(4,minmax(180px,1fr)); gap: 12px; margin-bottom: 20px; overflow-x: auto; }
.batch-tile { min-height: 120px; padding: 17px; border: 1px solid var(--line); background: var(--surface); display: grid; align-content: space-between; }
.batch-tile header { display: flex; justify-content: space-between; }.batch-tile time { color: #737c76; font: 600 9px var(--mono); }
.batch-tile strong { font: 700 25px var(--display); }.batch-tile footer { display: flex; justify-content: space-between; color: #727b75; font-size: 9px; }
.archive-panel, .export-jobs-panel { margin-top: 20px; }

.pagination { min-height: 45px; margin-top: 15px; padding-top: 13px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--line); }
.pagination:empty { display: none; }
.pagination span { margin-right: auto; color: var(--ink-soft); font: 600 9px var(--mono); }
.pagination button { min-width: 34px; height: 31px; padding: 0 9px; border: 1px solid var(--line-dark); background: var(--white); font: 700 9px var(--mono); cursor: pointer; }
.pagination button:hover:not(:disabled) { border-color: var(--ink); background: var(--acid); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.selection-toolbar { min-height: 54px; margin-bottom: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); background: var(--acid); }
.selection-toolbar > span { margin-right: auto; font-size: 11px; }
.selection-toolbar select { width: min(270px, 28vw); height: 36px; background: var(--white); }
.selection-toolbar .button { min-height: 36px; }
.row-check { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.group-dialog { max-height: min(720px, calc(100vh - 48px)); overflow-y: auto; }
.group-keyword-list { margin-top: 20px; border-bottom: 1px solid var(--line); }
.group-keyword-list > div { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.group-keyword-list > div > span { min-width: 0; display: grid; gap: 4px; }
.group-keyword-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.group-keyword-list small { color: var(--ink-soft); font: 550 8px var(--mono); }

/* System control */
.system-heading { position: relative; }
.system-verdict { width: 190px; padding: 15px 0 4px 32px; display: grid; border-top: 2px solid var(--ink); }
.system-verdict i { position: absolute; width: 13px; height: 13px; margin: 5px 0 0 -31px; border: 3px solid var(--paper); border-radius: 50%; background: var(--line-dark); box-shadow: 0 0 0 1px var(--line-dark); }
.system-verdict b { font: 700 17px var(--display); }
.system-verdict small { margin-top: 5px; color: var(--ink-soft); font: 650 8px var(--mono); letter-spacing: .1em; }
.system-verdict.healthy i { background: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 18px rgba(22,118,74,.3); }
.system-verdict.warning i { background: #d49900; box-shadow: 0 0 0 1px #d49900; }
.system-verdict.critical i { background: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 18px rgba(199,57,34,.3); }
.system-metrics { margin-bottom: 20px; }
.system-metrics .metric-card strong { font-size: 37px; }
.system-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.5fr); gap: 20px; }
.system-grid > .panel { padding: 25px; }
.system-alert-panel, .service-panel { min-height: 315px; }
.alert-list, .service-list { margin-top: 18px; }
.alert-row { min-height: 76px; padding: 12px 0; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 13px; align-items: start; border-top: 1px solid var(--line); }
.alert-row > i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--line-dark); }
.alert-row.severity-warning > i { background: #d49900; }.alert-row.severity-critical > i { background: var(--red); box-shadow: 0 0 0 4px rgba(199,57,34,.12); }
.alert-copy { min-width: 0; display: grid; gap: 5px; }.alert-copy strong { font-size: 12px; }.alert-copy p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }.alert-copy small { color: #7b847f; font: 550 8px var(--mono); }
.alert-row .table-action { align-self: center; }
.service-row { min-height: 72px; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.service-row > i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,118,74,.1); }
.service-row.stale > i { background: var(--red); }.service-row div { display: grid; gap: 4px; }.service-row strong { text-transform: capitalize; font-size: 12px; }.service-row small, .service-row time { color: var(--ink-soft); font: 550 9px var(--mono); }
.health-panel { min-height: 275px; }.health-panel .panel-head > strong { font: 740 36px var(--display); color: var(--green); }
.health-bars { min-height: 95px; margin-top: 22px; display: grid; grid-template-columns: repeat(30, minmax(5px,1fr)); align-items: end; gap: 4px; border-bottom: 1px solid var(--line-dark); }
.health-bar { min-height: 3px; background: var(--acid-dark); position: relative; }.health-bar.bad { background: var(--orange); }.health-bar:hover::after { content: attr(data-label); position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); padding: 6px 8px; white-space: nowrap; background: var(--ink); color: var(--white); font: 600 8px var(--mono); }
.error-list { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }.error-chip { padding: 7px 9px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); font: 600 9px var(--mono); }.error-chip b { color: var(--red); }
.audit-panel { margin-top: 0; }.audit-panel .filterbar input { width: 210px; height: 36px; background: var(--white); }.audit-change { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 9px var(--mono); color: var(--ink-soft); }

/* Exports */
.export-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(290px,.55fr); gap: 20px; }
.export-compose { padding: 25px; }
.export-form { margin-top: 22px; }
.export-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.export-protocol { padding: 25px; }
.file-meta { display: grid; gap: 4px; }.file-meta small { color: #78817c; font: 500 9px var(--mono); }
.table-action { min-height: 31px; padding: 0 10px; border: 1px solid var(--line-dark); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.table-action:hover { border-color: var(--ink); background: var(--acid); }
.table-action:disabled { opacity: .5; cursor: wait; }

/* Blocks */
.block-layout { display: grid; grid-template-columns: minmax(270px,.55fr) minmax(0,1.45fr); gap: 20px; }
.stack-form { display: grid; gap: 18px; margin-top: 22px; }
.stack-form .button { justify-self: start; }
.rule-list { margin-top: 15px; }
.rule-row { min-height: 66px; display: grid; grid-template-columns: 90px minmax(150px,1fr) minmax(100px,1fr) 38px; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.rule-row:first-child { border-top-color: var(--line-dark); }
.rule-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10px var(--mono); }
.rule-row p { margin: 0; color: #6f7872; font-size: 10px; }
.rule-row button { width: 32px; height: 32px; border: 0; background: transparent; color: #7c857f; cursor: pointer; }
.rule-row button:hover { color: var(--red); background: #f5ded8; }

/* Dialog and feedback */
.action-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: 12px 12px 0 rgba(23,32,29,.22); }
.action-dialog::backdrop { background: rgba(23,32,29,.55); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; right: 13px; top: 13px; width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; }
.dialog-close:hover { background: #e2e5dc; }
.dialog-body { padding: 34px; }.dialog-body h2 { margin: 8px 0 12px; font: 700 27px var(--display); letter-spacing: -.04em; }.dialog-body p { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }.dialog-actions { display: flex; gap: 10px; margin-top: 23px; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { width: min(360px, calc(100vw - 44px)); padding: 14px 16px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; background: var(--ink); color: var(--white); box-shadow: var(--shadow); font-size: 11px; animation: toast-in .25s ease-out both; }
.toast svg { width: 16px; color: var(--acid); }.toast.error svg { color: var(--orange); }
.skeleton-block { position: relative; overflow: hidden; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); background-size: 220% 100%; animation: skeleton 1.2s infinite; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(215,255,67,.28), 0 0 30px var(--acid); } 75%,100% { box-shadow: 0 0 0 22px rgba(215,255,67,0), 0 0 30px var(--acid); } }
@keyframes rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes skeleton { to { background-position: -120% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card:nth-child(2) { border-right: 0; }.metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: 1fr; }.panel-full { grid-column: auto; }
  .import-layout { grid-template-columns: 1fr; }.protocol-card ol { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 20px; }
  .block-layout { grid-template-columns: 1fr; }
  .export-layout { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .login-shell { grid-template-columns: 1fr; }.login-field { display: none; }.login-card { min-height: 100vh; padding: 94px 28px 70px; }.login-card > .brand-lockup { top: 30px; left: 28px; }.login-foot { bottom: 25px; }
  .app-shell { display: block; }.workspace { margin: 0; }
  .sidebar { width: min(280px,85vw); transform: translateX(-101%); transition: transform .25s ease; box-shadow: var(--shadow); }.sidebar.open { transform: none; }
  .mobile-menu { display: grid; width: 34px; height: 34px; place-content: center; gap: 5px; border: 0; background: var(--ink); }.mobile-menu span { display: block; width: 16px; height: 1px; background: var(--acid); }
  .topbar { height: 68px; padding: 0 17px; }.topbar > div:nth-child(2) { display: none; }.topbar-actions { gap: 8px; }.topbar-actions .button span, .admin-chip div { display: none; }.admin-chip { min-width: auto; }.page-stage { padding: 0 15px 45px; }
  .page-heading { min-height: 150px; padding: 34px 0 27px; }.hero-heading { min-height: 190px; }.date-block { display: none; }
  .metric-card { min-height: 125px; padding: 17px; }.metric-card strong { font-size: 34px; }
  .panel-wide, .crawl-panel, .panel-full, .batch-panel, .data-panel, .block-compose { padding: 17px; }
  .trend-row { grid-template-columns: minmax(120px,1fr) 65px 44px; }.trend-row .bar { display: none; }
  .form-row { grid-template-columns: 1fr; }.protocol-card ol { grid-template-columns: 1fr; }
  .batch-summary { grid-template-columns: minmax(145px,1fr) repeat(2,60px) 25px; }.batch-summary .mini-stat:nth-of-type(3), .batch-summary .mini-stat:nth-of-type(4) { display: none; }
  .batch-item { grid-template-columns: minmax(150px,1fr) 90px 60px; }.batch-item > *:nth-child(n+4) { display: none; }
  .filterbar { flex-wrap: wrap; }.search-box { width: 100%; }.result-count { margin-left: 0; }.discovery-toolbar { align-items: flex-end; gap: 10px; }.mode-tabs { overflow-x: auto; }.mode-tabs button { white-space: nowrap; }
  .split-heading .button { display: none; }.batch-strip { grid-template-columns: repeat(4,230px); }
  .rule-row { grid-template-columns: 75px minmax(140px,1fr) 33px; }.rule-row p { display: none; }
  .export-fields { grid-template-columns: 1fr; }
  .system-verdict { display: none; }.system-grid > .panel { padding: 17px; }.health-bars { gap: 2px; }
  .selection-toolbar { align-items: stretch; flex-direction: column; }.selection-toolbar > span { margin: 0; }.selection-toolbar select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Warm editorial theme: inspired by Wispr Flow's human, product-first visual language. */
body {
  background:
    radial-gradient(circle at 92% -8%, rgba(240, 215, 255, .52), transparent 31rem),
    var(--paper);
}

::selection { background: var(--orange); color: var(--ink); }

.eyebrow { color: var(--green); letter-spacing: .13em; }
.brand-lockup { font-family: var(--body); font-weight: 760; letter-spacing: .02em; }
.brand-mark span { border-radius: 999px 999px 2px 2px; }

/* Login becomes an editorial welcome page instead of a command-center screen. */
.login-shell {
  padding: 18px;
  gap: 0;
  background: var(--acid);
}

.login-field {
  border-radius: 34px 0 0 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 235, .72), transparent 16rem),
    linear-gradient(145deg, #f7e9ff 0%, var(--acid) 64%, #e7c9fb 100%);
}

.login-field::before {
  content: "See what changed.\A Know what\A matters.";
  left: 8%;
  right: 8%;
  bottom: 10%;
  color: var(--ink);
  font: 400 italic clamp(60px, 6.5vw, 118px)/.84 var(--display);
  letter-spacing: -.065em;
  opacity: 1;
}

.login-field::after {
  width: 16px;
  height: 16px;
  top: calc(38% - 8px);
  left: calc(31% - 8px);
  background: var(--orange);
  box-shadow: 0 0 0 12px rgba(255, 169, 70, .18);
  animation: soft-pulse 3.4s ease-in-out infinite;
}

.orbit {
  top: 38%;
  left: 31%;
  border-color: rgba(26, 26, 26, .18);
  animation: none;
}
.orbit::after { background: var(--green); }
.orbit-a { width: 34vw; height: 34vw; animation: none; }
.orbit-b { width: 54vw; height: 54vw; opacity: .42; animation: none; }
.coordinate { display: none; }

.login-card {
  min-height: calc(100vh - 36px);
  margin: 0;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: -18px 0 60px rgba(76, 55, 91, .07);
}

.login-copy .eyebrow { color: var(--green); }
.login-copy h1 {
  max-width: 610px;
  font-family: var(--display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}
.login-copy p:last-child { color: var(--ink-soft); font-size: 16px; }
.login-foot { color: #8a8a80; }

input, textarea, select {
  border-color: var(--line-dark);
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
}
input, select { height: 48px; padding-inline: 15px; }
textarea { padding: 15px; }
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(3, 79, 70, .1);
}

.button {
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 18px;
  font-weight: 700;
}
.button-wide { height: 54px; padding-inline: 22px; }
.button-dark { background: var(--green); color: var(--paper); }
.button-dark:hover { background: #07352f; }
.button-accent {
  border-color: transparent;
  background: var(--orange);
  box-shadow: none;
}
.button-accent:hover {
  border-color: transparent;
  background: #f59b35;
  box-shadow: none;
  transform: translateY(-1px);
}
.button-quiet { border-color: var(--line-dark); background: rgba(255, 255, 255, .5); }
.button-quiet:hover { border-color: var(--green); background: var(--white); color: var(--green); }
.button-danger { background: rgba(163, 60, 56, .04); }

/* App frame */
.app-shell { grid-template-columns: 244px 1fr; }
.sidebar {
  width: 244px;
  border-radius: 0 30px 30px 0;
  background: var(--green);
  color: var(--paper);
  box-shadow: 14px 0 50px rgba(3, 79, 70, .09);
}
.brand-small {
  height: 96px;
  border-bottom-color: rgba(255, 255, 235, .16);
  color: var(--orange);
}
.brand-small > span:last-child { color: var(--paper); }
.nav-list { padding: 25px 12px 0; gap: 5px; }
.nav-list a {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  color: rgba(255, 255, 235, .65);
}
.nav-list a::before { display: none; }
.nav-list a:hover { color: var(--paper); background: rgba(255, 255, 235, .09); }
.nav-list a.active { color: var(--green); background: var(--paper); }
.nav-list a b { color: rgba(255, 255, 235, .3); }
.nav-list a.active b { color: rgba(3, 79, 70, .58); }
.sidebar-foot { border-top-color: rgba(255, 255, 235, .16); }
.scheduler-status { color: rgba(255, 255, 235, .58); }
.scheduler-status i, .sync-line i { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 169, 70, .16); }
.scheduler-status strong { color: var(--paper); }
.icon-button { color: rgba(255, 255, 235, .62); }
.icon-button:hover { color: var(--orange); }

.workspace { grid-column: 2; }
.topbar {
  height: 82px;
  background: rgba(255, 255, 235, .86);
  border-bottom-color: rgba(201, 201, 183, .7);
  backdrop-filter: blur(18px);
}
.breadcrumb { color: #8a8a80; }
.breadcrumb span { color: var(--green); }
.sync-line i { width: 6px; height: 6px; box-shadow: none; }
.admin-chip > span {
  border-radius: 50%;
  background: var(--acid);
  color: var(--green);
}
.page-stage { max-width: 1680px; margin: 0 auto; }

.page-heading { min-height: 204px; padding-top: 56px; }
.page-heading h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.05em;
}
.page-heading h1 em { color: var(--green); font-weight: 400; }
.page-heading > div > p:last-child:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; }
.hero-heading { min-height: 272px; }
.date-block {
  width: 190px;
  padding: 18px 20px;
  border: 0;
  border-radius: 18px;
  background: #ffecd5;
}
.date-block strong { font-family: var(--display); font-weight: 400; }

/* Metrics and content cards */
.metric-grid {
  gap: 14px;
  border: 0;
  background: transparent;
}
.metric-card,
.metric-card:last-child {
  min-height: 158px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, .86);
}
.metric-card strong { font-family: var(--display); font-weight: 400; }
.metric-primary { border-color: transparent; background: var(--acid); }
.metric-card:nth-child(3) { border-color: transparent; background: #ffecd5; }
.metric-card:nth-child(4) { border-color: transparent; background: var(--green); color: var(--paper); }
.metric-card:nth-child(4) > span,
.metric-card:nth-child(4) small { color: rgba(255, 255, 235, .64); }

.dashboard-grid { gap: 16px; margin-top: 16px; }
.panel {
  border-color: var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.panel-wide, .crawl-panel, .panel-full, .batch-panel, .data-panel, .block-compose { padding: 28px; }
.panel-head h2, .filterbar h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.panel-head > a:hover { color: var(--green); }
.trend-row .bar { border-radius: 99px; background: #eeeeda; overflow: hidden; }
.trend-row .bar i { border-radius: inherit; background: var(--green); }
.crawl-dial {
  background: radial-gradient(circle at center, var(--surface) 0 61%, transparent 62%), conic-gradient(var(--orange) var(--progress), #eeeeda 0);
}
.crawl-dial strong { font-family: var(--display); font-weight: 400; }

.status-pill, .language-tag, .operation-tag, .error-chip {
  border-radius: 999px;
}
.status-pill.status-active, .status-pill.status-succeeded, .status-pill.status-completed, .status-pill.status-not_modified, .status-pill.status-uploaded { background: #dcf7c5; color: var(--green); }
.status-pill.status-running, .status-pill.status-processing, .status-pill.status-preflighting, .status-pill.status-confirming { background: #e8e3f4; color: #4f4466; }
.status-pill.status-review, .status-pill.status-queued, .status-pill.status-retry_wait, .status-pill.status-pending { background: #ffecd5; color: #7d501c; }
.status-pill.status-duplicate { background: #e8e3f4; color: #4f4466; }
.status-pill.status-partially_completed { background: #ffecd5; color: #7d501c; }
.status-pill.status-import_blocked { background: #fce5e5; color: var(--red); }

tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(240, 215, 255, .18); }
th { color: #8a8a80; }
td { border-bottom-color: var(--line); }
.external-link { border-radius: 50%; }
.external-link:hover { color: var(--green); background: var(--acid); }

/* Forms, tabs and operational cards */
.import-compose { overflow: hidden; }
.mode-tabs { border-radius: 999px; background: #eeeeda; }
.mode-tabs button { border-radius: 999px; }
.mode-tabs button.active { background: var(--white); box-shadow: 0 2px 8px rgba(26, 26, 26, .07); }
.import-compose > .mode-tabs { background: rgba(240, 215, 255, .25); }
.import-compose > .mode-tabs button { border-right-color: var(--line); border-radius: 0; }
.import-compose > .mode-tabs button.active { background: var(--acid); }
.scope-note { border-color: var(--line-dark); border-radius: 13px; background: rgba(255, 255, 255, .38); }
.drop-zone { border-radius: 18px; background: #f8f4eb; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--green); background: #f1f1e1; }

.protocol-card {
  border-color: transparent;
  border-radius: 24px;
  background: var(--green);
  color: var(--paper);
}
.protocol-card .eyebrow, .protocol-card li b { color: var(--orange); }
.protocol-card h2 { font-family: var(--display); font-weight: 400; }
.protocol-card li { border-top-color: rgba(255, 255, 235, .16); color: rgba(255, 255, 235, .68); }

.batch-card, .batch-tile {
  border-color: var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .72);
  overflow: hidden;
}
.batch-summary:hover { background: rgba(240, 215, 255, .2); }
.filterbar select, .discovery-toolbar select, .search-box input { background: rgba(255, 255, 255, .82); }
.row-menu > button, .row-menu-pop, .table-action, .pagination button { border-radius: 10px; }
.row-menu > button:hover { background: var(--acid); }
.row-menu-pop { border-color: var(--line); box-shadow: var(--shadow); }
.row-menu-pop button { border-radius: 8px; }
.row-menu-pop button:hover { background: #f1f1e1; }
.signal-bar i, .health-bar { border-radius: 999px; background: var(--green); }
.pagination button:hover:not(:disabled), .table-action:hover { border-color: var(--green); background: var(--acid); }
.selection-toolbar { border-color: transparent; border-radius: 16px; background: var(--acid); }
.row-check { accent-color: var(--green); }

.system-verdict { border-top-color: var(--green); }
.system-verdict.healthy i { border-color: var(--paper); background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.health-panel .panel-head > strong { font-family: var(--display); font-weight: 400; }
.rule-row button, .dialog-close { border-radius: 50%; }
.rule-row button:hover { background: #fce5e5; }

.action-dialog {
  border-color: var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.action-dialog::backdrop { background: rgba(3, 53, 47, .44); backdrop-filter: blur(4px); }
.dialog-body h2 { font-family: var(--display); font-weight: 400; }
.dialog-close:hover { background: var(--acid); }
.toast { border-radius: 16px; background: var(--green); color: var(--paper); }
.toast svg { color: var(--orange); }

.mobile-menu { border-radius: 50%; background: var(--green); }
.mobile-menu span { background: var(--paper); }

@keyframes soft-pulse {
  0%, 100% { transform: scale(.92); box-shadow: 0 0 0 10px rgba(255, 169, 70, .14); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(255, 169, 70, .04); }
}

@media (max-width: 1120px) {
  .metric-card,
  .metric-card:last-child,
  .metric-card:nth-child(2),
  .metric-card:nth-child(-n+2) { border: 1px solid var(--line); }
  .metric-primary, .metric-card:nth-child(3), .metric-card:nth-child(4) { border-color: transparent; }
}

@media (max-width: 780px) {
  .login-shell { padding: 12px; }
  .login-card { min-height: calc(100vh - 24px); margin: 0; border-radius: 26px; }
  .sidebar { border-radius: 0 24px 24px 0; }
  .page-heading { min-height: 160px; }
  .metric-card { border-radius: 18px; }
  .panel, .protocol-card { border-radius: 19px; }
}
