/* HOF-TRANSFER-001 — House of Film Studio transfer. */
:root {
  --bg: #0b0c0e;
  --panel: #14161a;
  --panel-2: #1b1e24;
  --line: #2a2f38;
  --ink: #e9e6e0;
  --ink-2: #a6a49e;
  --ink-3: #6f6d69;
  --accent: #c8a061;
  --ok: #5fb87a;
  --warn: #d8a13a;
  --bad: #d4645c;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f3; --panel: #ffffff; --panel-2: #f1efea; --line: #dcd8d0;
    --ink: #1a1a18; --ink-2: #57544e; --ink-3: #8b877f; --accent: #8a6a2f;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 40px 16px 96px; }
.wrap.wide { max-width: 1140px; }
header.masthead { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.brand { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
h1 { font-size: 27px; font-weight: 500; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.sub { color: var(--ink-2); margin: 0; font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel.tight { padding: 14px 16px; }
label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
input, select, textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; min-width: 0; }
button {
  background: var(--accent); color: #17130b; border: 0; border-radius: 8px;
  padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; }
button.ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); filter: none; }
button.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); font-weight: 500; }
button.small { padding: 6px 10px; font-size: 13px; }
.msg { border-radius: 8px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.msg.err { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.msg.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.msg.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.hidden { display: none !important; }
.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 40px 20px;
  text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--panel-2); color: var(--ink); }
.drop strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; font-weight: 500; }
.item { border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 12px; align-items: center; }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { color: var(--ink-3); font-size: 12.5px; }
.bar { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; margin-top: 7px; }
.bar > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.bar.done > span { background: var(--ok); }
.bar.failed > span { background: var(--bad); }
.tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tag.up { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tag.down { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.tag.dead { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.linkbox { font-family: var(--mono); font-size: 12.5px; word-break: break-all; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 0 10px 8px 0; }
td { padding: 9px 10px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; padding-right: 0; }
a { color: var(--accent); }
.foot { color: var(--ink-3); font-size: 12.5px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.stack > * + * { margin-top: 10px; }
@media (max-width: 620px) { .wrap { padding: 24px 16px 72px; } h1 { font-size: 22px; } .row > * { flex-basis: 100%; } }

/* ===========================================================================
   Command Centre shell.
   Structure and vocabulary follow packages/command-center (nav groups,
   StatCard, PageHeader, Table) without importing it: that package is React +
   Tailwind and pulling it in would drag the monorepo into this standalone
   container, along with the barrel imports known to leak every tenant's brand
   profile into a public bundle. Same shape, no shared bundle.
   =========================================================================== */
.cc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; }
.cc-nav { position: sticky; top: 24px; }
.cc-group { margin-bottom: 18px; }
.cc-group h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 8px; font-weight: 600;
}
.cc-nav a {
  display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink-2);
  text-decoration: none; font-size: 14px; border-left: 2px solid transparent;
}
.cc-nav a:hover { background: var(--panel); color: var(--ink); }
.cc-nav a[aria-current="page"] { background: var(--panel); color: var(--ink); border-left-color: var(--accent); }

.pagehead { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.pagehead h2 { margin: 0 0 4px; font-size: 20px; }
.pagehead p { margin: 0; color: var(--ink-2); font-size: 13.5px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.stat .v b { font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
.stat .v span { font-size: 13px; color: var(--ink-3); }
.stat .f { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.stat.alert { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.stat.alert .v b { color: var(--warn); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 8px; background: var(--ink-3); }
.check.pass .dot { background: var(--ok); }
.check.fail .dot { background: var(--bad); }
.check.unknown .dot { background: var(--warn); }
.check .grow strong { display: block; font-weight: 500; font-size: 14px; }

@media (max-width: 820px) {
  .cc { grid-template-columns: 1fr; gap: 18px; }
  .cc-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .cc-group { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .cc-group h3 { margin: 0 4px 0 0; }
  .cc-nav a { border-left: 0; border-bottom: 2px solid transparent; }
  .cc-nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--accent); }
}

/* Replaces inline style attributes. `style-src-attr` falls back to `style-src`,
   which is 'self' with no 'unsafe-inline', so a style="" attribute is dropped by
   the browser without any error — the spacing simply never applied. */
.sub-gap   { margin-top: 12px; }
.sub-gap-b { margin-bottom: 14px; }

/* Add-a-person wizard: two big plain-language choices, not a form field. */
.choice-row { margin-bottom: 4px; }
button.choice {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; text-align: left; font-weight: 400;
  display: flex; flex-direction: column; gap: 4px;
}
button.choice strong { font-size: 15px; font-weight: 600; }
button.choice span { color: var(--ink-2); font-size: 13px; font-weight: 400; }
button.choice:hover:not(:disabled) { border-color: var(--ink-3); filter: none; }
button.choice[aria-pressed="true"] {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel-2));
}
button.choice[aria-pressed="true"] strong { color: var(--accent); }
details > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; user-select: none; }
details[open] > summary { color: var(--ink); margin-bottom: 4px; }

/* Footer credit on the link surfaces. The studio is named here and nowhere
   higher up: these pages belong to whoever was sent them. */
.foot-credit { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; }
.foot-credit a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-credit a:hover { color: var(--ink); border-bottom-color: var(--accent); }
