:root {
  --paper: #f4f7f5;
  --white: #ffffff;
  --ink: #111516;
  --muted: #687174;
  --line: #d8dedb;
  --blue: #1557ff;
  --blue-dark: #0b3bc0;
  --blue-soft: #dfe8ff;
  --coral: #ff5d52;
  --yellow: #ffc928;
  --green: #20a66a;
  --app-bg: #edf1ef;
  --sidebar: #111516;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}
body[data-view="app"] { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(250px, 1fr) auto;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 clamp(20px, 3.1vw, 56px);
  border-bottom: 1px solid rgb(17 21 22 / 12%);
  background: rgb(244 247 245 / 90%);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand > span:last-child { display: flex; gap: 5px; align-items: baseline; }
.brand b { font: 700 17px/1 "Onest", sans-serif; }
.brand small { color: var(--blue); font: 700 8px/1 "IBM Plex Mono", monospace; }
.brand-signal { position: relative; display: inline-flex; gap: 2px; align-items: center; width: 32px; height: 22px; }
.brand-signal i { display: block; width: 3px; border-radius: 3px; background: var(--blue); }
.brand-signal i:nth-child(1) { height: 8px; }
.brand-signal i:nth-child(2) { height: 20px; }
.brand-signal i:nth-child(3) { height: 12px; }
.brand-signal::after { width: 14px; height: 1px; content: ""; background: var(--blue); }
.site-header nav { display: flex; gap: 26px; justify-self: center; }
.site-header nav a { position: relative; padding: 27px 0 25px; color: #3c4547; font-size: 12px; font-weight: 700; }
.site-header nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-header nav a:hover::after { transform: scaleX(1); }
.header-live { display: flex; gap: 8px; align-items: center; justify-self: end; margin-right: 26px; color: var(--muted); font: 500 10px/1 "IBM Plex Mono", monospace; }
.header-live i, .app-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgb(32 166 106 / 12%); }
.header-live time { color: var(--ink); }
.header-action, .primary-action, .secondary-action, .text-action, .closing-button, .back-button, .exit-button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
}
.header-action { min-height: 40px; color: var(--white); background: var(--ink); font-size: 12px; font-weight: 700; }
.header-action svg, .primary-action svg, .text-action svg, .closing-button svg, .exit-button svg { width: 16px; height: 16px; }

.site-main { overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(54px, 8vh, 92px)) clamp(20px, 5.4vw, 104px) 34px;
  overflow: hidden;
  background: var(--paper);
}
.hero-grid {
  position: absolute;
  inset: var(--header-h) 0 0;
  opacity: .38;
  pointer-events: none;
  background-image: linear-gradient(rgb(17 21 22 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(17 21 22 / 8%) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.pulse-canvas { position: absolute; z-index: 1; inset: var(--header-h) 0 0; width: 100%; height: calc(100% - var(--header-h)); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; align-self: center; max-width: 900px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 0 0 24px; color: var(--blue); font: 700 10px/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; }
.eyebrow span { display: inline-flex; gap: 10px; align-items: center; }
.eyebrow span:not(:last-child)::after { width: 3px; height: 3px; border-radius: 50%; content: ""; background: var(--blue); }
.hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: "Onest", sans-serif;
  font-size: clamp(68px, 8.5vw, 154px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: 0;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 620px; margin: 34px 0 30px; color: #4f5a5c; font-size: clamp(16px, 1.18vw, 20px); }
.hero-actions { display: flex; gap: 24px; align-items: center; }
.primary-action { color: var(--white); background: var(--blue); font-size: 12px; font-weight: 700; transition: background 180ms ease, transform 180ms ease; }
.primary-action:hover { background: var(--blue-dark); transform: translateY(-2px); }
.text-action { padding: 0; background: transparent; font-size: 12px; font-weight: 700; }
.text-action svg { color: var(--blue); transition: transform 180ms ease; }
.text-action:hover svg { transform: translateX(4px); }
.hero-stream {
  position: relative;
  z-index: 4;
  align-self: center;
  width: min(100%, 430px);
  margin-left: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgb(244 247 245 / 84%);
  backdrop-filter: blur(8px);
}
.stream-head { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.stream-head b { color: var(--ink); font-weight: 500; }
.hero-stream ol { margin: 0; padding: 0; list-style: none; }
.hero-stream li { display: grid; grid-template-columns: 52px 10px 1fr; gap: 12px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 12px; }
.hero-stream li:last-child { border-bottom: 0; }
.hero-stream time { color: var(--muted); font: 500 10px/1 "IBM Plex Mono", monospace; }
.hero-stream li > i { width: 7px; height: 7px; border-radius: 50%; }
.is-ok, .is-green { background: var(--green); }
.is-warning, .is-yellow { background: var(--yellow); }
.is-risk, .is-coral { color: var(--coral); }
.hero-stream .is-risk, .activity-panel i.is-coral { background: var(--coral); }
.hero-stream b { margin-right: 7px; }
.hero-status { position: relative; z-index: 3; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(140px, 210px)); gap: 0; align-self: end; width: fit-content; border-top: 1px solid var(--line); }
.hero-status div { padding: 18px 36px 0 0; }
.hero-status span, .hero-status strong { display: block; }
.hero-status span { margin-bottom: 4px; color: var(--muted); font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.hero-status strong { font: 700 28px/1 "Onest", sans-serif; }
.hero-footnote { position: absolute; z-index: 3; right: 42px; bottom: 32px; display: flex; gap: 12px; align-items: center; margin: 0; color: var(--muted); font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.hero-footnote svg { width: 14px; height: 14px; color: var(--blue); }

.section-label { margin: 0 0 24px; color: var(--blue); font: 700 10px/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; }
.system-section { position: relative; padding: clamp(90px, 13vw, 190px) clamp(20px, 5.4vw, 104px); color: var(--white); background: var(--ink); }
.system-intro { display: grid; grid-template-columns: minmax(130px, .5fr) minmax(420px, 1.25fr) minmax(280px, .75fr); gap: 40px; align-items: end; }
.system-intro .section-label { align-self: start; color: #93afff; }
.system-intro h2, .pricing-copy h2, .closing-section h2 { margin: 0; font: 700 clamp(50px, 6.2vw, 106px)/.93 "Onest", sans-serif; }
.system-intro > p:last-child { max-width: 470px; margin: 0 0 7px; color: #aeb7b8; font-size: 17px; }
.signal-route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid #384042; }
.signal-route article { position: relative; min-height: 280px; padding: 37px clamp(22px, 3vw, 52px) 20px 0; }
.signal-route article:not(:last-child) { border-right: 1px solid #384042; }
.signal-route article:not(:first-of-type) { padding-left: clamp(22px, 3vw, 52px); }
.signal-route article::before { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; content: ""; background: var(--blue); box-shadow: 0 0 0 1px #7a8385; }
.signal-route article:not(:first-of-type)::before { left: clamp(22px, 3vw, 52px); }
.signal-route article:last-child::before { background: var(--green); }
.signal-route article > span { color: #8e999b; font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.signal-route article > b { float: right; color: #8e999b; font: 500 10px/1 "IBM Plex Mono", monospace; }
.signal-route h3 { max-width: 390px; margin: 54px 0 16px; font: 600 clamp(24px, 2.2vw, 38px)/1.05 "Onest", sans-serif; }
.signal-route p { margin: 0; color: #8e999b; font-size: 13px; }
.route-line { position: absolute; z-index: 2; top: -1px; left: 0; width: 66.66%; height: 2px; overflow: hidden; pointer-events: none; }
.route-line i { display: block; width: 24%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: route-pulse 3s ease-in-out infinite; }
@keyframes route-pulse { from { transform: translateX(-100%); } to { transform: translateX(420%); } }

.pricing-section { display: grid; grid-template-columns: minmax(350px, .85fr) minmax(520px, 1.15fr); gap: clamp(50px, 8vw, 140px); padding: clamp(90px, 12vw, 180px) clamp(20px, 8vw, 150px); background: var(--white); }
.pricing-copy p:last-child { max-width: 420px; margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.price-console { align-self: start; padding-top: 14px; border-top: 1px solid var(--ink); }
.price-row { padding: 28px 0 25px; border-bottom: 1px solid var(--line); }
.price-row label { display: flex; justify-content: space-between; margin-bottom: 22px; font-size: 13px; font-weight: 700; }
.price-row output { color: var(--blue); font: 700 28px/1 "Onest", sans-serif; }
.price-row input { width: 100%; height: 3px; accent-color: var(--blue); cursor: pointer; }
.price-row > div { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font: 500 9px/1 "IBM Plex Mono", monospace; }
.billing-switch { display: flex; gap: 0; margin: 26px 0 0; padding: 0; border: 0; }
.billing-switch legend { margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.billing-switch label { position: relative; flex: 1; cursor: pointer; }
.billing-switch input { position: absolute; opacity: 0; }
.billing-switch span { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.billing-switch label + label span { border-left: 0; }
.billing-switch input:checked + span { color: var(--white); border-color: var(--ink); background: var(--ink); }
.billing-switch b { color: var(--green); }
.price-total { padding: 38px 0 30px; }
.price-total span, .price-total small { display: block; color: var(--muted); }
.price-total span { margin-bottom: 8px; font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.price-total strong { display: block; font: 700 clamp(46px, 4.5vw, 76px)/1 "Onest", sans-serif; }
.price-total small { margin-top: 9px; font-size: 11px; }
.price-console > .primary-action { width: 100%; }

.closing-section { position: relative; min-height: 78svh; padding: clamp(90px, 13vw, 190px) clamp(20px, 8vw, 150px); overflow: hidden; color: var(--white); background: var(--blue); }
.closing-section::after { position: absolute; top: 50%; right: -14vw; width: 58vw; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; content: ""; transform: translateY(-50%); box-shadow: 0 0 0 7vw rgb(255 255 255 / 4%), 0 0 0 14vw rgb(255 255 255 / 3%); }
.closing-section .section-label { color: #cbd7ff; }
.closing-section h2 { position: relative; z-index: 2; max-width: 950px; font-size: clamp(62px, 8.4vw, 146px); }
.closing-button { position: relative; z-index: 2; justify-content: space-between; width: min(100%, 460px); min-height: 72px; margin-top: 54px; padding: 0 26px; border: 1px solid rgb(255 255 255 / 60%); color: var(--white); background: transparent; font-weight: 700; }
.closing-button:hover { color: var(--blue); background: var(--white); }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 110px; padding: 24px clamp(20px, 5.4vw, 104px); color: #8b9496; background: var(--ink); font-size: 11px; }
.site-footer .brand b { color: var(--white); }
.site-footer > a:last-child { display: flex; gap: 9px; align-items: center; color: var(--white); font-weight: 700; }
.site-footer svg { width: 14px; height: 14px; color: #93afff; }

/* Application */
.app-shell { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-columns: 76px 1fr; visibility: hidden; opacity: 0; background: var(--app-bg); pointer-events: none; }
body[data-view="app"] .app-shell { visibility: visible; opacity: 1; pointer-events: auto; }
.app-sidebar { display: flex; flex-direction: column; align-items: center; padding: 17px 0; color: var(--white); background: var(--sidebar); }
.app-brand { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 0 30px; border: 0; color: var(--white); background: transparent; cursor: pointer; }
.app-brand .brand-signal { width: 26px; transform: scale(.76); }
.app-brand b { display: none; }
.app-sidebar nav { display: flex; flex: 1; flex-direction: column; gap: 8px; width: 100%; }
.app-sidebar nav button { position: relative; display: grid; place-items: center; width: 100%; min-height: 56px; border: 0; color: #80898b; background: transparent; cursor: pointer; }
.app-sidebar nav button::before { position: absolute; top: 13px; bottom: 13px; left: 0; width: 3px; content: ""; background: transparent; }
.app-sidebar nav button:hover, .app-sidebar nav button.is-active { color: var(--white); }
.app-sidebar nav button.is-active::before { background: var(--blue); }
.app-sidebar nav svg { width: 19px; height: 19px; }
.app-sidebar nav span { margin-top: 4px; font-size: 8px; }
.app-sidebar nav b { position: absolute; top: 7px; right: 13px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: var(--white); background: var(--coral); font-size: 8px; }
.sidebar-user { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #343a3b; border-radius: 50%; color: var(--white); background: transparent; cursor: pointer; }
.sidebar-user span { font-size: 10px; font-weight: 700; }
.sidebar-user svg { display: none; }
.app-workspace { min-width: 0; height: 100svh; overflow: auto; }
.app-header { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 13px 26px 13px 30px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.app-header p, .app-header h1 { margin: 0; }
.app-header p { color: var(--muted); font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.app-header h1 { margin-top: 6px; font: 700 20px/1 "Onest", sans-serif; }
.app-header-actions { display: flex; gap: 10px; align-items: center; }
.app-search { display: flex; gap: 8px; align-items: center; width: min(25vw, 290px); min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); }
.app-search svg { width: 15px; height: 15px; color: var(--muted); }
.app-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.icon-button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.icon-button svg { width: 17px; height: 17px; }
.app-header .icon-button span { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid var(--white); border-radius: 50%; background: var(--coral); }
.app-live { display: flex; gap: 7px; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); color: var(--muted); font: 500 9px/1 "IBM Plex Mono", monospace; background: var(--white); }
.app-live i { width: 6px; height: 6px; box-shadow: none; }
.app-live span { color: var(--green); font-weight: 700; }
.exit-button { min-height: 40px; padding: 0 13px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; }
.dashboard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; padding: 18px; }
.loading-state { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; align-content: center; min-height: calc(100svh - 80px); background: var(--app-bg); transition: opacity 250ms ease, visibility 250ms ease; }
.loading-state.is-hidden { visibility: hidden; opacity: 0; }
.loading-state span { width: 50px; height: 50px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: load-spin .8s linear infinite; }
.loading-state p { margin: 14px 0 0; color: var(--muted); font: 500 10px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
@keyframes load-spin { to { transform: rotate(360deg); } }
.metric-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); }
.metric-strip article { min-height: 116px; padding: 20px; }
.metric-strip article:not(:last-child) { border-right: 1px solid var(--line); }
.metric-strip span, .metric-strip strong, .metric-strip small { display: block; }
.metric-strip span { color: var(--muted); font-size: 10px; }
.metric-strip strong { margin: 11px 0 8px; font: 700 34px/1 "Onest", sans-serif; }
.metric-strip small { color: var(--muted); font-size: 9px; }
.metric-strip .is-positive { color: var(--green); }
.pulse-chart, .task-panel, .activity-panel { border: 1px solid var(--line); background: var(--white); }
.pulse-chart { min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head p, .panel-head h2 { margin: 0; }
.panel-head p { color: var(--blue); font: 700 8px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.panel-head h2 { margin-top: 6px; font: 700 16px/1 "Onest", sans-serif; }
.chart-legend { display: flex; gap: 18px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; gap: 7px; align-items: center; }
.chart-legend i { width: 8px; height: 2px; background: var(--blue); }
.chart-legend span:last-child i { background: var(--coral); }
.chart-stage { padding: 18px 20px 12px; }
.chart-stage svg { width: 100%; height: 210px; overflow: visible; }
.chart-grid path { fill: none; stroke: #e4e9e6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: url("#none"); fill: rgb(21 87 255 / 7%); }
.chart-line, .risk-line { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.risk-line { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 4 5; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font: 500 8px/1 "IBM Plex Mono", monospace; }
.task-panel { grid-column: 1; min-width: 0; }
.task-head { gap: 14px; }
.filter-group { display: flex; }
.filter-group button { min-height: 31px; padding: 0 13px; border: 1px solid var(--line); background: var(--white); font-size: 9px; cursor: pointer; }
.filter-group button + button { border-left: 0; }
.filter-group button.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.task-table { width: 100%; }
.task-row { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(80px, .7fr) minmax(120px, .9fr) minmax(70px, .55fr) minmax(100px, .75fr); align-items: center; width: 100%; min-height: 65px; padding: 0 17px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); text-align: left; }
button.task-row { cursor: pointer; transition: background 150ms ease; }
button.task-row:hover { background: #f6f8f7; }
.task-row-head { min-height: 34px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.task-row > span { min-width: 0; font-size: 10px; }
.task-row > span:first-child { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 1px 10px; align-items: center; padding-right: 14px; }
.task-row > span:first-child b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-row > span:first-child small { grid-column: 2; color: var(--muted); font: 500 8px/1 "IBM Plex Mono", monospace; }
.severity { grid-row: 1 / 3; width: 6px; height: 6px; border-radius: 50%; }
.severity-high { background: var(--coral); }.severity-medium { background: var(--yellow); }.severity-low { background: var(--blue); }
.owner { display: flex; gap: 7px; align-items: center; }
.owner i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-style: normal; font-weight: 700; }
.deadline.is-overdue { color: var(--coral); font-weight: 700; }
.task-row > span:last-child { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.task-row > span:last-child svg { width: 14px; height: 14px; color: var(--muted); }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 700; }
.status-risk { color: #bd2a22; background: #ffe2df; }.status-work { color: #8b6500; background: #fff0b5; }.status-new { color: #1641a9; background: var(--blue-soft); }.status-resolved { color: #087249; background: #d9f4e7; }
.empty-state { padding: 62px 24px; text-align: center; }
.empty-state svg { width: 25px; height: 25px; margin: 0 auto 14px; color: var(--blue); }
.empty-state h3 { margin: 0; font: 700 18px/1.1 "Onest", sans-serif; }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 11px; }
.empty-state button { border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.activity-panel { grid-column: 2; grid-row: 2 / 4; }
.activity-panel .icon-button { width: 34px; height: 34px; }
.activity-panel ol { margin: 0; padding: 7px 18px; list-style: none; }
.activity-panel li { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 11px; min-height: 75px; padding: 14px 0; }
.activity-panel li:not(:last-child)::after { position: absolute; top: 30px; bottom: -13px; left: 3px; width: 1px; content: ""; background: var(--line); }
.activity-panel li > i { z-index: 1; width: 7px; height: 7px; margin-top: 4px; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px currentColor; }
.activity-panel i.is-blue { color: var(--blue); background: var(--blue); }.activity-panel i.is-yellow { color: #b58900; background: var(--yellow); }.activity-panel i.is-green { color: var(--green); background: var(--green); }
.activity-panel b { display: block; font-size: 10px; }
.activity-panel p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.activity-panel time { display: block; margin-top: 7px; color: #8c9698; font: 500 8px/1 "IBM Plex Mono", monospace; }

/* Dialog and drawer */
.onboarding { width: min(94vw, 760px); max-height: min(92svh, 760px); padding: 0; border: 0; border-radius: 0; color: var(--ink); background: var(--white); box-shadow: 0 28px 90px rgb(17 21 22 / 25%); }
.onboarding::backdrop { background: rgb(17 21 22 / 68%); backdrop-filter: blur(6px); }
.onboarding form { display: flex; flex-direction: column; min-height: min(720px, 88svh); }
.onboarding header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 30px; border-bottom: 1px solid var(--line); }
.onboarding-progress { height: 3px; background: #edf0ee; }
.onboarding-progress i { display: block; width: 33.333%; height: 100%; background: var(--blue); transform-origin: left; transition: width 250ms ease; }
.onboarding-step { display: none; flex: 1; padding: 50px 72px 30px; }
.onboarding-step.is-active { display: block; }
.step-label { margin: 0 0 17px !important; color: var(--blue) !important; font: 700 9px/1 "IBM Plex Mono", monospace !important; text-transform: uppercase; }
.onboarding-step h2 { margin: 0; font: 700 clamp(42px, 5vw, 72px)/.92 "Onest", sans-serif; }
.onboarding-step > p { max-width: 440px; margin: 18px 0 28px; color: var(--muted); font-size: 13px; }
.option-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.option-list label, .priority-list label { position: relative; cursor: pointer; }
.option-list input, .priority-list input { position: absolute; opacity: 0; }
.option-list span { display: flex; flex-direction: column; min-height: 150px; padding: 19px; border: 1px solid var(--line); }
.option-list label + label span { border-left: 0; }
.option-list input:checked + span, .priority-list input:checked + span { position: relative; z-index: 2; border-color: var(--blue); color: var(--blue); background: #f1f5ff; box-shadow: inset 0 0 0 1px var(--blue); }
.option-list svg, .priority-list svg { width: 22px; height: 22px; margin-bottom: auto; }
.option-list b, .priority-list b { font-size: 12px; }
.option-list small, .priority-list small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.number-control { display: grid; grid-template-columns: 48px 100px 48px 1fr; align-items: center; margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.number-control button { display: grid; place-items: center; width: 48px; height: 62px; border: 0; background: transparent; cursor: pointer; }
.number-control button:first-child { border-right: 1px solid var(--line); }
.number-control button:nth-of-type(2) { border-left: 1px solid var(--line); }
.number-control svg { width: 17px; height: 17px; }
.number-control output { text-align: center; font: 700 28px/1 "Onest", sans-serif; }
.number-control span { padding-left: 18px; color: var(--muted); font-size: 11px; }
.location-select { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 62px; margin-top: 18px; padding: 0 18px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.location-select select { width: 180px; border: 0; outline: 0; background: transparent; text-align: right; appearance: none; cursor: pointer; }
.location-select svg { position: absolute; right: 16px; width: 15px; height: 15px; pointer-events: none; }
.priority-list { display: grid; margin-top: 30px; }
.priority-list span { display: grid; grid-template-columns: 32px 1fr; min-height: 72px; padding: 14px 17px; border: 1px solid var(--line); }
.priority-list label + label span { border-top: 0; }
.priority-list svg { grid-row: 1 / 3; margin: 0; }
.priority-list small { grid-column: 2; }
.onboarding footer { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 15px 30px; border-top: 1px solid var(--line); }
.back-button { padding: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.back-button:disabled { visibility: hidden; }
.back-button svg { width: 15px; height: 15px; }

.risk-drawer { position: fixed; z-index: 205; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(100%, 560px); overflow: auto; background: var(--white); box-shadow: -24px 0 70px rgb(17 21 22 / 22%); transform: translateX(105%); transition: transform 280ms cubic-bezier(.22,.8,.27,1); }
.risk-drawer.is-open { transform: translateX(0); }
.risk-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; min-height: 150px; padding: 28px 30px; border-bottom: 1px solid var(--line); }
.risk-drawer header p { margin: 0 0 12px; color: var(--coral); font: 700 8px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.risk-drawer header h2 { max-width: 410px; margin: 0; font: 700 clamp(28px, 3vw, 42px)/1 "Onest", sans-serif; }
.risk-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.risk-summary div { min-height: 84px; padding: 18px; }
.risk-summary div:not(:last-child) { border-right: 1px solid var(--line); }
.risk-summary span, .risk-summary b { display: block; }
.risk-summary span { margin-bottom: 10px; color: var(--muted); font-size: 9px; }
.risk-summary b { font-size: 11px; }
.risk-drawer > section { padding: 28px 30px; border-bottom: 1px solid var(--line); }
.risk-drawer > section > p:last-child { margin: 0; color: #4f5a5c; font-size: 13px; }
.drawer-label { margin: 0 0 14px !important; color: var(--blue) !important; font: 700 8px/1 "IBM Plex Mono", monospace !important; text-transform: uppercase; }
.status-control { display: grid; grid-template-columns: repeat(3, 1fr); }
.status-control button { min-height: 42px; border: 1px solid var(--line); background: var(--white); font-size: 10px; cursor: pointer; }
.status-control button + button { border-left: 0; }
.status-control button.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.channel-check { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 66px; padding: 12px 14px; border: 1px solid var(--line); }
.channel-check > span { display: grid; grid-template-columns: 22px 1fr; }
.channel-check svg { grid-row: 1 / 3; width: 16px; height: 16px; color: var(--blue); }
.channel-check b { font-size: 10px; }
.channel-check small { color: var(--muted); font-size: 8px; }
.channel-check button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); font-size: 9px; font-weight: 700; cursor: pointer; }
.inline-message { margin-top: 9px; padding: 10px 12px; color: #8a403b; background: #fff0ef; font-size: 10px; }
.inline-message.is-success { color: #076541; background: #e3f6ed; }
.risk-drawer > footer { display: flex; gap: 12px; margin-top: auto; padding: 22px 30px; }
.risk-drawer footer button { flex: 1; }
.secondary-action { border: 1px solid var(--line); background: var(--white); font-size: 11px; font-weight: 700; }
.drawer-backdrop { position: fixed; z-index: 200; inset: 0; width: 100%; height: 100%; border: 0; background: rgb(17 21 22 / 45%); cursor: default; }
.toast { position: fixed; z-index: 260; right: 24px; bottom: 24px; display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 18px; color: var(--white); background: var(--ink); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast svg { width: 17px; height: 17px; color: var(--green); }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 340px; padding-right: 36px; padding-left: 36px; }
  .hero h1 { font-size: clamp(72px, 10vw, 120px); }
  .system-intro { grid-template-columns: 130px 1fr; }
  .system-intro > p:last-child { grid-column: 2; }
  .dashboard { grid-template-columns: minmax(0, 1fr) 270px; }
  .task-row { grid-template-columns: minmax(220px, 2fr) 80px 100px 65px 95px; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .header-live { display: none; }
  .header-action { min-height: 38px; padding: 0 13px; }
  .header-action svg { display: none; }
  .hero { display: block; min-height: auto; padding: calc(var(--header-h) + 66px) 20px 38px; }
  .hero-grid { background-size: 64px 64px; }
  .pulse-canvas { opacity: .7; }
  .hero-copy { min-height: 560px; }
  .hero h1 { font-size: clamp(62px, 17.2vw, 104px); line-height: .86; }
  .hero-lead { margin-top: 26px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 6px; max-width: 400px; }
  .text-action { justify-content: flex-start; min-height: 44px; }
  .hero-stream { width: 100%; margin: 48px 0 0; }
  .hero-status { grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 38px; }
  .hero-status div { padding-right: 10px; }
  .hero-footnote { display: none; }
  .system-section { padding: 90px 20px; }
  .system-intro { display: block; }
  .system-intro h2 { font-size: clamp(48px, 13vw, 78px); }
  .system-intro > p:last-child { margin-top: 26px; }
  .signal-route { grid-template-columns: 1fr; margin-top: 66px; border-top: 0; border-left: 1px solid #384042; }
  .signal-route article { min-height: 220px; padding: 6px 0 44px 30px !important; border-right: 0 !important; }
  .signal-route article:not(:last-child) { border-bottom: 1px solid #384042; }
  .signal-route article::before, .signal-route article:not(:first-of-type)::before { top: 0; left: -6px; }
  .signal-route h3 { margin-top: 35px; }
  .route-line { top: 0; bottom: 0; left: -1px; width: 2px; height: 66%; }
  .route-line i { width: 100%; height: 24%; background: linear-gradient(transparent, var(--blue), transparent); animation: route-pulse-mobile 3s ease-in-out infinite; }
  @keyframes route-pulse-mobile { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
  .pricing-section { grid-template-columns: 1fr; gap: 58px; padding: 90px 20px; }
  .pricing-copy h2 { font-size: clamp(56px, 15vw, 84px); }
  .price-total strong { font-size: clamp(46px, 13vw, 66px); }
  .closing-section { min-height: 680px; padding: 100px 20px; }
  .closing-section h2 { font-size: clamp(62px, 17vw, 96px); }
  .closing-section::after { right: -44vw; width: 110vw; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; min-height: 170px; }

  .app-shell { grid-template-columns: 1fr; grid-template-rows: 1fr 64px; }
  .app-sidebar { z-index: 30; grid-row: 2; display: block; padding: 0; }
  .app-brand, .sidebar-user { display: none; }
  .app-sidebar nav { display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; }
  .app-sidebar nav button { min-height: 64px; }
  .app-sidebar nav button::before { inset: auto 22% 0; width: auto; height: 3px; }
  .app-sidebar nav b { top: 7px; right: calc(50% - 24px); }
  .app-workspace { grid-row: 1; height: calc(100svh - 64px); }
  .app-header { min-height: 64px; padding: 10px 14px; }
  .app-header h1 { font-size: 16px; }
  .app-header p { font-size: 7px; }
  .app-search { width: 42px; padding: 0 12px; }
  .app-search input { position: fixed; top: 64px; right: 0; left: 0; z-index: 20; display: none; width: 100%; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--white); }
  .app-search:focus-within input { display: block; }
  .app-header .icon-button, .app-live span, .app-live time, .exit-button span { display: none; }
  .app-live { min-width: 35px; justify-content: center; padding: 0; }
  .exit-button { width: 40px; padding: 0; font-size: 0; }
  .dashboard { display: block; padding: 10px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article { min-height: 100px; padding: 15px; }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-strip strong { font-size: 29px; }
  .pulse-chart, .task-panel, .activity-panel { margin-top: 10px; }
  .pulse-chart .chart-stage { overflow-x: auto; }
  .pulse-chart .chart-stage { scrollbar-width: none; }
  .pulse-chart .chart-stage::-webkit-scrollbar { display: none; }
  .pulse-chart svg { width: 680px; }
  .task-head { align-items: flex-start; flex-direction: column; }
  .task-row-head { display: none; }
  .task-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 8px 14px; min-height: 92px; padding: 14px; }
  .task-row > span:first-child { grid-column: 1 / -1; }
  .task-row > span:nth-child(2) { display: none; }
  .task-row .owner { grid-row: 2; }
  .task-row > span:nth-child(4) { display: none; }
  .task-row > span:last-child { grid-column: 2; grid-row: 2; }
  .activity-panel { margin-bottom: 10px; }
  .onboarding { width: 100vw; height: 100svh; max-height: none; margin: 0; }
  .onboarding form { min-height: 100svh; }
  .onboarding header { min-height: 64px; padding: 0 18px; }
  .onboarding-step { padding: 34px 20px 20px; }
  .onboarding-step h2 { font-size: clamp(44px, 12vw, 64px); }
  .option-list { grid-template-columns: 1fr; }
  .option-list span { min-height: 76px; display: grid; grid-template-columns: 34px 1fr; }
  .option-list label + label span { border-top: 0; border-left: 1px solid var(--line); }
  .option-list svg { grid-row: 1 / 3; margin: 0; }
  .option-list small { grid-column: 2; }
  .onboarding footer { min-height: 74px; padding: 12px 18px; }
  .risk-drawer { width: 100%; }
  .risk-drawer > header { min-height: 126px; padding: 22px 18px; }
  .risk-drawer > section { padding: 24px 18px; }
  .risk-summary div { padding: 14px 10px; }
  .risk-drawer > footer { position: sticky; bottom: 0; padding: 14px 18px; background: var(--white); }
  .toast { right: 12px; bottom: 76px; left: 12px; justify-content: center; }
}

@media (max-width: 420px) {
  .brand b { font-size: 15px; }
  .site-header .header-action { font-size: 10px; }
  .eyebrow { gap: 7px 12px; }
  .hero-copy { min-height: 520px; }
  .hero h1 { font-size: clamp(58px, 17vw, 78px); }
  .hero-status strong { font-size: 24px; }
  .system-intro h2 { font-size: 47px; }
  .billing-switch span { font-size: 10px; }
  .price-total strong { font-size: 44px; }
  .closing-section h2 { font-size: 58px; }
  .risk-summary b { overflow-wrap: anywhere; }
  .channel-check { align-items: stretch; flex-direction: column; }
  .channel-check button { width: 100%; }
}

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