/* FRX — Film Rights Exchange
   The palette is derived from the conflict-severity scale, because severity is
   the thing an operator reads first on every screen in this product.
   Display face is the monospace: every object here is an identifier. */

:root {
  --ink: #0E1317;
  --surface: #151B21;
  --surface-2: #1C242B;
  --rule: #27333C;
  --rule-soft: #1F292F;
  --text: #DCE4EA;
  --text-dim: #8A9AA6;
  --text-faint: #5C6B76;

  --blocking: #FF5240;
  --consent: #F2A33C;
  --warning: #C9A227;
  --info: #4EA3D9;
  --clear: #4FBF87;

  --accent: var(--info);

  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r: 3px;
  --pad: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--info); }

:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------- type */

.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-faint);
}

h1, h2, h3 { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 13px; color: var(--text-dim); }

/* ------------------------------------------------------------------ login */

.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 28px;
}
.brandmark { font-family: var(--mono); font-size: 26px; letter-spacing: -.03em; }
.brandmark span { color: var(--accent); }
.login p.lede { color: var(--text-dim); margin: 8px 0 22px; font-size: 13px; }
.field { display: block; margin-bottom: 14px; }
.field .eyebrow { display: block; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 9px 10px; font-family: var(--mono); font-size: 13px;
}
.hint { font-size: 11px; color: var(--text-faint); margin-top: 14px; font-family: var(--mono); }

/* ---------------------------------------------------------------- buttons */

.btn {
  background: var(--surface-2); border: 1px solid var(--rule); color: var(--text);
  border-radius: var(--r); padding: 7px 12px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .01em;
}
.btn:hover { border-color: var(--text-faint); background: #222B33; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--info); border-color: var(--info); color: #06121A; font-weight: 600; }
.btn.primary:hover { background: #63B3E4; }
.btn.danger { border-color: var(--blocking); color: var(--blocking); }
.btn.full { width: 100%; padding: 10px; }
.btn.ghost { background: transparent; }

/* ------------------------------------------------------------------ shell */

.shell { display: grid; height: 100vh; grid-template-rows: 48px 1fr; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--rule); background: var(--surface); padding: 0 14px;
}
.topbar .brandmark { font-size: 15px; }
.crumb { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.spacer { flex: 1; }
.topbar select {
  background: var(--ink); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 5px 8px; font-family: var(--mono); font-size: 11px;
}

/* rail layouts ------------------------------------------------------------ */

.body { display: grid; overflow: hidden; }
.body[data-rail="RAIL_LEFT_INDEX"] { grid-template-columns: 218px 1fr; }
.body[data-rail="RAIL_TOP_SECTIONS"] { grid-template-columns: 1fr 250px; grid-template-rows: 40px 1fr; }
.body[data-rail="RAIL_TOP_SECTIONS"] .rail { grid-column: 1 / -1; grid-row: 1; display: flex; gap: 2px; align-items: center; border-right: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.body[data-rail="RAIL_TOP_SECTIONS"] .main { grid-column: 1; grid-row: 2; }
.body[data-rail="RAIL_TOP_SECTIONS"] .context-rail { grid-column: 2; grid-row: 2; display: block; }
.body[data-rail="RAIL_COMMAND"] { grid-template-columns: 56px 1fr; }
.body[data-rail="RAIL_COMMAND"] .rail-label { display: none; }
.body[data-rail="RAIL_COMMAND"] .rail { text-align: center; }
.body[data-rail="RAIL_COMMAND"] .rail-item { justify-content: center; }

.rail {
  border-right: 1px solid var(--rule); background: var(--surface);
  padding: 10px 8px; overflow-y: auto;
}
.rail .eyebrow { padding: 6px 8px 4px; }
.rail-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: transparent; border: 0; border-left: 2px solid transparent;
  padding: 7px 8px; cursor: pointer; text-align: left; color: var(--text-dim);
  font-family: var(--mono); font-size: 12px; border-radius: 0;
}
.rail-item:hover { color: var(--text); background: var(--surface-2); }
.rail-item[aria-current="true"] { color: var(--text); border-left-color: var(--accent); background: var(--surface-2); }
.rail-glyph { font-size: 11px; color: var(--text-faint); width: 18px; flex: 0 0 18px; text-align: center; }

.context-rail { display: none; border-left: 1px solid var(--rule); background: var(--surface); padding: 12px 10px; overflow-y: auto; }

.main { overflow-y: auto; padding: 20px 22px 60px; position: relative; }

/* --------------------------------------------------------------------- hub */

.hub-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.hub-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; max-width: 68ch; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 10px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 13px; }
.kpi .label { font-size: 11px; color: var(--text-dim); min-height: 30px; }
.kpi .value { font-family: var(--mono); font-size: 22px; letter-spacing: -.02em; margin-top: 6px; }
.kpi[data-tone="BLOCKING"] .value { color: var(--blocking); }
.kpi[data-tone="CONSENT_REQUIRED"] .value { color: var(--consent); }
.kpi .basis { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; margin-top: 4px; }
.kpi .basis[data-basis="ACTUAL"] { color: var(--clear); }
.kpi .basis[data-basis="FORECAST"] { color: var(--text-faint); font-style: italic; }

.attention { border: 1px solid var(--rule); border-left: 2px solid var(--consent); background: var(--surface); border-radius: var(--r); padding: 12px 14px; margin-bottom: 24px; }
.attention ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.attention li { display: flex; gap: 9px; align-items: baseline; padding: 4px 0; font-size: 13px; }

.sev-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; display: inline-block; }
.sev-BLOCKING { background: var(--blocking); }
.sev-CONSENT_REQUIRED { background: var(--consent); }
.sev-WARNING { background: var(--warning); }
.sev-INFO { background: var(--info); }
.sev-CLEAR { background: var(--clear); }

.section-block { margin-bottom: 26px; }
.section-block > .eyebrow { display: block; border-bottom: 1px solid var(--rule-soft); padding-bottom: 6px; margin-bottom: 10px; }
.spoke-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 9px; }
.spoke-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 12px 13px; cursor: pointer; text-align: left; width: 100%;
}
.spoke-card:hover { border-color: var(--accent); }
.spoke-card .name { font-family: var(--mono); font-size: 13px; }
.spoke-card .blurb { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; }
.spoke-card .kind { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--text-faint); margin-top: 8px; }

/* ------------------------------------------------------------------ spokes */

.scrim { position: fixed; inset: 0; background: rgba(6, 10, 13, .68); z-index: 40; }
.spoke {
  position: fixed; z-index: 50; background: var(--surface);
  border: 1px solid var(--rule); display: flex; flex-direction: column;
}
.spoke[data-kind="SHEET"] { top: 0; right: 0; bottom: 0; width: min(560px, 94vw); border-right: 0; }
.spoke[data-kind="MODAL"] { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(620px, 94vw); max-height: 86vh; border-radius: var(--r); }
.spoke[data-kind="PANEL"], .spoke[data-kind="ROOM"] { top: 34px; left: 24px; right: 24px; bottom: 24px; border-radius: var(--r); }
@media (max-width: 720px) {
  .spoke[data-kind="SHEET"], .spoke[data-kind="PANEL"], .spoke[data-kind="ROOM"], .spoke[data-kind="MODAL"] {
    inset: 0; width: auto; max-height: none; transform: none; border-radius: 0;
  }
  .body[data-rail] { grid-template-columns: 1fr !important; }
  .rail { display: none; }
}

.spoke-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.spoke-head .kind { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--text-faint); }
.spoke-body { padding: 16px; overflow-y: auto; flex: 1; }
.spoke-foot { padding: 11px 16px; border-top: 1px solid var(--rule); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface-2); }
.spoke-foot .note { font-size: 11px; color: var(--text-faint); margin-left: auto; font-family: var(--mono); }

/* ------------------------------------------------------------------ tables */

table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.grid th {
  text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 500;
  border-bottom: 1px solid var(--rule); padding: 7px 8px;
}
table.grid td { border-bottom: 1px solid var(--rule-soft); padding: 8px; vertical-align: top; }
table.grid tr:hover td { background: var(--surface-2); }
table.grid td.num { font-family: var(--mono); text-align: right; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  border: 1px solid var(--rule); border-radius: 2px; padding: 1px 6px; color: var(--text-dim);
}
.tag.on-blocking { border-color: var(--blocking); color: var(--blocking); }
.tag.on-consent { border-color: var(--consent); color: var(--consent); }
.tag.on-clear { border-color: var(--clear); color: var(--clear); }
.tag.on-info { border-color: var(--info); color: var(--info); }

/* ----------------------------------------------- signature: the window bar */
/* Every rights object is a span on a shared time axis. Overlaps are hatched
   in the severity colour. This is the one visual that carries the product. */

.axis { position: relative; height: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.axis .tick { position: absolute; top: 0; font-family: var(--mono); font-size: 9px; color: var(--text-faint); transform: translateX(-50%); }
.axis .tick::after { content: ''; position: absolute; left: 50%; top: 12px; width: 1px; height: 5px; background: var(--rule); }

.wbar-row { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: center; margin-bottom: 5px; }
.wbar-label { font-family: var(--mono); font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbar-track { position: relative; height: 18px; background: var(--ink); border: 1px solid var(--rule-soft); border-radius: 2px; }
.wbar {
  position: absolute; top: 2px; bottom: 2px; border-radius: 1px;
  background: var(--surface-2); border: 1px solid var(--text-faint);
}
.wbar[data-ex="EXCLUSIVE"] { background: #24343F; border-color: var(--info); }
.wbar[data-ex="SOLE"] { background: #2C3238; border-color: var(--warning); }
.wbar[data-kind="GRANT"] { border-style: solid; }
.wbar[data-kind="PACKAGE"] { border-style: dashed; }
.wbar-overlap {
  position: absolute; top: 0; bottom: 0; opacity: .85;
  background-image: repeating-linear-gradient(45deg, currentColor 0 3px, transparent 3px 6px);
}
.wbar-overlap[data-sev="BLOCKING"] { color: var(--blocking); }
.wbar-overlap[data-sev="CONSENT_REQUIRED"] { color: var(--consent); }
.wbar-overlap[data-sev="WARNING"] { color: var(--warning); }
.wbar-overlap[data-sev="INFO"] { color: var(--info); }

/* --------------------------------------------------------------- progress */

.progress { height: 3px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; margin: 10px 0; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .18s linear; }
.progress-label { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: .1em; }

/* ------------------------------------------------------------------ misc */

.callout { border: 1px solid var(--rule); border-left: 2px solid var(--info); background: var(--surface-2); padding: 10px 12px; border-radius: var(--r); font-size: 12.5px; margin: 12px 0; }
.callout[data-sev="BLOCKING"] { border-left-color: var(--blocking); }
.callout[data-sev="CONSENT_REQUIRED"] { border-left-color: var(--consent); }
.callout[data-sev="CLEAR"] { border-left-color: var(--clear); }

.gate-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.gate-row .g-label { font-family: var(--mono); font-size: 12px; flex: 1; }
.gate-row .g-detail { font-size: 11.5px; color: var(--text-dim); }

pre.raw { background: var(--ink); border: 1px solid var(--rule); border-radius: var(--r); padding: 11px; font-family: var(--mono); font-size: 11px; overflow: auto; max-height: 340px; white-space: pre-wrap; word-break: break-word; }

.toast-wrap { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 6px; }
.toast { background: var(--surface-2); border: 1px solid var(--rule); border-left: 2px solid var(--clear); border-radius: var(--r); padding: 9px 14px; font-size: 12.5px; max-width: 520px; }
.toast[data-kind="error"] { border-left-color: var(--blocking); }
.toast[data-kind="gate"] { border-left-color: var(--consent); }

.empty { color: var(--text-faint); font-size: 12.5px; padding: 18px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.row .field { margin-bottom: 0; flex: 1; min-width: 140px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 10px; }
.checks label { font-size: 12px; display: flex; gap: 6px; align-items: center; font-family: var(--mono); }

.palette { position: fixed; inset: 0; z-index: 60; background: rgba(6,10,13,.7); display: grid; place-items: start center; padding-top: 12vh; }
.palette-box { width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.palette-box input { width: 100%; background: var(--ink); border: 0; border-bottom: 1px solid var(--rule); padding: 12px 14px; font-family: var(--mono); }
.palette-list { max-height: 46vh; overflow-y: auto; }
.palette-list button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 9px 14px; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.palette-list button:hover, .palette-list button[data-active="true"] { background: var(--surface-2); color: var(--text); }
.palette-list .where { color: var(--text-faint); font-size: 10px; letter-spacing: .1em; }


/* FRX-DEF-0032 — entry/sub-modal viewport discipline. The dialog frame and
   action footer stay visible; only the form body scrolls on short screens. */
.palette.entry-modal { place-items: center; padding: 16px; }
.entry-modal-box {
  width: min(620px, 94vw);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.entry-modal-head {
  flex: 0 0 auto;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--surface);
}
.entry-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 14px 16px 4px;
}
.entry-modal-foot {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
  box-shadow: 0 -8px 20px rgba(6,10,13,.18);
}
@media (max-height: 700px) {
  .palette.entry-modal { padding: 8px; }
  .entry-modal-box { max-height: calc(100dvh - 16px); }
  .entry-modal-head { padding: 11px 14px 9px; }
  .entry-modal-body { padding: 10px 14px 2px; }
  .entry-modal-foot { padding: 9px 14px; }
}

/* scope chip — block 09 */
.chip-scope {
  font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 11px; margin-left: 10px; cursor: pointer;
  max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-scope:hover { border-color: var(--text-dim); color: var(--text); }
.chip-scope.on {
  color: var(--sev-consent); border-color: var(--sev-consent);
  background: color-mix(in srgb, var(--sev-consent) 12%, transparent);
}

/* agent rail — block 11 */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 10px; }
.agent-card { border: 1px solid var(--rule); border-radius: 4px; padding: 14px; background: var(--surface); }
.agent-card h3 { font-size: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
pre.code { background: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 10px;
  font: 11.5px/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

/* ========================================================= FRX-B020A auth */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(410px, .85fr);
  background: #081016;
}
.login-hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(circle at 74% 20%, rgba(78,163,217,.22), transparent 26%),
    radial-gradient(circle at 20% 75%, rgba(79,191,135,.10), transparent 28%),
    linear-gradient(155deg, #102939 0%, #0b1720 46%, #071016 100%);
}
.login-hero::before, .login-hero::after {
  content: ''; position: absolute; pointer-events: none;
}
.login-hero::before {
  width: 72vw; height: 72vw; left: -35vw; bottom: -51vw;
  border: 1px solid rgba(78,163,217,.22); border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(78,163,217,.018), 0 0 0 18vw rgba(78,163,217,.014);
}
.login-hero::after {
  inset: auto 0 0; height: 33%;
  background: linear-gradient(to top, rgba(4,8,11,.92), transparent);
}
.login-hero-shade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 80%, transparent);
}
.login-hero-content { position: relative; z-index: 2; max-width: 690px; padding: clamp(44px, 7vw, 90px); }
.login-brand { font: 800 clamp(58px, 8vw, 108px)/.9 var(--sans); letter-spacing: -.075em; color: #f4f8fb; }
.login-hero h1 { font: 650 clamp(28px, 3vw, 42px)/1.05 var(--sans); letter-spacing: -.04em; margin-top: 18px; color: #f3f7fa; }
.login-tagline { font: 600 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #86c7ef; margin: 16px 0 0; }
.login-hero-rule { width: 62px; height: 3px; background: var(--clear); margin: 28px 0; }
.login-promise { color: #afbdc8; max-width: 590px; font-size: 16px; line-height: 1.7; }
.hero-gates { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #a9b7c1; }
.gate-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.gate-dot.clear { background: var(--clear); }.gate-dot.info { background: var(--info); }.gate-dot.consent { background: var(--consent); }.gate-dot.blocking { background: var(--blocking); }

.login-card {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(34px, 6vw, 76px); background: #f7f9fb; color: #17222b;
}
.login-card .login-card-brand { color: #10202b; font-size: 30px; margin-bottom: 26px; }
.login-card h2 { font: 700 28px/1.1 var(--sans); letter-spacing: -.035em; color: #111c24; }
.login-card-sub { color: #60717f; margin: 8px 0 24px; max-width: 510px; }
.login-card .field .eyebrow { color: #6f8290; }
.login-card .field input, .login-card .field select, .login-card .field textarea {
  background: #fff; border-color: #d5dde3; color: #17222b; border-radius: 6px; padding: 11px 12px;
}
.login-card .field input:focus { border-color: #328ec7; }
.identity-provider {
  width: 100%; min-height: 47px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  text-align: left; background: #fff; border: 1px solid #d5dde3; color: #17222b;
  border-radius: 6px; padding: 8px 12px; cursor: pointer; margin-bottom: 9px; font-weight: 600;
}
.identity-provider:hover { border-color: #9fb2c0; box-shadow: 0 2px 10px rgba(11,30,43,.06); }
.identity-provider.not-connected { color: #5d6c77; background: #f3f6f8; }
.provider-glyph { width: 27px; height: 27px; border: 1px solid #d7dee4; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--sans); background: #fff; }
.provider-google { color: #316cc4; }.provider-facebook { color: #1877f2; font-size: 17px; }.provider-glyph.imdb { width: 42px; border-radius: 4px; color: #151515; background: #f5c518; border-color: #f5c518; font-size: 10px; }
.provider-state { font: 700 9px/1 var(--mono); letter-spacing: .06em; color: #8696a2; border: 1px solid #d4dce2; border-radius: 999px; padding: 5px 7px; }
.provider-state.live { color: #25875b; border-color: #91cfb1; }
.passkey-provider { margin-top: 10px; }
.login-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0 18px; color: #8a99a4; font-size: 11px; }
.login-divider span { height: 1px; background: #dce3e8; }.login-divider b { font-weight: 500; }
.login-submit { min-height: 46px; border-radius: 6px; font-size: 13px; }
.login-switch { border: 0; background: transparent; color: #247daf; cursor: pointer; padding: 13px 0; text-align: left; font-weight: 600; }
.login-trust { margin-top: 16px; border-top: 1px solid #e0e6ea; padding-top: 14px; display: flex; flex-direction: column; gap: 3px; color: #72828d; font-size: 11px; }
.login-trust strong { color: #40525f; font-family: var(--mono); }
.login-card .hint { color: #8796a1; }

/* =================================================== B020A onboarding */
.onboarding-shell { min-height: 100vh; background: #f5f7f9; color: #17222b; display: grid; grid-template-rows: 60px 1fr 42px; }
.onboarding-top { background: #071a28; color: var(--text); display: flex; align-items: center; gap: 18px; padding: 0 28px; border-bottom: 1px solid #183346; }
.onboarding-top .brandmark { font-size: 22px; }.onboarding-account { margin-left: auto; color: #9fb0bd; font: 11px var(--mono); }
.onboarding-stage { width: min(1040px, 94vw); margin: 0 auto; padding: 38px 0 52px; }
.onboarding-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 34px; }
.onboarding-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #8a99a4; font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.onboarding-step::after { content: ''; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: #d9e1e7; z-index: 0; }
.onboarding-step:last-child::after { display: none; }
.step-number { position: relative; z-index: 1; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #e3e9ed; border: 2px solid #e3e9ed; color: #697985; }
.onboarding-step[data-status="COMPLETE"] .step-number { background: var(--clear); border-color: var(--clear); color: #fff; }
.onboarding-step[data-status="CURRENT"] .step-number, .onboarding-step[data-status="NOT_STARTED"] .step-number { background: #fff; border-color: #2c91ce; color: #2c91ce; }
.onboarding-step[data-status="COMPLETE"]::after { background: #67bd93; }
.onboarding-panel { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #dde4e9; border-radius: 9px; padding: clamp(26px, 4vw, 46px); box-shadow: 0 15px 50px rgba(28,48,62,.07); }
.onboarding-panel > h1 { font: 700 31px/1.12 var(--sans); letter-spacing: -.04em; color: #14212b; margin: 8px 0 9px; }
.onboarding-copy { color: #657784; max-width: 690px; margin: 0 0 28px; }
.profile-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.profile-type-card { min-height: 122px; background: #fbfcfd; border: 1px solid #d8e0e6; border-radius: 7px; color: #273842; padding: 18px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.profile-type-card:hover, .profile-type-card.selected { border-color: #2c91ce; background: #f0f8fd; box-shadow: inset 0 0 0 1px #2c91ce; }
.profile-type-icon { font: 700 24px/1 var(--mono); color: #2d89bd; }.profile-type-card strong { font-size: 12px; line-height: 1.35; }
.onboarding-actions { margin-top: 26px; padding-top: 20px; border-top: 1px solid #edf1f3; display: flex; justify-content: flex-end; gap: 9px; }
.onboarding-panel .btn { border-radius: 5px; }.onboarding-panel .btn.primary { min-width: 150px; }
.onboarding-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }.onboarding-form-grid .wide { grid-column: 1 / -1; }
.onboarding-panel .field .eyebrow { color: #687985; }.onboarding-panel .field input, .onboarding-panel .field textarea, .onboarding-panel .field select { background: #fff; color: #17222b; border-color: #d4dde3; border-radius: 5px; }
.imdb-provenance { display: flex; align-items: center; gap: 10px; color: #6a7a85; font-size: 11.5px; background: #fbfcfd; border: 1px solid #e2e8ec; border-radius: 5px; padding: 10px 12px; }
.pending-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; border: 1px solid #dbe4ea; background: #f8fbfd; border-radius: 7px; padding: 18px; }
.pending-card p { color: #687a86; margin: 6px 0 0; }.pending-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #e9f5fc; border: 2px solid #4ea3d9; color: #287fae; font: 700 16px var(--mono); }
.onboarding-foot { border-top: 1px solid #dde4e9; color: #8897a1; font: 10px/42px var(--mono); text-align: center; letter-spacing: .04em; }

/* =============================================== B020A profile spoke */
.profile-summary-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--rule); background: var(--surface-2); padding: 14px; margin: 14px 0 18px; }
.profile-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #213b4b; border: 1px solid #3d6a84; color: #9fd4f2; font: 700 18px var(--mono); }
.profile-summary-card p { margin: 3px 0 0; }.profile-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }.profile-edit-grid .wide { grid-column: 1/-1; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }.login-hero { min-height: 360px; }.login-card { min-height: auto; }
  .profile-type-grid { grid-template-columns: 1fr 1fr; }.onboarding-steps { gap: 3px; }.step-label { font-size: 8px; }
}
@media (max-width: 560px) {
  .login-hero-content { padding: 38px 24px; }.login-card { padding: 30px 22px; }
  .profile-type-grid, .onboarding-form-grid, .profile-edit-grid { grid-template-columns: 1fr; }
  .onboarding-form-grid .wide, .profile-edit-grid .wide { grid-column: auto; }
  .onboarding-stage { width: 92vw; padding-top: 24px; }.onboarding-panel { padding: 24px 18px; }
  .onboarding-top { padding: 0 14px; }.onboarding-account { display: none; }
}

/* =================================================== B020B Google identity */
.google-provider-host { width: 100%; min-height: 48px; margin-bottom: 9px; display: flex; align-items: center; }
.google-provider-host > div { max-width: 100%; }
.google-provider-host iframe { max-width: 100% !important; }

/* =================================================== B021A organizations */
.role-multi-grid { margin-top: 8px; }
.org-path-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:18px 0; }
.org-path-card { text-align:left; border:1px solid #d8e0e6; background:#fbfcfd; color:#20323d; border-radius:8px; padding:18px; cursor:pointer; min-height:170px; }
.org-path-card:hover { border-color:#2c91ce; background:#f1f8fc; box-shadow:inset 0 0 0 1px #2c91ce; }
.org-path-card strong { display:block; margin:10px 0 5px; font-size:14px; }
.org-path-card p { margin:0; color:#687a86; font-size:12px; line-height:1.5; }
.org-path-icon { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; border:1px solid #8fc3df; color:#247cae; background:#eaf6fc; font:700 15px var(--mono); }
.invitation-box { margin-top:18px; border:1px solid #dce4e9; border-radius:7px; padding:16px; background:#fafcfd; }
.search-row { display:flex; gap:8px; align-items:center; }
.search-row input { flex:1; min-width:0; background:#fff; border:1px solid #d4dde3; border-radius:5px; padding:9px 10px; color:#17222b; }
.org-search-results { display:flex; flex-direction:column; gap:6px; margin:10px 0; max-height:220px; overflow:auto; }
.org-result { display:flex; flex-direction:column; gap:3px; text-align:left; border:1px solid #dce4e9; background:#fff; color:#20323d; border-radius:5px; padding:10px 12px; cursor:pointer; }
.org-result span { color:#74838e; font-size:11px; }.org-result.selected { border-color:#2c91ce; box-shadow:inset 0 0 0 1px #2c91ce; background:#f2f9fd; }
.claim-stack { display:flex; flex-direction:column; gap:10px; }
.checkline { display:flex; gap:8px; align-items:flex-start; margin:12px 0; color:#475965; }.checkline input { margin-top:3px; }
.checkline.compact { margin:3px 0; color:var(--text-dim); font-size:11px; }
.authority-claim-card { border:1px solid var(--rule); background:var(--surface-2); padding:14px; margin:12px 0; }
.authority-claim-head { display:flex; justify-content:space-between; gap:12px; align-items:start; }.authority-claim-head p { margin:3px 0 0; }
.permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 12px; margin:8px 0 12px; }
.evidence-list { color:var(--text-dim); font-size:11px; padding-left:18px; }
.authority-admin-panel { border-top:1px solid var(--rule); margin-top:22px; padding-top:18px; }
.authority-admin-panel .profile-type-card { min-height:88px; }
@media (max-width:780px) { .org-path-grid { grid-template-columns:1fr; }.permission-grid { grid-template-columns:1fr; } }

/* FRX-B021B — professional identity registry */
.professional-section{margin-top:18px;padding:16px;border:1px solid var(--line,#d7dee6);border-radius:12px;background:var(--panel,#fff)}
.professional-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.professional-section-head h3{margin:2px 0 0}
.professional-record-list{display:grid;gap:9px}
.professional-record{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line,#d7dee6);border-radius:10px;background:var(--surface,#f8fafc)}
.professional-record strong{overflow-wrap:anywhere}
.professional-record .note{margin:4px 0 0;overflow-wrap:anywhere}
.compact-btn{padding:6px 10px;min-height:unset}
.compact-empty{padding:14px}
.discrepancy-section{border-color:#d7a23a}
@media (max-width:760px){.professional-section-head{align-items:flex-start;flex-direction:column}.professional-record{grid-template-columns:1fr}.professional-record .tag{justify-self:start}}

/* FRX-B021A-22 invitation continuation + delivery history */
.invitation-resume-card{border:1px solid #78c7ee;background:#f3fbff;border-radius:10px;padding:14px 16px;margin:12px 0;color:#10202b}
.invitation-resume-card h3{margin:5px 0 7px}.invitation-resume-card p{margin:5px 0;line-height:1.5}
.invitation-admin-card{margin-top:10px}.invitation-admin-card details{margin:10px 0;color:var(--text-dim)}

/* B021A-24 — company-directory review rows */
.directory-provider-card { margin: 10px 0; }
.directory-contact-row { align-items: flex-start; gap: 10px; }
.directory-contact-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.directory-contact-copy > span { color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere; }
.directory-contact-copy > small { color: var(--text-dim); font-size: 11px; }

/* ------------------------------------------------ FRX-B022 project intake */
.intake-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin-bottom:14px; }
.intake-title-pick { min-width:min(360px,100%); margin-bottom:0; }
.intake-dropzone {
  border:1px dashed var(--text-faint); background:var(--ink); border-radius:var(--r);
  min-height:168px; display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; padding:24px; transition:border-color .12s ease, background .12s ease;
}
.intake-dropzone.dragging, .intake-dropzone:focus-visible { border-color:var(--info); background:var(--surface-2); }
.intake-drop-title { font-family:var(--mono); font-size:16px; margin-bottom:7px; }
.intake-native-input { display:none; }
.intake-progress { margin-top:10px; padding:8px 10px; border:1px solid var(--rule-soft); background:var(--surface-2); font-size:11px; color:var(--text-dim); }
.intake-batch-card { border:1px solid var(--rule); background:var(--ink); padding:10px 12px; margin-top:9px; border-radius:var(--r); }
.intake-file-row { display:flex; align-items:center; gap:8px; border-top:1px solid var(--rule-soft); margin-top:8px; padding-top:8px; }
@media (max-width:720px) { .intake-file-row { align-items:flex-start; flex-wrap:wrap; } }

/* FRX-B023B — AI extraction proposal evidence */
.ai-evidence{margin:3px 0;font-size:11px;line-height:1.35;max-width:420px}
.ai-run-modal{width:min(1180px,calc(100vw - 32px))}
.ai-run-modal table td{vertical-align:top}

/* FRX-B023C — AI Review + Account AI Models */
.ai-review-modal{width:min(1180px,calc(100vw - 32px))}
.ai-review-card{border:1px solid var(--rule);background:var(--ink);padding:14px;margin:12px 0;border-radius:var(--r)}
.ai-review-card[data-risk="HIGH"]{border-left:3px solid #d7a23a}
.ai-review-value{margin-top:6px;max-width:760px;overflow-wrap:anywhere}
.ai-evidence-list{display:grid;gap:7px;margin-top:10px}
.ai-evidence-item{border:1px solid var(--rule-soft);background:var(--surface-2);padding:9px 10px;border-radius:var(--r)}
.ai-evidence-item .quote{margin-top:5px;font-size:11px;line-height:1.45;color:var(--text-dim)}
.ai-model-card{margin-top:10px}
.ai-model-card .note{overflow-wrap:anywhere}
@media (max-width:720px){.ai-review-card .row-between{align-items:flex-start;flex-direction:column}.ai-review-modal{width:calc(100vw - 16px)}}

/* FRX-B025 — Hub-native next-best action. */
.guided-next{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.guided-next[data-sev="BLOCKING"]{border-left:5px solid #b42318}.guided-next[data-sev="CONSENT_REQUIRED"]{border-left:5px solid #b54708}.guided-next[data-sev="WARNING"]{border-left:5px solid #b88200}.guided-next[data-sev="INFO"]{border-left:5px solid #175cd3}
.guided-next h2{font-size:18px;margin:3px 0 5px}.guided-next p{margin:0;max-width:820px}.guided-meta{font-size:11px;opacity:.65;margin-top:7px;text-transform:uppercase;letter-spacing:.06em}.guided-clear{opacity:.88}
.guided-queue{margin:-8px 0 18px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.guided-queue summary{cursor:pointer;font-weight:700}.guided-list{display:grid;gap:7px;margin-top:10px}.guided-row{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;cursor:pointer}.guided-row:hover{background:var(--panel)}.guided-row-copy{display:flex;flex-direction:column;gap:2px}.guided-row-copy small{opacity:.65}
@media(max-width:720px){.guided-next{align-items:flex-start;flex-direction:column}.guided-next .btn{width:100%}}

/* FRX-RM08 — Rights Matrix / Distribution Avails / public-site workspaces */
.rm08-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:18px;align-items:start;margin-bottom:14px}.rm08-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rm08-kpi{border:1px solid var(--rule);background:var(--surface-2);border-radius:var(--r);padding:12px;display:flex;flex-direction:column}.rm08-kpi strong{font-size:22px}.rm08-kpi span{font-size:11px;color:var(--text-dim)}.rm08-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:12px 0 18px}.rm08-toolbar .field{margin:0;min-width:180px}.rm08-title-pick{min-width:min(390px,100%);padding:9px 10px;border:1px solid var(--rule);background:var(--ink);color:var(--text);border-radius:var(--r)}.rm08-downloads{display:flex;gap:4px;flex-wrap:wrap}.rm08-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:12px 0}.rm08-card{border:1px solid var(--rule);border-radius:var(--r);background:var(--surface-2);padding:13px;display:grid;gap:8px}
@media(max-width:760px){.rm08-head{grid-template-columns:1fr}.rm08-kpis{grid-template-columns:repeat(2,1fr)}.rm08-toolbar{align-items:stretch;flex-direction:column}.rm08-toolbar .btn,.rm08-title-pick{width:100%}}
