/* Sunday. Light theme only: calm, white, one marigold accent; colour is kept for what needs attention. */
:root {
  color-scheme: light only;
  --ink: #1d2126; --muted: #646b75; --line: #e6e3dc; --bg: #f8f7f4; --card: #fff;
  --accent: #f2a900; --accent-ink: #1d2126; --accent-soft: #fff6dc; --accent-deep: #b97f00;
  --red: #b3261e; --red-soft: #fdecea; --amber: #94590a; --amber-soft: #fdf1d8;
  --done: #4a5560; --todo: #e3e0d9; --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 2.2rem 0 .8rem; }
p { margin: 0 0 .8rem; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #000; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.bad { color: var(--red); font-weight: 600; }
.lead { font-size: 1.1rem; color: #3a4048; margin-bottom: 1.6rem; max-width: 60ch; }
.hint { color: var(--muted); font-size: .92rem; }
.h1-sub { font-weight: 400; color: var(--muted); font-size: 1.15rem; }
.crumb { margin-bottom: .5rem; font-size: .92rem; }
.crumb a::before { content: "\2190\00a0"; }

.preview { background: var(--ink); color: #fff; text-align: center; font-size: .86rem; line-height: 2rem; height: 2rem; padding: 0 1rem; position: sticky; top: 0; z-index: 25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-preview .sidebar { top: 2rem; height: calc(100vh - 2rem); }
.has-preview .shell { min-height: calc(100vh - 2rem); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.topbar { display: none; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1.4rem 1rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; padding: 0 .6rem; }
.tagline { color: var(--muted); font-size: .82rem; padding: 0 .6rem; margin: .1rem 0 1.4rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a, .me-link { display: block; padding: .5rem .6rem; border-radius: 8px; text-decoration: none; color: #333a42; border-left: 3px solid transparent; }
.sidebar nav a:hover, .me-link:hover { background: #f4f2ed; }
.sidebar nav a.on, .me-link.on { background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; color: var(--ink); }
.me { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; }
.who { padding: .6rem .6rem 0; margin-bottom: .5rem; }
.view-as { padding: 0 .6rem; display: grid; gap: .25rem; }
.view-as label { font-size: .8rem; color: var(--muted); }
.count { display: inline-block; min-width: 1.5em; padding: 0 .4em; text-align: center; border-radius: 999px; background: #eeebe4; color: #333a42; font-size: .78rem; font-weight: 600; }
.main { width: 100%; max-width: 880px; margin: 0 auto; padding: 1.6rem 2rem 5rem; }
.main.wide { max-width: 1180px; }
.main:focus { outline: none; }
section { margin-bottom: .5rem; }

.search, .inline-search { display: flex; gap: .5rem; }
.search { margin-bottom: 2rem; }
.search input { flex: 1; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfcbc2; border-radius: 8px; padding: .5rem .65rem; max-width: 100%; min-height: 2.5rem; }
textarea { width: 100%; min-height: 5rem; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--ink); padding: 0; }
input[type=file] { border: 1px dashed #cfcbc2; width: 100%; }
label { font-size: .92rem; font-weight: 600; display: grid; gap: .3rem; }
label.check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; background: #fff; }
legend { font-weight: 600; padding: 0 .4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; min-height: 2.5rem; padding: .45rem .95rem; border-radius: 8px; border: 1px solid #cfcbc2; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f4f2ed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e39f00; }
.btn-quiet { border-color: transparent; background: transparent; font-weight: 500; color: #333a42; text-decoration: underline; text-decoration-color: #c9c5bb; text-underline-offset: 3px; padding-inline: .55rem; }
.btn[disabled], .is-off { opacity: .45; cursor: default; pointer-events: none; }
.linklike { font: inherit; background: none; border: 0; padding: .5rem .6rem; color: #333a42; text-decoration: underline; cursor: pointer; }
.form-stack { display: grid; gap: 1.1rem; max-width: 640px; }
.form-stack .btn-primary { justify-self: start; }
.form-grid { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.form-grid label { flex: 1 1 180px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.short { width: 5.2rem; }
.row-edit { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.row-edit label { flex: 1 1 140px; }
.row-edit label:has(.short) { flex: 0 0 auto; }
.row-buttons { display: flex; }
.order-no { width: 1.6rem; height: 2.5rem; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.flash { background: var(--accent-soft); border: 1px solid #f3dc9a; border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1.4rem; }
.empty-note { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.empty, .signin { text-align: center; padding: 4rem 1rem; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin: 1rem 0 1.2rem; }
.toolbar label { display: inline-flex; align-items: center; gap: .5rem; }

.tabs { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--line); margin: 1rem 0 1.4rem; overflow-x: auto; }
.tabs a { padding: .55rem 0; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.chips, .switch { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a, nav.switch a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .92rem; color: #333a42; }
.chips a.on, nav.switch a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eeebe4; color: #333a42; white-space: nowrap; }
.pill-at_risk { background: var(--amber-soft); color: var(--amber); }
.pill-late { background: var(--red-soft); color: var(--red); }
.pill-published { background: #fff; border: 1px solid #cfcbc2; }
.reason { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: .7rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.reason-late { border-left-color: var(--red); background: var(--red-soft); }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.numbers div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.numbers strong { display: block; font-size: 2rem; line-height: 1.1; }
.numbers span { color: var(--muted); font-size: .92rem; }
.numbers .is-bad strong { color: var(--red); }

.tasks, .attention, .orders, .files, .comments, .notes, .outbox, .stages { list-style: none; margin: 0; padding: 0; }
.tasks, .attention, .orders, .notes, .outbox, .files { display: grid; gap: .6rem; }
.task, .attention li, .orders li, .notes li, .outbox li, .files li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.task, .files li, .notes li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.task.is-overdue, .kcard.is-overdue { border-left: 4px solid var(--red); }
.task-title { font-weight: 600; text-decoration: none; }
.task-title:hover, .attention a:hover { text-decoration: underline; }
.task p { margin: .1rem 0 0; }
.task-meta { font-size: .92rem; }
.tasks.is-done .task-title { font-weight: 500; }
.tasks-compact { margin: 0 0 1rem; }
.tasks-compact .task { padding: .6rem .9rem; }
.attention li a { text-decoration: none; }
.attention li .pill { margin-left: .4rem; }
.attention li p { margin: .3rem 0 0; }
.files li div { display: grid; }
.notes li.is-new { border-left: 4px solid var(--accent); }
.notes a { text-decoration: none; }
.notes .muted { white-space: nowrap; font-size: .86rem; }
.order-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.order-top a { text-decoration: none; font-size: 1.05rem; }
.order-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: .5rem 0 0; font-size: .92rem; }
.meter { display: block; height: 6px; background: var(--todo); border-radius: 999px; overflow: hidden; margin: .5rem 0 .3rem; }
.meter i { display: block; height: 100%; background: var(--done); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card { display: grid; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; font-size: .92rem; }
.card:hover { border-color: #bdb8ac; }
.card strong { font-size: 1.05rem; }
.card-code { font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }
td a:hover strong { text-decoration: underline; }
.num { text-align: right; }
.units td:first-child { min-width: 220px; max-width: 320px; }
.comp { display: flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .12rem 0; }
.comp-name { font-size: .72rem; font-weight: 700; color: var(--muted); width: 1.7rem; }
.comp-now { font-size: .86rem; color: var(--muted); }
.strip { display: inline-flex; gap: 3px; }
.strip i { width: 20px; height: 8px; border-radius: 3px; background: var(--todo); }
.strip i.done { background: var(--done); }
.strip i.current { background: #fff; box-shadow: inset 0 0 0 2px var(--done); }
.strip i.overdue { background: var(--red); }
.pager { display: flex; align-items: center; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.pager span:first-child { margin-right: auto; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.column { background: #f1efea; border-radius: var(--radius); padding: .7rem; display: grid; gap: .5rem; margin: 0; }
.column h2 { margin: 0 0 .2rem; font-size: .92rem; }
.kcard { display: grid; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; text-decoration: none; font-size: .86rem; }
.kcard:hover { border-color: #bdb8ac; }
.kcard .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .comp-name { display: inline; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1rem 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; }
.facts dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: .1rem 0 0; font-weight: 600; }
.component { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.component h2 { margin: 0 0 .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.component h2 .muted { font-weight: 400; font-size: .92rem; }
.stage { display: flex; gap: .8rem; padding: .55rem 0; position: relative; }
.stage:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 2rem; bottom: -.4rem; width: 2px; background: var(--todo); }
.stage.is-done:not(:last-child)::before { background: var(--done); }
.mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfcbc2; background: #fff; display: grid; place-items: center; font-size: .75rem; color: #fff; margin-top: .1rem; z-index: 1; }
.is-done > .mark { background: var(--done); border-color: var(--done); }
.is-current > .mark { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.is-overdue > .mark { border-color: var(--red); background: var(--red); }
.stage-main { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.stage.is-todo strong { font-weight: 500; }
.stage-when { font-size: .92rem; }
.stage-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: flex-start; }
.change { flex: 1 1 100%; }
.change summary { list-style: none; display: inline-flex; }
.change summary::-webkit-details-marker { display: none; }
.change[open] { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .9rem .9rem; }
.change form { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.upload { display: flex; gap: .8rem; align-items: end; margin-top: .8rem; flex-wrap: wrap; }
.upload label { flex: 1 1 240px; }
.comments li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.comments p { margin: 0 0 .2rem; }
.comment-form { display: grid; gap: .5rem; margin-top: 1rem; justify-items: start; }
.unit-page { max-width: 720px; }

.people { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1rem; }
.p-row { display: grid; grid-template-columns: minmax(150px, 2fr) repeat(5, 1fr); gap: .6rem; padding: .7rem 1rem; align-items: center; }
.p-head { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.person { border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person summary { cursor: pointer; list-style: none; }
.person summary::-webkit-details-marker { display: none; }
.person summary:hover { background: #faf9f6; }
.person[open] summary { background: #faf9f6; }
.person > ul, .person > p { margin: .6rem 1rem 1rem; }

.gantt-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gantt { min-width: 860px; }
.g-row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-label { padding: .6rem .9rem; display: grid; gap: .15rem; align-content: center; justify-items: start; border-right: 1px solid var(--line); font-size: .9rem; }
.g-label a { text-decoration: none; }
.g-track { position: relative; padding: .5rem 0; overflow: hidden; }
.g-head { font-size: .78rem; color: var(--muted); font-weight: 600; }
.g-head .g-track { height: 2rem; }
.g-week { position: absolute; top: .45rem; padding-left: 4px; border-left: 1px solid var(--line); white-space: nowrap; }
.g-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #f1efea; }
.g-line { position: relative; height: 22px; }
.g-name { position: absolute; left: 4px; top: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); z-index: 2; background: rgba(255, 255, 255, .8); padding: 0 2px; border-radius: 2px; }
.g-plan { position: absolute; top: 3px; height: 3px; background: #a9a59b; border-radius: 2px; }
.g-fore { position: absolute; top: 9px; height: 10px; background: var(--done); border-radius: 3px; }
.g-fore.is-risk { background: #d99411; }
.g-fore.is-late { background: var(--red); }
.g-deadline { position: absolute; top: 4px; bottom: 4px; width: 0; border-left: 2px dashed var(--ink); z-index: 2; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .86rem; color: var(--muted); margin-top: .8rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { position: static; display: inline-block; width: 22px; }
.legend .g-deadline, .legend .g-today { height: 14px; width: 2px; }

.rules { display: grid; gap: .6rem; }
.rule { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; }
.rule .switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: 1rem; }
.rule .channels { flex: 1 1 100%; display: flex; gap: 1.2rem; padding-left: 1.7rem; color: var(--muted); }
.rule .short { width: 4.2rem; }
.outbox summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.outbox summary::-webkit-details-marker { display: none; }
.mail-preview { margin-top: .8rem; padding: 1rem; background: var(--bg); border-radius: 8px; }
.choices { display: grid; gap: .6rem; border: 0; padding: 0; background: none; }
.choice { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: .25rem; }

.panel-wrap { position: fixed; inset: 0; z-index: 40; }
.panel-shade { position: absolute; inset: 0; background: rgba(29, 33, 38, .35); }
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); overflow-y: auto; padding: 1.2rem 1.5rem 3rem; box-shadow: -8px 0 30px rgba(0, 0, 0, .12); }
.panel:focus { outline: none; }
.panel-close { float: right; }
.panel .facts { grid-template-columns: repeat(2, 1fr); }
.panel h1 { font-size: 1.4rem; }
body.has-panel { overflow: hidden; }

@media (max-width: 860px) {
  .shell { display: block; }
  .topbar { display: flex; align-items: center; gap: .8rem; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1rem; position: sticky; top: 0; z-index: 20; }
  .menu-btn { font: inherit; font-weight: 600; background: #fff; border: 1px solid #cfcbc2; border-radius: 8px; min-height: 2.5rem; padding: 0 .8rem; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 30; transform: translateX(-100%); transition: transform .18s ease; height: auto; box-shadow: 8px 0 30px rgba(0, 0, 0, .12); }
  .sidebar:not(.is-open) { visibility: hidden; }
  .sidebar.is-open { transform: none; }
  .has-preview .topbar { top: 2rem; }
  .has-preview .sidebar { top: 0; height: auto; }
  .sidebar > .brand, .sidebar > .tagline { display: none; }
  .main { padding: 1.1rem 1rem 4rem; }
  h1 { font-size: 1.45rem; }
  .numbers, .facts, .pair { grid-template-columns: 1fr 1fr; }
  .task { flex-direction: column; align-items: stretch; }
  .task .btn { width: 100%; }
  .p-head { display: none; }
  .p-row { grid-template-columns: 1fr 1fr; }
  .p-row span:first-child { grid-column: 1 / -1; }
  .p-row span[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .86rem; }
  .units thead { display: none; }
  .units tr { display: grid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .units td { border: 0; padding: .25rem .9rem; max-width: none !important; }
  .units td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .comp-now { white-space: normal; }
  .comp { flex-wrap: wrap; }
  .panel { padding: 1rem 1rem 3rem; }
}
@media (max-width: 480px) { .pair { grid-template-columns: 1fr; } .search .btn { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Second pass: screens connected to the database */
.check-stack { display: grid; gap: .5rem; align-content: end; }
.row-actions .btn { display: flex; min-height: 2rem; padding-block: .1rem; }
tr.is-inactive td { color: var(--muted); }
.wide-input { width: 100%; }
.mail-frame { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: .8rem; }
.notes li > span:first-child { min-width: 0; }
.kcard > span:first-child { display: flex; gap: .4rem; align-items: baseline; }
.notes .muted { white-space: normal; }
.notes li > .muted { white-space: nowrap; }
.component + .component, form + .component, .component + form { margin-top: 1.4rem; }
@media (max-width: 860px) {
  .toolbar label { flex-wrap: wrap; max-width: 100%; }
  .toolbar select { width: 100%; }
  .notes li { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .gantt-wrap, .table-wrap, .board { max-width: 100%; }
}
/* Scrolling boxes are the containing block for anything positioned inside them, so nothing leaks past the page edge. */
.table-wrap, .gantt-wrap, .board, .tabs { position: relative; }

/* Connections */
h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .6rem 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; color: var(--done); }
.checklist li.is-bad { color: var(--red); }
.checklist li.is-bad::before { content: "!"; color: var(--red); }
.device { background: var(--accent-soft); border: 1px solid #f3dc9a; border-radius: var(--radius); padding: 1rem 1.2rem; }
.device ol { margin: 0 0 .8rem; padding-left: 1.3rem; display: grid; gap: .9rem; }
.device-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .12em; background: #fff; border: 1px solid #f3dc9a; border-radius: 8px; padding: .15rem .6rem; user-select: all; }
