:root {
  color-scheme: light;
  --ink: #17181f;
  --muted: #606575;
  --paper: #f6f3f8;
  --panel: #ffffff;
  --line: #ded8e7;
  --accent: #315d8f;
  --accent-2: #b85f6a;
  --soft: #ece7f2;
  --shadow: 0 18px 44px rgba(32, 28, 42, 0.14);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }

.hero {
  min-height: 74vh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: white;
  background: #202230 url("/video-team-hero.jpg") center 18% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 18, 26, .76), rgba(18, 18, 26, .38) 42%, rgba(18, 18, 26, .88));
}

.doc-hero { min-height: 42vh; }

.nav {
  position: absolute;
  inset: 0 0 auto;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(20, 22, 32, .82);
  backdrop-filter: blur(14px);
}

.brand { font-weight: 850; white-space: nowrap; }
.nav-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a, .button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-links a { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .88); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: white; color: var(--ink); }

.hero-inner, main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero-inner { padding: 122px 0 72px; }
.eyebrow { margin: 0 0 14px; color: rgba(255, 255, 255, .78); font-weight: 750; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 86px); line-height: .98; letter-spacing: 0; }
.lead { max-width: 760px; margin: 22px 0 0; color: rgba(255, 255, 255, .88); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { background: var(--panel); color: var(--ink); border-color: var(--line); }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.light { background: rgba(255,255,255,.92); color: var(--ink); }

main { padding: 54px 0 76px; }
section + section { margin-top: 54px; }
.section-head { max-width: 760px; margin-bottom: 18px; }
.section-head h2 { margin: 0 0 8px; font-size: 30px; }
.section-head p, .panel p, .doc-card p, li { color: var(--muted); line-height: 1.72; }

.grid, .doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel, .doc-card, .codex-window {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(32, 28, 42, .06);
}
.panel { padding: 22px; }
.panel h3 { margin: 0 0 8px; font-size: 20px; }
.doc-card { display: grid; gap: 8px; padding: 20px; }
.doc-card span { color: var(--accent-2); font-weight: 850; }
.doc-card strong { font-size: 19px; }
.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 850;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); line-height: 1.72; }
.callout {
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: white;
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.7;
}
.check-list li { margin-bottom: 8px; }

.codex-window { overflow: hidden; }
.codex-titlebar { display: flex; justify-content: space-between; padding: 12px 16px; background: #202230; color: white; font-weight: 750; }
.codex-thread { padding: 18px; display: grid; gap: 14px; }
.codex-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.codex-bubble { max-width: 820px; border-radius: 8px; padding: 14px 16px; background: var(--soft); }
.codex-msg.codex .codex-bubble { background: #eef4f7; }
pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #1f2230;
  color: #f4f1ff;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.manager-body { background: #f4f5f0; }
.login-gate { display: grid; justify-content: start; }
.login-card { width: min(460px, 100%); }
.manager-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.manager-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 16px;
  background: #202230;
  color: white;
}
.manager-brand { margin-bottom: 18px; font-weight: 850; font-size: 18px; }
.manager-tab {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.78);
  font: inherit;
  font-weight: 760;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}
.manager-tab.active, .manager-tab:hover { background: white; color: var(--ink); }
.manager-main { min-width: 0; padding: 26px clamp(18px, 4vw, 46px) 64px; }
.manager-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.manager-topbar h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; color: var(--ink); }
.manager-kicker { margin: 0 0 6px; color: var(--muted); font-weight: 800; }
.account-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
}
.manager-login { max-width: 460px; margin-bottom: 22px; }
.manager-main.is-locked .manager-section { opacity: .42; pointer-events: none; }
.manager-section { display: none; }
.manager-section.active { display: block; }
.manager-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(32, 28, 42, .05);
  padding: 18px;
}
.manager-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card span { color: var(--muted); font-weight: 760; }
.stat-card strong { display: block; margin-top: 10px; font-size: 38px; }
.stat-card p, .muted { color: var(--muted); }
.manager-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.manager-toolbar .field { flex: 1; }
.manager-form { display: grid; gap: 13px; }
.manager-form h2, .manager-card h2 { margin: 0 0 4px; font-size: 22px; }
.manager-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 780; }
.manager-form.wide { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
}
textarea.field { resize: vertical; line-height: 1.55; }
.form-status { min-height: 22px; margin: 0; color: var(--accent-2); font-weight: 780; }
.check-row { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-weight: 720; }
.check-row label { display: inline-flex; align-items: center; gap: 7px; }
.editor-card { display: grid; gap: 10px; }
.editor-card-head { display: grid; gap: 4px; }
.editor-card-head span { color: var(--accent-2); font-weight: 850; }
.editor-card-head strong { font-size: 18px; }
.editor-card dl { display: grid; gap: 6px; margin: 0; }
.editor-card dt { color: var(--ink); font-size: 13px; font-weight: 850; }
.editor-card dd { margin: 0; color: var(--muted); line-height: 1.58; }
.request-list { display: grid; gap: 12px; }
.request-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 820; }
.request-head span {
  display: inline-flex;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  padding: 3px 8px;
  font-size: 12px;
}
.request-actions { display: flex; gap: 8px; margin-top: 12px; }
.notice-card { margin-bottom: 14px; }
.local-only-steps { display: grid; gap: 10px; }
.local-only-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}
.local-only-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 850;
}
.local-only-steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--muted);
  background: rgba(255,255,255,.62);
}

@media (max-width: 860px) {
  .grid, .doc-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 112px; }
  .manager-shell { grid-template-columns: 1fr; }
  .manager-sidebar { position: static; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-brand { grid-column: 1 / -1; }
  .manager-grid, .form-grid { grid-template-columns: 1fr; }
  .manager-topbar { align-items: flex-start; flex-direction: column; }
  .manager-toolbar { flex-direction: column; }
}
