/* app.css — a dark, dense trading terminal.
 * No preprocessor, no framework: CSS custom properties plus grid layouts. */

:root {
  --bg: #070a11;
  --bg-1: #0b0f17;
  --bg-2: #0e131d;
  --bg-3: #131a26;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #cbd5e1;
  --text-dim: #64748b;
  --text-bright: #f1f5f9;
  --up: #089981;
  --down: #f23645;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --warn: #f59e0b;
  --radius: 6px;
  --topbar-h: 44px;
  --status-h: 24px;
  --rail-w: 232px;
  --rail-r: 288px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  overflow: hidden;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

.dim { color: var(--text-dim); }
.tiny { font-size: 11px; }
.is-up { color: var(--up); }
.is-down { color: var(--down); }

/* ================================================================== shell */

.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr var(--rail-r);
  grid-template-rows: var(--topbar-h) 1fr var(--status-h);
  grid-template-areas:
    "top top top"
    "left stage right"
    "status status status";
  height: 100%;
}

/* ================================================================ topbar */

.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
  height: 100%;
  align-items: center;
}

.logo { color: var(--accent); font-size: 15px; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; color: var(--text-bright); }
.brand-sub { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }

.topbar__search { flex: 1; max-width: 380px; }

.topbar__search input {
  width: 100%;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}
.topbar__search input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18); }

.topbar__layouts { display: flex; gap: 3px; }

.layout-btn {
  width: 32px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.layout-btn:hover { border-color: var(--line-strong); background: var(--bg-3); }
.layout-btn.is-active { border-color: var(--accent); background: rgba(59, 130, 246, 0.15); }

.layout-glyph {
  display: block;
  width: 15px;
  height: 12px;
  background-image: linear-gradient(var(--text-dim), var(--text-dim));
  background-repeat: no-repeat;
}
.layout-btn.is-active .layout-glyph { background-image: linear-gradient(var(--accent), var(--accent)); }

/* Each glyph is a hand-tuned set of background rectangles. */
.layout-glyph--1 { background: var(--text-dim); }
.layout-glyph--2h { background: linear-gradient(90deg, var(--text-dim) 0 46%, transparent 46% 54%, var(--text-dim) 54% 100%); }
.layout-glyph--2v { background: linear-gradient(180deg, var(--text-dim) 0 46%, transparent 46% 54%, var(--text-dim) 54% 100%); }
.layout-glyph--3 {
  background:
    linear-gradient(90deg, var(--text-dim) 0 46%, transparent 46% 54%, var(--text-dim) 54% 100%),
    linear-gradient(180deg, transparent 0 46%, var(--bg-1) 46% 54%, transparent 54% 100%);
}
.layout-glyph--4 {
  background:
    linear-gradient(90deg, var(--text-dim) 0 46%, transparent 46% 54%, var(--text-dim) 54% 100%),
    linear-gradient(180deg, var(--text-dim) 0 46%, transparent 46% 54%, var(--text-dim) 54% 100%);
  background-blend-mode: multiply;
}
.layout-btn.is-active .layout-glyph--1,
.layout-btn.is-active .layout-glyph--2h,
.layout-btn.is-active .layout-glyph--2v,
.layout-btn.is-active .layout-glyph--3,
.layout-btn.is-active .layout-glyph--4 { background-color: transparent; }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text);
}
.chip:hover { border-color: var(--line-strong); }

/* Studies drawer: the right rail collapses to zero width so the charts get the
   space; the inspector keeps its own width and slides out (grid track
   interpolation is supported in Chrome 107+, worst case it snaps). */
.app { transition: grid-template-columns 0.18s ease; }
.app.inspector-collapsed { grid-template-columns: var(--rail-w) 1fr 0px; }
.app.inspector-collapsed .rail--right { border-left-color: transparent; overflow: hidden; }
.app.inspector-collapsed .rail--right .inspector { min-width: var(--rail-r); }
.app.inspector-collapsed #inspector-chip { color: var(--text-dim); border-color: var(--line); }

/* Watchlist drawer: same treatment for the left rail. The combined rule must
   come last so both rails can be collapsed at once. */
.app.watchlist-collapsed { grid-template-columns: 0px 1fr var(--rail-r); }
.app.watchlist-collapsed .rail--left { border-right-color: transparent; overflow: hidden; }
.app.watchlist-collapsed .rail--left > * { min-width: var(--rail-w); }
.app.watchlist-collapsed #watchlist-chip { color: var(--text-dim); border-color: var(--line); }
.app.watchlist-collapsed.inspector-collapsed { grid-template-columns: 0px 1fr 0px; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 0 0 rgba(8, 153, 129, 0.5);
}
.dot[data-state="live"] { background: var(--up); animation: pulse 2.4s infinite; }
.dot[data-state="connecting"] { background: var(--warn); }
.dot[data-state="down"] { background: var(--down); }
.dot[data-state="idle"] { background: var(--text-dim); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(8, 153, 129, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(8, 153, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 153, 129, 0); }
}

/* ================================================================== rails */

.rail {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  overflow: hidden;
}
.rail--left { grid-area: left; border-right: 1px solid var(--line); }
.rail--right { grid-area: right; border-left: 1px solid var(--line); overflow-y: auto; }

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.rail__head h2 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
}
.rail__foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}
.rail__foot a { color: var(--accent); text-decoration: none; font-size: 11px; }
.rail__foot a:hover { text-decoration: underline; }

/* ============================================================== watchlist */

.watchlist { overflow-y: auto; flex: 1; }
.wl { list-style: none; margin: 0; padding: 0; }

.wl__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.wl__row:hover { background: var(--bg-2); }

.wl__sym {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.wl__ticker { font-weight: 600; color: var(--text-bright); font-size: 12px; }
.wl__base { font-size: 10px; }
.wl__price { font-family: var(--mono); font-size: 11px; transition: color 0.2s; }
.wl__chg { font-family: var(--mono); font-size: 10px; color: var(--text-dim); min-width: 46px; text-align: right; }
.wl__del {
  background: none;
  border: 0;
  color: var(--text-dim);
  opacity: 0;
  font-size: 10px;
  padding: 2px 4px;
}
.wl__row:hover .wl__del { opacity: 1; }
.wl__del:hover { color: var(--down); }

/* ================================================================== stage */

.stage { grid-area: stage; overflow: hidden; background: var(--bg); }

.workspace {
  display: grid;
  gap: 1px;
  background: var(--line);
  height: 100%;
  width: 100%;
}

.grid--cols-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.grid--cols-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.grid--rows-2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.grid--triple { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.grid--triple .panel:first-child { grid-row: span 2; }
.grid--quad { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  min-width: 0;
  min-height: 0;
  position: relative;
  border: 1px solid transparent;
}
.panel.is-active { border-color: rgba(59, 130, 246, 0.4); }

.panel.is-maximized {
  position: fixed;
  inset: var(--topbar-h) 0 var(--status-h) 0;
  z-index: 60;
}

.panel__body {
  flex: 1;
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 0;
}

.panel__plot { position: relative; min-height: 0; min-width: 0; display: flex; }
.panel__chart { flex: 1; min-width: 0; min-height: 0; }

/* --------------------------------------------------------------- header -- */

.phead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  min-height: 30px;
  overflow: hidden;
}

.phead__id { display: flex; align-items: center; gap: 6px; }
.phead__slot {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 9px;
  font-family: var(--mono);
}
.phead__symbol {
  background: none;
  border: 0;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-bright);
  letter-spacing: 0.2px;
}
.phead__symbol:hover { background: var(--bg-3); }
.phead__exch { font-size: 9px; color: var(--text-dim); }

.phead__tfs { display: flex; gap: 1px; }
.tf {
  background: none;
  border: 0;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.tf:hover { background: var(--bg-3); color: var(--text); }
.tf.is-active { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }

.phead__ohlc {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.phead__spacer { flex: 1; }

.phead__badges { display: flex; gap: 3px; overflow: hidden; }
.badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--text-dim);
  white-space: nowrap;
}

.phead__actions { display: flex; gap: 2px; }

.icon-btn {
  background: none;
  border: 0;
  border-radius: 3px;
  padding: 2px 5px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.3;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text-bright); }

/* ------------------------------------------------------------ draw tools -- */

.dtools {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 2px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.dtools::-webkit-scrollbar { display: none; }

.dtool {
  background: none;
  border: 0;
  border-radius: 3px;
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 12px;
  flex: 0 0 auto;
}
.dtool:hover { background: var(--bg-3); color: var(--text-bright); }
.dtool.is-active { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.dtools__sep { height: 1px; background: var(--line); margin: 3px 2px; flex: 0 0 auto; }

/* --------------------------------------------------------------- legend -- */

.panel__legend {
  position: absolute;
  top: 4px;
  left: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
  font-size: 10.5px;
  font-family: var(--mono);
  z-index: 3;
  max-width: calc(100% - 70px);
}
.lg { white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }
.lg--sym { font-weight: 700; color: var(--text-bright); }
.lg--iv { color: var(--text-dim); }
.lg--bias { padding: 0 4px; border-radius: 3px; background: rgba(11, 15, 23, 0.6); }

.panel__smc {
  position: absolute;
  top: 4px;
  right: 74px;
  z-index: 3;
  pointer-events: none;
}

.smcdash {
  border-collapse: collapse;
  font-size: 9.5px;
  background: rgba(11, 15, 23, 0.78);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.smcdash td { padding: 2px 6px; }
.smcdash__k { color: var(--text-dim); }
.smcdash__v { font-family: var(--mono); color: var(--text); text-align: right; }

.panel__state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 17, 0.72);
  z-index: 5;
  font-size: 12px;
  color: var(--text-dim);
}

/* The display rule above overrides the UA's [hidden] { display: none }, so the
   busy overlay would never disappear once shown without this. */
.panel__state[hidden] { display: none; }

.skeleton { padding: 14px; color: var(--text-dim); font-size: 12px; }

/* ============================================================= inspector */

.insp { padding: 0 0 18px; }
.insp__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-1);
  z-index: 2;
}
.insp__slot { color: var(--text-dim); font-size: 10px; font-family: var(--mono); }
.insp__sym { font-weight: 700; color: var(--text-bright); }
.insp__tf { color: var(--accent); font-size: 11px; font-family: var(--mono); }
.insp__head .icon-btn { margin-left: auto; }

.insp__section { padding: 10px; border-bottom: 1px solid var(--line); }
.insp__section h3 {
  margin: 0 0 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
}

.insp__group { border-bottom: 1px solid var(--line); }
.insp__group > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.insp__group > summary::-webkit-details-marker { display: none; }
.insp__group > summary::before {
  content: "▸";
  color: var(--text-dim);
  font-size: 9px;
  transition: transform 0.15s;
}
.insp__group[open] > summary::before { transform: rotate(90deg); }
.insp__group > summary:hover { background: var(--bg-2); }
.insp__count { margin-left: auto; font-size: 10px; }

.insp__items { padding: 0 6px 8px; }

.insp__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.insp__item:hover { background: var(--bg-2); }
.insp__item input { accent-color: var(--accent); margin: 0; }

.insp__swatch {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--swatch);
  flex: 0 0 auto;
}
.insp__text { display: flex; flex-direction: column; min-width: 0; }
.insp__label { font-size: 11.5px; color: var(--text); }
.insp__params { font-size: 9.5px; color: var(--text-dim); font-family: var(--mono); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 11px; }
.kv label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv input[type="number"] {
  width: 64px;
  padding: 3px 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
}
.kv--readonly span { color: var(--text-dim); }
.kv--readonly b { font-family: var(--mono); font-weight: 500; text-align: right; }

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 5px;
  font-size: 11px;
  color: #93c5fd;
  text-decoration: none;
}
.btn:hover { background: rgba(59, 130, 246, 0.26); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
  margin-left: 4px;
}
.btn--ghost:hover { border-color: var(--line-strong); color: var(--text); }

/* -------------------------------------------------------------- drawings */

.dlist { list-style: none; margin: 0 0 8px; padding: 0; }
.dlist__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  font-size: 11px;
}
.dlist__tool {
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 3px;
}
.dlist__meta { margin-left: auto; font-size: 10px; }

/* ============================================================= status bar */

.statusbar {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--text-dim);
}
.statusbar__spacer { margin-left: auto; }
.statusbar__item { white-space: nowrap; }

/* ================================================================ palette */

.palette { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: 70px; }
.palette[hidden] { display: none; }
.palette__scrim { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.6); backdrop-filter: blur(2px); }
.palette__panel {
  position: relative;
  width: min(760px, 92vw);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.palette__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
}
.palette__body { overflow-y: auto; }

/* --------------------------------------------------------------- picker */

.picker__search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.picker__search input {
  flex: 1;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
}
.picker__search input:focus { border-color: var(--accent); }
kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-dim);
}
.picker__hint { padding: 6px 12px; font-size: 10.5px; color: var(--text-dim); }
.picker__empty { padding: 18px 12px; color: var(--text-dim); font-size: 12px; }

.symlist { list-style: none; margin: 0; padding: 0; }
.symlist__btn {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  text-align: left;
}
.symlist__btn:hover { background: var(--bg-3); }
.symlist__sym { font-weight: 600; color: var(--text-bright); font-size: 12px; }
.symlist__base { font-size: 10.5px; }
.symlist__vol { font-family: var(--mono); font-size: 10.5px; }

/* ---------------------------------------------------------------- status */

.status__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
}
.stat { background: var(--bg-1); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.stat__k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); }
.stat__v { font-size: 12px; font-family: var(--mono); display: flex; align-items: center; gap: 6px; }

.status__section { padding: 12px; border-top: 1px solid var(--line); }
.status__section h3 {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
}

.tbl { width: 100%; border-collapse: collapse; font-size: 11px; font-family: var(--mono); }
.tbl th {
  text-align: left;
  padding: 4px 8px;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-transform: uppercase;
}
.tbl td { padding: 4px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.06); }
.tbl td:first-child { font-family: var(--sans); }

/* ================================================================= toast */

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 70vw;
}
.toast--error { border-color: rgba(242, 54, 69, 0.6); color: #fca5a5; }
.toast--ok { border-color: rgba(8, 153, 129, 0.6); color: #6ee7b7; }

/* ============================================================ scrollbars */

* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.25) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.4); background-clip: content-box; }

/* ============================================================ responsive */

@media (max-width: 1280px) {
  :root { --rail-w: 190px; --rail-r: 250px; }
  .phead__tfs .tf:nth-child(n + 8) { display: none; }
}

@media (max-width: 1000px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "stage" "status";
  }
  .rail { display: none; }
}
