/* C-LAB desk · the layer this site owns.
   node.css, desk.css, icons.js and the rest of static/assets are canon and
   synced (STD-010.2): never edited here. */

/* The node accent, five variables together and in a stylesheet, never inline
   (STD-010.4 as amended 2026-08-14, so it survives a CSP without unsafe
   inline styles). */
:root {
  --accent:      oklch(0.83 0.13 178);
  --accent-2:    oklch(0.91 0.08 178);
  --accent-h:    178;
  --accent-glow: oklch(0.83 0.13 178 / 0.28);
  --accent-soft: oklch(0.83 0.13 178 / 0.12);
}

/* Provenance: a J-LAB tool running as a screen in this desk wears J-LAB's
   amber-rose, exactly as a C-LAB tool wears cyan over there. The accent names
   the lab the tool comes from; the chrome around it stays this desk's. */
[data-lab="j-lab"] {
  --accent:      oklch(0.76 0.15 48);
  --accent-2:    oklch(0.83 0.11 55);
  --accent-h:    48;
  --accent-glow: oklch(0.76 0.15 48 / 0.28);
  --accent-soft: oklch(0.76 0.15 48 / 0.12);
}

/* Colour alone is not a signal. The lab is written too. */
.lab-chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px;
  color: var(--accent); border: 1px solid var(--accent);
  background: var(--accent-soft);
}

/* ── Sign in ───────────────────────────────────────────────────────────── */

.auth-wrap {
  min-height: 100dvh; display: grid; place-items: center;
  padding: clamp(20px, 5vw, 60px);
}
.auth-card {
  width: 100%; max-width: 400px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  padding: clamp(22px, 4vw, 32px);
}
.auth-card h1 {
  font-size: 1.35rem; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.01em;
}
.auth-lead { color: var(--fg-2); font-size: 0.88rem; line-height: 1.55; margin: 0 0 20px; }
.auth-field {
  width: 100%; margin-bottom: 10px; padding: 11px 13px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 9px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.86rem;
}
.auth-field:focus { outline: none; border-color: var(--accent); }
.auth-submit {
  width: 100%; margin-top: 4px; padding: 11px 16px; cursor: pointer;
  background: var(--accent); color: var(--bg); font-weight: 600;
  border: 1px solid var(--accent); border-radius: 9px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.auth-submit:hover { filter: brightness(1.06); }
.auth-error {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 9px;
  font-size: 0.82rem; line-height: 1.5;
  color: oklch(0.78 0.14 25); border: 1px solid oklch(0.5 0.12 25);
  background: oklch(0.5 0.12 25 / 0.12);
}
.auth-foot {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; color: var(--mid); line-height: 1.6;
}
.auth-foot a { color: var(--accent); }

/* ── The hub screen ────────────────────────────────────────────────────── */

.hub-note {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  padding: 16px 18px; margin-top: 22px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
}
.hub-note .n-ico { color: var(--accent); flex: none; }
.hub-note .n-ico svg { width: 20px; height: 20px; }
.hub-note .n-text { flex: 1 1 300px; min-width: 0; }
.hub-note .n-text b { display: block; color: var(--fg); font-size: 0.92rem; margin-bottom: 3px; }
.hub-note .n-text span { display: block; color: var(--fg-2); font-size: 0.83rem; line-height: 1.55; }

/* Tool screens · layout shared with the J-LAB desk.
   Copied rather than invented so a tool looks the same in either lab: the
   masthead shape is the STD-024.4 contract. Colours come from the design
   system tokens, never from here. */

.tool-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; }
.tool-head > div:first-child { max-width: 640px; min-width: 0; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tool-meta span { font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: 0.05em; color: var(--mid); text-transform: uppercase;
  padding-right: 12px; margin-right: 12px; border-right: 1px solid var(--line); }
.tool-meta span:last-child { border-right: 0; }

/* two-column workspace: evidence on the left, findings on the right */
.tool-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; margin-top: 24px;
  align-items: start; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr; } }

/* drop zone */
.drop { border: 1px dashed var(--line-strong, var(--line)); border-radius: 8px;
  padding: 28px 18px; text-align: center; cursor: pointer; background: var(--bg-2);
  transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 22px; height: 22px; color: var(--accent); }
.drop .dz-t { font-size: 0.9rem; margin-top: 8px; }
.drop .dz-s { font-size: 0.75rem; color: var(--mid); margin-top: 4px; }

/* verdict rows: severity carries the colour, the text carries the meaning */
.vrow { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line-soft); }
.vrow:first-of-type { border-top: 0; }
.vrow .vk { font-size: 0.86rem; }
.vrow .vd { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--mid);
  margin-top: 3px; word-break: break-word; }
.sev { font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 20px; border: 1px solid currentColor; }
.sev-critical { color: var(--g-f, var(--sem-scene)); }
.sev-high     { color: var(--sem-scene); }
.sev-medium   { color: var(--sem-facts); }
.sev-low      { color: var(--mid); }

/* HashCheck's own rows: one file, its algorithms, and the verdict. */
.hc-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line-soft); align-items: baseline;
}
.hc-row:first-of-type { border-top: 0; }
.hc-algo {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.68rem;
  letter-spacing: 0.06em; color: var(--accent);
}
.hc-hex {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.74rem;
  color: var(--fg-2); word-break: break-all; line-height: 1.5;
}
.hc-verdict {
  margin-top: 16px; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); font-size: 0.86rem;
}
.hc-verdict.ok    { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.hc-verdict.bad   { color: oklch(0.72 0.17 25); border-color: oklch(0.55 0.15 25); background: oklch(0.55 0.15 25 / 0.12); }
.hc-verdict .why  { display: block; margin-top: 5px; font-size: 0.78rem; color: var(--fg-2); line-height: 1.5; }
.hc-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.hc-progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .12s linear; }

/* Buttons shared with the J-LAB desk. This screen used .btn-line before it
   existed here, which let the icon render at its intrinsic 344px: a button
   taller than the panel it sat in. Same definition as the other desk, so a
   control looks the same in either lab. */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px;
  font-family: inherit; font-size: 12.5px; cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-line.sm { padding: 6px 10px; font-size: 11px; }
.btn-line svg { width: 15px; height: 15px; flex: none; }

/* The algorithm checkboxes read as a list, not as loose text. */
.hc-algo-box { accent-color: var(--accent); margin-right: 7px; }
label:has(.hc-algo-box) {
  display: flex; align-items: center; padding: 6px 0;
  font-size: 0.84rem; color: var(--fg-2); cursor: pointer;
}

/* ApiPass rows: a key, its tags, and the secret kept covered until asked for. */
.ap-row {
  padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.ap-row:first-of-type { border-top: 0; }
.ap-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ap-name { font-size: 0.92rem; color: var(--fg); }
.ap-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.6rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px;
}
.ap-secret { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.ap-val {
  flex: 1 1 220px; min-width: 0; word-break: break-all;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.76rem;
  color: var(--fg-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
}
.ap-notes { margin: 7px 0 0; font-size: 0.78rem; color: var(--mid); line-height: 1.5; }
#ap-search { margin-bottom: 14px; }

/* CVECheck rows: severity first, because that is what decides whether the
   rest is worth reading. */
.cv-filters { display: flex; gap: 10px; margin-bottom: 14px; }
.cv-filters .auth-field { margin-bottom: 0; }
.cv-row { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.cv-row:first-of-type { border-top: 0; }
.cv-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cv-id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.78rem; color: var(--fg); }
.cv-when { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem; color: var(--mid); }
.cv-status {
  margin-left: auto; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem; letter-spacing: 0.04em;
}
.cv-status.ok   { color: var(--accent); }
.cv-status.open { color: oklch(0.72 0.17 25); }
.cv-desc { margin: 7px 0 0; font-size: 0.82rem; color: var(--fg-2); line-height: 1.55; }
.cv-refs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cv-refs a {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem;
  color: var(--mid); text-decoration: none; border-bottom: 1px solid var(--line);
}
.cv-refs a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- ExifCheck screen (STD-024). Panel and dump vocabulary ported from the
   J-LAB desk so the two desks read the same; accent-driven, so it wears
   C-LAB cyan here without naming a colour. ---- */
.desk .panel { border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 18px 20px; min-width: 0;
  overflow-wrap: anywhere; }
.desk .ph { display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); }
.ph .spacer { flex: 1; }
.muted { color: var(--mid); }
.sm-note { font-size: 0.75rem; margin: 0 0 6px; }
.gap-t { margin-top: 16px; }
.gap-t-sm { margin-top: 12px; display: inline-flex; }
.exif-preview { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* metadata dump */
.dump-g { margin-top: 16px; }
.dump-g .dg-h { font-family: "IBM Plex Mono", monospace; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 6px; }
.dump-r { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding: 5px 0;
  border-top: 1px solid var(--line-soft); font-size: 0.78rem; }
.dump-r .dk { font-family: "IBM Plex Mono", monospace; color: var(--fg-2); word-break: break-word; }
.dump-r .dv { color: var(--mid); word-break: break-word; }
.dump-r.hot .dk { color: var(--sem-scene); }
@media (max-width: 700px) { .dump-r { grid-template-columns: 1fr; gap: 2px; } }

.ex-clean-note { margin: 12px 0 0; font-size: 0.76rem; color: var(--accent); }
.ex-gps-dec { font-size: 1.05rem; margin-top: 6px; }
.ex-gps-sub { font-size: 0.75rem; margin-top: 4px; }
.ex-filter { width: 170px; margin-top: 0; }
