/* Project Vault: the 9001 Project Catalog's look, dark by default. Fonts are served from this site. */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url(fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url(fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 400; font-display: swap; src: url(fonts/martian-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 500; font-display: swap; src: url(fonts/martian-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #111314; --surface: #181b1d; --raise: #1f2326; --ink: #e8ebe6; --muted: #959d97; --line: #2b3034; --hover: #22272a;
  --tape: #f3c531; --tape-ink: #1b1600;
  --risk: #f0786b; --risk-soft: #3a1f1c; --ok: #6cc28f; --ok-soft: #18301f; --dbx: #79a6ff; --dbx-soft: #18264a; --check: #e3ad48; --check-soft: #382a10;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --f-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-V: #e4572e; --t-T: #f3c531; --t-N: #3d7dd8; --t-S: #8e5cd9; --t-X: #2bb3a3; --t-Z: #e86fa7; --t-W: #b5832f;
  --t-G: #5dbb4f; --t-E: #f28c28; --t-F: #9aa3ad; --t-I: #f2f2ee; --t-D: #2f3a45; --t-C: #c9a5e8; --t-B: #0061fe;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: -.01em; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap > * { min-width: 0; }

.mast { padding-block: 28px 14px; display: grid; gap: 14px; }
.mast-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 8vw, 88px); line-height: .86; margin: 6px 0 0; text-transform: uppercase; }
h2 { font-family: var(--f-display); font-weight: 900; font-size: 32px; line-height: 1; margin: 0; text-transform: uppercase; }
.who { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.who .mono { color: var(--muted); overflow-wrap: anywhere; }
.pilot { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--tape); color: var(--tape-ink); padding: 3px 8px; border-radius: 2px; }
.banner { margin: 0; border: 1px solid var(--check); background: var(--check-soft); color: var(--ink); padding: 8px 12px; border-radius: 3px; font-size: 14px; }
.banner.err { border-color: var(--risk); background: var(--risk-soft); }

.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 5px 11px; font-size: 13px; }
.btn:hover { background: var(--hover); }
.primary { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 3px; padding: 9px 14px; font-weight: 600; }
.primary:disabled { opacity: .5; cursor: progress; }
.clear { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 4px 2px; justify-self: start; }
#callbackBack { display: inline-flex; align-items: center; min-height: 44px; }
.note { font-size: 13px; color: var(--muted); margin: 0; }

.signin { max-width: 440px; margin: 24px 0 80px; display: grid; gap: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 22px; }
.stack { display: grid; gap: 8px; }
.stack label { font-size: 13px; color: var(--muted); }
.stack input { padding: 10px 12px; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; width: 100%; }

.stats { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-bottom: 14px; }
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; }
.stat span { font-size: 12.5px; color: var(--muted); }

.drivestrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding-bottom: 14px; }
.dcard { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 9px 10px; display: grid; gap: 3px; text-align: left; }
.dcard:hover { background: var(--hover); }
.dcard[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dcard .dsize { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; margin-top: 4px; }
.dcard .dsub { font-size: 12px; color: var(--muted); }
.dcard .when { font-size: 11px; color: var(--muted); opacity: .8; }
.dcard.never .when { color: var(--check); opacity: 1; }
@media (max-width: 560px) { .drivestrip { grid-template-columns: 1fr 1fr; } .dcard .dsize { font-size: 22px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(40px, 1fr); gap: 4px; align-items: end; overflow-x: auto; padding-bottom: 14px; }
.yr { display: grid; grid-template-rows: 70px auto auto; gap: 3px; border: 0; background: none; padding: 0; text-align: center; }
.yr .bar { align-self: end; background: var(--line); border-radius: 2px 2px 0 0; min-height: 3px; }
.yr:hover .bar { background: var(--muted); }
.yr[aria-pressed="true"] .bar { background: var(--tape); }
.yr .y { font-family: var(--f-display); font-weight: 800; font-size: 16px; line-height: 1; }
.yr .n { font-size: 11px; color: var(--muted); }
.yr[aria-pressed="true"] .y { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.more { margin-block: 16px 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 3px; }

.tape { --c: var(--t-F); display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  background: var(--c); color: #141414; padding: 3px 9px 3px 7px; white-space: nowrap; line-height: 1.35; justify-self: start;
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 22%, 100% 44%, calc(100% - 2px) 66%, 100% 86%, calc(100% - 3px) 100%, 0 100%); }
.tape.dark { color: #f5f5f0; }
.tapes { display: flex; flex-wrap: wrap; gap: 4px; }

.bar-sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-block: 12px; }
.search { flex: 1 1 260px; min-width: 0; position: relative; }
.search input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; }
select { padding: 8px 10px; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; max-width: 100%; }

.listhead { padding-block: 14px 8px; }
.count { font-size: 13.5px; color: var(--muted); }
.count b { color: var(--ink); }
.list { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 280px) 170px 92px; gap: 14px; align-items: center; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; background: none; width: 100%; }
.row:hover { background: var(--hover); }
.row .date { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.row .date b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1; }
.row .title { min-width: 0; display: grid; gap: 3px; }
.row .name { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.row .meta { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.row .size { text-align: right; }
.row .size b { font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.states { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--c); background: var(--cs); padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.s-present { --c: var(--ok); --cs: var(--ok-soft); }
.s-not_checked { --c: var(--check); --cs: var(--check-soft); }
.s-confirmed_missing { --c: var(--risk); --cs: var(--risk-soft); }
.s-drive_not_connected { --c: var(--dbx); --cs: var(--dbx-soft); }
.empty { padding: 40px 10px; color: var(--muted); }
@media (max-width: 900px) {
  .row { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "d t s" "d c c" "d h h"; gap: 6px 12px; }
  .row .date { grid-area: d; align-self: start; } .row .title { grid-area: t; } .row .size { grid-area: s; align-self: start; }
  .row .tapes { grid-area: c; } .row .states { grid-area: h; }
}

.scrim { position: fixed; inset: 0; background: rgba(10, 12, 11, .5); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--surface); z-index: 41; box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.dhead { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.dhead .x { justify-self: end; border: 1px solid var(--line); background: var(--raise); width: 34px; height: 34px; border-radius: 3px; font-size: 18px; line-height: 1; margin-bottom: -34px; }
.dhead h2 { font-size: 36px; line-height: .95; padding-right: 44px; overflow-wrap: anywhere; }
.dbody { overflow-y: auto; padding: 16px 20px 40px; display: grid; gap: 22px; align-content: start; }
.sec { display: grid; gap: 10px; }
.sec h3 { margin: 0; font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.folder { border: 1px solid var(--line); background: var(--raise); border-radius: 3px; padding: 10px 12px; display: grid; gap: 7px; }
.folder-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.folder-top .sz { margin-left: auto; font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.folder .path { font-family: var(--f-mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.folder .why { font-size: 12.5px; color: var(--muted); }
.suggested { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border: 1px dashed var(--muted); color: var(--muted); padding: 1px 6px; border-radius: 2px; }
.reads { font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.foot { padding-block: 24px 56px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; max-width: 100ch; }
.foot p { margin: 0; }
.foot summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot[open] summary { margin-bottom: 4px; }
.banner .banner-retry { margin-left: 10px; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 6px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.pwform { margin: 0; max-width: 440px; }
.pwform h2 { font-size: 24px; }
.pwform label { font-size: 13px; color: var(--muted); }
.pwform input { padding: 10px 12px; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; width: 100%; }
.folder .acts { display: flex; flex-wrap: wrap; gap: 6px; }
a.btn { color: var(--ink); text-decoration: none; display: inline-block; }

.lstate { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border: 1px dashed var(--muted); color: var(--muted); padding: 1px 6px; border-radius: 2px; }
.ls-confirmed .lstate { border-style: solid; border-color: var(--ok); color: var(--ok); }
.ls-rejected { opacity: .6; }
.ls-rejected .lstate { border-style: solid; border-color: var(--risk); color: var(--risk); }
.btn.ok { border-color: var(--ok); color: var(--ok); }
.btn.sm { padding: 2px 8px; font-size: 12px; }
.edit { display: grid; gap: 8px; }
.edit label { font-size: 12.5px; color: var(--muted); }
.edit textarea { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; padding: 8px 10px; font: inherit; color: inherit; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagrow input { flex: 1 1 140px; min-width: 120px; padding: 6px 9px; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; }
.tagchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-right: 4px; color: var(--ink); }
.tagchip button { border: 0; background: none; color: var(--muted); padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.saved { font-size: 12px; color: var(--muted); }
.moneyrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.moneyrow div { border: 1px solid var(--line); background: var(--raise); border-radius: 3px; padding: 8px 10px; display: grid; gap: 2px; }
.moneyrow b { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1; }
.moneyrow span { font-size: 12px; color: var(--muted); }
.mitems { display: grid; border: 1px solid var(--line); border-radius: 3px; background: var(--raise); }
.mitems > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.mitems > div:last-child { border-bottom: 0; }
.mitems .d { overflow-wrap: anywhere; }
.fbadd { display: flex; flex-wrap: wrap; gap: 6px; }
.fbadd select { flex: 1 1 200px; }

.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--raise); margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 8px 16px; font-weight: 600; border-right: 1px solid var(--line); }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.upgrade { border: 1px dashed var(--check); color: var(--check); padding: 10px 12px; border-radius: 3px; }
.stuck { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 8px; }
.stuck h3 { margin: 0; font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stuck h3 .num { color: var(--risk); margin-left: 6px; }
.stucklist { display: grid; gap: 4px; }
.stuckrow { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px; text-align: left; border: 0; border-left: 3px solid var(--risk); background: var(--raise); padding: 7px 10px; border-radius: 2px; }
.stuckrow span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .stuckrow { grid-template-columns: 1fr; gap: 2px; } }
.boardbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 12px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.toggle.sm { font-size: 12px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 40px; align-items: start; }
.bcol { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 8px; display: grid; gap: 6px; }
.bhead { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); }
.bhead b { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.bhead .num { color: var(--muted); font-size: 12px; }
.bcard { background: var(--raise); border: 1px solid var(--line); border-radius: 3px; padding: 8px; display: grid; gap: 5px; }
.bname { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.bmeta { font-size: 12px; color: var(--muted); }
.bmove { font-size: 12px; padding: 4px 6px; }
.newjob, .addrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.addrow input, .addrow select, .newjob input, .newjob select, .pipe select, .pipe input { padding: 6px 9px; border: 1px solid var(--line); background: var(--raise); border-radius: 3px; min-width: 0; }
.addrow input { flex: 1 1 140px; }
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pipe label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .pipe { grid-template-columns: 1fr; } }
.moneyrow.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 560px) { .moneyrow.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mitems select { font-size: 12px; padding: 3px 6px; }
.docs > div { grid-template-columns: 90px minmax(0, 1fr) auto; }
.dkind { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.docs a { color: var(--ink); }
.host { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.dacts { display: inline-flex; gap: 8px; align-items: center; }
.clist { display: grid; border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 140px 140px; gap: 12px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 11px 8px; align-items: center; }
.crow:hover { background: var(--hover); }
.crow span { color: var(--muted); font-size: 13px; } .crow .num { text-align: right; color: var(--ink); }
@media (max-width: 700px) { .crow { grid-template-columns: 1fr auto; } .crow span:nth-child(2) { grid-column: 1 / -1; } }
.ctitle { margin: 10px 0 12px; font-size: 40px; }
#clientsView .sec { margin-top: 20px; }
.scard { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 16px; display: grid; gap: 10px; margin-bottom: 12px; }
#shared { display: grid; gap: 12px; padding-bottom: 60px; }

/* Sharing a job from the shared view (crm.js): text at 14px or larger. */
.sshare { margin-top: 12px; }
.sshare .mitems span, .sshare .btn, .sshare .saved { font-size: 14px; }
