/* GENERATED from src/brand/brand.json by sitegen/styles.py. Do not edit. */
:root {
  --iris: #6C4EE0;
  --iris-deep: #4429A6;
  --iris-wash: #F3F0FE;
  --iris-line: #D8CFFA;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --surface2: #F4F4F8;
  --ink: #1B1A2E;
  --ink-soft: #5F5B75;
  --ink-faint: #7C798C;
  --hair: #E6E3F0;
  --hair-strong: #D4D0E2;
  --ok: #17795A;
  --ok-wash: #E4F1EC;
  --warn: #8A6100;
  --warn-wash: #F5EEDC;
  --danger: #B3302B;
  --danger-wash: #F8E7E6;
  --focus: 0 0 0 2px #FFFFFF, 0 0 0 4px rgba(108,78,224,.55);
  --sh1: 0 1px 2px rgba(27,26,46,.06);
  --sh2: 0 4px 12px rgba(27,26,46,.10);
  --sh-pop: 0 8px 28px rgba(27,26,46,.16);
  --drop: 0 3px 0 #1B1A2E;
  --bw: 1px;
  --r1: 4px;
  --r2: 6px;
  --r3: 10px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --row-h: 32px;
  --bar-h: 18px;
  --toolbar-h: 52px;
  --pane-head-h: 40px;
  --status-h: 28px;
  --table-min: 320px;
  --wrap: 1560px;
  --icon-stroke: 1.75;
  --line-height: 1.5;
  --font-latin: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --font-cjk: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, 'Noto Sans JP', 'PingFang TC', 'Microsoft JhengHei UI', 'Noto Sans TC';
}
:root:lang(ko) { --font-cjk: 'Apple SD Gothic Neo', Pretendard, 'Malgun Gothic', 'Noto Sans KR'; }
:root:lang(ja) { --font-cjk: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, 'Noto Sans JP'; }
:root:lang(zh-Hant) { --font-cjk: 'PingFang TC', 'Microsoft JhengHei UI', 'Noto Sans TC'; }
:root:lang(zh-Hans) { --font-cjk: 'PingFang SC', 'Microsoft YaHei UI', 'Noto Sans SC'; }


/* ---- 10-base.css ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Never flex or grid. AdSense Auto Ads inject <ins> elements as siblings of
     .app, and a flex or grid body lays them out as items and collapses the
     page. Layout starts one level in. */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin), var(--font-cjk), sans-serif;
  font-size: 15px;
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 var(--s2); font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.25rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p { margin: 0 0 var(--s3); }

a { color: var(--iris-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--iris); }

svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

code, kbd { font-family: var(--font-mono); font-size: .88em; }
kbd {
  padding: 1px 5px;
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r1);
  background: var(--surface-2);
  white-space: nowrap;
}

/* Dates, durations and any other figure that sits in a column: proportional
   digits make a column of numbers ragged and much harder to scan. */
.num, td.n, th.n, .date, input[type="date"], input[type="number"] {
  font-variant-numeric: tabular-nums;
}

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r1); }

.grow { flex: 1 1 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* --- prose (help, about, legal) ------------------------------------------ */

.prose { max-width: 66ch; padding: var(--s5) 0 var(--s7); }
.prose h1 { font-size: 1.5rem; margin-bottom: var(--s4); }
.prose h2 { margin: var(--s6) 0 var(--s2); }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-left: var(--s5); }
.prose li { margin-bottom: var(--s1); }

.prose table {
  width: 100%;
  margin: 0 0 var(--s5);
  border-collapse: collapse;
  font-size: .92rem;
}
.prose th, .prose td {
  padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: var(--bw) solid var(--hair);
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; color: var(--ink-soft); }

/* A wide table must scroll inside itself rather than pushing the page sideways.
   Three columns of CJK column names overflow a phone every time. */
.prose > table { display: block; overflow-x: auto; }

.notice {
  padding: var(--s3) var(--s4);
  border: var(--bw) solid var(--warn);
  border-radius: var(--r2);
  background: var(--warn-wash);
  color: var(--warn);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---- 20-layout.css ---- */

.app {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s4);
}
.app.narrow { max-width: 760px; }

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

.site-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--toolbar-h);
  padding: var(--s2) 0;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brandmark .mark { display: block; border-radius: var(--r2); }
.wordmark { font-size: .98rem; }

.app-head { gap: var(--s2); flex-wrap: wrap; }

.proj-name {
  min-width: 8ch;
  max-width: 28ch;
  flex: 0 1 auto;
  padding: var(--s1) var(--s2);
  border: var(--bw) solid transparent;
  border-radius: var(--r1);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.proj-name:hover { border-color: var(--hair); }
.proj-name:focus { border-color: var(--iris-line); background: var(--surface); outline: none; box-shadow: var(--focus); }

/* --- intro strip --------------------------------------------------------- */

.intro { padding: var(--s2) 0 var(--s4); }
.intro h1 { font-size: 1.15rem; margin-bottom: var(--s1); }
.intro p { margin: 0; max-width: 74ch; color: var(--ink-soft); font-size: .92rem; }

/* --- crawlable feature list --------------------------------------------- */

.features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font-size: .82rem;
}
.features li::before { content: "·"; margin-right: var(--s2); }
.features li:first-child::before { content: none; }

/* --- ad zone ------------------------------------------------------------- */

/* Zero layout shift: the spacer has no height until an ad iframe actually
   paints, so an empty slot moves nothing. */
.ad-zone { max-width: var(--wrap); margin: var(--s6) auto 0; padding: 0 var(--s4); }
.ad-spacer { height: 0; }
.ad-label {
  height: 0;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ad-zone:has(.ad-slot iframe) .ad-spacer { height: 280px; }
.ad-zone:has(.ad-slot iframe) .ad-label { height: auto; margin-bottom: var(--s1); }

/* --- footer -------------------------------------------------------------- */

.site-foot {
  margin-top: var(--s6);
  padding: var(--s5) 0 var(--s6);
  border-top: var(--bw) solid var(--hair);
  color: var(--ink-soft);
  font-size: .84rem;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s3); }
.foot-nav a { color: var(--ink-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--iris-deep); text-decoration: underline; }
.site-foot .claim { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); color: var(--ink); }
.site-foot .claim .i { width: 16px; height: 16px; color: var(--ok); }
.site-foot .fine { margin: 0 0 var(--s1); color: var(--ink-faint); font-size: .78rem; }

@media (max-width: 700px) {
  .app, .ad-zone { padding: 0 var(--s3); }
  .wordmark { display: none; }
  .app-head .proj-name { order: 10; flex-basis: 100%; max-width: none; }
}


/* ---- 30-controls.css ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 32px;
  padding: 0 var(--s3);
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-faint); }
.btn:active { background: var(--iris-wash); }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.btn.sm { height: 26px; padding: 0 var(--s2); }
.btn-icon { padding: 0; width: 32px; justify-content: center; }
.btn-icon.sm { width: 26px; }

/* One brutalist gesture, on exactly one element. Applied everywhere it would
   just be a different design; applied here it reads as a signature and puts the
   weight on the action people came for. */
.btn-primary {
  border-color: var(--ink);
  background: var(--iris);
  color: var(--surface);
  box-shadow: var(--drop);
  transform: translateY(-1px);
}
.btn-primary:hover { background: var(--iris-deep); border-color: var(--ink); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

.tool-row { display: flex; align-items: center; gap: var(--s2); }

.ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 2px var(--s2);
  border: var(--bw) solid transparent;
  border-radius: var(--r1);
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}
.ghost:hover { border-color: var(--hair); color: var(--ink); }
.ghost .i { width: 15px; height: 15px; }

/* --- segmented control --------------------------------------------------- */

.seg {
  display: inline-flex;
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r2);
  background: var(--surface);
  overflow: hidden;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  height: 28px;
  padding: 0 var(--s3);
  border: 0;
  border-right: var(--bw) solid var(--hair);
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}
.seg-btn:last-child { border-right: 0; }
.seg-btn .i { width: 16px; height: 16px; }
.seg-btn:hover { background: var(--surface-2); color: var(--ink); }
.seg-btn.is-on { background: var(--iris-wash); color: var(--iris-deep); font-weight: 500; }
.seg-btn[disabled] { opacity: .4; pointer-events: none; }
.seg.sm .seg-btn { height: 24px; padding: 0 var(--s2); font-size: .8rem; }

/* --- language chips ------------------------------------------------------ */

.lang-switch { display: flex; gap: var(--s1); flex: none; }
.lang-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 var(--s2);
  border: var(--bw) solid var(--hair);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .78rem;
  text-decoration: none;
}
.lang-chip:hover { border-color: var(--iris-line); background: var(--iris-wash); color: var(--iris-deep); }
.lang-chip.is-current {
  border-color: var(--iris-line);
  background: var(--iris-wash);
  color: var(--iris-deep);
  font-weight: 500;
}

/* --- form fields --------------------------------------------------------- */

input[type="text"], input[type="date"], input[type="number"], select, textarea {
  height: 28px;
  padding: 0 var(--s2);
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r1);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}
textarea { height: auto; padding: var(--s2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--iris); box-shadow: var(--focus); }

label { font-size: .84rem; color: var(--ink-soft); }

/* Affordances that only work with JS: hidden until the bootstrap adds .js, so
   the handful of visitors without it never see a dead button. */
html:not(.js) .js-only { display: none !important; }


/* ---- 40-chart.css ---- */

/* CHART CSS CARRIES INTERACTION STATE ONLY.
 *
 * Every colour, stroke and font inside a chart is written by the renderer as a
 * presentation attribute or into the chart's own <style> block. This file may
 * only express :hover, :focus-visible, .is-selected, .is-dragging and cursor.
 *
 * The reason is the export path: a chart is serialized and loaded through a
 * blob URL, which is an isolated document with no access to this stylesheet. A
 * rule here that carried paint would look right on screen and vanish from every
 * PNG and PDF. Keeping paint out of CSS also means a hover state can never leak
 * into an export — hover a bar while clicking Export and the image is clean.
 *
 * See docs/DESIGN-SYSTEM.md and docs/EXPORT.md.
 */

.chart-host { display: block; min-width: 0; }
.chart-host svg { display: block; max-width: none; }

.chart-scroll {
  overflow: auto;
  /* A horizontal swipe on the timeline must not trigger browser-back. */
  overscroll-behavior-x: contain;
}

.chart .bar,
.chart .node { cursor: grab; }
.chart .bar:hover,
.chart .node:hover { opacity: .82; }
.chart .bar.is-selected,
.chart .node.is-selected { opacity: 1; }
.chart .is-dragging { cursor: grabbing; opacity: .6; }

.chart .handle { cursor: ew-resize; opacity: 0; }
.chart .bar-group:hover .handle { opacity: 1; }

/* Touch pointers get no resize handles at all — no affordance to fail on. A tap
   opens the task editor instead, which is the better interaction on a phone
   than aiming at a 6px target. */
@media (pointer: coarse) {
  .chart .handle { display: none; }
  .chart .bar, .chart .node { cursor: pointer; }
}

.chart :focus-visible { outline: none; }
.chart .focus-ring { display: none; }
.chart :focus-visible + .focus-ring { display: block; }

/* Windows High Contrast rewrites every fill to a system colour, which turns a
   themed chart into a flat silhouette. Opt the chart out; the surrounding UI
   stays opted in, where forced colours genuinely help. */
@media (forced-colors: active) {
  .chart svg { forced-color-adjust: none; }
}


/* ---- 50-editor.css ---- */

.workspace {
  display: grid;
  grid-template-columns: clamp(var(--table-min), 34%, 560px) 6px 1fr;
  /* A fixed height, not 100svh: the page below scrolls normally, so the ad and
     the footer live in ordinary flow and can never push or shift the chart. */
  height: clamp(520px, 68svh, 880px);
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r3);
  background: var(--surface);
  overflow: hidden;
}

.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.pane-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: var(--pane-head-h);
  padding: 0 var(--s3);
  border-bottom: var(--bw) solid var(--hair);
  background: var(--surface-2);
}
.pane-title { margin: 0; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.pane-title .count {
  margin-left: var(--s1);
  padding: 1px var(--s2);
  border-radius: 999px;
  background: var(--iris-wash);
  color: var(--iris-deep);
  font-weight: 500;
}
.pane-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pane-tasks { border-right: 0; }

.splitter { background: var(--hair); cursor: col-resize; }
.splitter:hover, .splitter:focus-visible { background: var(--iris-line); }

/* --- task grid ----------------------------------------------------------- */

.grid { width: 100%; border-collapse: collapse; font-size: .85rem; }
.grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 26px;
  padding: 0 var(--s2);
  border-bottom: var(--bw) solid var(--hair-strong);
  background: var(--surface);
  color: var(--ink-faint);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.grid td {
  height: var(--row-h);
  padding: 0 var(--s2);
  border-bottom: var(--bw) solid var(--hair);
  white-space: nowrap;
}
.grid tr:hover td { background: var(--surface-2); }
.grid tr.is-selected td { background: var(--iris-wash); }
.grid tr.is-summary td { font-weight: 600; }
.grid tr.is-critical .cell-name { box-shadow: inset 2px 0 0 var(--danger); }
.grid td.n { text-align: right; }

/* The row height must match --row-h exactly: the SVG chart draws its rows on
   the same rhythm, and the two panes scroll together. A padding change here
   silently desynchronises row 40 from bar 40. */
.grid .cell input {
  width: 100%;
  height: calc(var(--row-h) - 8px);
  border-color: transparent;
  background: transparent;
}
.grid .cell input:hover { border-color: var(--hair); }
.grid .cell input:focus { border-color: var(--iris); background: var(--surface); }
.grid .cell-name input { font-weight: inherit; }
.grid .indent { display: inline-block; }
.grid .row-mark { width: 14px; color: var(--ink-faint); }

/* Row actions appear on hover or when something in the row has focus. Always
   visible they would be permanent clutter on every row; hidden behind a
   right-click they would be undiscoverable. */
.grid .row-actions { text-align: right; white-space: nowrap; padding-right: var(--s1); }
.grid .row-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--r1);
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  opacity: 0;
  transition: opacity .1s;
}
.grid .row-btn .i { width: 15px; height: 15px; }
/* The chevron glyph points down, so +90deg points it left and -90deg right. */
.grid .row-btn.rot-left .i { transform: rotate(90deg); }
.grid .row-btn.rot-right .i { transform: rotate(-90deg); }
.grid tr:hover .row-btn,
.grid tr:focus-within .row-btn { opacity: 1; }
.grid .row-btn:hover { background: var(--iris-wash); color: var(--iris-deep); }
.grid .row-btn:last-child:hover { background: var(--danger-wash); color: var(--danger); }
/* Touch has no hover, so there is nothing to reveal — show them outright. */
@media (pointer: coarse) { .grid .row-btn { opacity: 1; } }

.grid .cell-predecessors input { font-family: var(--font-mono); font-size: .78rem; }

.grid .empty-row td {
  height: auto;
  padding: var(--s4) var(--s3);
  color: var(--ink-faint);
}

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

.statusbar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--status-h);
  padding: var(--s1) var(--s1) var(--s1) 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
  border: var(--bw) solid var(--danger);
  border-radius: var(--r2);
  background: var(--danger-wash);
  color: var(--danger);
  font-size: .86rem;
}
.banner[hidden] { display: none; }

/* --- tablet: stack the panes -------------------------------------------- */

@media (max-width: 1099px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 40svh 6px 1fr;
    height: clamp(560px, 88svh, 1000px);
  }
  .splitter { cursor: row-resize; }
}

/* --- phone: one view at a time ------------------------------------------ */

@media (max-width: 767px) {
  .workspace {
    display: block;
    height: auto;
    overflow: visible;
  }
  .pane-tasks { border-bottom: var(--bw) solid var(--hair); }
  .pane-body { max-height: 60svh; }
  .splitter { display: none; }
  body.view-gantt .pane-tasks,
  body.view-pert .pane-tasks { display: none; }
  body.view-tasks .pane-chart { display: none; }
}


/* ---- 60-dialogs.css ---- */

.sheet-root:empty { display: none; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(27, 26, 46, .32);
}

.sheet {
  position: fixed;
  z-index: 41;
  max-width: min(560px, calc(100vw - 2 * var(--s4)));
  max-height: min(80svh, 720px);
  overflow: auto;
  padding: var(--s4);
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r3);
  background: var(--surface);
  box-shadow: var(--sh-pop);
}
.sheet.centered { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.sheet h2 { margin-bottom: var(--s3); font-size: 1rem; }
.sheet .row { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.sheet .row > label { min-width: 8ch; }
.sheet .actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); }
.sheet .hint { margin: 0 0 var(--s3); color: var(--ink-faint); font-size: .8rem; }

.popover {
  position: absolute;
  z-index: 42;
  min-width: 240px;
  padding: var(--s3);
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r2);
  background: var(--surface);
  box-shadow: var(--sh-pop);
}

/* The filename preview is what replaces an explanation of the export options:
   tick "save as two files" and it visibly becomes two names. */
.filename-preview {
  margin: var(--s3) 0 0;
  padding: var(--s2);
  border-radius: var(--r1);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .76rem;
  word-break: break-all;
}

.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.theme-card {
  padding: var(--s2);
  border: var(--bw) solid var(--hair-strong);
  border-radius: var(--r2);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.theme-card:hover { border-color: var(--iris-line); }
.theme-card.is-on { border-color: var(--iris); background: var(--iris-wash); }
.theme-card svg { display: block; width: 100%; height: auto; border-radius: var(--r1); }
.theme-card span { display: block; margin-top: var(--s1); font-size: .78rem; color: var(--ink-soft); }

.import-sheet { width: min(820px, calc(100vw - 32px)); }
.import-sheet .chips { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s3); }
.import-sheet .chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: .78rem;
  color: var(--ink-soft);
}
.import-sheet .chip select { height: 24px; font-size: .78rem; }
.import-sheet .preview-table th select { width: 100%; height: 24px; font-size: .74rem; }
.import-sheet .preview-table th .src {
  margin-top: 2px;
  color: var(--ink-faint);
  font-weight: 400;
  font-size: .7rem;
}

.preview-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.preview-table th, .preview-table td {
  padding: var(--s1) var(--s2);
  border-bottom: var(--bw) solid var(--hair);
  text-align: left;
  white-space: nowrap;
}
.preview-wrap { max-height: 240px; overflow: auto; border: var(--bw) solid var(--hair); border-radius: var(--r1); }

.toasts {
  position: fixed;
  left: 50%;
  bottom: var(--s5);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transform: translateX(-50%);
}
.toast {
  padding: var(--s2) var(--s4);
  border: var(--bw) solid var(--hair-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--sh-2);
  font-size: .84rem;
}
.toast.is-warn { border-color: var(--warn); background: var(--warn-wash); color: var(--warn); }
.toast.is-danger { border-color: var(--danger); background: var(--danger-wash); color: var(--danger); }

.dropzone-on { outline: 2px dashed var(--iris); outline-offset: -6px; background: var(--iris-wash); }


/* ---- 70-print.css ---- */

/* Printing gives you the chart on paper, which is a real use for this tool.
 *
 * This is NOT a second layout — the PDF export is the print path, and a second
 * page-layout engine would be a second set of bugs (DECISIONS.md). All this
 * does is take the chrome away and let the chart use the page. */

@media print {
  .site-head,
  .ad-zone,
  .statusbar,
  .foot-nav,
  .features,
  .banner,
  .toasts,
  .sheet-root,
  .splitter,
  .pane-head { display: none !important; }

  body { background: var(--surface); }
  .app { max-width: none; padding: 0; }

  .workspace {
    display: block;
    height: auto;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .pane-body { overflow: visible; max-height: none; }

  /* The task table is printed as part of the chart SVG, which carries its own
     name column — printing both would duplicate every row. */
  .pane-tasks { display: none; }

  .site-foot { margin: 0; border: 0; font-size: .7rem; }
  a[href]::after { content: none; }
}
