:root {
  --ink: #f7f5ef;
  --ink-soft: #aaa9a4;
  --canvas: #0a0b0d;
  --panel: #121418;
  --panel-raised: #191c21;
  --line: #292c31;
  --line-strong: #3a3e45;
  --acid: #d7ff3f;
  --acid-dark: #a5cf00;
  --ember: #ff5f55;
  --amber: #ffc857;
  --blue: #7ea8ff;
  --sidebar-width: 248px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -20%, rgba(215, 255, 63, .08), transparent 32rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

a { color: inherit; }
a:hover { color: var(--acid); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  padding: .7rem 1rem;
  color: #090a0b;
  background: var(--acid);
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

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

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: rgba(13, 14, 17, .97);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 5px 22px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; letter-spacing: -.01em; }
.brand small { color: var(--ink-soft); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #080909;
  background: var(--acid);
  border-radius: 5px 13px 5px 13px;
  box-shadow: 0 0 28px rgba(215, 255, 63, .18);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: rotate(-3deg);
}
.brand-mark-large { width: 66px; height: 66px; font-size: 1.25rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 8px 11px;
  color: #b9bab7;
  border-radius: 8px;
  text-decoration: none;
  font-size: .86rem;
  transition: color .15s ease, background .15s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { color: var(--ink); background: #202329; }
.sidebar-nav a.active { box-shadow: inset 3px 0 var(--acid); }
.nav-label {
  margin: 18px 11px 5px;
  color: #62656a;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-dot { width: 6px; height: 6px; border: 1px solid #777a7f; border-radius: 50%; }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 18px 11px 4px;
  color: #74767a;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.environment-dot { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 9px var(--acid); }

.app-main { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  z-index: 90;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 3vw, 42px);
  background: rgba(10, 11, 13, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top-search {
  width: min(480px, 50vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  background: #15171b;
  border: 1px solid #292c32;
  border-radius: 8px;
}
.top-search input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .84rem; }
.top-search kbd { color: #85878b; background: #24272c; border: 1px solid #363a40; font-size: .65rem; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; color: #0a0b0c; background: #ece8da; border-radius: 50%; font-weight: 800; }
.user-copy strong, .user-copy small { display: block; }
.user-copy strong { font-size: .78rem; }
.user-copy small { color: var(--ink-soft); font-size: .68rem; }
.btn-quiet { color: #888a8f; background: transparent; border: 0; font-size: .74rem; }
.btn-quiet:hover { color: var(--ink); }
.mobile-menu { display: none; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 7px; }

.content-canvas { width: 100%; max-width: 1580px; min-height: calc(100vh - 68px); margin: 0 auto; padding: clamp(24px, 4vw, 54px); }
.message-stack { position: fixed; z-index: 200; top: 82px; right: 24px; width: min(420px, calc(100vw - 48px)); }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-header h1 { max-width: 860px; margin: 2px 0 6px; font-size: clamp(2rem, 3vw, 3rem); font-weight: 760; letter-spacing: -.045em; line-height: 1; }
.page-header p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--ink-soft); }
.eyebrow { margin: 0 0 8px; color: var(--acid); font-size: .67rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 18px; color: #929499; text-decoration: none; font-size: .8rem; }
.header-actions, .hero-actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.mono, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.muted { color: var(--ink-soft); }

.btn {
  --bs-btn-border-radius: 7px;
  --bs-btn-padding-y: .58rem;
  --bs-btn-padding-x: .95rem;
  font-size: .8rem;
  font-weight: 700;
}
.btn-accent {
  color: #090a0a;
  background: var(--acid);
  border-color: var(--acid);
}
.btn-accent:hover, .btn-accent:focus { color: #090a0a; background: #e2ff75; border-color: #e2ff75; }
.btn-outline-light { --bs-btn-color: #d1d2cf; --bs-btn-border-color: #42464d; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #25282d; --bs-btn-hover-border-color: #575b63; }

.panel {
  background: linear-gradient(145deg, rgba(25, 28, 33, .9), rgba(15, 17, 20, .96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .16);
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 1.08rem; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading > a { color: #a9abae; font-size: .76rem; text-decoration: none; }

.dashboard-hero {
  position: relative;
  min-height: 238px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(23, 26, 31, .98) 20%, rgba(15, 18, 17, .94)),
    var(--panel);
  border: 1px solid #34383c;
  border-radius: 20px;
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.dashboard-hero > div:not(.hero-orbit) { position: relative; z-index: 2; }
.dashboard-hero h1 { max-width: 720px; margin: 4px 0 12px; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.06em; line-height: .98; }
.dashboard-hero p:not(.eyebrow) { margin: 0; color: #b7b8b4; }
.hero-orbit { position: absolute; z-index: 1; right: 11%; top: -140px; width: 360px; height: 360px; border: 1px solid rgba(215, 255, 63, .25); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(215, 255, 63, .13); border-radius: 50%; }
.hero-orbit::before { inset: 48px; }
.hero-orbit::after { inset: 102px; background: rgba(215, 255, 63, .05); }
.hero-orbit span { position: absolute; left: 18%; bottom: 7%; width: 10px; height: 10px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 28px var(--acid); }

.status-strip { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); margin: 16px 0; background: #121418; border: 1px solid var(--line); border-radius: 12px; }
.status-strip > div { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 16px 20px; border-right: 1px solid var(--line); }
.status-strip > div:last-child { border-right: 0; }
.status-strip small, .status-strip strong { display: block; }
.status-strip small { color: #7d8085; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.status-strip strong { margin-top: 2px; font-size: .92rem; }
.status-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #aeb0b3; background: #202329; border-radius: 8px; }
.status-icon-live { width: 10px; height: 10px; margin: 11px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 12px rgba(215,255,63,.6); }
.status-icon-error { color: var(--ember); background: rgba(255,95,85,.1); }
.status-icon-warning { color: var(--amber); background: rgba(255,200,87,.1); }

.dashboard-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 16px; }
.issue-list { padding: 6px 0; }
.issue-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 66px; padding: 11px 22px; border-bottom: 1px solid rgba(51,54,60,.7); }
.issue-row:last-child { border-bottom: 0; }
.issue-row strong, .issue-row small { display: block; }
.issue-row strong { font-size: .82rem; font-weight: 600; }
.issue-row small { margin-top: 3px; color: #777a7f; font-size: .7rem; }
.issue-row code { color: #76797e; font-size: .64rem; }
.severity { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-size: .7rem; font-weight: 900; }
.severity-error { color: var(--ember); background: rgba(255,95,85,.12); }
.severity-warning { color: var(--amber); background: rgba(255,200,87,.12); }
.severity-info { color: var(--blue); background: rgba(126,168,255,.12); }
.season-panel { padding-bottom: 24px; overflow: hidden; }
.season-panel > *:not(.panel-heading) { margin-left: 24px; margin-right: 24px; }
.season-number { width: fit-content; margin-top: 30px; padding: 7px 10px; color: #0b0c0d; background: var(--acid); border-radius: 6px; font-weight: 900; }
.season-panel h3 { margin-top: 18px; font-size: 1.5rem; letter-spacing: -.03em; }
.season-panel p { min-height: 72px; color: var(--ink-soft); font-size: .8rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.metric-card { padding: 20px; background: #111317; border: 1px solid var(--line); border-radius: 11px; }
.metric-card small, .metric-card strong, .metric-card span { display: block; }
.metric-card small { color: #85878b; font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { margin: 10px 0 2px; font-size: 2rem; letter-spacing: -.05em; }
.metric-card span { color: #63666b; font-size: .68rem; }

.content-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 13px; }
.content-card { position: relative; min-height: 180px; padding: 24px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.content-card:hover { color: var(--ink); border-color: #545a55; transform: translateY(-2px); }
.search-result-list { display: grid; padding: 8px 24px 24px; }
.search-result-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.search-result-list a:hover strong { color: var(--acid); }
.search-result-list strong { font-size: .8rem; }
.search-result-list span { color: #74777b; font-size: .67rem; }
.content-card-count { color: var(--acid); font-family: "SFMono-Regular", monospace; font-size: 1.7rem; font-weight: 800; }
.content-card h2 { margin: 28px 0 5px; font-size: 1.05rem; }
.content-card p { margin: 0; color: #73767b; font-size: .76rem; }
.link-arrow { position: absolute; right: 21px; bottom: 20px; }

.filter-bar { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.filter-search { position: relative; flex: 1; }
.filter-search span { position: absolute; left: 12px; top: 50%; color: #74777b; transform: translateY(-50%); }
.filter-search .form-control { padding-left: 36px; }
.filter-bar .form-select { width: 170px; }
.form-control, .form-select {
  color: var(--ink);
  background-color: #111318;
  border-color: #34383e;
  border-radius: 7px;
}
.form-control:focus, .form-select:focus { color: var(--ink); background-color: #14171b; border-color: var(--acid); box-shadow: 0 0 0 .2rem rgba(215,255,63,.12); }
.form-control::placeholder { color: #63666b; }
.form-select { color-scheme: dark; }
.form-text { color: #777a7f; }

.cms-table { --bs-table-color: #c6c7c4; --bs-table-bg: transparent; --bs-table-border-color: #2a2d32; }
.cms-table thead th { padding: 13px 18px; color: #686b70; background: rgba(10,11,13,.55); border-bottom-width: 1px; font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.cms-table tbody td { max-width: 330px; padding: 14px 18px; font-size: .77rem; vertical-align: middle; }
.cms-table tbody tr:hover td { background: rgba(255,255,255,.018); }
.table-primary-link { color: var(--ink); font-weight: 650; text-decoration: none; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; color: #808287; font-size: .72rem; }

.empty-state { width: 100%; padding: 56px 24px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; color: var(--acid); background: rgba(215,255,63,.08); border: 1px solid rgba(215,255,63,.16); border-radius: 50%; }
.empty-state h2, .empty-state h3 { margin: 0 0 5px; font-size: 1rem; }
.empty-state p { margin: 0; color: #74777b; font-size: .76rem; }
.empty-state.compact { padding: 35px 20px; }

.data-list { margin: 0; padding: 8px 24px 24px; }
.data-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.data-list > div:last-child { border: 0; }
.data-list dt { color: #74777c; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.data-list dd { margin: 0; overflow-wrap: anywhere; font-size: .82rem; }
.timeline { position: relative; margin: 0; padding: 14px 24px 24px 42px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 25px; bottom: 35px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 10px 0 18px; }
.timeline-dot { position: absolute; left: -20px; top: 15px; width: 8px; height: 8px; background: var(--acid); border: 2px solid #14161a; border-radius: 50%; box-shadow: 0 0 0 1px #4a4e53; }
.timeline strong, .timeline small { display: block; }
.timeline strong { font-size: .76rem; }
.timeline small { margin-top: 4px; color: #74777b; font-size: .68rem; }
.timeline-action { display: inline-block; margin-top: 6px; color: var(--acid); font-size: .65rem; text-decoration: none; }

.editor-form { display: grid; gap: 16px; }
.editor-form .panel { padding-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 24px; }
.field-wrap label { color: #c5c6c2; font-size: .75rem; font-weight: 650; }
.field-wrap textarea { min-height: 110px; }
.field-check { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.field-check label { margin: 0; }
.relationship-picker-control { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px 6px 12px; background: #111318; border: 1px solid #34383e; border-radius: 7px; }
.relationship-current { flex: 1; min-width: 0; overflow: hidden; color: #d3d4d0; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.form-check-input { background-color: #15171b; border-color: #4a4e54; }
.form-check-input:checked { background-color: var(--acid); border-color: var(--acid); }
.form-note-panel { padding: 20px 24px !important; }
.form-actions { justify-content: flex-end; padding: 6px 0 30px; }
.narrow-form { width: min(760px, 100%); }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; color: #c7c8c4; background: #24272c; border: 1px solid #363a40; border-radius: 99px; font-size: .64rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.status-large { padding: 8px 12px; font-size: .72rem; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 16px; }
.media-card { overflow: hidden; background: #111318; border: 1px solid var(--line); border-radius: 10px; }
.media-preview { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(45deg,#17191d,#17191d 10px,#1b1e22 10px,#1b1e22 20px); }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.legacy-placeholder { color: #74777b; font-family: monospace; font-size: .7rem; letter-spacing: .14em; }
.media-badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 7px; background: rgba(8,9,10,.85); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; font-size: .6rem; text-transform: uppercase; }
.media-card-body { padding: 15px; }
.media-card h2 { margin: 0 0 5px; font-size: .9rem; }
.media-card p, .media-card small { color: #73767b; font-size: .68rem; }
.upload-dropzone { display: grid; place-items: center; padding: 64px; text-align: center; border-style: dashed; }
.upload-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; color: var(--acid); background: rgba(215,255,63,.08); border-radius: 18px; font-size: 1.6rem; }
.upload-dropzone h2 { font-size: 1.15rem; }
.upload-dropzone p { color: #85888c; }
.upload-dropzone input { max-width: 460px; margin: 14px auto; }

.validation-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; background: #121418; border: 1px solid var(--line); border-radius: 12px; }
.validation-summary > div { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 20px 26px; border-right: 1px solid var(--line); }
.validation-summary > div:last-child { border: 0; }
.validation-summary strong { font-size: 1.5rem; letter-spacing: -.03em; }
.validation-summary span { margin-top: 4px; color: #73767b; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.parity-list { margin: 0; padding: 12px 24px 24px; list-style: none; }
.parity-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.wizard-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 9px; }
.wizard-steps span { padding: 13px 15px; color: #66696e; background: #111317; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.wizard-steps span.active { color: var(--acid); background: #191c1d; }
.wizard-steps span.done { color: #aeb1ac; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.sheet-grid > div { padding: 15px 18px; background: #14161a; }
.sheet-grid strong, .sheet-grid span { display: block; }
.sheet-grid strong { font-size: .74rem; }
.sheet-grid span { margin-top: 4px; color: #6f7277; font-size: .65rem; }
.conflict-grid { display: grid; gap: 16px; padding: 20px 24px 24px; }
.conflict-grid article { padding: 16px; background: #111318; border: 1px solid var(--line); border-radius: 8px; }
.conflict-grid h3 { margin-bottom: 12px; font-size: .85rem; }
.conflict-grid details + details { margin-top: 8px; }
.conflict-grid summary { cursor: pointer; color: var(--acid); font-size: .72rem; }
.conflict-grid .code-block { max-height: 280px; margin-top: 10px; }

.release-list { display: grid; }
.release-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 120px 170px 24px; align-items: center; gap: 14px; min-height: 82px; padding: 14px 22px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.release-row:last-child { border: 0; }
.release-row:hover { color: var(--ink); background: rgba(255,255,255,.018); }
.release-row strong, .release-row small { display: block; }
.release-row small { margin-top: 4px; color: #74777b; font-size: .69rem; }
.release-glyph { display: grid; place-items: center; width: 34px; height: 34px; color: #73767b; background: #202329; border-radius: 8px; }
.release-glyph.current { color: #0b0c0d; background: var(--acid); box-shadow: 0 0 18px rgba(215,255,63,.18); }
.artifact-list { padding: 8px 24px 24px; }
.artifact-list a { display: grid; grid-template-columns: 1fr 160px auto; gap: 20px; padding: 16px 0; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; font-size: .78rem; }
.artifact-list code { color: #777a7f; }
.artifact-list strong { color: var(--acid); font-size: .69rem; }
.code-block { max-height: 460px; margin: 0; padding: 20px 24px; overflow: auto; color: #b7d47a; background: #0c0e10; border-radius: 0 0 var(--radius) var(--radius); font-size: .7rem; }
.relationship-dialog { width: min(720px, calc(100vw - 30px)); max-height: min(760px, calc(100vh - 30px)); padding: 0; color: var(--ink); background: #14161a; border: 1px solid #3b3f45; border-radius: 16px; box-shadow: 0 40px 120px rgba(0,0,0,.65); }
.relationship-dialog::backdrop { background: rgba(3,4,5,.76); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: 1.15rem; }
.picker-search { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.picker-results { max-height: 500px; overflow-y: auto; padding: 8px; }
.picker-result { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.picker-result:hover { background: #202329; }
.picker-result strong, .picker-result small { display: block; }
.picker-result strong { font-size: .8rem; }
.picker-result small { margin-top: 3px; color: #74777b; font-size: .65rem; }
.media-card a { color: inherit; text-decoration: none; }
.media-detail-preview { display: grid; min-height: 280px; margin: -1px -1px 24px; place-items: center; overflow: hidden; background: #0b0d10; border: 1px solid var(--line); border-radius: 8px; }
.media-detail-preview img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.diff-list { padding: 8px 24px 24px; }
.diff-list article { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.diff-list article > strong { font-size: .74rem; }
.diff-list article div span, .diff-list article div code { display: block; }
.diff-list article div span { margin-bottom: 5px; color: #73767b; font-size: .62rem; text-transform: uppercase; }
.diff-list article div code { color: #c9cac5; overflow-wrap: anywhere; font-size: .7rem; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 22% 38%, rgba(215,255,63,.11), transparent 27rem), #090a0c; }
.login-shell { width: min(1040px, 100%); min-height: 620px; display: grid; grid-template-columns: 1.25fr .85fr; overflow: hidden; background: #111317; border: 1px solid #30343a; border-radius: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(36px, 6vw, 76px); overflow: hidden; background: linear-gradient(145deg, #171a1f, #0d0f12); }
.login-brand::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 38px 38px; }
.login-brand > * { position: relative; z-index: 2; }
.login-brand .brand-mark { position: absolute; top: 52px; left: 58px; }
.login-brand h1 { max-width: 500px; margin: 7px 0 18px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .94; letter-spacing: -.07em; }
.login-brand > p:not(.eyebrow) { max-width: 460px; color: #9da09f; }
.signal-grid { position: absolute; z-index: 1; right: -80px; top: 80px; width: 340px; height: 340px; border: 1px solid rgba(215,255,63,.18); border-radius: 50%; }
.signal-grid span { position: absolute; width: 8px; height: 8px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 18px var(--acid); }
.signal-grid span:nth-child(1) { left: 6%; top: 45%; }.signal-grid span:nth-child(2) { left: 33%; top: 5%; }.signal-grid span:nth-child(3) { right: 8%; top: 37%; }.signal-grid span:nth-child(4) { left: 35%; bottom: 2%; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 64px); background: #131519; border-left: 1px solid var(--line); }
.login-card h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.login-card > .muted { margin: 7px 0 28px; }

@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.45); }
  .sidebar.is-open { transform: translateX(0); }
  .app-main { width: 100%; margin-left: 0; }
  .mobile-menu { display: block; }
  .top-search { width: min(390px, 48vw); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .content-canvas { padding: 22px 16px 40px; }
  .user-copy, .top-search kbd { display: none; }
  .top-search { flex: 1; width: auto; }
  .page-header, .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .hero-actions { width: 100%; }
  .status-strip, .validation-summary { grid-template-columns: repeat(2, 1fr); }
  .status-strip > div:nth-child(2), .validation-summary > div:nth-child(2) { border-right: 0; }
  .status-strip > div { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .detail-grid, .login-shell { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .header-actions, .relationship-picker-control { flex-wrap: wrap; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar .form-select { width: 100%; }
  .issue-row { grid-template-columns: 30px minmax(0, 1fr); }
  .issue-row code, .issue-row > .btn { grid-column: 2; justify-self: start; }
  .data-list > div, .diff-list article { grid-template-columns: 1fr; gap: 8px; }
  .artifact-list a { grid-template-columns: 1fr auto; }
  .artifact-list a code { grid-column: 1 / -1; }
  .release-row { grid-template-columns: 38px 1fr auto; }
  .release-row > :nth-child(4), .release-row > :nth-child(5) { display: none; }
  .login-brand { min-height: 370px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
