/* D'Cosi operating interface — the "Rink" look (decision #4, 2026-09-26).
   Everything about the look lives in the tokens below. Change a colour or a font here and every page follows. */
:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #0f1319;          /* page */
  --card: #181e27;        /* panels */
  --card-2: #1f2631;      /* inset areas inside a panel (task detail, folder hover, file tiles) */
  --bar: #0b0e13;         /* top bar */
  --line: #2a3340;        /* hairlines */
  /* text */
  --ink: #eef1f5;
  --muted: #9aa5b5;
  --bar-ink: #f2f4f7;
  --bar-muted: #8792a3;
  /* accent + meaning */
  --accent: #7fc4ff;      /* ice blue: actions, the active tab, counts */
  --accent-ink: #0b1420;
  --this: #ff6b5e;        /* This week */
  --next: #7fc4ff;        /* Next up */
  --later: #8792a3;       /* Backlog / Recurring */
  --ok: #6fd39a; --warn: #f2c14e; --danger: #ff6b5e;
  --new: rgba(242,193,78,.16);
  /* type */
  --display: "Saira Condensed", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Saira", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* shape */
  --radius: 6px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
/* Carbon-fibre weave (Ted, 2026-09-26): pure CSS twill on the page ground, panels slightly translucent so it shows through
   the gutters. Tune --weave-light / --weave-dark for contrast, or set them to transparent to switch it off. */
:root { --weave-light: rgba(255,255,255,.105); --weave-dark: rgba(0,0,0,.6); --weave-size: 20px; }
body { background-color: var(--bg);
  background-image: linear-gradient(27deg, var(--weave-light) 5px, transparent 5px), linear-gradient(207deg, var(--weave-light) 5px, transparent 5px),
                    linear-gradient(27deg, var(--weave-dark) 5px, transparent 5px), linear-gradient(207deg, var(--weave-dark) 5px, transparent 5px);
  background-size: var(--weave-size) var(--weave-size); background-position: 0 0, 10px 0, 10px -10px, 0 10px; background-attachment: fixed; }
.card { background: rgba(24,30,39,.86); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
button, .btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); border-radius: 4px;
  padding: 7px 12px; cursor: pointer; line-height: 1.3; }
button:hover, .btn:hover { border-color: var(--muted); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.08); }
button.quiet { border-color: transparent; background: transparent; color: var(--muted); }
button.quiet:hover { color: var(--ink); border-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: var(--bg); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
textarea { min-height: 70px; width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* top bar — the document banner (decision #15): logo + tagline on carbon, ice rule, nav below. Same on every page. */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; color: var(--bar-ink); }
.band { display: flex; align-items: center; gap: 28px; padding: 14px 24px; min-height: 92px; background-color: var(--bar);
  background-image: linear-gradient(27deg, var(--weave-light) 5px, transparent 5px), linear-gradient(207deg, var(--weave-light) 5px, transparent 5px),
                    linear-gradient(27deg, var(--weave-dark) 5px, transparent 5px), linear-gradient(207deg, var(--weave-dark) 5px, transparent 5px);
  background-size: var(--weave-size) var(--weave-size); background-position: 0 0, 10px 0, 10px -10px, 0 10px;
  border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: flex-start; text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }
.brand .tm { font-size: 11px; line-height: 1; color: var(--bar-ink); margin-left: 3px; margin-top: 2px; font-family: var(--display); }
.band .tagline { font-family: "Saira", var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: .01em; white-space: nowrap; }
.band .tagline span { display: block; transform: skewX(-9deg); transform-origin: left bottom; }
.band .tagline .two { color: var(--accent); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; padding: 0 16px; background: var(--bar); border-bottom: 1px solid var(--line); position: relative; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.nav a { font-family: var(--display); font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bar-muted); padding: 10px 12px; position: relative; }
.nav a:hover { color: var(--bar-ink); text-decoration: none; }
.nav a.active { color: var(--bar-ink); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--accent); }
.who { margin-left: auto; color: var(--bar-muted); font-size: 14px; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.who span { color: var(--bar-ink); font-weight: 600; }
.who a { color: var(--bar-muted); }
.who a.help { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--bar-ink); }
.who a.help:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.who a.flag { margin-left: 4px; font-size: 15px; }

/* page */
.main { max-width: 1440px; margin: 0 auto; padding: 22px 20px 48px; }
.hello { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 18px; }
.hello h1 { font-size: 34px; line-height: 1; }
.hello .sub { color: var(--muted); }
.hello .tagline { margin-left: auto; text-align: right; font-family: "Saira", "Saira Condensed", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: .01em; font-style: oblique 9deg; font-stretch: 90%; }
.hello .tagline span { display: block; }
.hello .tagline .two { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.grid .card.wide { grid-column: 1 / -1; }
.home { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }
.home .col { display: grid; gap: 18px; min-width: 0; }
.home .card.wide { grid-column: 1 / -1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 16px; min-width: 0; }
.card h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.card h2 .count, .count { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; min-width: 26px; padding: 0 8px; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.card h2 .count.zero, .count.zero { background: var(--card-2); color: var(--muted); }
.card h2 .muted { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; }
.panel-tools { margin-left: auto; display: flex; gap: 6px; }
.empty { color: var(--muted); padding: 8px 0; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list li > a { color: var(--ink); font-weight: 500; }
.list li > a:hover { color: var(--accent); }
.list .when { color: var(--muted); font-size: 13px; white-space: nowrap; margin-left: auto; font-variant-numeric: tabular-nums; }
.person { font-family: var(--display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 2px; }
.person .muted.small { font-family: var(--body); font-weight: 500; letter-spacing: 0; text-transform: none; }

/* to-do rows on Home: deadline tag first */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; }
.todo .tag { font-family: var(--display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; color: var(--later); }
.todo .tag.week { color: var(--this); } .todo .tag.next { color: var(--next); }
.todo .t { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink); }
.todo .t:hover { color: var(--accent); text-decoration: none; }
.todo .d { color: var(--muted); font-size: 15px; margin-top: 2px; }
.todo .area { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.more { padding-top: 10px; border-top: 1px solid var(--line); }

/* operations area */
.subnav { display: flex; gap: 2px; flex-wrap: wrap; margin: -6px 0 16px; border-bottom: 1px solid var(--line); }
.subnav a { font-family: var(--display); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 12px 8px; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.subnav a.planned { opacity: .6; }
.tabs a.tab { text-decoration: none; }
.tabs a.tab:hover { text-decoration: none; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 16px; }
.ops-tile { display: block; background: var(--card-2); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; color: var(--ink); }
.ops-tile:hover { border-color: var(--accent); text-decoration: none; }
.ops-tile.planned { opacity: .7; }
.ops-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ops-name { font-family: var(--display); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); flex: 1; }
.ops-tile.planned .ops-name { color: var(--muted); }
.ops-desc { color: var(--muted); font-size: 15px; }

/* project headings on the Tasks tab */
.proj-head { display: flex; align-items: center; gap: 10px; padding: 12px 0 6px; margin-top: 6px; cursor: pointer; user-select: none; border-top: 1px solid var(--line); }
.proj-head:first-child { border-top: 0; margin-top: 0; }
.proj-head .caret { color: var(--muted); width: 14px; }
.proj-head .proj-name { font-family: var(--display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.proj-head.loose { cursor: default; } .proj-head.loose .proj-name { color: var(--muted); }
.proj-head:hover .proj-name { text-decoration: underline; } .proj-head.loose:hover .proj-name { text-decoration: none; }
.proj-body { padding-left: 24px; border-left: 2px solid var(--line); margin-left: 6px; }
.proj-body .task:first-child { border-top: 0; }

/* pills (priority, stage, area, role) */
.pill { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; background: var(--card-2); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.pill.week { color: var(--this); border-color: rgba(255,107,94,.4); } .pill.next { color: var(--next); border-color: rgba(127,196,255,.4); }
.pill.backlog { color: var(--muted); } .pill.recurring { color: var(--ok); border-color: rgba(111,211,154,.4); }
.pill.Business { color: #f2c14e; } .pill.Engineering { color: #7fc4ff; } .pill.Manufacturing { color: #6fd39a; } .pill.Marketing { color: #d3a6ff; } .pill.Testing { color: #ffb37f; }
.pill.Ideas { color: #f2c14e; }
.pill.role-vendor { color: #f2c14e; } .pill.role-customer { color: #7fc4ff; } .pill.role-partner { color: #6fd39a; } .pill.role-prospect { color: #d3a6ff; } .pill.role-other { color: var(--muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1; min-width: 160px; }

/* tasks page */
.task { border-top: 1px solid var(--line); padding: 10px 0; }
.task:first-child { border-top: 0; }
.task .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.task .title { font-weight: 600; flex: 1; min-width: 200px; cursor: pointer; font-size: 17px; }
.task.done .title { text-decoration: line-through; color: var(--muted); }
.task .meta { color: var(--muted); font-size: 14px; }
.task .detail { margin-top: 8px; padding: 12px 14px; background: var(--card-2); border-radius: 4px; border: 1px solid var(--line); }
.steps { list-style: none; margin: 6px 0; padding: 0; }
.steps li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.steps li.done span { text-decoration: line-through; color: var(--muted); }
.pill.this { background: var(--this); color: #1a0c0a; }
.tree-row { padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .tree-tw { color: var(--muted); width: 14px; display: inline-block; }
.btn.ghost { opacity: .55; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } }
.form label { display: inline-flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); } .form label input, .form label select { color: var(--ink); } .form label.tick { display: inline-flex !important; flex-direction: row; align-items: center; gap: 7px; color: var(--ink); } .form label.tick input { width: auto !important; flex: 0 0 auto; margin: 0; } .form label.tick { justify-content: flex-start; }
pre.small { white-space: pre-wrap; background: var(--card-2); padding: 8px; border-radius: 4px; max-height: 240px; overflow: auto; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.form .wide { grid-column: 1 / -1; }
.form > div:has(> .btn:only-child), .form > div:has(> button:only-child) { align-self: end; }   /* a lone button in a form sits on the input line, not the label line (Ted 2026-10-13) */
.table.mrates input { width: 110px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* library */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.file { background: var(--card-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.file:hover { border-color: var(--muted); text-decoration: none; }
.file .thumb { height: 120px; background: var(--bg) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.file .name { padding: 8px 10px 2px; font-size: 14px; font-weight: 600; word-break: break-word; }
.file .sub { padding: 0 10px 8px; font-size: 12px; color: var(--muted); }
.file.new { outline: 2px solid var(--warn); outline-offset: -2px; }
.file .open { color: inherit; display: block; } .file .open:hover { text-decoration: none; }
.file .foot { margin-top: auto; padding: 4px 6px 6px; border-top: 1px solid var(--line); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.file .foot .del { padding: 2px 6px; font-size: 12px; }
button.danger, .btn.danger { background: var(--this); color: #1a0a08; border-color: var(--this); }
.file .note { font-style: italic; }
.file.filed { opacity: .6; }

.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.folder-tile { display: flex; flex-direction: column; gap: 2px; background: var(--card-2); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; color: var(--ink); }
.folder-tile:hover { border-color: var(--accent); text-decoration: none; }
.folder-tile .fname { font-family: var(--display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.folder-tile .fname::before { content: "▰ "; color: var(--muted); font-family: var(--body); }
.crumbs { font-size: 16px; margin: 4px 0 12px; color: var(--muted); }
.home-btn { white-space: nowrap; } .crumbs a { color: var(--ink); font-weight: 600; } .crumbs a:last-child { color: var(--accent); }
.seg { display: inline-flex; gap: 0; } .seg button { border-radius: 0; } .seg button:first-child { border-radius: 4px 0 0 4px; } .seg button:last-child { border-radius: 0 4px 4px 0; }
.toolbar label.small { display: inline-flex; align-items: center; gap: 6px; }
table.filelist td .open { color: var(--ink); font-weight: 600; } table.filelist tr.new td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
table.filelist td.foot { border-top: 0; padding: 4px 8px; }
.list.recent li > a { color: var(--ink); }

/* how to */
.howto { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.guide-nav .gl { list-style: none; margin: 0 0 6px; padding: 0; }
.guide-nav .gl li a { display: block; padding: 5px 8px; border-radius: 4px; color: var(--ink); }
.guide-nav .gl li a:hover { background: var(--card-2); text-decoration: none; }
.guide-nav .gl li a.on { background: var(--card-2); color: var(--accent); font-weight: 600; }
.prose { max-width: 72ch; font-size: 16px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 6px; }
.prose h2 { font-size: 20px; } .prose h3 { font-size: 18px; color: var(--accent); } .prose h4 { font-size: 16px; color: var(--muted); }
.prose p { margin: 0 0 10px; } .prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; } .prose li { margin: 3px 0; }
.prose code { background: var(--card-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; font-size: 14px; }
.prose b { color: var(--ink); }
.say { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; padding: 8px 10px 8px 12px; margin: 8px 0 12px; }
.say-text { flex: 1; font-style: italic; user-select: all; }
.say-text::before { content: "Say: "; font-style: normal; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr; } }

/* sign-in */
.signin { max-width: 440px; margin: 60px auto; text-align: center; padding: 28px 24px 32px; }
.signin img { height: 84px; margin-bottom: 18px; }
.signin h2 { justify-content: center; border-bottom: 0; }
.error { background: rgba(255,107,94,.14); color: var(--this); border: 1px solid rgba(255,107,94,.4); padding: 10px 12px; border-radius: 4px; margin: 10px 0; }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 10px 16px; border-radius: 4px; box-shadow: var(--shadow); z-index: 9; }

/* tables */
table.plain, .table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td, .table th, .table td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.table th, .table td { border-top: 0; border-bottom: 1px solid var(--line); }
table.plain th, .table th { color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
table.plain th { border-top: 0; }
.missing { color: var(--this); } .ok { color: var(--ok); }

/* capture + file-it picker */
.capture-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.capture-buttons .btn { cursor: pointer; }
.card textarea { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.modal { position: fixed; inset: 0; background: rgba(5,8,12,.7); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; z-index: 50; overflow: auto; }
.dialog { width: 100%; max-width: 560px; }
.crumbs { font-size: 14px; margin-bottom: 8px; }
.folderlist { display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; padding: 6px; margin-bottom: 10px; background: var(--bg); }
.folderlist .folder { padding: 8px 10px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.folderlist .folder:hover { background: var(--card-2); }
.dialog label.small { display: block; margin: 6px 0; } .dialog label.small input { width: 100%; box-sizing: border-box; margin-top: 4px; }

/* parts / PDM */
.part { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-bottom: 8px; background: var(--card-2); }
.part-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.part-head .panel-tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.part-files { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.part-files .fname { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }
.part-files .fname.edited { color: var(--warn); border-color: rgba(242,193,78,.5); }
.part-extra { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }

/* tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 12px; border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 6px 10px 8px; color: var(--muted);
  font-family: var(--display); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tab:hover { color: var(--ink); border-color: transparent; border-bottom-color: var(--line); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab .count { background: var(--card-2); color: var(--muted); font-size: 12px; line-height: 20px; min-width: 22px; } .tab.active .count { background: var(--accent); color: var(--accent-ink); } .tab .count.zero { opacity: .6; }
dl.idea { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0; font-size: 15px; } dl.idea dt { color: var(--muted); } dl.idea dd { margin: 0; }
.todo-here { margin-bottom: 14px; border-left: 4px solid var(--accent); } .todo-here li input { margin-right: 8px; }
.pagelink { text-decoration: none; }
.form .roles { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; } .form .roles label { display: inline-flex; gap: 4px; align-items: center; }
.form .addr, .form .v-only, .form .c-only, .form .p-only, .form .vc-only, .form .co-only { display: contents; } .form .addr.hidden, .form .v-only.hidden, .form .c-only.hidden, .form .p-only.hidden, .form .vc-only.hidden, .form .co-only.hidden { display: none !important; }

@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; }
  .todo li { grid-template-columns: 82px minmax(0, 1fr); } .todo .area { display: none; }
}
@media (max-width: 700px) {
  .band { gap: 14px; padding: 10px 12px; min-height: 64px; } .brand img { height: 40px; } .brand .tm { font-size: 9px; }
  .band .tagline { font-size: 15px; } .band .tagline span { white-space: normal; }
  .nav a { padding: 6px 8px; font-size: 16px; } .who span { display: none; }
  .main { padding: 14px 16px 40px; } .grid { grid-template-columns: 1fr; } .files { grid-template-columns: repeat(2, 1fr); } .file .thumb { height: 90px; }
  .hello h1 { font-size: 28px; }
  .hello .tagline { margin-left: 0; text-align: left; font-size: 15px; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { button, .btn, .nav a, .file { transition: color .15s, border-color .15s, background .15s; } }

/* viewer role: read everything, change nothing (server enforces; this only tidies the page) */
.pill.viewonly { background: transparent; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
body.viewonly .btn.primary, body.viewonly .btn.danger, body.viewonly button.save, body.viewonly .btn.ghost.add, body.viewonly .add-row { display: none !important; }

/* routing: one line per step, details fold out (Ted 2026-09-27: part numbers and vendors, not the detail) */
table.routing td.tw { width: 22px; padding-right: 0; }
.tw-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 14px; padding: 0 4px; }
table.routing tr.rt-more td { border-top: 0; padding-top: 0; }

/* purchasing */
.card.sub { margin: 10px 0; padding: 12px 14px; }
.card.sub h3 { margin: 0 0 8px; font-size: 15px; }
.tabs .tab.planned { opacity: .55; }
.pill.done { background: rgba(127,196,255,.18); color: var(--accent); }

label.inline { display: inline; margin: 0 4px; font-weight: normal; }
.addsrc select { max-width: 220px; }

.acct label { display: inline-block; margin: 4px 10px 0 0; font-size: 13px; }
.acct input, .acct select { margin-left: 4px; }

/* stackable filters on the item master */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 4px; }
.pill.filter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); color: var(--accent); background: transparent; font-size: 12px; padding: 3px 8px; }
.pill.filter .x { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--accent); } th.sortable.on { color: var(--accent); }

/* the ? on the banner: search everything */
.who { position: relative; }
.helppanel { position: absolute; right: 0; top: 34px; width: min(560px, 92vw); background: var(--card, #181e27); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px; padding: 10px; z-index: 20; box-shadow: 0 12px 32px rgba(0,0,0,.45); text-align: left; }
.helppanel input { width: 100%; box-sizing: border-box; font-size: 15px; padding: 9px 11px; }
#helphits { max-height: 60vh; overflow: auto; margin-top: 8px; }
#helphits .hgroup { margin-bottom: 8px; }
#helphits .person { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 4px 4px 2px; }
#helphits a.hit { display: block; padding: 6px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
#helphits a.hit:hover { background: rgba(127,196,255,.10); }
#helphits a.hit b { display: block; font-size: 13px; }
#helphits a.hit .muted { display: block; white-space: normal; }
@media (max-width: 700px) { .helppanel { position: fixed; left: 8px; right: 8px; top: 70px; width: auto; } }

.tabs.jump { margin: 6px 0 0; } .tabs.jump .tab { font-size: 12px; padding: 4px 10px; }
[id^="sec-"] { scroll-margin-top: 160px; }

details.notepick { margin: 4px 0 8px; border: 1px solid var(--line, #2a3340); border-radius: 6px; padding: 6px 10px; } details.notepick summary { cursor: pointer; font-size: 13px; } details.notepick .np-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 260px; overflow: auto; } .notepick label { display: flex; gap: 8px; align-items: flex-start; } .notepick input { margin-top: 3px; }
tr.muted td { opacity: .55; }

details.rolldown > summary { list-style: none; cursor: pointer; } details.rolldown > summary::-webkit-details-marker { display: none; }
details.rolldown > summary h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
details.rolldown > summary h2::before { content: "▸"; font-size: 12px; color: var(--mist, #9aa5b5); } details.rolldown[open] > summary h2::before { content: "▾"; }
details.rolldown:not([open]) { padding-bottom: 10px; }

.howto-head { margin-bottom: 14px; } .howto-head h2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.gsearch { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2, #182027); border: 1px solid var(--line, #2a3340); border-radius: 6px; padding: 3px 8px; font-weight: 400; }
.gsearch .glass { font-size: 13px; opacity: .8; } .gsearch input { border: 0; background: transparent; color: var(--ink); font-size: 14px; width: 300px; outline: none; }
.hit-card { padding: 8px 0; border-bottom: 1px solid var(--line, #2a3340); }
h2.withsearch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } h2.withsearch .gsearch input { width: 360px; }

.file .foot .btnlike { padding: 2px 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); } .file .foot .btnlike:hover { text-decoration: none; background: var(--card); }
.file .foot .pickfile { margin: 0 2px 0 0; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(8,10,14,.92); display: flex; flex-direction: column; }
.viewer.hidden { display: none; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.viewer-bar .panel-tools { margin-left: auto; display: flex; gap: 8px; }
.viewer iframe { flex: 1; border: 0; background: #fff; }
.viewer-body { flex: 1; overflow: auto; padding: 12px; touch-action: pan-x pan-y pinch-zoom; }
.viewer-body img { display: block; max-width: none; margin: 0 auto; }
.viewer-body.fit { display: flex; align-items: center; justify-content: center; }
.viewer-bar .zoom { display: inline-flex; gap: 6px; align-items: center; margin-left: 12px; }
.viewer-bar .zoom #vz-pct { min-width: 40px; text-align: center; }
.viewer-bar .zoom .btn { min-width: 34px; font-size: 16px; }

.alerts { border-left: 4px solid var(--warn, #e0a030); } .alerts .count.warn { background: var(--warn, #e0a030); color: #111; }
.alerts .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.alertline { color: var(--warn, #e0a030); }

.tl { padding: 8px 4px; } .tl h3 { margin: 0 0 8px; } .logform { margin-bottom: 10px; }
.tlist { list-style: none; margin: 0; padding: 0; } .tlist li.ev { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tlist .evk { min-width: 72px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.tlist li.ev > div { flex: 1; } .tlist .pre { white-space: pre-wrap; font-size: 13px; margin-top: 4px; }
.ev-order .evk { color: var(--accent); } .ev-email .evk { color: var(--ice, #7fc4ff); }
.followup { color: var(--warn, #e0a030); }
.pill.filter.on { background: var(--accent); color: #111; }

.file .sub { overflow-wrap: anywhere; } .file .wentto { font-weight: 600; color: var(--ink); } .file .wentto a { color: var(--accent); }

/* quote comparison (decision #32) */
.scroll { overflow-x: auto; }
table.compare th:first-child { text-align: left; white-space: nowrap; color: var(--muted); font-weight: 500; }
table.compare td, table.compare th { vertical-align: top; min-width: 150px; }
table.compare th.best, table.compare td.best { background: color-mix(in srgb, var(--accent) 10%, transparent); }
table.compare tr.total td { border-top: 2px solid var(--line); }
table.compare td.flagged { opacity: .8; }
.pill.warnpill { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--ink); }
.card.recommend { border-color: var(--accent); }
tr.altrow td { background: color-mix(in srgb, var(--warn) 6%, transparent); }

tr.inactive td { opacity: .55; }

.dropzone { border: 2px dashed var(--line); border-radius: 6px; padding: 12px 14px; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; outline: none; }
.dropzone:focus, .dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.dropzone .muted { flex-basis: 100%; }

.rfqprev { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-top: 8px; }

/* ask-for-quotes steps */
div.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.step { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.step.on { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.step.done { color: var(--ok); }
.wiznav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.vendorpick { display: block; padding: 8px 10px; margin: 6px 0; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.vendorpick.off { opacity: .55; cursor: default; }

/* part-number type-ahead */
label:has(> .suggest) { position: relative; }
.suggest { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 280px; max-height: 260px; overflow-y: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4); margin-top: 2px; }
.suggest .opt { padding: 5px 9px; cursor: pointer; white-space: nowrap; }
.suggest .opt.on, .suggest .opt:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* quote proposals */
.proposal .pline { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.proposal tr.offered td { background: color-mix(in srgb, var(--next) 8%, transparent); }
.orphan { border-top: 1px solid var(--line); padding: 8px 0; }
.pill.act { text-decoration: none; cursor: pointer; background: color-mix(in srgb, var(--this) 14%, transparent); }
.pill.act:hover { background: color-mix(in srgb, var(--this) 28%, transparent); }
.suggest .opt.extra { border-top: 1px solid var(--line); color: var(--accent); }

/* task people / relay */
.people { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.people label { white-space: nowrap; }
.steps .stepno { min-width: 1.4em; text-align: right; margin-right: 4px; }
.steps select.stepowner { margin-left: auto; font-size: 12px; max-width: 110px; }
.relayline { margin: 4px 0 6px; }
.handed h2 .count.warn { margin-left: 6px; }

/* task form rows (Ted, 2026-10-01) */
.taskform .row1 { display: flex; gap: 10px; align-items: center; } .taskform .row1 input { flex: 1; } .taskform .from { white-space: nowrap; }
.taskform .row3 { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; }
.taskform .row3 input[name=project] { width: 100%; }
.taskform .row3 label { display: flex; flex-direction: column; gap: 3px; position: relative; }
.taskform .row3 select, .taskform .pick-btn, .taskform .due-btn { width: 100%; text-align: left; }
.pick { position: relative; display: block; }
.pick-btn, .due-btn { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 8px 28px 8px 10px; font: inherit; cursor: pointer; text-align: left; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-btn::after, .due-btn::after { content: ""; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.pick-btn.empty, .due-btn.empty { color: var(--muted); }
.pick-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 220px; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4); padding: 6px 8px; margin-top: 2px; }
.pick-menu.open { display: block; }
.pick-menu label { display: flex; gap: 6px; align-items: center; padding: 3px 0; color: var(--ink); font-size: 13px; white-space: nowrap; }
.pick-menu label.all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.due-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
@media (max-width: 900px) { .taskform .row3 { grid-template-columns: repeat(3, 1fr); } }
.form .pick-menu label { flex-direction: row; align-items: center; display: flex; }
.form .pick-menu label input { width: auto; }

/* step builder in the new-task form; step notes in the detail */
.stepbuild .steprow { margin: 6px 0 2px; }
.stepbuild .st-line { display: flex; gap: 8px; align-items: center; } .stepbuild .st-line .st-text { flex: 1; } .stepbuild .st-owner { max-width: 160px; }
.stepbuild .st-note { width: calc(100% - 2.2em); margin: 4px 0 0 2.2em; font-size: 13px; }
.steps li { flex-wrap: wrap; } .steps li .stepnote { flex-basis: 100%; padding-left: 2.6em; } .steps li .stepnote-in { width: 100%; font-size: 12.5px; background: transparent; border-color: transparent; }
.steps li .stepnote-in:focus, .steps li .stepnote-in:hover { border-color: var(--line); background: var(--card-2); }
.steps li.done .stepnote-in { text-decoration: none; }

/* the add-task area is its own panel, set off from the list by a band of the carbon weave (Ted, 2026-10-01) */
.addcard { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; margin: 10px 0 0; }
.addcard:not(.hidden) + #tlist { margin-top: 18px; position: relative; padding-top: 18px; }
.addcard:not(.hidden) + #tlist::before { content: ""; position: absolute; left: -16px; right: -16px; top: 0; height: 14px; background-color: var(--bg);
  background-image: linear-gradient(27deg, var(--weave-light) 5px, transparent 5px), linear-gradient(207deg, var(--weave-light) 5px, transparent 5px),
  linear-gradient(27deg, var(--weave-dark) 5px, transparent 5px), linear-gradient(207deg, var(--weave-dark) 5px, transparent 5px);
  background-size: var(--weave-size) var(--weave-size); background-position: 0 0, 10px 0, 10px -10px, 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.similar { background: color-mix(in srgb, var(--this) 10%, transparent); border: 1px solid rgba(255,107,94,.4); border-radius: 6px; padding: 8px 10px; }
.similar .simrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid var(--line); } .similar .simrow .acts { margin-left: auto; display: flex; gap: 6px; }
.similar .actions { margin-top: 6px; }
.stepbuild .st-owner { width: 190px; flex: none; } .stepbuild .st-owner .pick-btn { width: 100%; }
.stepbuild .st-owner .pick-menu { left: auto; right: 0; }

/* manufacturing */
.stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; } .stats > div { display: flex; flex-direction: column; min-width: 90px; } .stats b { font-size: 20px; }
.recv { white-space: nowrap; } .recv input { margin-right: 4px; }
.modal .dialog { width: min(640px, 92vw); }
tr.flagged td { background: color-mix(in srgb, var(--this) 7%, transparent); }

/* timeline */
.scroll { overflow-x: auto; }
svg.tl { font-family: inherit; display: block; }
.tl-grid { stroke: var(--line); stroke-width: 1; } .tl-today { stroke: var(--this); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tl-lab { fill: var(--muted); font-size: 11px; } .tl-todaylab { fill: var(--this); }
.tl-proj { fill: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tl-task { fill: var(--ink); font-size: 13px; } .tl-task.done { fill: var(--muted); text-decoration: line-through; } .tl-item { fill: var(--accent); font-weight: 700; }
.tl-step { fill: var(--muted); font-size: 11.5px; } .tl-step.done { text-decoration: line-through; }
.tl-bar { fill: color-mix(in srgb, var(--accent) 45%, transparent); stroke: var(--accent); } .tl-bar.relay { fill: color-mix(in srgb, var(--next) 40%, transparent); stroke: var(--next); }
.tl-bar.late { fill: color-mix(in srgb, var(--this) 45%, transparent); stroke: var(--this); } .tl-bar.done { fill: color-mix(in srgb, var(--ok) 35%, transparent); stroke: var(--ok); }
.tl-bar.nodue { stroke-dasharray: 4 3; fill-opacity: .5; }
.tl-sub { fill: color-mix(in srgb, var(--muted) 45%, transparent); } .tl-sub.done { fill: color-mix(in srgb, var(--ok) 45%, transparent); }

/* banner search */
.who .hsearch { position: relative; display: inline-block; margin-right: 10px; }
.who .hsearch input { width: 300px; max-width: 42vw; padding: 5px 10px; font-size: 13px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: var(--bar-ink, #fff); border-radius: 999px; }
.who .hsearch input::placeholder { color: rgba(255,255,255,.55); }
.who .hsearch .suggest { right: 0; left: auto; min-width: 380px; text-align: left; }
.who .hsearch .suggest .opt b { color: var(--ink); }
.who .hsearch .suggest { width: 560px; max-width: 80vw; min-width: 0; white-space: normal; }
.who .hsearch .suggest .opt { white-space: normal; line-height: 1.3; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.who .hsearch .suggest .opt .muted { display: block; }
.card.answer { border-left: 4px solid var(--accent); } .answer-text { font-size: 15px; line-height: 1.5; }

/* costing (2026-10-01): the costed BOM at typed quantities */
.table.cost th.cost, .table.cost td.cost { text-align: right; white-space: nowrap; vertical-align: top; min-width: 150px; }
.table.cost td.cost .ext { font-size: 12.5px; margin-top: 2px; }
.table.cost td .why { font-size: 11px; color: var(--muted); white-space: normal; max-width: 260px; margin-top: 2px; }
.table.cost td.cost.paid b { color: var(--ok, #1a7f37); }
.table.cost td.cost.quote b { color: var(--accent, #2457a7); }
.table.cost td.cost.none b, .flag { color: var(--warn, #b4541b); }
.table.cost tr.steprow td { background: color-mix(in srgb, var(--card, #fff) 92%, var(--muted) 8%); }
.table.cost tr.tot td { border-top: 2px solid var(--line, #ddd); font-weight: 500; }
.table.cost tr.tot.first td { border-top: 3px double var(--line, #bbb); }
.table.cost tr.tot.allin td { background: color-mix(in srgb, var(--card, #fff) 90%, var(--accent, #2457a7) 10%); }
.table.cost td.cost.flag b { color: var(--warn, #b4541b); }
#sec-cost h3 { margin: 14px 0 6px; font-size: 14px; }
#histbody input.spread { width: 90px; }

/* Record a price: its own area, set off by carbon bands above and below (Ted, 2026-10-02) */
.carbon-band { height: 14px; margin: 14px -16px; background-color: var(--bg);
  background-image: linear-gradient(27deg, var(--weave-light) 5px, transparent 5px), linear-gradient(207deg, var(--weave-light) 5px, transparent 5px),
  linear-gradient(27deg, var(--weave-dark) 5px, transparent 5px), linear-gradient(207deg, var(--weave-dark) 5px, transparent 5px);
  background-size: var(--weave-size) var(--weave-size); background-position: 0 0, 10px 0, 10px -10px, 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#rpform .rp { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; }
#rpform .rp .manual { color: var(--warn, #b4541b); font-size: 12.5px; margin: 0 0 8px; }
#rp-vendor { width: 460px; max-width: 100%; text-overflow: ellipsis; }

/* fully costed badge and dots (2026-10-02) */
.pill.costok { background: color-mix(in srgb, var(--accent, #2457a7) 22%, transparent); border-color: var(--accent, #2457a7); color: var(--accent, #6ea8ff); }
.pill.costbad { background: color-mix(in srgb, #d9534f 22%, transparent); border-color: #d9534f; color: #ff7b76; }
.costok-text { color: var(--accent, #6ea8ff); }
.gaps { border: 1px solid #d9534f; border-radius: 6px; padding: 8px 12px; margin: 6px 0 10px; background: color-mix(in srgb, #d9534f 8%, transparent); }
.gaps ul { margin: 4px 0 0 18px; padding: 0; } .gaps li { margin: 2px 0; }
.costdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--line); vertical-align: middle; }
.costdot.ok { background: var(--accent, #6ea8ff); } .costdot.bad { background: #ff5a55; } .costdot.na { background: transparent; border: 1px solid var(--line); }

.backrow { margin: 4px 0 10px; }
.btn.bigback { font-size: 16px; padding: 12px 26px; }

tr.rt-row.hilite td { background: color-mix(in srgb, var(--accent, #2457a7) 18%, transparent); }
.stepedit { padding: 6px 0 2px; }
a.steplink { color: inherit; text-decoration: underline dotted; } a.steplink:hover { color: var(--accent, #6ea8ff); }
.pill.small { font-size: 10px; padding: 1px 6px; }

.expform { align-items: flex-end; } .expform input[type=file] { max-width: 240px; }

tr.proposed td { background: color-mix(in srgb, var(--warn, #b4541b) 10%, transparent); }
tr.proposed input.pe, tr.proposed select.pe { font-size: 12.5px; padding: 3px 6px; }
.expread { align-items: flex-end; margin-top: 4px; }

.capture-buttons .btn.receipt { border-color: var(--warn, #b4541b); }

tr.editing td { background: color-mix(in srgb, var(--accent, #2457a7) 10%, transparent); }
.table.exp td.acts { white-space: nowrap; }

.dupe { margin-top: 3px; color: #ff7b76; font-size: 12px; }

/* People & access (decision #34) */
.table.access th.lvl, .table.access td.lvl { text-align: center; width: 64px; text-transform: capitalize; }
.table.access td.lvl input { width: 18px; height: 18px; cursor: pointer; }
.table.people tr.hilite td { background: rgba(255,255,255,.06); }
.table.people td:last-child { white-space: nowrap; text-align: right; }
.tabs .tab.hidden, #nav a.hidden { display: none !important; }
#acc { scroll-margin-top: 140px; }

/* Combined-quantity pricing (2026-10-03) */
.combined { border: 2px solid var(--line, #2a3340); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.combined.on, .card.combined.ask { border-color: #e0a030; background: rgba(224, 160, 48, .08); }
.combined label.big { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.combined label.big input { width: 20px; height: 20px; }
label.flagbox select { border: 2px solid #e0a030; }
.table.morep td { vertical-align: middle; }
.startrow { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-top: 8px; border: 1px solid var(--line, #2a3340); border-radius: 10px; background: rgba(127,196,255,.05); }
.startrow label { display: inline-flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); position: relative; }
.startrow label input { width: 260px; color: var(--ink); }
.startrow .btn { height: 38px; white-space: nowrap; }
.startrow .muted.small { padding-bottom: 10px; }
.vparts .table td { vertical-align: middle; }
.fileall { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 8px 12px; border: 1px solid var(--line, #2a3340); border-radius: 8px; background: rgba(127,196,255,.05); }
#progress.sendfail { font-size: 15px; padding: 10px 12px; border: 2px solid #c0392b; border-radius: 8px; background: rgba(192,57,43,.12); margin-top: 8px; }
.slipbox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; margin: 8px 0 12px; border: 1px solid var(--line, #2a3340); border-radius: 10px; background: rgba(127,196,255,.05); }
.slipbox #slipout { flex-basis: 100%; }
.slipread { border-top: 1px dashed var(--line, #2a3340); padding-top: 8px; }
details.alerts > summary .hint { opacity: .6; font-size: 11px; margin-left: 6px; }
details.alerts[open] > summary .hint { display: none; }
details.alertcat { margin: 6px 0 10px; border-left: 3px solid var(--line, #2a3340); padding-left: 10px; }
details.alertcat.action { border-left-color: #e0a030; }
details.alertcat > summary { cursor: pointer; list-style: none; padding: 4px 0; }
details.alertcat > summary::before { content: "▸ "; opacity: .6; } details.alertcat[open] > summary::before { content: "▾ "; }
.stepedit .provide { border: 1px solid #e0a030; border-radius: 8px; padding: 8px 10px; margin-top: 4px; background: rgba(224,160,48,.06); }
.stepedit .provide .form { margin-top: 4px; }
.alerts a.alertlink { color: var(--ink); } .alerts a.alertlink:hover { color: var(--accent); text-decoration: none; }
@keyframes flashcard { 0% { box-shadow: 0 0 0 3px #e0a030; } 100% { box-shadow: 0 0 0 0 rgba(224,160,48,0); } }
.card.flash { animation: flashcard 2.4s ease-out; }
.card[id^="sec-"] { scroll-margin-top: 150px; }

/* Set up card and the "this part is" row (Ted, 2026-10-05) */
.card.setup .bar { height: 6px; border-radius: 3px; background: var(--card-2); margin: 4px 0 8px; overflow: hidden; } .card.setup .bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.card.setup.done .bar i { background: var(--ok, #6fd39a); }
.card.setup .lines { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 3px 24px; font-size: 15px; }
.card.setup .row { display: flex; gap: 8px; align-items: baseline; } .card.setup .row > a, .card.setup .row > span:nth-child(2) { white-space: nowrap; } .card.setup .row > span:first-child { width: 14px; text-align: center; font-weight: 700; }
.card.setup .ok { color: var(--ok, #6fd39a); } .card.setup .no { color: #ff7b76; } .card.setup .wait { color: var(--muted); }
.card.setup a.done { color: var(--ok, #6fd39a); text-decoration: none; } .card.setup a.done:hover { text-decoration: underline; }   /* Ted 2026-10-15: a checked line still opens its card, in green */
.card.setup .why { color: var(--muted); font-size: 13px; }
.usedfor { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 1px; line-height: 1.3; }
.partis { margin: 4px 0 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.partis .kind { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.partis .chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; font-size: 13px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 500; }
.partis .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; cursor: default; } .partis .chip.off { opacity: .45; cursor: default; }
.partis button.chip:hover:not(.on) { color: var(--ink); border-color: var(--muted); }
.stepedit .opblock { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin-top: 8px; }
.stepedit .opblock h4 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; } .stepedit .opblock h4 .muted { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; }
.stepedit .opblock.provide { border-color: #e0a030; background: rgba(224,160,48,.06); }
.stepedit .acts { margin-top: 10px; }
.table.routing .req { margin-top: 2px; } .warn-ink { color: #ffcf7a; }
@media (max-width: 700px) { .card.setup .lines { grid-template-columns: 1fr; } }

/* a shipment arrived (2026-10-05) */
.shipdrop { border: 2px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(127,196,255,.04); transition: background .15s, border-color .15s; }
.shipdrop.over { border-color: var(--accent); background: rgba(127,196,255,.12); }
.shipdrop .big { font-family: var(--display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.shipdrop .capture-buttons { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shipread { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.shipread ul.docs li { padding: 4px 0; } .shipread .warnlist li { color: #ffcf7a; }
.shipread .ok { color: var(--ok, #6fd39a); }

/* breadcrumbs (2026-10-05) */
.crumbs { font-size: 13px; color: var(--muted); margin: -4px 0 10px; } .crumbs a { color: var(--accent); } .crumbs .sep { opacity: .5; margin: 0 2px; } .crumbs .here { color: var(--ink); font-weight: 600; }
.card.opgroup h2 { font-size: 20px; }
.recbox { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-top: 8px; } .recbox.recommend { border-color: var(--accent); background: rgba(127,196,255,.06); }
/* pass D (2026-10-05): grey-out from the Set up card; deliverables set; a visible twisty */
/* the setup-card jumps once dimmed every other card; dropped 2026-10-13 — a jump scrolls and flashes the card instead */
.card.setup .showall { margin-left: 12px; }
.certset { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .certset label.inline { display: inline-flex; flex-direction: row; gap: 5px; align-items: center; font-size: 13px; color: var(--ink); } .certset label.inline input { width: auto; margin: 0; } .certset .usedfor { flex-basis: 100%; }
.tw-btn { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--accent); background: var(--card-2); }
.shipread tr.dup td { opacity: .55; } .shipread tr.dup td:first-child, .shipread tr.dup td:nth-child(3) { opacity: 1; }
.firmstop { margin-top: 6px; padding: 6px 8px; border: 1px solid #ff6b6b; border-radius: 8px; background: rgba(255,107,107,.12); color: #ffb3b3; font-size: 12.5px; } .firmstop label { color: #fff; cursor: pointer; }
.shipread .warnlist li:first-child { font-weight: 600; }

/* PO page: three even columns, selects and dates fill them (Ted, 2026-10-07: the date box dropped and the freight text was cut off) */
.form.poform { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } .form.poform label { display: flex; } .form.poform input, .form.poform select { width: 100%; box-sizing: border-box; }
@media (max-width: 800px) { .form.poform { grid-template-columns: 1fr; } }
.form.poform .lt { color: var(--muted); font-size: 13px; line-height: 1.3; } .form.poform .lt b { color: var(--ink); font-size: 17px; font-weight: 700; } .form.poform .ld { font-size: 13px; font-weight: 400; }

/* receiving: paperwork readable at a glance (Ted, 2026-10-07) */
.docs-cell{min-width:360px;max-width:480px}
.docs-cell .docrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid var(--line);line-height:1.35}
.docs-cell .docrow b{flex:1 1 140px;min-width:0;overflow-wrap:anywhere}
.docs-cell .docrow .btn{flex:0 0 auto;line-height:1.2;padding:4px 12px;min-height:0;height:auto;margin:0}
.docs-cell .docsum{flex:1 1 100%;margin:0;white-space:normal;line-height:1.4}
.docs-cell .addfile{display:inline-block;white-space:nowrap;margin:2px 0 0;line-height:1.2;padding:5px 12px;height:auto;min-height:0}
.docs-cell .ok-ink,.docs-cell .warn-ink{display:block;margin:0 0 8px;line-height:1.3}
.docs-cell .ok-ink{color:var(--ok,#6fcf97)}

/* shipment summary on a phone: the table scrolls sideways instead of running off the page, and the buttons stay in reach (Ted, 2026-10-07) */
.shipread .table { display: block; overflow-x: auto; max-width: 100%; }
.shipread .whatnext { margin: 10px 0; padding-left: 18px; }
.shipread .actions { position: sticky; bottom: 0; background: var(--card, #161b22); padding: 10px 0; z-index: 5; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 700px) {
  .shipread .actions .btn { display: block; width: 100%; margin: 6px 0; text-align: center; }
  .shipread .actions .muted { display: none; }
  .shipbox .capture-buttons .btn { display: block; width: 100%; margin: 6px 0; text-align: center; }
}
.table td.po-actions{white-space:nowrap}
.backbar{margin:0 0 10px}.howto{margin-top:3px}

/* inventory area (plan step 2, 2026-10-09): a date past due reads as late */
.late { color: var(--this); font-weight: 600; }
.toolbar.invsearch { display: flex; gap: 8px; flex-wrap: wrap; } .toolbar.invsearch input { flex: 1 1 200px; }
.toolbar.invsearch select { flex: 0 0 auto; }
.stockline { margin: 6px 0 10px; padding: 8px 10px; border-left: 3px solid var(--line, #2a3340); font-size: 13px; } .stockline.warn { border-left-color: #e0a030; }

/* the Done dialog's problem rows (step 5a piece 2): fixed columns so the note has room and nothing falls off the edge */
.table.probs { table-layout: fixed; width: 100%; }
.table.probs td, .table.probs th { padding: 6px 4px; overflow: hidden; }
.table.probs select, .table.probs input { box-sizing: border-box; min-width: 0; }

/* the Bench (plan step 5b): bigger type and targets for a person standing at a bench */
.card.bench { font-size: 1.08em; }
.card.bench .jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card.bench .job { display: block; padding: 14px 16px; border: 1px solid var(--line, #2a3340); border-radius: 10px; text-decoration: none; color: inherit; background: rgba(255,255,255,0.03); }
.card.bench .job:hover { border-color: var(--accent, #4ea1ff); }
.card.bench .job.late { border-color: #c0392b; }
.card.bench .job.going { background: rgba(78,161,255,0.08); }
.card.bench .jobhead { margin-bottom: 6px; }
.card.bench .jobwhat { font-size: 1.15em; margin-bottom: 8px; }
.card.bench .jobwhat.big { font-size: 1.4em; margin: 6px 0 12px; }
.card.bench .jobnums span { display: inline-block; margin-right: 16px; }
.card.bench .jobnums b { font-size: 1.3em; }
.card.bench .bigbtns { display: flex; gap: 16px; margin: 14px 0 4px; }
.card.bench .bigbtn { font-size: 1.5em; padding: 18px 48px; min-width: 180px; }
/* Start and Done are allowed with view access (an operator), so they stay visible for a view-only login */
body.viewonly .btn.primary.benchok { display: inline-block !important; }
.card.bench .sidebtns { display: inline-flex; gap: 10px; align-items: center; margin-left: 12px; flex-wrap: wrap; }

/* Bench piece 1: the top bar with the big clock and buttons, and the operation rows */
.card.bench .topbar { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 10px 0 6px; }
.card.bench .clockbox { min-width: 260px; }
.card.bench .clock { font-size: 3.2em; font-weight: 700; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card.bench .oprow { border: 1px solid var(--line, #2a3340); border-radius: 10px; padding: 10px 14px; margin: 8px 0; opacity: .55; }
.card.bench .oprow.open { opacity: 1; border-color: var(--accent, #7fc4ff); }
.card.bench .oprow.finished { opacity: .8; }
.card.bench .ophead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.1em; }
.card.bench .opnums { margin-left: auto; display: inline-flex; gap: 16px; }
.card.bench .opnums b { font-size: 1.2em; }
.card.bench .opnote { margin: 4px 0 2px; }
.card.bench .opphases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.card.bench .phase { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.card.bench .phname { font-weight: 700; min-width: 54px; }
.card.bench .phase .btn { margin-left: auto; }
/* Bench piece 1 review (Ted 2026-10-12): reason box under the big buttons, three rows per operation, greyed when not takeable */
.card.bench .bigside { display:flex; flex-direction:column; gap:10px; }
.card.bench .runbox { display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
.card.bench .runbox label { display:flex; flex-direction:column; gap:4px; font-size:.85em; }
.card.bench .runbox select, .card.bench .runbox input { min-width: 220px; }
.card.bench .opphases { display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
.card.bench .phase.grey { opacity:.45; }
.card.bench .phase.going { outline: 1px solid var(--accent, #4a90e2); }
/* one shape for Setup, Run and Clean up (Ted 2026-10-12): name and facts on the first line, buttons on their own line underneath */
.card.bench .phase { display:grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items:center; column-gap:10px; row-gap:8px; min-height: 84px; }
.card.bench .phase .phname { grid-column:1; grid-row:1; }
.card.bench .phase > .small { grid-column:2; grid-row:1; }
.card.bench .phbtns { grid-column:1 / -1; grid-row:2; display:flex; gap:6px; justify-content:flex-end; align-items:center; }
.card.bench .phbtns .btn { margin-left:0; }
/* paused (Ted 2026-10-12): Continue and the stopped clock go amber so a paused job reads as paused from across the room */
.card.bench .bigbtn.amber { background: var(--warn); color: #111; border-color: var(--warn); }
.card.bench .bigbtn.amber:hover { filter: brightness(1.08); }
.card.bench .clock.paused { color: var(--warn); }
.card.proposal { border-left: 4px solid var(--accent, #4a90e2); }
.tl-collapsed .form, .tl-collapsed table { display: none; }
/* Item page (Ted 2026-10-13): BOM and routing stack full width instead of two columns, so an open operation shows all its fields */
.grid.two.stack { grid-template-columns: 1fr; }
.grid.two.stack .stepedit .form { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
span.warn { color: var(--warn, #e0a030); }
.modal .dialog.wide { width: min(1100px, 95vw); max-width: 1100px; }
.table.mrates tr.busy td:first-child input { border-color: var(--warn, #e0a030); }

.mailline { padding: 6px 10px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; } .mailline .btn { margin-left: auto; }

.paidby { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; margin-bottom: 10px; } .paidby.on { border-style: solid; border-color: var(--accent, #6cb4ff); }

.yield { padding: 6px 10px; border-left: 3px solid var(--accent, #6cb4ff); margin: 0 0 10px; }

.printframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.print-tabs { margin-bottom: 8px; }

.pill.amber { background: var(--warn, #e0a030); color: #111; }
/* the floor by operation (2026-10-14): one list per machine, area or vendor process */
.queue .qgroup { margin: 10px 0 18px; } .queue .qgroup h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; font-size: 1.05em; } .queue .qgroup h3 .panel-tools { margin-left: auto; }
.queue .table td, .queue .table th { padding: 5px 8px; } .queue tr.flagged td { background: rgba(255, 170, 60, 0.07); }

button.pill.more-go { cursor: pointer; font: inherit; font-size: 0.78em; border: 1px solid rgba(255,190,80,0.6); } button.pill.more-go:hover { filter: brightness(1.15); }

/* step 6: the three cost views side by side above the costed BOM */
.costviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.costviews .cv { display: block; padding: 10px 14px; border: 1px solid var(--line, #2a3340); border-radius: 10px; text-decoration: none; color: inherit; background: rgba(255,255,255,0.03); }
.costviews .cv.active { border-color: var(--accent, #7cc0ff); background: rgba(124,192,255,0.08); }
.costviews .cv .cvname { display: block; font-size: 0.8em; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.costviews .cv b { display: block; font-size: 1.4em; margin: 2px 0; }
@media (max-width: 700px) { .costviews { grid-template-columns: 1fr; } }

.cost .why .leg { color: var(--accent, #7cc0ff); }

/* pick-or-type and where a value came from (Ted 2026-10-15) */
.pick { display: inline-flex; align-items: center; gap: 6px; } .pick select { max-width: 100%; }
.pill.src-print { background: #5a4410; color: #ffd27a; } .pill.src-ok { background: #1f4a30; color: #9fe2b8; } .pill.src-typed { background: #2a3340; color: var(--muted); } .pill.src-na { background: #2a3340; color: #aab4c0; }
.printcheck { background: #2b2a1c; border: 1px solid #5a4410; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.form label .flag { display: block; margin-top: 2px; max-width: 320px; }
.form label .pill.src-print, .form label .pill.src-ok, .form label .pill.src-typed, .form label .pill.src-na { align-self: flex-start; width: auto; }
.pick select { min-width: 90px; }

/* the bench step editor (Ted 2026-10-15): times and where/who, each defined */
.stepedit .timesblock, .stepedit .whereblock { border: 1px solid var(--line, #2a3340); border-radius: 8px; padding: 8px 12px 10px; margin: 6px 0; }
.stepedit h5 { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.stepedit .unit { font-size: 12px; color: var(--muted); } .stepedit .benchsays { font-size: 13px; padding-top: 4px; border-top: 1px dashed var(--line, #2a3340); margin-top: 4px; }
.stepedit input:disabled { opacity: .5; }
.whenby { color: var(--muted); font-style: italic; }

/* schedule (step 7) */
.gantt { font-size: 11px; background: #0f1319; border-radius: 8px; } .gantt .ax { fill: var(--muted); font-size: 10px; } .gantt .wk { stroke: #222a35; stroke-width: 1; }
.gantt .today { stroke: #6fd39a; stroke-width: 1.5; stroke-dasharray: 3 3; } .gantt .today-t { fill: #6fd39a; } .gantt .want { stroke: #7ab8ff; stroke-width: 1.5; } .gantt .want-t { fill: #7ab8ff; }
.gantt .lab { fill: var(--ink); } .gantt .lab.item { font-weight: 700; } .gantt .lab.bad { fill: #ff7b76; }
.gantt .bar.bench { fill: #3b7dd8; } .gantt .bar.vendor { fill: #c98a2b; } .gantt .bar.buy { fill: #3fae6e; } .gantt .bar.item { fill: #55606e; } .gantt .bar.crit { stroke: #ff5a52; stroke-width: 2; } .gantt .bar.blocked { fill: #5a2a2a; stroke: #ff7b76; stroke-dasharray: 2 2; }
.scroll { overflow-x: auto; } .salesline { padding: 6px 0; border-bottom: 1px solid var(--line, #2a3340); }
/* Schedule demand form: one row of columns on a shared baseline (Ted 2026-10-15) */
.form.dmform { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.form.dmform label { gap: 3px; } .form.dmform input { height: 32px; box-sizing: border-box; }
.form.dmform #dm-item { width: 110px; } .form.dmform #dm-qty { width: 72px; } .form.dmform #dm-on { width: 150px; } .form.dmform #dm-buf { width: 56px; }
.form.dmform #dm-assume { width: 230px; } .form.dmform #dm-note { width: 220px; } .form.dmform #aw-from, .form.dmform #aw-to { width: 150px; }
.form.dmform .withunit { display: inline-flex; align-items: center; gap: 6px; } .form.dmform .unit { font-size: 12px; color: var(--muted); }
.form.dmform .dm-btns { display: inline-flex; gap: 6px; align-self: flex-end; } .form.dmform .dm-btns .btn { height: 32px; box-sizing: border-box; }
.dmhint { margin: 4px 0 10px; }
/* Reference = Library + Decisions under one banner word (Ted 2026-10-16); the sub-nav sits above the page so the pages keep their own routes */
.refnav { padding-bottom: 0; padding-top: 22px; } .refnav + .main { padding-top: 0; } .refnav .subnav { margin-bottom: 16px; }
/* Time clock (Ted 2026-10-16): right-justified on the banner so nobody misses it; the page is a one-tap screen */
.nav a.clocklink { margin-left: auto; color: var(--accent); }
.nav a.clocklink::before { content: "\25CF"; font-size: 11px; margin-right: 6px; vertical-align: 2px; opacity: .8; }
.clockpage .bigstate { font-size: 2.2em; font-weight: 800; margin: 6px 0 2px; } .clockpage .since { color: var(--muted); margin-bottom: 14px; }
.clockpage .bigbtns { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 18px; } .clockpage .bigbtn { font-size: 1.5em; padding: 18px 44px; min-width: 200px; }
.clockpage .punches { list-style: none; padding: 0; margin: 0; } .clockpage .punches li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.clockpage select#tc-who { font-size: 1.1em; padding: 8px 10px; }
.tcsheet td.hrs { text-align: right; font-variant-numeric: tabular-nums; } .tcsheet td.hrs.open { color: var(--accent); } .tcsheet .flagtxt { color: var(--warn, #e0b05a); }
.clockpage .form { display: block; } .clockpage select#tc-who { width: min(100%, 360px); }
.tcsheet h2 { white-space: nowrap; } .tcsheet .panel-tools select { font-size: 13px; font-family: inherit; text-transform: none; padding: 5px 8px; }
/* the plan as a dated list (Ted 2026-10-16) */
.planlist tr.wk td { background: var(--panel-2, rgba(255,255,255,.04)); font-weight: 700; padding-top: 10px; } .planlist tr.wk.past td { color: var(--muted); font-weight: 600; }
.planlist td.pd { white-space: nowrap; width: 1%; } .planlist td.pd.late { color: var(--this); font-weight: 700; } .planlist td.pwho { white-space: nowrap; color: var(--muted); width: 1%; }
.planlist tr.crit td:nth-child(3) { color: var(--ink); } .planlist .critmark { color: var(--this); } .planforms { margin: 6px 0 8px; }

/* ---------- phone (Ted 2026-10-16): the pages you glance at from the road — the banner folds to Home, Tasks, Clock and a menu;
   forms stack; tables scroll sideways inside their card; dialogs fill the screen; the tagline goes. Desktop is unchanged. ---------- */
.navmore { display: none; }
@media (max-width: 640px) {
  .band { gap: 10px; padding: 8px 10px; min-height: 52px; flex-wrap: wrap; } .band .tagline { display: none; } .brand img { height: 36px; }
  .who { margin-left: auto; gap: 8px; } .who .hsearch input { width: 150px; } .who a.help { display: none; } .who a.flag { display: inline-flex; }
  .nav { padding: 0 4px; flex-wrap: nowrap; align-items: center; }
  .nav a { padding: 8px 6px; font-size: 15px; letter-spacing: .02em; } .nav a:not(.keep):not(.navmore) { display: none; }
  .nav a.clocklink { margin-left: auto; }
  .navmore { display: inline-block; background: none; border: 1px solid var(--line); color: var(--bar-ink); border-radius: 6px; padding: 4px 8px; font-size: 17px; line-height: 1; margin: 0 0 0 4px; flex: 0 0 auto; }
  /* open: the first row stays as it was (Home, Tasks, Contacts … Clock ☰); the other pages drop below as one plain list, no rules between them (Ted 2026-10-17) */
  .nav.open { flex-wrap: wrap; } .nav.open a.keep, .nav.open .navmore { order: 0; }
  .nav.open a:not(.keep):not(.navmore) { order: 1; display: block; width: 100%; padding: 9px 10px 9px 12px; border: 0; }
  .nav.open a:not(.keep):not(.navmore):first-of-type { margin-top: 2px; }
  .nav.open a.clocklink { order: 0; margin-left: auto; width: auto; display: inline-block; }
  .nav.open a.active::after { left: 12px; right: auto; width: 28px; }
  .main { padding: 10px 10px 40px; } .card { padding: 12px 12px 14px; } .card h2 { font-size: 18px; flex-wrap: wrap; }
  .panel-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; width: 100%; }
  .form { grid-template-columns: 1fr; } .form label input, .form label select, .form label textarea { width: 100% !important; box-sizing: border-box; min-height: 40px; font-size: 16px; }
  .form.dmform { gap: 8px; } .form.dmform label { width: 100%; } .form.dmform input { width: 100% !important; }
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; } .table { min-width: 100%; }
  .modal { padding: 0; align-items: stretch; } .modal .dialog { width: 100%; max-width: none; min-height: 100%; border-radius: 0; }
  .subnav, .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .subnav a, .tabs a.tab { white-space: nowrap; }
  .refnav { padding: 10px 10px 0; }
  .home { gap: 12px; } .hello h1 { font-size: 24px; } .hello .tagline { display: none; }
  .clockpage .bigbtn { width: 100%; min-width: 0; font-size: 1.3em; padding: 16px; } .clockpage .bigbtns { flex-direction: column; }
  .btn, button { min-height: 36px; }
  .todo li { grid-template-columns: 70px minmax(0, 1fr); }
}
/* Running now on the Bench (plan step 7): one tile per open run */
.runtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.runtile { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); text-decoration: none; color: var(--ink); border-left: 4px solid var(--ok); }
.runtile:hover { border-color: var(--accent); text-decoration: none; } .runtile.paused { border-left-color: var(--warn, #e0b05a); }
.runtile .rt-who { font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; } .runtile .rt-job { margin-top: 2px; }
.runtile .rt-op { color: var(--muted); } .runtile .rt-clock { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; margin-top: 4px; }
/* Today on Home (Ted 2026-10-16) */
.todaylines { list-style: none; margin: 4px 0 0; padding: 0; } .todaylines li { padding: 7px 0 7px 14px; border-bottom: 1px dashed var(--line); position: relative; }
.todaylines li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.todaylines li.warn::before { background: var(--this); } .todaylines li a { color: var(--ink); text-decoration: none; } .todaylines li a:hover { text-decoration: underline; }
.todaylines li.k-run::before, .todaylines li.k-clock::before { background: var(--ok); }
/* missing split (Ted 2026-10-16): to order in red, to pay in amber */
.missing.pay { color: #e0b05a; }

/* ---------- phone pass 2 (Ted 2026-10-16): tables as cards, the Bench job page, dialogs ---------- */
@media (max-width: 640px) {
  .card { overflow-x: visible; }
  table.stacked, table.stacked tbody { display: block; width: 100%; }
  table.stacked tr:first-child { display: none; }
  table.stacked tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: rgba(255,255,255,.025); }
  table.stacked tr.stk-band { border: 0; background: none; padding: 10px 0 2px; font-weight: 700; }
  table.stacked td { display: block; border: 0; padding: 3px 0; text-align: left !important; white-space: normal; }
  table.stacked td:empty { display: none; }
  table.stacked td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  table.stacked td:first-child { font-size: 1.05em; } table.stacked td:first-child::before { display: none; }
  table.stacked td input, table.stacked td select { width: 100%; box-sizing: border-box; min-height: 36px; }
  table.stacked tr.wk td { background: none; }
  /* the Bench job page */
  .card.bench .topbar { gap: 12px; } .card.bench .clock { font-size: 2.4em; } .card.bench .clockbox { min-width: 0; width: 100%; }
  .card.bench .bigbtns { flex-wrap: wrap; gap: 10px; width: 100%; } .card.bench .bigbtn { flex: 1 1 45%; min-width: 0; padding: 16px 10px; font-size: 1.3em; }
  .card.bench .opphases { grid-template-columns: 1fr; } .card.bench .opnums { margin-left: 0; width: 100%; } .card.bench .phase .btn { margin-left: 0; }
  .card.bench .sidebtns { margin-left: 0; }
  .runtiles { grid-template-columns: 1fr; }
  /* the ops overview tiles and the home grid */
  .ops-grid { grid-template-columns: 1fr !important; } .files { grid-template-columns: 1fr 1fr; }
  .hello { margin-bottom: 10px; }
  .dialog .form { grid-template-columns: 1fr; } .dialog .actions { position: sticky; bottom: 0; background: var(--card); padding: 10px 0; }
  .dialog table.probs th, .dialog table.probs td { width: auto !important; }
  h2 .count { font-size: 12px; }
  .toolbar { flex-wrap: wrap; } .gsearch input { width: 100% !important; }
  .scroll { overflow-x: auto; } .gantt { min-width: 900px; }
  .planforms a.tab { font-size: 13px; }
}

/* travel notes on the Home card (2026-10-17) */
.list.travel li.trv { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.list.travel li.trv.dropped, .list.travel li.trv.done { opacity: .55; }
.list.travel li.trv .dm-btns { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 640px) { .list.travel li.trv { flex-direction: column; } }

.btn.danger, button.danger { background: transparent; border: 1px solid #c0392b; color: #e0665a; } button.danger:disabled { opacity: .45; }

/* Engineering (2026-11-01) */
.card.rules details > summary { cursor: pointer; list-style: none; } .card.rules details > summary::-webkit-details-marker { display: none; }
.card.rules details > summary h2::before { content: "▸ "; color: var(--accent); } .card.rules details[open] > summary h2::before { content: "▾ "; }
.card.rules table.small td, .card.rules table.small th { font-size: 12px; }
.brand { position: relative; z-index: 2; }

/* Home: To file (2026-11-01) */
.list.tofile li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .list.tofile .dm-btns { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .list.tofile li { flex-direction: column; } }

.tl tr.mainrow td { background: rgba(45,108,223,.08); }

/* contact page (2026-11-01) */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin-top: 8px; } .cgrid > div > div { margin-bottom: 4px; white-space: pre-line; }
@media (max-width: 900px) { .cgrid { grid-template-columns: 1fr; } }
#c-form .form, #c-quick .tl { margin-top: 10px; }

/* contacts list: the two row buttons, same width, stacked with a gap (2026-11-02) */
.rowbtns { display: flex; flex-direction: column; gap: 6px; width: 150px; } .rowbtns .btn { width: 100%; box-sizing: border-box; text-align: center; margin: 0; }
@media (max-width: 640px) { .rowbtns { width: 100%; flex-direction: row; } .rowbtns .btn { width: auto; flex: 1; } }

/* contact page: click-to-edit, role pills, in flight (2026-11-02) */
.cf { margin-bottom: 5px; white-space: pre-line; } .cfv { cursor: pointer; border-bottom: 1px dashed transparent; } .cfv:hover { border-bottom-color: var(--accent); } .cfv.empty { color: var(--muted); }
.cfedit { width: 100%; box-sizing: border-box; } .rolepills .pill { cursor: pointer; } .rolepills .pill.off { opacity: .35; border-style: dashed; } .rolepills .pill.off:hover { opacity: .8; }
.inflight a { margin-right: 2px; } .fudot { color: var(--accent); font-size: 10px; vertical-align: 2px; }
h4.fgroup { margin: 12px 0 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* A strip of the carbon weave between sections everywhere (Ted 2026-11-02): cards that follow one another in a plain column were touching.
   The grids already space their cards with the same 18px gap; this gives the flow layouts (Reference, Contacts, a contact, Operations bodies, Home) the same. */
:where(:not(.grid, .col, .home, .files, .tiles, .modal)) > :is(.card + *, * + .card):not(.hidden) { margin-top: 18px; }
main div:has(> .card:not(.hidden)) + div:has(> .card) { margin-top: 18px; }   /* a strip of alerts (a card inside a div) followed by a tab body: the same gap (Ted 2026-11-03) */
.arr + .arr { position: relative; margin-top: 30px; }   /* the three arrival sections share one card; a carbon band parts them (Ted 2026-11-02) */
.arr + .arr::before { content: ""; position: absolute; left: -18px; right: -18px; top: -22px; height: 14px; background-color: var(--bg);
  background-image: linear-gradient(27deg, var(--weave-light) 5px, transparent 5px), linear-gradient(207deg, var(--weave-light) 5px, transparent 5px),
  linear-gradient(27deg, var(--weave-dark) 5px, transparent 5px), linear-gradient(207deg, var(--weave-dark) 5px, transparent 5px);
  background-size: var(--weave-size) var(--weave-size); background-position: 0 0, 10px 0, 10px -10px, 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .arr + .arr::before { left: -12px; right: -12px; } }
tr.latedemand td { background: rgba(255,170,60,.07); } tr.latedemand td:first-child { border-left: 3px solid #ffb347; }   /* a demand that cannot be met as planned (#288) */
.codebox { margin: 6px 0 2px; } .codebox input { font-size: 20px; letter-spacing: .2em; width: 220px; }
.tcpat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.codebox input::placeholder { letter-spacing: normal; font-size: 14px; }
.okline { color: #7fe0a8; font-weight: 600; } .learnrow { margin-top: 4px; } tr.creditrow td:first-child { border-left: 3px solid #7fc4ff; }
.kindchips .pill.act { background: var(--accent); color: #0b1017; } .kindchips .pill { cursor: pointer; }
/* the station camera (Brio) dialog */
.webcam .wcwrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(120px, 1fr); gap: 10px; align-items: start; }
.webcam video { width: 100%; max-height: 62vh; background: #000; border-radius: 8px; border: 1px solid var(--line); }
.webcam .wcshots { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow: auto; } .webcam .wcshots img { width: 100%; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; } .webcam .wcshots img:hover { border-color: #ff8a8a; }
.webcam #wc-dev { max-width: 260px; }
@media (max-width: 640px) { .webcam .wcwrap { grid-template-columns: 1fr; } }

/* inspection package review (#218) */
.insp-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.insp-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.insp-stage img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.insp-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.insp-stage g.bal { cursor: grab; }
.insp-stage g.bal circle { fill: rgba(255,255,255,.85); stroke: #d00; stroke-width: .8; }
.insp-stage g.bal circle.ring { fill: none; stroke: #d9a400; stroke-width: 1; }
.insp-stage g.bal line { stroke: #d00; stroke-width: .7; }
.insp-stage g.bal text { fill: #d00; font: 700 9px Arial, sans-serif; pointer-events: none; }
.insp-stage g.bal.sel circle { stroke-width: 2; fill: rgba(255,230,230,.95); }
.insp-list { max-height: none; overflow: visible; }
.insp-wrap > div:first-child { position: sticky; top: 8px; align-self: start; }
.insp-tbl { table-layout: fixed; width: 100%; } .insp-tbl td, .insp-tbl th { overflow-wrap: anywhere; } .insp-tbl th:first-child, .insp-tbl td:first-child { width: 34px; } .insp-tbl th:last-child, .insp-tbl td:last-child { width: 84px; }
.insp-list tr.selrow td { background: rgba(120,170,220,.18); }
.insp-list td.nowrap { white-space: nowrap; } .insp-list td.nowrap button { display: inline-block; margin: 0 1px; padding: 2px 6px; }
.insp-list button.star { color: #777; } .insp-list button.star.on { color: #d9a400; }
@media (max-width: 1100px) { .insp-wrap { grid-template-columns: 1fr; } }

/* inspection at the bench */
.insp-entry { margin: 0 0 10px; padding: 12px 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; }
.insp-entry h3 { margin: 0 0 4px; font-size: 16px; }
.insp-entry .nom { font-size: 26px; font-weight: 700; margin: 4px 0 10px; }
.insp-entry #in-val { font-size: 24px; width: 100%; max-width: 260px; }
.insp-entry .seg .btn { font-size: 18px; padding: 10px 26px; }
.btn.warn { background: #b42318; color: #fff; }
.insp-stage g.bal.pass circle { fill: rgba(198,239,206,.95); stroke: #1a7f37; }
.insp-stage g.bal.fail circle { fill: rgba(255,199,206,.95); stroke: #b42318; stroke-width: 1.2; }
.insp-stage g.bal.reason circle { fill: rgba(220,220,220,.95); stroke: #666; }
.insp-stage g.bal.pass text { fill: #1a7f37; } .insp-stage g.bal.fail text { fill: #b42318; } .insp-stage g.bal.reason text { fill: #555; }
.tabs.small .tab { font-size: 12px; padding: 4px 10px; }

.insp-stage svg { cursor: default; }
.insp-stage g.bal { cursor: grab; }
.insp-stage rect.pick { fill: rgba(255,140,0,.35); stroke: #ff7a00; stroke-width: 2.5; stroke-dasharray: 4 2; }
.insp-stage rect.dim { fill: transparent; stroke: none; cursor: pointer; }
.insp-stage rect.dim:hover { fill: rgba(255,140,0,.28); stroke: #ff7a00; stroke-width: 2; }
.insp-stage rect.dim.pick { fill: rgba(255,140,0,.4); stroke: #ff7a00; stroke-width: 2.5; stroke-dasharray: 4 2; }
@media (max-width: 1100px) { .insp-wrap > div:first-child { position: static; } }

/* dense inspection lists */
.insp-list .table.small td, .insp-list .table.small th { padding: 3px 6px; font-size: 12px; line-height: 1.25; }
.insp-list .table.small td .small, .insp-list .table.small td .muted.small { font-size: 10.5px; line-height: 1.2; }
.insp-list .table.small td.nowrap button { padding: 1px 5px; font-size: 11px; }
.insp-list .table.small .pill { font-size: 10px; padding: 1px 6px; }

.insp-entry label.wide { display: block; margin-bottom: 10px; }
.insp-entry .seg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; clear: both; }
.insp-entry .seg .btn { font-size: 16px; padding: 8px 22px; }
.insp-entry #in-val { display: block; }
