@font-face {
  font-family: "Cantarell Review";
  src: url("/brand/cantarell.otf") format("opentype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Review";
  src: url("/brand/noto-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Review";
  src: url("/brand/source-code-pro.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6f7f5;
  --paper-cool: #f1f3f6;
  --white: #ffffff;
  --ink: #1d2430;
  --slate: #5d6470;
  --muted: #767d88;
  --violet: #6938c7;
  --deep-violet: #522a98;
  --lavender: #eee8f8;
  --violet-line: #8f78b7;
  --pale-violet: #cdbbea;
  --rule: #d7d9df;
  --rule-dark: #c4c7cf;
  --night: #1b1f2a;
  --amber-bg: #fff1d2;
  --amber-border: #a66a12;
  --amber-text: #754506;
  --emerald: #047857;
  --danger: #a23c43;
  --sidebar-width: 264px;
  --radius: 18px;
  --radius-small: 10px;
  --shadow: 0 24px 70px rgba(31, 29, 46, 0.08), 0 3px 12px rgba(31, 29, 46, 0.04);
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Review", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(105, 56, 199, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 56, 199, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
pre {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Cantarell Review", "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -0.036em;
  line-height: 1.04;
}

:focus-visible {
  outline: 3px solid rgba(105, 56, 199, 0.42);
  outline-offset: 3px;
}

::selection {
  color: var(--deep-violet);
  background: var(--pale-violet);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--night);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.utility-label,
.product-label,
.copy-label,
.reference-badge,
.asset-kind,
.card-reference,
.locale-stack,
.details-list dt {
  font-family: "Source Review", "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.utility-label {
  color: var(--deep-violet);
  font-size: 0.72rem;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--white);
}

.button--primary:hover {
  border-color: var(--deep-violet);
  background: var(--deep-violet);
}

.button--secondary {
  border-color: var(--rule-dark);
  background: var(--white);
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.icon-button,
.text-button,
.copy-button,
.group-tab,
.filter-chip {
  border: 0;
  background: transparent;
}

.app-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 24px 22px;
  border-right: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.sidebar-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: block;
  width: 166px;
}

.brand-lockup img {
  width: 100%;
  height: auto;
}

.product-label {
  margin-top: 7px;
  color: var(--slate);
  font-size: 0.67rem;
}

.primary-nav {
  margin-top: 42px;
}

.nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--slate);
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-current {
  background: var(--lavender);
  color: var(--deep-violet);
}

.nav-symbol {
  width: 20px;
  color: var(--violet);
  font-size: 1.1rem;
}

.sidebar-proof {
  margin-top: auto;
  padding: 20px 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
}

.sidebar-proof ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sidebar-proof li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 31px;
  color: var(--slate);
  font-size: 0.8rem;
}

.sidebar-proof li:not(:last-child)::after {
  position: absolute;
  top: 20px;
  bottom: -10px;
  left: 4px;
  width: 1px;
  background: var(--pale-violet);
  content: "";
}

.sidebar-proof li span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--violet-line);
  background: var(--white);
}

.sidebar-proof li:nth-child(-n + 3) span {
  border-color: var(--violet);
  background: var(--violet);
}

.sidebar-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 3px;
  color: var(--slate);
  font-size: 0.75rem;
}

.sidebar-account > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.text-button {
  padding: 6px;
  color: var(--deep-violet);
  font-size: 0.75rem;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.sidebar-close,
.mobile-header,
.sidebar-scrim {
  display: none;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.page-shell {
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  padding: 52px 0 90px;
}

/* Login — a private evidence board, not an app splash. */
.login-page {
  background: var(--paper);
}

.public-main {
  min-height: 100vh;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.login-thesis {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 54px clamp(44px, 7vw, 120px) 68px;
  background:
    linear-gradient(rgba(205, 187, 234, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 187, 234, 0.18) 1px, transparent 1px),
    var(--night);
  background-size: 64px 64px;
  color: var(--white);
}

.login-thesis::after {
  position: absolute;
  right: -150px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(205, 187, 234, 0.2);
  border-radius: 50%;
  content: "";
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-brand img {
  width: 172px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--paper);
}

.login-brand span {
  color: var(--pale-violet);
  font-size: 0.84rem;
}

.login-message {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto 0;
  padding: 80px 0;
}

.login-message .utility-label {
  color: var(--pale-violet);
}

.login-message h1 {
  max-width: 650px;
  margin-top: 20px;
  font-size: clamp(3.1rem, 6vw, 6rem);
  line-height: 0.94;
}

.login-message > p:last-child {
  max-width: 590px;
  margin-top: 30px;
  color: #d7d2e1;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.login-evidence {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 360px;
  align-items: center;
}

.evidence-node {
  width: 10px;
  height: 10px;
  border: 2px solid var(--pale-violet);
  background: var(--night);
}

.evidence-node.is-active {
  border-color: var(--white);
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(205, 187, 234, 0.1);
}

.evidence-line {
  height: 1px;
  flex: 1;
  background: var(--pale-violet);
  opacity: 0.5;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 44px;
  background: var(--paper);
}

.login-form {
  width: min(100%, 430px);
  padding: 44px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-heading h2 {
  margin-top: 12px;
  font-size: 2.1rem;
}

.form-heading > p:last-child {
  margin-top: 12px;
  color: var(--slate);
  line-height: 1.55;
}

.form-alert {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--amber-border);
  border-radius: 9px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--rule-dark);
  border-radius: 9px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 500;
}

.field input:focus {
  border-color: var(--violet);
  background: var(--white);
}

.login-form .button {
  margin-top: 26px;
}

.form-footnote {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

/* Dashboard */
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.52fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: end;
  padding: 24px 0 52px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy h1 {
  max-width: 850px;
  margin-top: 20px;
  font-size: clamp(3.4rem, 6.3vw, 7.2rem);
  line-height: 0.91;
}

.hero-copy h1 span {
  position: relative;
  display: inline-block;
  color: var(--violet);
}

.hero-copy h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.03em;
  bottom: 0.03em;
  left: -0.03em;
  height: 0.14em;
  background: var(--lavender);
  content: "";
}

.hero-lede {
  max-width: 720px;
  margin-top: 28px;
  color: var(--slate);
  font-size: 1.06rem;
  line-height: 1.66;
}

.campaign-docket {
  border-top: 3px solid var(--violet);
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule);
}

.docket-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
}

.docket-heading small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.live-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.campaign-docket dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.campaign-docket dl > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.campaign-docket dl > div:nth-child(odd) {
  padding-right: 20px;
  border-right: 1px solid var(--rule);
}

.campaign-docket dl > div:nth-child(even) {
  padding-left: 20px;
}

.campaign-docket dt {
  color: var(--slate);
  font-size: 0.74rem;
}

.campaign-docket dd {
  margin-top: 4px;
  font-family: "Cantarell Review", sans-serif;
  font-size: 1.85rem;
  font-weight: 750;
}

.campaign-docket .has-caution dd {
  color: var(--amber-text);
}

.docket-progress {
  display: grid;
  gap: 10px;
  padding: 18px 0 20px;
}

.docket-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--slate);
  font-size: 0.7rem;
}

.docket-progress strong {
  color: var(--emerald);
  font-family: "Source Review", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docket-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--paper-cool);
}

.docket-progress progress::-webkit-progress-bar {
  background: var(--paper-cool);
}

.docket-progress progress::-webkit-progress-value {
  background: var(--emerald);
}

.docket-progress progress::-moz-progress-bar {
  background: var(--emerald);
}

.campaign-switcher {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
}

.run-sheet {
  padding: 58px 0 60px;
  border-bottom: 1px solid var(--rule);
}

.section-heading,
.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.library-heading h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.section-heading > p,
.library-heading > p {
  max-width: 490px;
  color: var(--slate);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: right;
}

.run-sheet-track {
  position: relative;
  display: flex;
  gap: 0;
  margin-top: 34px;
  padding: 2px 0 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-line) transparent;
}

.run-sheet-track::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--violet-line);
  content: "";
}

.run-stop {
  position: relative;
  display: grid;
  min-width: 175px;
  max-width: 220px;
  gap: 5px;
  padding: 26px 24px 6px 0;
  color: inherit;
  text-decoration: none;
}

.run-stop:hover strong {
  color: var(--violet);
}

.run-node {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--violet);
  background: var(--paper);
  transition: background 150ms ease;
}

.run-stop:hover .run-node {
  background: var(--violet);
}

.run-stop.is-completed .run-node {
  border-color: var(--emerald);
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.run-state {
  width: fit-content;
  margin-top: 3px;
  color: var(--emerald) !important;
  font-family: "Source Review", monospace;
  font-size: 0.54rem !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.run-stop time {
  color: var(--muted);
  font-family: "Source Review", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.run-stop strong {
  font-size: 0.9rem;
}

.run-stop small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate);
  font-size: 0.7rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-section {
  padding-top: 64px;
}

#library-title {
  scroll-margin-top: 72px;
}

.result-count {
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px 22px;
  align-items: center;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
}

.search-field {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--rule-dark);
  border-radius: 9px;
  background: var(--white);
}

.search-field > span:not(.visually-hidden) {
  color: var(--violet);
  font-size: 1.3rem;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.86rem;
}

.search-field kbd {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--muted);
  background: var(--paper);
  font: 0.7rem "Source Review", monospace;
}

.filter-row {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 4px;
}

.filter-chip {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--rule);
  background: var(--paper);
}

.filter-chip.is-active {
  border-color: var(--pale-violet);
  background: var(--lavender);
  color: var(--deep-violet);
}

.filter-selects {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.filter-selects label {
  display: grid;
  gap: 3px;
}

.filter-selects label > span {
  color: var(--muted);
  font-family: "Source Review", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-selects select {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  margin-top: 28px;
}

.deliverable-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 72px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(29, 36, 48, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.deliverable-card:hover {
  border-color: var(--pale-violet);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.deliverable-card.is-completed {
  border-color: rgba(4, 120, 87, 0.32);
  box-shadow: inset 0 3px 0 var(--emerald);
}

.deliverable-card[hidden] {
  display: none;
}

.card-preview {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(rgba(105, 56, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 56, 199, 0.035) 1px, transparent 1px),
    var(--paper-cool);
  background-size: 28px 28px;
  text-decoration: none;
}

.card-preview img,
.card-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.card-preview video {
  background: var(--night);
}

.video-preview {
  display: grid;
  min-width: 160px;
  gap: 4px;
  padding: 22px 34px 22px 25px;
  border-left: 2px solid var(--violet);
  background: var(--night);
  color: var(--white);
  box-shadow: 11px 11px 0 var(--lavender);
}

.video-preview b {
  font: 750 2rem "Cantarell Review", sans-serif;
  letter-spacing: -0.03em;
}

.video-preview small {
  color: var(--pale-violet);
  font-family: "Source Review", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.deliverable-card:hover .card-preview img,
.deliverable-card:hover .card-preview video {
  transform: scale(1.018);
}

.video-mark {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(27, 31, 42, 0.75);
  color: var(--white);
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
  transform: translate(74px, 0);
}

.empty-preview {
  position: relative;
  display: grid;
  min-width: 150px;
  gap: 5px;
  padding: 24px 28px;
  border: 1px solid var(--pale-violet);
  background: var(--white);
  text-align: center;
}

.empty-preview::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 58px;
  height: 1px;
  background: var(--violet-line);
  content: "";
}

.empty-preview b {
  color: var(--violet);
  font: 700 2rem "Cantarell Review", sans-serif;
}

.empty-preview small {
  color: var(--slate);
  font-size: 0.7rem;
}

.card-status,
.status-inline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate);
  font-family: "Source Review", monospace;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 25px;
  padding: 6px 8px;
  box-shadow: 0 2px 8px rgba(29, 36, 48, 0.08);
}

.completion-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(4, 120, 87, 0.28);
  border-radius: 5px;
  background: rgba(235, 247, 242, 0.95);
  color: var(--emerald);
  font-family: "Source Review", monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(29, 36, 48, 0.08);
}

.completion-stamp span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  background: var(--emerald);
  color: var(--white);
  font-size: 0.55rem;
}

.status-inline {
  min-height: 22px;
  padding: 5px 7px;
}

.status--active,
.status--profile {
  border-color: rgba(4, 120, 87, 0.28);
  background: #ebf7f2;
  color: var(--emerald);
}

.status--reserve,
.status--reserve-copy-only,
.status--mixed,
.status--planned {
  border-color: var(--pale-violet);
  background: var(--lavender);
  color: var(--deep-violet);
}

.status--conditional,
.status--missing {
  border-color: rgba(166, 106, 18, 0.38);
  background: var(--amber-bg);
  color: var(--amber-text);
}

.card-body {
  padding: 19px 20px 18px;
}

.card-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.57rem;
}

.card-reference span:first-child {
  color: var(--violet);
}

.card-body h3 {
  margin-top: 13px;
  font-size: 1.43rem;
}

.card-body h3 a {
  text-decoration: none;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  min-height: 45px;
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.72rem;
  line-height: 1.45;
}

.card-meta span + span::before {
  margin-right: 14px;
  color: var(--rule-dark);
  content: "·";
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.card-review-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.completion-toggle {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.completion-toggle:hover {
  border-color: var(--violet);
  color: var(--deep-violet);
}

.completion-toggle > span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 0;
}

.completion-toggle.is-completed {
  border-color: rgba(4, 120, 87, 0.28);
  background: #ebf7f2;
  color: var(--emerald);
}

.completion-toggle.is-completed > span {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
  font-size: 0.53rem;
}

.locale-stack {
  display: flex;
  gap: 5px;
}

.locale-stack span {
  padding: 4px 5px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--slate);
  background: var(--paper);
  font-size: 0.5rem;
}

.card-action {
  color: var(--deep-violet);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
}

.card-action span {
  margin-left: 4px;
  transition: margin 150ms ease;
}

.card-action:hover span {
  margin-left: 8px;
}

.empty-results {
  margin-top: 28px;
  padding: 70px 24px;
  border: 1px dashed var(--rule-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.empty-results > span {
  color: var(--violet);
  font-size: 2.6rem;
}

.empty-results h3 {
  margin-top: 14px;
  font-size: 1.5rem;
}

.empty-results p {
  margin: 8px 0 22px;
  color: var(--slate);
}

/* Deliverable detail */
.breadcrumb {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
}

.breadcrumb a {
  color: var(--deep-violet);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
  padding-bottom: 38px;
}

.detail-title {
  max-width: 920px;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-size: 0.72rem;
}

.reference-badge {
  display: inline-grid;
  min-width: 45px;
  min-height: 28px;
  place-items: center;
  padding: 6px 8px;
  background: var(--violet);
  color: var(--white);
  font-size: 0.62rem;
}

.detail-title h1 {
  max-width: 950px;
  margin-top: 19px;
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  line-height: 0.94;
}

.detail-title > p {
  max-width: 700px;
  margin-top: 22px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.6;
}

.detail-actions {
  display: grid;
  gap: 9px;
  flex: none;
}

.completion-button {
  justify-content: flex-start;
  border-color: var(--pale-violet);
  background: var(--white);
  color: var(--deep-violet);
}

.completion-button:hover {
  border-color: var(--violet);
  background: var(--lavender);
}

.completion-button__mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  border: 2px solid currentColor;
  font-size: 0;
}

.completion-button > span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.completion-button small {
  font-family: "Source Review", monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-button strong {
  font-size: 0.72rem;
}

.completion-button.is-completed {
  border-color: rgba(4, 120, 87, 0.32);
  background: #ebf7f2;
  color: var(--emerald);
}

.completion-button.is-completed .completion-button__mark {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
  font-size: 0.82rem;
}

.review-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(4, 120, 87, 0.28);
  border-radius: 5px;
  background: #ebf7f2;
  color: var(--emerald);
  font-family: "Source Review", monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.handoff-seam {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.handoff-seam::before {
  position: absolute;
  top: 29px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: var(--violet-line);
  content: "";
}

.handoff-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 14px;
  text-align: center;
}

.handoff-node {
  width: 14px;
  height: 14px;
  margin-bottom: 4px;
  border: 3px solid var(--violet-line);
  background: var(--paper);
}

.handoff-step.is-complete .handoff-node {
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 0 0 4px var(--lavender);
}

.handoff-step.has-review .handoff-node {
  border-color: var(--amber-border);
  background: var(--amber-bg);
}

.handoff-step small {
  color: var(--muted);
  font-family: "Source Review", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.handoff-step strong {
  font-size: 0.74rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(42px, 5vw, 74px);
  align-items: start;
  margin-top: 50px;
}

.detail-content {
  min-width: 0;
}

.group-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 34px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
}

.group-tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.group-tab span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-cool);
  font-size: 0.6rem;
}

.group-tab:hover,
.group-tab.is-active {
  background: var(--lavender);
  color: var(--deep-violet);
}

.group-tab.is-active span {
  background: var(--white);
}

.detail-section + .detail-section {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--rule);
}

.section-heading--detail {
  align-items: start;
}

.section-heading--detail h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

.section-heading--detail > p {
  max-width: 360px;
}

.asset-group {
  margin-top: 31px;
}

.asset-group.is-hidden {
  display: none;
}

.group-summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rule);
}

.group-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.locale-name {
  font-size: 0.9rem;
  font-weight: 750;
}

.group-links {
  flex-wrap: wrap;
  justify-content: end;
}

.group-links a,
.asset-actions a {
  color: var(--deep-violet);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.group-links a:hover,
.asset-actions a:hover {
  text-decoration: underline;
}

.review-callout {
  display: flex;
  gap: 13px;
  margin-top: 17px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 106, 18, 0.35);
  border-radius: 10px;
  background: var(--amber-bg);
  color: var(--amber-text);
}

.callout-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border: 1px solid var(--amber-border);
  font: 700 0.75rem "Source Review", monospace;
}

.review-callout strong {
  font-size: 0.78rem;
}

.review-callout p {
  margin-top: 3px;
  font-size: 0.74rem;
  line-height: 1.45;
}

.asset-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 22px;
  margin-top: 26px;
}

.asset-sequence--single {
  grid-template-columns: minmax(0, 680px);
}

.asset-card {
  position: relative;
  min-width: 0;
  padding-left: 23px;
}

.asset-index {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 0;
  display: flex;
  align-items: center;
}

.asset-index span {
  display: grid;
  width: 38px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--violet);
  background: var(--white);
  color: var(--deep-violet);
  font: 700 0.62rem "Source Review", monospace;
}

.asset-index i {
  width: 18px;
  height: 1px;
  background: var(--violet);
}

.media-stage {
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 15px 15px 0 0;
  background:
    linear-gradient(rgba(105, 56, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 56, 199, 0.035) 1px, transparent 1px),
    var(--paper-cool);
  background-size: 34px 34px;
}

.media-stage > a,
.media-stage img,
.media-stage video {
  width: 100%;
  height: 100%;
}

.media-stage img,
.media-stage video {
  object-fit: contain;
}

.video-player,
.video-player video {
  width: 100%;
  height: 100%;
}

.video-player {
  position: relative;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  background:
    linear-gradient(rgba(205, 187, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 187, 234, 0.08) 1px, transparent 1px),
    var(--night);
  background-size: 32px 32px;
  color: var(--white);
  text-align: center;
}

.video-player.has-video-error .video-fallback {
  display: grid;
}

.video-fallback > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--pale-violet);
  border-radius: 50%;
  color: var(--pale-violet);
  font-size: 0.8rem;
}

.video-fallback strong {
  font-size: 0.8rem;
}

.video-fallback a {
  color: var(--pale-violet);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.video-fallback a:hover {
  text-decoration: underline;
}

.media-stage--video {
  background: var(--night);
}

.media-stage--audio {
  display: flex;
  aspect-ratio: 16 / 8;
  flex-direction: column;
  gap: 24px;
  padding: 36px 28px;
  background: var(--night);
}

.media-stage--audio audio {
  width: min(100%, 420px);
}

.audio-art {
  display: flex;
  height: 84px;
  align-items: center;
  gap: 8px;
}

.audio-art span {
  width: 5px;
  border-radius: 3px;
  background: var(--pale-violet);
}

.audio-art span:nth-child(1),
.audio-art span:nth-child(7) { height: 24px; }
.audio-art span:nth-child(2),
.audio-art span:nth-child(6) { height: 48px; }
.audio-art span:nth-child(3),
.audio-art span:nth-child(5) { height: 72px; }
.audio-art span:nth-child(4) { height: 84px; background: var(--violet); }

.missing-media {
  display: grid;
  max-width: 280px;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.missing-media > span {
  color: var(--violet-line);
  font-size: 3rem;
}

.missing-media strong {
  font-size: 0.9rem;
}

.missing-media small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.65rem;
}

.asset-caption {
  padding: 16px;
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: var(--white);
}

.asset-kind {
  color: var(--deep-violet);
  font-size: 0.53rem;
}

.asset-caption h3 {
  margin-top: 5px;
  font-size: 1.15rem;
}

.asset-caption dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.asset-caption dl > div {
  display: flex;
  gap: 5px;
  font-size: 0.65rem;
}

.asset-caption dt {
  color: var(--muted);
}

.asset-caption dd {
  color: var(--slate);
  font-weight: 700;
}

.asset-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}

.overlay-note {
  margin: 10px 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber-border);
  background: var(--amber-bg);
  color: var(--amber-text);
}

.overlay-note span {
  display: block;
  font-family: "Source Review", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay-note strong,
.overlay-note small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
}

.asset-card--supporting {
  grid-column: 1 / -1;
  max-width: 660px;
}

.copy-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.copy-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--white);
}

.copy-card.is-locale-muted {
  display: none;
}

.copy-card header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px 10px 17px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-cool);
}

.copy-card header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.copy-label {
  color: var(--deep-violet);
  font-size: 0.6rem;
}

.copy-card header small {
  color: var(--muted);
  font-size: 0.65rem;
}

.copy-button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--rule-dark);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 750;
}

.copy-button:hover {
  border-color: var(--violet);
  color: var(--deep-violet);
}

.copy-card pre,
.source-copy pre {
  padding: 20px;
  overflow: auto;
  color: var(--ink);
  font: 0.84rem/1.7 "Noto Review", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.source-copy {
  margin-top: 16px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
}

.source-copy summary {
  padding: 14px 16px;
  color: var(--deep-violet);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
}

.source-copy pre {
  border-top: 1px solid var(--rule);
  background: var(--white);
}

.copy-empty {
  margin-top: 28px;
  padding: 34px;
  border: 1px dashed var(--rule-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.copy-empty h3 {
  font-size: 1.3rem;
}

.copy-empty p {
  margin-top: 7px;
  color: var(--slate);
  font-size: 0.8rem;
}

.detail-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 16px;
}

.details-panel,
.guardrail-panel,
.reuse-panel,
.completion-proof {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--white);
}

.completion-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  border-color: rgba(4, 120, 87, 0.32);
  background: #ebf7f2;
}

.completion-proof__mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  background: var(--emerald);
  color: var(--white);
  font-size: 1rem;
}

.completion-proof .utility-label {
  color: var(--emerald);
}

.completion-proof p:last-child {
  margin-top: 5px;
  color: var(--slate);
  font-size: 0.68rem;
}

.details-list {
  margin-top: 15px;
}

.details-list > div {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.details-list > div:last-child {
  border-bottom: 0;
}

.details-list dt {
  color: var(--muted);
  font-size: 0.51rem;
}

.details-list dd {
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.45;
}

.guardrail-panel {
  border-color: var(--pale-violet);
  background: var(--lavender);
}

.guardrail-panel > span {
  color: var(--violet);
  font-size: 0.8rem;
}

.guardrail-panel .utility-label {
  margin-top: 12px;
}

.guardrail-panel > p:last-child,
.reuse-panel > p:last-child {
  margin-top: 9px;
  color: var(--deep-violet);
  font-size: 0.74rem;
  line-height: 1.55;
}

.reuse-panel > p:last-child {
  color: var(--slate);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}

.flash-stack {
  position: fixed;
  z-index: 90;
  top: 24px;
  right: 24px;
  display: grid;
  gap: 8px;
  width: min(390px, calc(100% - 48px));
}

.flash-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(4, 120, 87, 0.3);
  border-radius: 9px;
  background: var(--night);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
}

.flash-message > span:first-child {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  background: var(--emerald);
  font-size: 0.68rem;
}

.toast {
  min-width: 220px;
  padding: 12px 15px;
  border: 1px solid var(--pale-violet);
  border-radius: 9px;
  background: var(--night);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
  animation: toast-in 180ms ease both;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: start;
  padding: 48px;
}

.error-page h1 {
  max-width: 700px;
  margin-top: 12px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.error-page > p:not(.utility-label) {
  max-width: 540px;
  margin-top: 18px;
  color: var(--slate);
  line-height: 1.6;
}

.error-page .button {
  margin-top: 28px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1220px) {
  .page-shell {
    width: min(100% - 48px, 1180px);
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr auto;
  }

  .filter-row {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 38px;
  }

  .asset-sequence {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-card--supporting {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 280px;
  }

  .app-sidebar {
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-header {
    display: flex;
  }

  .sidebar-close {
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(27, 31, 42, 0.42);
    backdrop-filter: blur(3px);
  }

  body.sidebar-open .sidebar-scrim {
    display: block;
  }

  .mobile-header {
    position: sticky;
    z-index: 40;
    top: 0;
    height: 54px;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid var(--rule);
    background: var(--white);
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(16px);
  }

  .mobile-header .icon-button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .app-main {
    margin-left: 0;
  }

  .page-shell {
    padding-top: 34px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .campaign-docket {
    max-width: 600px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-panel {
    grid-row: span 2;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-thesis {
    min-height: auto;
    padding: 38px 34px 54px;
  }

  .login-message {
    padding: 90px 0;
  }

  .login-message h1 {
    max-width: 720px;
    font-size: clamp(3.2rem, 10vw, 6rem);
  }

  .login-panel {
    min-height: auto;
    padding: 70px 24px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 30px, 660px);
    padding-bottom: 60px;
  }

  .dashboard-hero {
    padding-top: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-lede {
    font-size: 0.94rem;
  }

  .section-heading,
  .library-heading,
  .detail-header,
  .section-heading--detail {
    align-items: start;
    flex-direction: column;
  }

  .section-heading > p,
  .library-heading > p {
    text-align: left;
  }

  .run-sheet {
    padding: 44px 0;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .filter-row {
    grid-column: auto;
    grid-row: auto;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
  }

  .filter-selects select {
    width: 100%;
  }

  .search-field kbd {
    display: none;
  }

  .asset-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-preview {
    aspect-ratio: 16 / 9;
  }

  .detail-header {
    gap: 26px;
  }

  .detail-title h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .detail-actions,
  .detail-actions .button,
  .detail-actions form {
    width: 100%;
  }

  .card-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
  }

  .card-review-actions {
    width: 100%;
    justify-content: space-between;
  }

  .handoff-seam {
    grid-template-columns: 1fr 1fr;
    gap: 25px 0;
  }

  .handoff-seam::before {
    display: none;
  }

  .handoff-step:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

  .detail-layout {
    margin-top: 38px;
  }

  .group-summary {
    align-items: start;
    flex-direction: column;
  }

  .group-links {
    justify-content: start;
  }

  .asset-card {
    padding-left: 15px;
  }

  .asset-index {
    left: -5px;
  }

  .asset-index i {
    width: 12px;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .details-panel {
    grid-row: auto;
  }

  .login-thesis {
    min-height: 60vh;
    padding: 28px 22px 42px;
  }

  .login-brand {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .login-brand img {
    width: 155px;
  }

  .login-message {
    padding: 65px 0;
  }

  .login-message h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .login-message > p:last-child {
    font-size: 0.93rem;
  }

  .login-panel {
    padding: 44px 15px;
  }

  .login-form {
    padding: 30px 22px;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .toast {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
