:root {
  --brand-yellow: #ffd000;
  --brand-gold: #f0b90b;
  --brand-ink: #171209;
  --brand-brown: #7a5700;
  --brand-soft: #fff8dc;
  --brand-soft-strong: #fff1a6;
  --brand-line: rgba(205, 151, 0, 0.3);
  --brand-line-strong: rgba(255, 208, 0, 0.54);
  --brand-glow: rgba(255, 208, 0, 0.24);
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-strong: #f8f2df;
  --text: #182033;
  --muted: #667085;
  --line: #e4dcc8;
  --indigo: #8a6500;
  --teal: #287f72;
  --amber: #ffd000;
  --red: #e2554f;
  --ink: #222936;
  --green-soft: #e8f7f3;
  --amber-soft: #fff7d7;
  --red-soft: #fdeceb;
  --indigo-soft: #fff7dc;
  --shadow: 0 16px 40px rgba(61, 48, 20, 0.09);
  --glow: rgba(255, 208, 0, 0.22);
  --grid-dot: rgba(196, 145, 0, 0.16);
  --accent: #f0b90b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  min-width: 320px;
}

body[data-client="admin"] {
  --accent: #f0b90b;
  --glow: rgba(255, 208, 0, 0.22);
  --grid-dot: rgba(196, 145, 0, 0.16);
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  display: none;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.96), rgba(13, 12, 18, 0.98) 48%, rgba(5, 7, 12, 0.96)),
    radial-gradient(ellipse at 50% 100%, rgba(255, 208, 0, 0.52), transparent 44%);
  color: #f8fbff;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.intro-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(145, 152, 255, 0.32) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.32;
  animation: gridDrift 1450ms ease-out both;
}

.intro-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 44%, rgba(255, 255, 255, 0.13), transparent 58%);
  transform: translateY(-60%);
  animation: scanPass 1450ms ease-out both;
}

.intro-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-beam {
  position: absolute;
  inset: -20% 0 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 20px), rgba(255, 208, 0, 0.2), #fff8d6 50%, rgba(255, 208, 0, 0.2), transparent calc(50% + 20px)),
    radial-gradient(ellipse at 50% 92%, rgba(255, 255, 255, 0.92), rgba(255, 208, 0, 0.48) 18%, transparent 42%);
  filter: blur(0.2px);
  transform: translateY(8%);
  animation: introBeam 1450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-title {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  letter-spacing: 0;
  animation: introTitle 1200ms ease both;
  top: -8vh;
}

.intro-logo {
  width: clamp(88px, 13vw, 132px);
  height: clamp(88px, 13vw, 132px);
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 34px rgba(255, 208, 0, 0.24));
  animation: logoFloat 1450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoFloat {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introBeam {
  from {
    opacity: 0;
    transform: translateY(18%) scaleY(0.72);
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes introTitle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textShimmer {
  from {
    background-position: 120% 50%;
  }
  to {
    background-position: 0 50%;
  }
}

@keyframes gridDrift {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 0.32;
    transform: scale(1);
  }
}

@keyframes scanPass {
  to {
    transform: translateY(64%);
  }
}

@keyframes edgeFluorescence {
  from {
    opacity: 0.46;
    transform: translateY(8px) scaleX(0.98);
  }
  52% {
    opacity: 0.9;
  }
  to {
    opacity: 0.66;
    transform: translateY(0) scaleX(1.02);
  }
}

@keyframes edgeSweep {
  from {
    background-position: 120% 0, 0 0;
  }
  50% {
    opacity: 1;
  }
  to {
    background-position: -40% 0, 0 0;
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  background: #090d16;
}

.certification-mark {
  position: fixed;
  right: clamp(16px, 2.2vw, 30px);
  bottom: clamp(16px, 2.2vw, 30px);
  z-index: 62;
  width: clamp(48px, 4.6vw, 76px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 0.58;
  filter:
    drop-shadow(0 0 12px rgba(255, 208, 0, 0.22))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14));
}

.w-certification-mark {
  position: fixed;
  left: clamp(12px, 1.55vw, 18px);
  bottom: clamp(12px, 1.55vw, 18px);
  z-index: 62;
  width: clamp(26px, 2.4vw, 36px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 0.74;
  filter:
    drop-shadow(0 0 8px rgba(255, 208, 0, 0.2))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
}

body[data-screen="auth"] .certification-mark {
  opacity: 0.7;
  filter:
    drop-shadow(0 0 16px rgba(255, 208, 0, 0.28))
    drop-shadow(0 16px 30px rgba(0, 0, 0, 0.22));
}

body[data-screen="auth"] .w-certification-mark {
  opacity: 0.82;
  filter:
    drop-shadow(0 0 10px rgba(255, 208, 0, 0.28))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

body[data-client="platform"][data-screen="app"]::before,
body[data-client="platform"][data-screen="app"]::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

body[data-client="platform"][data-screen="app"]::before {
  z-index: 58;
  height: 86px;
  bottom: -38px;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(255, 208, 0, 0.28), transparent 48%),
    radial-gradient(ellipse at 76% 100%, rgba(255, 246, 180, 0.22), transparent 44%),
    linear-gradient(90deg, transparent 0%, rgba(255, 208, 0, 0.22) 26%, rgba(255, 255, 244, 0.58) 50%, rgba(255, 208, 0, 0.22) 74%, transparent 100%);
  filter: blur(13px);
  opacity: 0.78;
  mix-blend-mode: screen;
  animation: edgeFluorescence 4600ms ease-in-out infinite alternate;
}

body[data-client="platform"][data-screen="app"]::after {
  z-index: 59;
  height: 3px;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255, 208, 0, 0.55) 18%, #fff8d6 34%, rgba(255, 208, 0, 0.52) 48%, transparent 62% 100%),
    linear-gradient(90deg, rgba(255, 208, 0, 0.36), rgba(255, 255, 255, 0.74), rgba(255, 208, 0, 0.36));
  background-size: 210% 100%, 100% 100%;
  box-shadow:
    0 -2px 18px rgba(255, 208, 0, 0.5),
    0 -12px 44px rgba(255, 208, 0, 0.28);
  opacity: 0.9;
  animation: edgeSweep 3600ms ease-in-out infinite;
}

.app-shell.is-auth-screen {
  grid-template-columns: minmax(0, 1fr);
  background: #050815;
}

.app-shell.is-auth-screen .sidebar,
.app-shell.is-auth-screen .topbar,
.app-shell.is-auth-screen #statusStrip,
.app-shell.is-auth-screen #flowBoard,
.app-shell.is-auth-screen #debugPanel {
  display: none;
}

.app-shell.is-auth-screen .workspace {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 6%, rgba(174, 34, 255, 0.3), transparent 28%),
    radial-gradient(ellipse at 78% 14%, rgba(87, 72, 214, 0.2), transparent 34%),
    radial-gradient(ellipse at 62% 104%, rgba(255, 208, 0, 0.14), transparent 36%),
    linear-gradient(135deg, #120c1a 0%, #050509 48%, #09040d 100%);
}

.app-shell.is-auth-screen .workspace::before {
  z-index: 0;
  inset: -18%;
  background:
    radial-gradient(rgba(245, 231, 255, 0.2) 1px, transparent 1.2px),
    radial-gradient(rgba(187, 77, 255, 0.15) 1px, transparent 1.2px),
    linear-gradient(118deg, transparent 0 35%, rgba(233, 197, 255, 0.08) 46%, transparent 58% 100%);
  background-size: 32px 32px, 52px 52px, 100% 100%;
  background-position: 0 0, 18px 13px, 0 0;
  mask-image: radial-gradient(ellipse at 52% 52%, #000 0 54%, transparent 78%);
  opacity: 0.42;
  transform: perspective(1100px) rotateX(54deg) translateY(8%) scale(1.08);
  animation: voxrGridDrift 11000ms ease-in-out infinite alternate;
}

.app-shell.is-auth-screen .workspace::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 72% 78%, rgba(189, 44, 255, 0.36) 0%, rgba(142, 42, 244, 0.22) 25%, transparent 58%),
    radial-gradient(ellipse at 56% 108%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 208, 0, 0.16) 13%, rgba(174, 35, 255, 0.25) 30%, transparent 58%),
    linear-gradient(100deg, transparent 0 32%, rgba(233, 197, 255, 0.1) 44%, rgba(255, 255, 255, 0.13) 50%, rgba(171, 0, 255, 0.1) 57%, transparent 70% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%, rgba(5, 5, 9, 0.28) 100%);
  opacity: 0.84;
  filter: blur(0.2px);
  pointer-events: none;
  animation: voxrGlowSweep 9800ms ease-in-out infinite alternate;
}

.app-shell.is-auth-screen .content-grid {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.app-shell.is-auth-screen .content-grid::before,
.app-shell.is-auth-screen .content-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.app-shell.is-auth-screen .content-grid::before {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(205, 82, 255, 0.12) 66%, rgba(255, 255, 255, 0.08) 68%, transparent 76%),
    repeating-linear-gradient(92deg, transparent 0 48px, rgba(233, 197, 255, 0.08) 49px 50px, transparent 51px 104px);
  mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 86%, transparent 100%);
  opacity: 0.46;
  animation: voxrLineDrift 13000ms ease-in-out infinite alternate;
}

.app-shell.is-auth-screen .content-grid::after {
  background:
    radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, 0.13), transparent 22%),
    radial-gradient(ellipse at 50% 102%, rgba(255, 208, 0, 0.12), transparent 36%);
  filter: blur(22px);
  opacity: 0.56;
  animation: voxrHaloBreathe 7200ms ease-in-out infinite alternate;
}

.sidebar {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    radial-gradient(circle at 50% 0, var(--glow), transparent 34%),
    #090d16;
  color: #f7f8fb;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(255, 208, 0, 0.18));
}

.brand-block strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.brand-block span {
  display: block;
  color: #aeb7c7;
  font-size: 12px;
  margin-top: 3px;
}

.sidebar-context {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-context span {
  color: #ffd000;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-context strong {
  color: #f7f8fb;
  font-size: 15px;
  line-height: 1.32;
}

.nav-list {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #cfd5df;
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-badge {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 8px;
  color: #d8dee9;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.1;
}

.nav-badge.is-warn {
  color: #ffd000;
  border-color: rgba(255, 208, 0, 0.22);
  background: rgba(255, 208, 0, 0.08);
}

.nav-badge.is-ok {
  color: #8ee4d4;
  border-color: rgba(142, 228, 212, 0.24);
  background: rgba(40, 127, 114, 0.14);
}

.nav-item:hover,
.nav-item.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #596174;
}

.nav-item.is-active .nav-dot {
  background: var(--accent);
}

.sidebar-bottom-nav {
  order: 2;
  margin-top: auto;
  margin-bottom: 0;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.sidebar-bottom-nav[hidden] {
  display: none;
}

.nav-item-utility {
  border: 1px solid rgba(255, 208, 0, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.nav-item-utility:hover,
.nav-item-utility.is-active {
  border-color: rgba(255, 208, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.065);
}

.sidebar-actions {
  order: 3;
  margin-top: 10px;
  margin-bottom: clamp(52px, 4.6vw, 72px);
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

body[data-client="platform"] .sidebar-actions {
  margin-top: auto;
}

.sidebar-control-panel,
.sidebar-debug-panel {
  border: 1px solid rgba(255, 208, 0, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sidebar-control-panel {
  padding: 12px;
  display: grid;
  gap: 10px;
  position: relative;
}

.sidebar-control-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 0, 0.82), transparent);
  opacity: 0.86;
}

.sidebar-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.sidebar-panel-head span {
  border: 1px solid rgba(255, 208, 0, 0.2);
  border-radius: 999px;
  padding: 4px 7px;
  color: #ffd000;
  background: rgba(255, 208, 0, 0.08);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-panel-head strong {
  color: #f7f8fb;
  font-size: 14px;
  line-height: 1.25;
}

.sidebar-control-stack,
.sidebar-debug-body {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.sidebar-control-stack .mission-button,
.sidebar-control-stack .motion-button,
.sidebar-control-stack .status-pill,
.sidebar-control-stack .mini-pill,
.sidebar-control-stack .secondary-button,
.sidebar-debug-body .secondary-button {
  width: 100%;
}

.sidebar-control-stack .mission-button,
.sidebar-control-stack .motion-button {
  min-height: 48px;
  border: 1px solid rgba(255, 208, 0, 0.28);
  border-radius: 8px;
  justify-content: space-between;
  color: #fff6d0;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 208, 0, 0.28);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sidebar-control-stack .mission-button {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
}

.sidebar-control-stack .mission-button > span:first-child {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-control-stack .motion-button {
  min-height: 54px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  text-align: left;
}

.sidebar-control-stack .motion-button span {
  color: #ffd000;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-control-stack .motion-button strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.sidebar-control-stack .motion-button em {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 1px solid rgba(255, 208, 0, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff0b5;
  background: rgba(255, 208, 0, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.sidebar-control-stack .motion-button:hover,
.sidebar-control-stack .mission-button:hover,
.sidebar-control-stack .mission-button.is-active,
.sidebar-control-stack .motion-button.is-active {
  color: #ffffff;
  border-color: rgba(255, 208, 0, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.24), rgba(255, 255, 255, 0.075)),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(255, 208, 0, 0.1);
}

.sidebar-control-stack .status-pill,
.sidebar-control-stack .mini-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  text-align: center;
  color: #d8dee9;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-control-stack .status-pill.is-locked {
  color: #ffd4cf;
  background: rgba(226, 85, 79, 0.12);
  border-color: rgba(226, 85, 79, 0.24);
}

.sidebar-control-stack .status-pill.is-open {
  color: #fff0b5;
  background: rgba(255, 208, 0, 0.11);
  border-color: rgba(255, 208, 0, 0.28);
}

.sidebar-control-stack .secondary-button,
.sidebar-debug-body .secondary-button {
  min-height: 38px;
  border-radius: 8px;
  color: #d8dee9;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 208, 0, 0.12);
}

.sidebar-control-stack .secondary-button:hover,
.sidebar-debug-body .secondary-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 208, 0, 0.24);
}

.sidebar-debug-panel {
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.05), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.028);
}

.sidebar-debug-panel summary {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aeb7c7;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease, background 180ms ease;
}

.sidebar-debug-panel summary:hover {
  color: #fff6d0;
  background: rgba(255, 208, 0, 0.07);
}

.sidebar-debug-panel summary::-webkit-details-marker {
  display: none;
}

.sidebar-debug-panel:not([hidden]) summary::after {
  content: "+";
  color: #ffd000;
  font-weight: 900;
}

.sidebar-debug-panel:not([hidden])[open] summary::after {
  content: "-";
}

.sidebar-debug-body {
  padding-top: 6px;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aeb7c7;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.workspace {
  min-width: 0;
  padding: 28px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 0 0, var(--glow), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), transparent 260px),
    var(--bg);
}

.workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  opacity: 0.68;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar.is-platform-topbar {
  display: none;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.18;
}

.topbar-subtitle {
  margin: 7px 0 0;
  color: #5f6570;
  font-size: 14px;
  line-height: 1.45;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: fit-content;
  margin-left: auto;
  border: 1px solid rgba(241, 211, 110, 0.42);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(61, 48, 20, 0.08);
}

.platform-language-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 74;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #6f5100;
}

.platform-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 211, 110, 0.42);
  background: rgba(255, 255, 255, 0.84);
  color: #6f5100;
  box-shadow: 0 14px 34px rgba(61, 48, 20, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.platform-language-toggle:hover,
.platform-language-switcher.is-open .platform-language-toggle {
  transform: translateY(-1px);
  border-color: rgba(241, 211, 110, 0.68);
  box-shadow: 0 16px 38px rgba(61, 48, 20, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.platform-language-flag {
  font-size: 20px;
  line-height: 1;
}

.platform-language-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0.78;
  transition: transform 180ms ease;
}

.platform-language-caret svg {
  width: 12px;
  height: 12px;
}

.platform-language-switcher.is-open .platform-language-caret {
  transform: rotate(180deg);
}

.platform-language-menu {
  display: grid;
  gap: 6px;
  min-width: 164px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(241, 211, 110, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 46px rgba(61, 48, 20, 0.16);
  backdrop-filter: blur(16px);
}

.platform-language-menu[hidden] {
  display: none;
}

.platform-language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #6c4f09;
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.platform-language-option:hover {
  border-color: rgba(241, 211, 110, 0.46);
  background: rgba(255, 208, 0, 0.12);
  transform: translateY(-1px);
}

.platform-language-option.is-active {
  border-color: rgba(241, 211, 110, 0.58);
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.22), rgba(255, 255, 255, 0.96));
  color: #4b3400;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.platform-language-option-flag {
  font-size: 19px;
  line-height: 1;
}

.platform-language-option-copy {
  display: grid;
  gap: 1px;
}

.platform-language-option-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.platform-language-option-code {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.62;
}

.mission-button {
  border: 1px solid #f1d36e;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 11px;
  color: #6f5100;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.2), rgba(255, 255, 255, 0.84)),
    #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 30px rgba(255, 208, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mission-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #6f5100;
  background: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.1;
}

.mission-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0b90b;
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.16);
}

.mission-state.is-ok i {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(40, 127, 114, 0.14);
}

.mission-state.is-danger i {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 85, 79, 0.16);
}

.mission-button:hover,
.mission-button.is-active {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(255, 208, 0, 0.22);
}

.status-pill,
.mini-pill {
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #233044;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

.status-pill.is-locked {
  color: #8a281f;
  background: var(--red-soft);
  border-color: #f4b8b4;
}

.status-pill.is-open {
  color: #6f5100;
  background: var(--amber-soft);
  border-color: #f1d36e;
}

.status-pill.is-unlocked {
  box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.14);
}

.secondary-button,
.primary-button,
.danger-button,
.ghost-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
}

.primary-button {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%),
    var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px var(--glow);
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px var(--glow);
}

.secondary-button {
  border-color: var(--line);
}

.secondary-button:hover,
.secondary-button.is-active,
.ghost-button:hover,
.icon-button:hover {
  background: var(--surface-strong);
}

.danger-button {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.ghost-button {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.icon-button {
  width: 40px;
  padding: 0;
  color: inherit;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.status-strip.is-hero-strip {
  display: block;
  grid-template-columns: none;
}

.status-strip:empty {
  display: none;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.04);
  position: relative;
  overflow: hidden;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.metric-card.is-done {
  border-color: #a9ded2;
  background: var(--green-soft);
}

.metric-card.is-current {
  border-color: #b9bdf2;
  background: var(--indigo-soft);
}

.metric-card.is-alert {
  border-color: #f4b8b4;
  background: var(--red-soft);
}

.flow-board {
  padding: 0;
  margin-bottom: 22px;
  overflow-x: auto;
}

.business-line {
  min-width: 980px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 242, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
}

.business-line-head {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.business-line-head .eyebrow {
  margin-bottom: 4px;
  color: #8a6500;
}

.business-line-head h2 {
  margin-bottom: 0;
}

.business-line-head > span {
  border: 1px solid #f1d36e;
  border-radius: 999px;
  padding: 6px 10px;
  color: #6f5100;
  background: rgba(255, 208, 0, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.business-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(240, 185, 11, 0.06) 39px 40px, transparent 41px 78px);
  opacity: 0.5;
  pointer-events: none;
}

.business-track {
  --track-top: 52px;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding-top: 0;
  touch-action: pan-x;
}

.business-rail {
  position: absolute;
  top: var(--track-top);
  left: 6%;
  right: 6%;
  z-index: 1;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(235, 225, 200, 0.64)),
    #e7dec7;
  box-shadow: inset 0 1px 5px rgba(61, 48, 20, 0.14);
  overflow: hidden;
}

.business-rail span {
  display: block;
  width: var(--drag-progress, var(--progress));
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f2a35, #f0b90b 62%, #ffe48a);
  transition: width 460ms cubic-bezier(0.2, 1.28, 0.34, 1);
}

.business-thumb {
  position: absolute;
  top: calc(var(--track-top) - 42px);
  left: clamp(92px, calc(var(--thumb-left) + var(--rubber-x, 0px)), calc(100% - 92px));
  z-index: 5;
  min-width: 168px;
  height: 32px;
  border: 1px solid rgba(255, 208, 0, 0.52);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff6d0;
  background:
    linear-gradient(135deg, #181818, #2b2618),
    #181818;
  box-shadow: 0 16px 32px rgba(61, 48, 20, 0.18), 0 0 0 4px rgba(255, 208, 0, 0.09);
  transform: translateX(-50%);
  transition: left 520ms cubic-bezier(0.2, 1.32, 0.32, 1), transform 180ms ease;
  touch-action: none;
}

.business-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(255, 208, 0, 0.42);
  border-bottom: 1px solid rgba(255, 208, 0, 0.42);
  background: #242015;
  transform: translateX(-50%) rotate(45deg);
}

.business-thumb span {
  display: grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-line.is-dragging .business-rail span,
.business-line.is-dragging .business-thumb {
  transition: none;
}

.business-line.is-dragging .business-thumb {
  transform: translateX(-50%) scale(1.05);
}

.business-stage-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(104px, 1fr));
  gap: 8px;
  position: relative;
  z-index: 2;
}

.business-stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 62px, rgba(255, 255, 255, 0.9) 62px 100%),
    rgba(255, 255, 255, 0.72);
  padding: 74px 10px 11px;
  display: grid;
  gap: 0;
  min-height: 166px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.business-stage::after {
  content: "";
  position: absolute;
  top: calc(var(--track-top) + 5px);
  left: 50%;
  z-index: 1;
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(61, 48, 20, 0.24), transparent);
}

.business-step-node {
  position: absolute;
  top: calc(var(--track-top) - 17px);
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #7c6b3f;
  background:
    linear-gradient(180deg, #fffdf6, #f7efd9),
    var(--surface-strong);
  box-shadow: 0 9px 18px rgba(61, 48, 20, 0.12);
  font-size: 11px;
  font-weight: 800;
}

.business-stage-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-height: 78px;
  align-content: start;
}

.business-stage strong {
  display: block;
  font-size: 14px;
  line-height: 1.28;
}

.business-stage em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.business-stage-status {
  width: fit-content;
  border: 1px solid rgba(226, 85, 79, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  color: #9b2f2b;
  background: rgba(226, 85, 79, 0.1);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.business-stage-status .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.business-stage-status.is-unlocked {
  color: #087263;
  background: rgba(40, 127, 114, 0.12);
  border-color: rgba(40, 127, 114, 0.26);
}

.stage-next-action {
  min-height: 31px;
  width: 100%;
  padding: 0 9px;
  justify-content: center;
  font-size: 12px;
  border-radius: 8px;
}

.business-stage.is-done {
  border-color: rgba(40, 127, 114, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 62px, rgba(232, 247, 243, 0.94) 62px 100%),
    rgba(255, 255, 255, 0.72);
}

.business-stage.is-done .business-step-node {
  color: #087263;
  background: #ffffff;
  border-color: rgba(40, 127, 114, 0.24);
}

.business-stage.is-current {
  border-color: rgba(240, 185, 11, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 62px, rgba(255, 247, 220, 0.98) 62px 100%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 28px rgba(155, 111, 0, 0.13);
}

.business-stage.is-current .business-step-node {
  color: #1f1a0b;
  background: linear-gradient(180deg, #ffe477, #f0b90b);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 26px rgba(240, 185, 11, 0.28), 0 0 0 6px rgba(255, 208, 0, 0.12);
}

.business-stage.is-blocked {
  border-color: rgba(226, 85, 79, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 62px, rgba(253, 236, 235, 0.95) 62px 100%),
    rgba(255, 255, 255, 0.72);
}

.business-stage.is-blocked .business-step-node {
  color: #9b2f2b;
  background: #fff7f6;
  border-color: rgba(226, 85, 79, 0.22);
}

.business-stage.is-locked {
  border-color: rgba(226, 85, 79, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 62px, rgba(253, 236, 235, 0.92) 62px 100%),
    rgba(255, 255, 255, 0.72);
}

.business-stage.is-locked .business-step-node {
  color: #9b2f2b;
  background: #fff7f6;
  border-color: rgba(226, 85, 79, 0.24);
  box-shadow: 0 10px 22px rgba(226, 85, 79, 0.12), 0 0 0 5px rgba(226, 85, 79, 0.09);
}

.business-stage:hover {
  border-color: rgba(240, 185, 11, 0.48);
}

.unlock-strip,
.unlock-card {
  border: 1px solid #f1d36e;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.86) 58%),
    #ffffff;
}

.unlock-strip {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.unlock-strip span,
.unlock-card span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 800;
}

.unlock-strip strong,
.unlock-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.unlock-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.unlock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.unlock-card .primary-button {
  width: fit-content;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.content-grid:has(.admin-role-panel) {
  grid-template-columns: minmax(0, 1fr);
}

.admin-role-panel {
  width: 100%;
}

.panel::before,
.metric-card::before,
.business-stage::before,
.row-card::before,
.queue-item::before,
.product-card::before,
.source-card::before,
.debug-card::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.5), transparent 64% 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-85%);
  transition: opacity 180ms ease, transform 520ms ease;
}

.panel:hover,
.metric-card:hover,
.business-stage:hover,
.row-card:hover,
.queue-item:hover,
.product-card:hover,
.source-card:hover,
.debug-card:hover,
.login-card:hover {
  border-color: rgba(90, 98, 214, 0.32);
  box-shadow: 0 20px 50px rgba(31, 41, 55, 0.11);
}

.panel:hover::before,
.metric-card:hover::before,
.business-stage:hover::before,
.row-card:hover::before,
.queue-item:hover::before,
.product-card:hover::before,
.source-card:hover::before,
.debug-card:hover::before,
.login-card:hover::before {
  opacity: 1;
  transform: translateX(85%);
}

.panel-header,
.panel-body,
.panel-footer {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.panel-header {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-header p,
.muted {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.panel-header p {
  margin-bottom: 0;
  line-height: 1.5;
}

.panel-footer {
  border-top: 1px solid var(--line);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cancel-authorization-row {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(205, 151, 0, 0.14);
  justify-content: flex-end;
  align-items: flex-start;
}

.cancel-authorization-control {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.cancel-authorization-control.is-confirming {
  width: min(100%, 360px);
  gap: 8px;
}

.cancel-authorization-trigger {
  min-height: 28px;
  padding: 0 9px;
  color: #8d332b;
  border-color: rgba(188, 48, 43, 0.16);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.cancel-authorization-trigger:hover {
  color: #7f1e17;
  border-color: rgba(188, 48, 43, 0.28);
  background: rgba(255, 246, 245, 0.94);
}

.cancel-authorization-confirm {
  width: min(100%, 360px);
  border: 1px solid rgba(188, 48, 43, 0.16);
  border-radius: 8px;
  padding: 11px;
  display: grid;
  gap: 7px;
  background:
    linear-gradient(180deg, rgba(255, 249, 248, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.cancel-authorization-confirm strong {
  color: #7f1e17;
  font-size: 14px;
}

.cancel-authorization-confirm p {
  margin: 0;
  color: #6b4c49;
  font-size: 12px;
  line-height: 1.45;
}

.cancel-authorization-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #4b5669;
  font-size: 12px;
  line-height: 1.4;
}

.cancel-authorization-check input {
  margin-top: 1px;
}

.cancel-authorization-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cancel-authorization-confirm-button {
  min-width: 104px;
}

.cancel-authorization-control small {
  max-width: 280px;
  color: #8b6f6b;
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.split-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.talent-hero {
  grid-column: 1 / -1;
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.53fr) minmax(420px, 0.47fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 86% 18%, var(--glow), transparent 36%),
    linear-gradient(135deg, #101729, #18213a 52%, #0c1220);
}

.talent-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  opacity: 0.7;
  pointer-events: none;
}

.talent-hero-main,
.talent-step-card {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.talent-hero-main {
  display: grid;
  align-content: center;
  min-height: 180px;
  gap: 18px;
}

.talent-hero-main .eyebrow {
  color: #aeb7c7;
}

.creator-identity-card {
  width: min(620px, 100%);
  border: 1px solid rgba(255, 208, 0, 0.48);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 208, 0, 0.48), transparent 26%),
    radial-gradient(circle at 86% 72%, rgba(255, 247, 184, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 208, 0, 0.2), rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(255, 208, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.creator-identity-card::before {
  content: "";
  position: absolute;
  inset: -42% -18%;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.32), transparent 58%);
  transform: translateX(-54%);
  animation: identitySweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.creator-avatar {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #141922;
  background:
    linear-gradient(135deg, #fff9d8, #ffd000 72%),
    #ffd000;
  box-shadow:
    0 0 0 5px rgba(255, 208, 0, 0.13),
    0 18px 34px rgba(255, 208, 0, 0.2);
  font-size: 24px;
  font-weight: 900;
}

.creator-avatar.has-preview {
  display: block;
  position: relative;
  padding: 3px;
  border-color: rgba(255, 208, 0, 0.56);
  background:
    linear-gradient(145deg, rgba(255, 208, 0, 0.36), rgba(255, 255, 255, 0.08)),
    rgba(8, 10, 15, 0.72);
}

.creator-preview-asset,
.creator-avatar.has-preview img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 5px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.creator-identity-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.creator-identity-copy strong {
  color: #ffffff;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 0.98;
  text-shadow: 0 0 34px rgba(255, 208, 0, 0.22);
}

.creator-identity-copy em {
  color: #f8e79a;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.creator-auth-badge {
  justify-self: end;
  border: 1px solid rgba(255, 208, 0, 0.58);
  border-radius: 999px;
  padding: 8px 12px;
  color: #141922;
  background: #ffd000;
  box-shadow: 0 0 28px rgba(255, 208, 0, 0.24);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes identitySweep {
  0%, 38% {
    transform: translateX(-58%);
  }
  62%, 100% {
    transform: translateX(58%);
  }
}

.talent-step-card {
  min-height: 117px;
  margin: 63px 22px 22px 0;
  --stage-accent: #8d92ff;
  --stage-ink: #f4f6ff;
  --stage-muted: #d5dbff;
  --stage-border: rgba(141, 146, 255, 0.42);
  --stage-bg-a: rgba(141, 146, 255, 0.18);
  --stage-bg-b: rgba(67, 73, 160, 0.08);
  --stage-glow: rgba(141, 146, 255, 0.34);
  --stage-beam: rgba(141, 146, 255, 0.18);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  align-content: center;
  align-self: start;
  background:
    radial-gradient(circle at 10% 10%, var(--stage-beam), transparent 42%),
    linear-gradient(135deg, var(--stage-bg-a), var(--stage-bg-b)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 34px var(--stage-glow);
  backdrop-filter: blur(12px);
  min-width: 0;
  box-sizing: border-box;
}

.talent-step-card::before {
  content: "";
  position: absolute;
  inset: -46%;
  background:
    conic-gradient(from 130deg, transparent 0 38%, var(--stage-beam) 48%, transparent 60% 100%);
  opacity: 0.78;
  filter: blur(18px);
  animation: stageGlowSweep 4.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.talent-step-card > * {
  position: relative;
  z-index: 1;
}

.talent-step-card.is-indigo {
  --stage-accent: #8d92ff;
  --stage-muted: #d9ddff;
  --stage-border: rgba(141, 146, 255, 0.48);
  --stage-bg-a: rgba(141, 146, 255, 0.2);
  --stage-bg-b: rgba(62, 70, 172, 0.1);
  --stage-glow: rgba(141, 146, 255, 0.38);
  --stage-beam: rgba(141, 146, 255, 0.2);
}

.talent-step-card.is-orchid {
  --stage-accent: #d88cff;
  --stage-muted: #f0d8ff;
  --stage-border: rgba(216, 140, 255, 0.48);
  --stage-bg-a: rgba(216, 140, 255, 0.18);
  --stage-bg-b: rgba(115, 69, 164, 0.1);
  --stage-glow: rgba(216, 140, 255, 0.34);
  --stage-beam: rgba(216, 140, 255, 0.19);
}

.talent-step-card.is-cyan {
  --stage-accent: #4bd8ff;
  --stage-muted: #ccf3ff;
  --stage-border: rgba(75, 216, 255, 0.48);
  --stage-bg-a: rgba(75, 216, 255, 0.17);
  --stage-bg-b: rgba(37, 112, 174, 0.1);
  --stage-glow: rgba(75, 216, 255, 0.32);
  --stage-beam: rgba(75, 216, 255, 0.18);
}

.talent-step-card.is-sky {
  --stage-accent: #62b4ff;
  --stage-muted: #d8ecff;
  --stage-border: rgba(98, 180, 255, 0.48);
  --stage-bg-a: rgba(98, 180, 255, 0.18);
  --stage-bg-b: rgba(45, 91, 177, 0.1);
  --stage-glow: rgba(98, 180, 255, 0.34);
  --stage-beam: rgba(98, 180, 255, 0.19);
}

.talent-step-card.is-violet {
  --stage-accent: #aa8cff;
  --stage-muted: #e4d9ff;
  --stage-border: rgba(170, 140, 255, 0.5);
  --stage-bg-a: rgba(170, 140, 255, 0.2);
  --stage-bg-b: rgba(78, 65, 166, 0.11);
  --stage-glow: rgba(170, 140, 255, 0.38);
  --stage-beam: rgba(170, 140, 255, 0.21);
}

.talent-step-card.is-fuchsia {
  --stage-accent: #ff78e6;
  --stage-muted: #ffd5f7;
  --stage-border: rgba(255, 120, 230, 0.46);
  --stage-bg-a: rgba(255, 120, 230, 0.17);
  --stage-bg-b: rgba(126, 54, 154, 0.1);
  --stage-glow: rgba(255, 120, 230, 0.3);
  --stage-beam: rgba(255, 120, 230, 0.17);
}

.talent-step-card.is-blue {
  --stage-accent: #6d9cff;
  --stage-muted: #d8e5ff;
  --stage-border: rgba(109, 156, 255, 0.5);
  --stage-bg-a: rgba(109, 156, 255, 0.19);
  --stage-bg-b: rgba(51, 84, 180, 0.1);
  --stage-glow: rgba(109, 156, 255, 0.36);
  --stage-beam: rgba(109, 156, 255, 0.2);
}

.talent-step-card.is-platinum {
  --stage-accent: #dce8ff;
  --stage-muted: #f1f6ff;
  --stage-border: rgba(220, 232, 255, 0.5);
  --stage-bg-a: rgba(220, 232, 255, 0.18);
  --stage-bg-b: rgba(105, 122, 158, 0.1);
  --stage-glow: rgba(220, 232, 255, 0.26);
  --stage-beam: rgba(220, 232, 255, 0.14);
}

.talent-step-card.is-slate {
  --stage-accent: #aab9d3;
  --stage-muted: #dce5f4;
  --stage-border: rgba(170, 185, 211, 0.46);
  --stage-bg-a: rgba(170, 185, 211, 0.16);
  --stage-bg-b: rgba(80, 91, 112, 0.12);
  --stage-glow: rgba(170, 185, 211, 0.24);
  --stage-beam: rgba(170, 185, 211, 0.14);
}

.talent-step-card {
  padding: 12px;
}

@keyframes stageGlowSweep {
  from {
    transform: translate3d(-8%, -4%, 0) rotate(0deg);
  }

  to {
    transform: translate3d(8%, 4%, 0) rotate(16deg);
  }
}

.current-next-card > span,
.snapshot-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.talent-step-card strong {
  color: var(--stage-ink);
  font-size: 18px;
  text-shadow: 0 0 18px var(--stage-glow);
}

.talent-step-card p {
  margin-bottom: 2px;
  color: var(--stage-muted);
  font-size: 13px;
  line-height: 1.42;
}

.talent-stage-chip {
  width: fit-content;
  border: 1px solid var(--stage-border);
  border-radius: 999px;
  padding: 5px 9px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), var(--stage-bg-a)),
    rgba(8, 12, 22, 0.34);
  box-shadow:
    0 0 18px var(--stage-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.talent-stage-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stage-accent);
  box-shadow: 0 0 12px var(--stage-accent);
}

.talent-hero-workflow {
  grid-column: 1 / -1;
  min-height: 0;
  position: relative;
  z-index: 1;
  margin: 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 208, 0, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  overflow: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.talent-hero-workflow .talent-action-body {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.talent-hero-workflow .talent-media-card,
.talent-hero-workflow .upload-dropzone,
.talent-hero-workflow .current-material-card,
.talent-hero-workflow .version-item,
.talent-hero-workflow .review-history-item {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.98)),
    #ffffff;
}

.talent-action-panel {
  grid-column: 1 / -1;
  min-height: 440px;
}

.talent-action-body {
  display: grid;
  grid-template-columns: minmax(190px, 0.52fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.talent-action-body.is-upload-stage {
  align-items: start;
}

.talent-action-body.is-delivery-stage {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  align-items: stretch;
}

.talent-media-card,
.upload-dropzone {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 251, 255, 0.96)),
    var(--surface-strong);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
}

.talent-media-card span,
.upload-dropzone span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.current-material-showcase {
  height: 100%;
  min-height: 0;
  align-self: stretch;
  align-content: start;
  gap: 9px;
  overflow: auto;
}

.material-preview-frame {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.current-material-showcase .material-preview-frame {
  width: min(100%, 176px);
  height: clamp(124px, 19vh, 176px);
  justify-self: center;
  overflow: hidden;
}

.current-material-showcase .material-preview-frame .portrait-asset,
.current-material-showcase .material-preview-frame .video-asset {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.talent-media-card .media-version-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 208, 0, 0.36);
  border-radius: 999px;
  padding: 6px 9px;
  color: #4f3b00;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(18, 23, 32, 0.12);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.delivery-window-card {
  align-content: start;
  gap: 10px;
  overflow: visible;
}

.delivery-window-media-frame {
  min-width: 0;
  width: 100%;
  height: clamp(112px, 17vh, 156px);
  border: 1px solid rgba(14, 18, 28, 0.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b0f18;
}

.delivery-window-media-frame .video-asset {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.delivery-window-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.delivery-window-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.delivery-window-labels .mini-pill {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-window-copy strong {
  color: #141922;
  font-size: 17px;
  line-height: 1.2;
}

.delivery-window-copy em,
.delivery-window-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.delivery-window-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.delivery-window-copy .secondary-button {
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
  justify-content: center;
}

.publish-form {
  align-content: start;
  gap: 10px;
}

.publish-form .muted,
.publish-form .form-hint {
  line-height: 1.38;
}

.publish-form .publish-summary {
  gap: 8px;
}

.publish-form .publish-summary article {
  padding: 8px 10px;
}

.publish-form .publish-summary strong {
  margin-top: 4px;
  font-size: 13px;
}

.publish-form input {
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.publish-form .action-row {
  gap: 8px;
}

.upload-dropzone {
  width: 100%;
  cursor: pointer;
  border-style: dashed;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-dropzone:hover {
  border-color: color-mix(in srgb, var(--accent), #ffffff 30%);
  background: var(--indigo-soft);
  transform: translateY(-1px);
}

.upload-dropzone strong {
  font-size: 16px;
}

.action-copy {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: center;
}

.talent-action-body.is-upload-stage .action-copy {
  gap: 10px;
  align-content: start;
  padding-top: 2px;
}

.action-copy h3,
.field-grid h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.action-copy p,
.field-grid p {
  margin-bottom: 0;
  line-height: 1.6;
}

.action-checklist,
.upload-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-checklist span,
.upload-rules span {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #384255;
  background: #ffffff;
  font-size: 13px;
}

.action-checklist .icon {
  color: var(--teal);
}

.current-material-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.88)),
    #ffffff;
}

.current-material-showcase .current-material-card {
  padding: 8px 9px 9px;
  gap: 5px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.current-material-showcase .current-material-card > .muted {
  margin: 0;
  font-size: 10px;
  line-height: 1.24;
  letter-spacing: 0;
}

.current-material-showcase .task-progress-list {
  display: grid;
  gap: 1px;
  position: relative;
}

.current-material-showcase .task-progress-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 208, 0, 0.82), rgba(240, 185, 11, 0.08));
}

.task-progress-step {
  min-width: 0;
  min-height: 34px;
  padding: 0 0 5px 35px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  column-gap: 6px;
  row-gap: 1px;
  position: relative;
  color: var(--muted);
  align-items: center;
}

.task-progress-step:last-child {
  padding-bottom: 0;
}

.task-progress-step i {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #9a7a15;
  background: #fffaf0;
  box-shadow: 0 0 0 5px #ffffff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.task-progress-step strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #333a49;
  font-size: 10px;
  line-height: 1.14;
  letter-spacing: 0;
}

.task-progress-step em {
  justify-self: end;
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  min-height: 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #ffffff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.task-progress-step.is-done i {
  border-color: #a9ded2;
  color: #087263;
  background: var(--green-soft);
}

.task-progress-step.is-done em {
  border-color: #a9ded2;
  color: #087263;
  background: var(--green-soft);
}

.task-progress-step.is-active i {
  border-color: rgba(240, 185, 11, 0.55);
  color: #4f3b00;
  background: #ffd000;
  box-shadow:
    0 0 0 5px #ffffff,
    0 0 24px rgba(255, 208, 0, 0.34);
}

.task-progress-step.is-active strong {
  color: #151a24;
}

.task-progress-step.is-active em {
  border-color: rgba(240, 185, 11, 0.45);
  color: #5d4500;
  background: #fff6cf;
}

.material-history-column {
  min-height: 0;
  display: grid;
  align-content: stretch;
}

.current-material-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.current-material-head div {
  min-width: 0;
}

.current-material-head .status-tag {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0;
}

.current-material-head span:not(.status-tag) {
  display: block;
  margin-bottom: 5px;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
}

.current-material-head strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.empty-action {
  min-height: 280px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #fbfcff;
}

.review-feedback {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #ffffff;
}

.review-feedback strong {
  font-size: 13px;
}

.review-feedback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.review-feedback.is-danger {
  border-color: #f4b8b4;
  background: var(--red-soft);
}

.review-feedback.is-danger strong {
  color: #8a281f;
}

.review-feedback.is-warning {
  border-color: rgba(240, 185, 11, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.92)),
    #fffdf2;
}

.review-feedback.is-warning strong {
  color: #6f5100;
}

.version-list,
.review-history {
  display: grid;
  gap: 12px;
}

.version-list h3,
.review-history h3 {
  margin: 4px 0 0;
}

.version-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  position: relative;
  scroll-snap-type: x proximity;
}

.version-track::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, #ffd000, rgba(255, 208, 0, 0.12));
}

.version-item,
.review-history-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  display: grid;
  gap: 8px;
  background: #ffffff;
}

.version-item {
  flex: 0 0 min(360px, 86vw);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  position: relative;
  scroll-snap-align: start;
}

.version-item > span {
  min-width: 38px;
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--accent);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.version-item.is-current {
  border-color: color-mix(in srgb, var(--accent), #ffffff 30%);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.version-item .status-tag {
  grid-column: 2;
  width: fit-content;
}

.version-item strong,
.review-history-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.version-item em,
.version-item small,
.review-history-item span,
.review-history-item em,
.form-hint {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.version-item small {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.review-history-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.review-history-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.material-history-card {
  height: 100%;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.06), rgba(255, 255, 255, 0)),
    #ffffff;
}

.material-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.material-history-head h3 {
  margin-bottom: 4px;
  color: #1a2233;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.18;
}

.material-history-head p {
  margin: 0;
  color: #5d6678;
  font-size: 13px;
  line-height: 1.5;
}

.material-history-head .mini-pill {
  color: #4f3b00;
  background: #fff4b8;
}

.history-table-wrap {
  min-height: 0;
  max-height: clamp(260px, 46vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.history-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-filter-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #453916;
  background: #fbfcff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.history-filter-row button strong {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #6f4c00;
  background: rgba(255, 208, 0, 0.2);
  text-align: center;
}

.history-filter-row button.is-active {
  border-color: rgba(240, 185, 11, 0.62);
  background: #fff4b8;
  box-shadow: 0 10px 24px rgba(240, 185, 11, 0.12);
}

.history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.history-table th,
.history-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: #273244;
  text-align: left;
  vertical-align: top;
}

.history-table th {
  color: #8a6500;
  background: rgba(255, 208, 0, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.history-table th:last-child,
.history-table-action-cell {
  width: 112px;
  text-align: right;
  vertical-align: middle;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
  width: 104px;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: 104px;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
  width: 124px;
}

.history-table tr:last-child td {
  border-bottom: 0;
}

.history-table tr.is-current td {
  background: rgba(255, 208, 0, 0.07);
}

.history-table tbody tr[role="button"] {
  cursor: pointer;
}

.history-table tbody tr[role="button"]:hover td,
.history-table tbody tr[role="button"]:focus-visible td {
  background: #fff8cf;
}

.history-table tr.is-empty td {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.history-table td > strong,
.history-table td > span,
.history-table td > small {
  display: block;
  overflow-wrap: anywhere;
}

.history-table td > strong {
  color: #182033;
  font-weight: 900;
}

.history-table td > span,
.history-table td > small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.history-table td > .status-tag,
.history-table td > .history-review-chip,
.history-table td > .history-current-badge {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-table td.history-status-cell,
.history-table td.history-review-cell {
  vertical-align: middle;
}

.history-status-wrap,
.history-review-wrap {
  min-height: 24px;
  display: flex;
  align-items: center;
}

.history-status-wrap {
  justify-content: flex-start;
}

.history-review-wrap {
  justify-content: flex-start;
}

.history-table td > .status-tag {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

.history-table td > .history-current-badge {
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(240, 185, 11, 0.48);
  border-radius: 999px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  color: #5d4500;
  background: #fff4b8;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.history-table td > .history-review-chip {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #384255;
  background: var(--surface-strong);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
}

.history-table td > .history-review-chip.is-ok {
  color: #087263;
  background: var(--green-soft);
  border-color: #a9ded2;
}

.history-table td > .history-review-chip.is-warn {
  color: #8a5b08;
  background: var(--amber-soft);
  border-color: #efd184;
}

.history-table td > .history-review-chip.is-danger {
  color: #8a281f;
  background: var(--red-soft);
  border-color: #f4b8b4;
}

.history-table .history-detail-action {
  min-height: 30px;
  min-width: 88px;
  border: 1px solid rgba(240, 185, 11, 0.42);
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6f4c00;
  background: #fff8cf;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(240, 185, 11, 0.1);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.history-table-action-cell .history-detail-action {
  margin-left: auto;
}

.history-table .history-detail-action .icon {
  width: 13px;
  height: 13px;
}

.history-table tbody tr[role="button"]:hover .history-detail-action,
.history-table tbody tr[role="button"]:focus-visible .history-detail-action {
  border-color: var(--accent);
  background: #fff1a6;
  transform: translateX(1px);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-card,
.current-next-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.snapshot-card {
  display: grid;
  gap: 7px;
}

.snapshot-card strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.current-next-card {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.current-next-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mission-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mission-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 9, 18, 0.6);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.mission-dialog {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  border: 1px solid rgba(241, 211, 110, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 100px rgba(10, 14, 25, 0.34);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: modalLift 220ms ease both;
}

.business-motion-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 20px;
}

.business-motion-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 9, 18, 0.62);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.business-motion-dialog {
  width: min(1120px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid rgba(241, 211, 110, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 100px rgba(10, 14, 25, 0.34);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: modalLift 220ms ease both;
}

.business-motion-head {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.18), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.business-motion-head span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-motion-head h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 4vw, 34px);
}

.business-motion-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.business-motion-body {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  scrollbar-gutter: stable;
}

.business-motion-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0 0 8px;
  scroll-padding-inline: 18px;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  touch-action: pan-x;
}

.business-motion-scroll::-webkit-scrollbar {
  height: 8px;
}

.business-motion-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(235, 225, 200, 0.65);
}

.business-motion-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.58);
}

.motion-swipe-hint {
  display: none;
}

.business-motion-body .business-line {
  min-width: 980px;
  box-shadow: none;
}

.mission-dialog-head {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.18), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.mission-dialog-head span,
.mission-status-line span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-dialog-head h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.mission-dialog-body {
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: 18px;
  scrollbar-gutter: stable;
}

.mission-summary {
  display: grid;
  gap: 12px;
}

.mission-status-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--amber-soft);
}

.mission-status-line strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.mission-status-line .mission-state {
  width: fit-content;
  margin-top: 9px;
  border: 1px solid rgba(240, 185, 11, 0.22);
  background: #ffffff;
}

.mission-credential-strip {
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 8px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.mission-credential-strip.is-pending {
  border-style: dashed;
  background: #fbfcff;
}

.mission-credential-main,
.mission-credential-strip > div {
  min-width: 0;
}

.mission-credential-strip span,
.mission-credential-meta span {
  display: block;
  color: #8a6500;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.mission-credential-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mission-credential-strip p,
.mission-credential-strip em {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-credential-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, auto));
  gap: 8px;
}

.mission-credential-meta article {
  min-width: 0;
  border: 1px solid rgba(240, 185, 11, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.mission-credential-meta strong {
  margin-top: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.mission-task-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #ffffff;
}

.mission-task-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mission-task-board-head span {
  display: block;
  color: #8a6500;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-task-board-head h3 {
  margin: 3px 0 0;
}

.mission-task-board-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(240, 185, 11, 0.26);
  border-radius: 999px;
  padding: 5px 9px;
  color: #6f5100;
  background: rgba(255, 208, 0, 0.14);
  font-size: 12px;
}

.mission-task-groups {
  display: grid;
  gap: 8px;
}

.mission-task-group {
  min-width: 0;
  border: 1px solid rgba(225, 229, 236, 0.9);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  background: #fbfcff;
}

.mission-task-group-head {
  border-radius: 8px;
  padding: 8px 7px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: #4f3b00;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.18), rgba(255, 255, 255, 0.9)),
    #fffdf2;
  text-align: center;
}

.mission-task-group-head span {
  font-size: 11px;
  font-weight: 900;
}

.mission-task-group-head strong {
  font-size: 12px;
  line-height: 1.25;
}

.mission-task-list {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mission-task-list.is-compact {
  gap: 3px;
}

.mission-task-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: #ffffff;
}

.mission-task-list.is-compact .mission-task-row {
  min-height: 34px;
  border-radius: 6px;
  padding: 5px 7px;
  grid-template-columns: 32px 58px minmax(92px, 0.9fr) minmax(130px, 1.15fr) 46px 70px;
  gap: 6px;
}

.mission-task-code,
.mission-task-section,
.mission-task-title,
.mission-task-detail,
.mission-task-owner,
.mission-task-state {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-task-code {
  border-radius: 999px;
  padding: 3px 5px;
  color: #5d4200;
  background: rgba(255, 208, 0, 0.18);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.mission-task-section {
  color: #4f3b00;
  font-size: 11px;
  font-weight: 900;
}

.mission-task-title {
  color: #222a38;
  font-size: 12px;
  font-weight: 900;
}

.mission-task-detail,
.mission-task-owner {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.mission-task-owner {
  text-align: right;
  font-weight: 800;
}

.mission-task-state {
  border-radius: 999px;
  padding: 4px 6px;
  color: #6f5100;
  background: rgba(255, 208, 0, 0.16);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mission-task-main {
  min-width: 0;
}

.mission-task-main strong,
.mission-task-main p {
  overflow-wrap: anywhere;
}

.mission-task-main strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.mission-task-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.mission-task-meta {
  min-width: 72px;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.mission-task-meta span,
.mission-task-meta em {
  white-space: nowrap;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.mission-task-meta span {
  color: var(--muted);
}

.mission-task-meta em {
  border-radius: 999px;
  padding: 4px 7px;
  color: #6f5100;
  background: rgba(255, 208, 0, 0.16);
}

.mission-task-row.is-done {
  border-color: rgba(40, 127, 114, 0.22);
  background: var(--green-soft);
}

.mission-task-row.is-done .mission-task-meta em {
  color: #087263;
  background: rgba(40, 127, 114, 0.12);
}

.mission-task-row.is-done .mission-task-state {
  color: #087263;
  background: rgba(40, 127, 114, 0.12);
}

.mission-task-row.is-waiting,
.mission-task-row.is-todo {
  border-color: rgba(240, 185, 11, 0.32);
}

.mission-task-row.is-todo {
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.94)),
    #fffdf2;
}

.mission-task-row.is-blocked {
  border-color: rgba(226, 85, 79, 0.28);
  background: var(--red-soft);
}

.mission-task-row.is-blocked .mission-task-meta em {
  color: #8a281f;
  background: rgba(226, 85, 79, 0.12);
}

.mission-task-row.is-blocked .mission-task-state {
  color: #8a281f;
  background: rgba(226, 85, 79, 0.12);
}

.mission-task-row.is-locked {
  opacity: 0.68;
}

.mission-task-row.is-locked .mission-task-meta em {
  color: #697386;
  background: #eef1f5;
}

.mission-task-row.is-locked .mission-task-state {
  color: #697386;
  background: #eef1f5;
}

.mission-timeline {
  display: grid;
  gap: 10px;
}

.mission-dashboard {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mission-detail-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mission-event {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  background: #fbfcff;
  position: relative;
}

.mission-event > span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 11px;
  font-weight: 900;
}

.mission-event strong,
.mission-event em,
.mission-event p {
  display: block;
}

.mission-event em,
.mission-event p {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mission-event p {
  margin: 4px 0 0;
}

.mission-event.is-done {
  border-color: #a9ded2;
  background: var(--green-soft);
}

.mission-event.is-current {
  border-color: #f1d36e;
  background: var(--amber-soft);
}

.mission-event.is-blocked {
  border-color: #efb0ad;
  background: var(--red-soft);
}

.mission-event.is-done > span {
  color: #087263;
  background: #ffffff;
}

.mission-event.is-current > span {
  color: #6f5100;
  background: #ffffff;
}

.authorization-record-card,
.authorization-summary-card,
.authorization-mode-card,
.confirm-product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.authorization-record-card {
  display: grid;
  gap: 12px;
}

.authorization-record-card.is-pending {
  border-style: dashed;
}

.authorization-record-card span,
.authorization-summary-card span,
.confirm-product-card span,
.credential-grid span,
.terms-meta-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.authorization-record-card p,
.authorization-summary-card p,
.confirm-product-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.credential-grid,
.terms-meta-row {
  display: grid;
  gap: 10px;
}

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

.credential-grid article,
.terms-meta-row article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.credential-grid strong,
.terms-meta-row strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.mission-activity {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.06), rgba(255, 255, 255, 0)),
    #ffffff;
  min-width: 0;
}

.mission-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-activity h3 {
  margin-bottom: 0;
}

.mission-activity-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(240, 185, 11, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: #7b5a00;
  background: rgba(255, 208, 0, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.mission-activity-list {
  display: grid;
  gap: 10px;
}

.mission-activity-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mission-activity-item time {
  min-height: 30px;
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7b5a00;
  background: #fff8d7;
  font-size: 12px;
  font-weight: 900;
}

.mission-activity-item > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcff;
}

.mission-activity-item strong {
  display: block;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mission-activity-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .mission-dialog {
    width: min(900px, calc(100vw - 40px));
  }

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

  .mission-dashboard {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
  }

  .mission-timeline {
    max-height: calc(100vh - 264px);
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }
}

.authorization-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 208, 0, 0.28), transparent 42%),
    rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
}

.authorization-dialog {
  width: min(820px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  border: 1px solid rgba(241, 211, 110, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 34px 110px rgba(10, 14, 25, 0.38);
  overflow: hidden;
  animation: modalLift 220ms ease both;
}

.authorization-dialog-head,
.authorization-dialog-foot {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.authorization-dialog-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.authorization-dialog-head > div {
  display: grid;
  gap: 10px;
}

.authorization-dialog-head span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.authorization-dialog-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 34px);
}

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

.authorization-dialog-head .terms-meta-row span {
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.authorization-scroll {
  max-height: min(460px, 50vh);
  padding: 18px;
  overflow: auto;
  display: grid;
  gap: 12px;
  scroll-behavior: smooth;
}

.authorization-scroll.is-choice-step {
  max-height: min(520px, 58vh);
}

.authorization-scroll article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.authorization-summary-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.authorization-mode-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.authorization-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.authorization-step-head > div {
  min-width: 0;
}

.cooperation-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cooperation-path-card {
  min-height: 178px;
  border: 1px solid rgba(241, 211, 110, 0.62);
  border-radius: 8px;
  padding: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 208, 0, 0.13), rgba(255, 255, 255, 0.94)),
    #ffffff;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 10px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cooperation-path-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent), #ffffff 18%);
  box-shadow: 0 18px 40px rgba(155, 111, 0, 0.14);
}

.cooperation-path-card span,
.cooperation-confirm-card span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cooperation-path-card strong,
.cooperation-confirm-card strong {
  font-size: 22px;
}

.cooperation-path-card p,
.cooperation-confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.cooperation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cooperation-stage-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(241, 211, 110, 0.62);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.94), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.cooperation-stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cooperation-stage-head span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #141922;
  background: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.cooperation-stage-head strong {
  font-size: 14px;
}

.cooperation-choice-list {
  display: grid;
  gap: 8px;
}

.cooperation-choice-list.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cooperation-choice {
  width: 100%;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.cooperation-choice strong,
.cooperation-choice em,
.cooperation-choice span {
  display: block;
}

.cooperation-choice strong {
  font-size: 13px;
}

.cooperation-choice em {
  color: #7b5a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.cooperation-choice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cooperation-choice:hover,
.cooperation-choice.is-selected {
  border-color: color-mix(in srgb, var(--accent), #ffffff 24%);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.15), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(155, 111, 0, 0.1);
}

.cooperation-choice.is-selected {
  transform: translateY(-1px);
}

.cooperation-confirm-card {
  border: 1px solid rgba(241, 211, 110, 0.72);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 8px;
  background:
    linear-gradient(145deg, rgba(255, 208, 0, 0.13), rgba(255, 255, 255, 0.95)),
    #ffffff;
}

.authorization-summary-card h3,
.authorization-summary-card p {
  margin-bottom: 0;
}

.authorization-summary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.authorization-scroll h3 {
  margin-bottom: 8px;
}

.authorization-scroll p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.authorization-end-marker {
  border: 1px dashed #f1d36e;
  border-radius: 8px;
  padding: 12px;
  color: #6f5100;
  background: var(--amber-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.authorization-dialog-foot {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.authorization-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.authorization-check input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

.authorization-check.is-disabled {
  color: var(--muted);
}

.authorization-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.authorization-actions.is-single {
  justify-content: flex-start;
}

.task-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 20px;
}

.task-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 9, 18, 0.58);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.task-confirm-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid rgba(241, 211, 110, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 100px rgba(10, 14, 25, 0.34);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: modalLift 220ms ease both;
}

.task-confirm-head,
.task-confirm-foot {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.task-confirm-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.task-confirm-head span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-confirm-head h2 {
  margin-bottom: 6px;
  font-size: clamp(23px, 4vw, 32px);
}

.task-confirm-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.task-confirm-body {
  max-height: min(460px, 52vh);
  padding: 18px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.confirm-product-card {
  display: grid;
  gap: 7px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.confirm-product-card strong {
  display: block;
  font-size: 20px;
}

.admin-password-reset-summary {
  gap: 6px;
}

.admin-password-reset-form {
  display: grid;
  gap: 12px;
}

.admin-password-reset-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-password-reset-note {
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.88)),
    #ffffff;
}

.admin-password-reset-note span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-password-reset-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-password-reset-foot .action-row {
  justify-content: flex-end;
}

.task-confirm-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  background: #fbfcff;
  font-size: 14px;
  font-weight: 700;
}

.task-confirm-check input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

.task-confirm-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reject-confirm-dialog {
  width: min(680px, 100%);
}

.reject-confirm-modal {
  z-index: 88;
}

.reject-summary-card,
.reject-note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 7px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.reject-summary-card span,
.reject-note-card span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
}

.reject-summary-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.reject-summary-card p,
.reject-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.reject-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reject-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcff;
}

.reject-summary-grid span,
.reject-summary-grid strong {
  display: block;
}

.reject-summary-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.reject-summary-grid strong {
  overflow-wrap: anywhere;
}

.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 18px;
}

.product-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 208, 0, 0.22), transparent 30%),
    rgba(6, 9, 18, 0.58);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.product-detail-dialog {
  width: min(820px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  border: 1px solid rgba(241, 211, 110, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 100px rgba(10, 14, 25, 0.34);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: modalLift 220ms ease both;
}

.product-detail-head,
.product-detail-foot {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.product-detail-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.product-detail-head span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-head h2 {
  margin-bottom: 4px;
  font-size: clamp(22px, 3.2vw, 32px);
}

.product-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-detail-body {
  max-height: min(520px, calc(100vh - 176px));
  padding: 14px 16px;
  overflow: auto;
  display: grid;
  gap: 10px;
  overscroll-behavior: contain;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.product-detail-hero h3 {
  margin: 10px 0 7px;
  font-size: 20px;
  line-height: 1.35;
}

.product-detail-hero p,
.product-detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-detail-tags > span:not(.status-tag) {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #384255;
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 800;
}

.product-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #fbfcff;
}

.product-detail-section h3 {
  margin-bottom: 0;
}

.product-detail-section a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.product-detail-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.material-history-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 18px;
}

.material-history-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 42% 18%, rgba(255, 208, 0, 0.22), transparent 32%),
    rgba(6, 9, 18, 0.58);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.material-history-dialog {
  width: min(900px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  border: 1px solid rgba(241, 211, 110, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 100px rgba(10, 14, 25, 0.34);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: modalLift 220ms ease both;
}

.material-history-dialog-head,
.material-history-dialog-foot {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.material-history-dialog-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.material-history-dialog-head span {
  display: block;
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.material-history-dialog-head h2 {
  margin-bottom: 4px;
  font-size: clamp(22px, 3.2vw, 32px);
}

.material-history-dialog-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.material-history-dialog-head .history-detail-meta {
  max-width: 58ch;
  font-size: 12px;
  line-height: 1.36;
}

.material-history-dialog-body {
  max-height: min(530px, calc(100vh - 176px));
  padding: 14px 16px;
  overflow: auto;
  display: grid;
  gap: 12px;
  overscroll-behavior: contain;
}

.history-detail-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.history-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.history-detail-grid article {
  padding: 9px 10px;
}

.history-detail-grid article.is-wide {
  grid-column: 1 / -1;
}

.history-detail-grid span {
  font-size: 10px;
  line-height: 1.1;
}

.history-detail-grid strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.28;
}

.history-detail-preview {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 208, 0, 0.16), transparent 42%),
    #fbfcff;
}

.history-detail-preview .portrait-asset,
.history-detail-preview .video-asset {
  max-height: 360px;
  object-fit: contain;
  object-position: center;
}

.history-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfcff;
}

.history-review-list {
  display: grid;
  gap: 10px;
}

.history-review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 6px 8px;
  align-items: start;
  background: #ffffff;
}

.history-review-copy {
  min-width: 0;
}

.history-review-item strong,
.history-review-item span {
  display: block;
}

.history-review-item strong {
  font-size: 12px;
  line-height: 1.24;
}

.history-review-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.history-review-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.history-review-item .status-tag {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  justify-self: end;
}

.material-history-dialog-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.history-version-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes modalLift {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.portrait-asset {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f5f9;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
}

.video-asset {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f5f9;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.publish-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.publish-summary article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcff;
}

.publish-summary strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.field-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(90, 98, 214, 0.14);
}

.hidden-input {
  display: none;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.table-like {
  display: grid;
  gap: 8px;
}

.row-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.row-card strong {
  display: block;
}

.row-card span {
  color: var(--muted);
  font-size: 13px;
}

.activity-log {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.activity-item strong {
  color: var(--text);
  font-weight: 700;
}

.data-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.data-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}

.data-item code {
  color: var(--indigo);
  font-weight: 700;
}

.storage-config-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(240, 185, 11, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 208, 0, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 224, 0.78)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(61, 48, 20, 0.05);
}

.storage-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.storage-config-head > div {
  display: grid;
  gap: 4px;
}

.storage-config-head span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.storage-config-head h3,
.storage-config-head p {
  margin: 0;
}

.storage-config-head p {
  color: var(--muted);
  line-height: 1.55;
}

.storage-config-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storage-config-form {
  display: grid;
  gap: 14px;
}

.storage-config-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storage-config-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.storage-config-foot {
  display: grid;
  gap: 10px;
}

.storage-config-foot .primary-button {
  width: fit-content;
}

@media (max-width: 900px) {
  .storage-config-head,
  .storage-config-metrics,
  .storage-config-grid {
    grid-template-columns: 1fr;
  }

  .storage-config-head {
    display: grid;
  }

  .storage-config-foot .primary-button {
    width: 100%;
  }
}

.sensitive-data-gate {
  max-width: 680px;
}

.sensitive-confirm-card {
  border: 1px solid rgba(240, 185, 11, 0.22);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 13px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 208, 0, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 224, 0.72)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(61, 48, 20, 0.07);
}

.sensitive-confirm-card > div > span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sensitive-confirm-card h3 {
  margin: 4px 0;
}

.sensitive-confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.sensitive-confirm-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sensitive-confirm-card .primary-button {
  width: fit-content;
}

.form-hint.is-alert {
  color: #b42318;
  font-weight: 800;
}

.task-catalog-panel {
  min-height: 620px;
}

.task-catalog-body,
.task-builder-body {
  display: grid;
  gap: 16px;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.task-workspace-panel {
  grid-column: 1 / -1;
  height: min(820px, calc(100dvh - 40px));
  min-height: 640px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.task-workspace-panel > .panel-header {
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 208, 0, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.96));
}

.task-workspace-panel > .panel-header h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: 0;
}

.task-workspace-panel > .panel-header p {
  max-width: 720px;
}

.task-catalog-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  min-height: 0;
  overflow: hidden;
}

.source-card,
.product-card,
.selected-product-card,
.task-route-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.source-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.76)),
    #fbfcff;
}

.source-card span,
.source-card em,
.product-card em,
.product-card small,
.selected-product-card > span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.source-card strong,
.product-card strong,
.selected-product-card strong,
.task-route-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.source-card a,
.selected-product-card a,
.data-item a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-filter-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 224, 0.72)),
    #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(116px, 0.9fr)) minmax(88px, auto) auto;
  gap: 12px;
  align-items: stretch;
}

.product-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-filter-bar input,
.product-filter-bar select {
  min-width: 0;
  height: 42px;
}

.product-filter-bar .secondary-button {
  align-self: end;
  min-width: 92px;
}

.filter-count {
  align-self: end;
  justify-self: end;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 12px;
  color: #6f5100;
  background: var(--amber-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.mobile-collapse-toggle {
  min-height: 34px;
  border: 1px solid rgba(240, 185, 11, 0.34);
  border-radius: 999px;
  padding: 0 11px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #5d4500;
  background: #fff7d6;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mobile-collapse-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.mobile-collapsible.is-expanded > .material-history-head .mobile-collapse-toggle .icon,
.mobile-collapsible.is-expanded > .product-filter-toggle .icon {
  transform: rotate(90deg);
}

.mobile-collapse-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.material-history-content,
.product-filter-content {
  display: contents;
}

.task-selection-frame {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.86) 36%),
    #ffffff;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.45fr);
  gap: 18px;
  overflow: hidden;
}

.task-product-browser,
.task-builder-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.task-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.task-section-head span {
  display: block;
  color: #8a6500;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-section-head h3 {
  margin-bottom: 0;
}

.task-section-head p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
  scrollbar-gutter: stable;
}

.task-builder-panel .task-builder-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
  scrollbar-gutter: stable;
}

.product-card {
  min-height: 198px;
  padding: 10px;
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.product-card:hover,
.product-card.is-selected {
  border-color: color-mix(in srgb, var(--accent), #ffffff 18%);
  background:
    linear-gradient(135deg, var(--indigo-soft), #ffffff 58%);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.1);
  transform: translateY(-1px);
}

.product-card .status-tag {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 10px;
}

.product-thumb {
  min-height: 78px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.56), transparent 26%),
    linear-gradient(135deg, var(--thumb-a), var(--thumb-b) 56%, var(--thumb-c));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.product-thumb::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.product-thumb span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 23px;
  font-weight: 900;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.product-thumb i {
  position: absolute;
  right: -20px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.product-thumb.is-small {
  min-height: 86px;
}

.product-thumb.is-large {
  min-height: 220px;
}

.product-thumb.is-large span {
  font-size: clamp(42px, 8vw, 78px);
}

.product-card-main {
  display: grid;
  gap: 2px;
  min-height: 56px;
}

.product-card-main strong,
.product-card-main em,
.product-card-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-main strong,
.product-card-main em {
  white-space: nowrap;
}

.product-card-main strong {
  font-size: 14px;
  line-height: 1.16;
  letter-spacing: 0;
}

.product-card-main em {
  color: #6f7686;
  font-size: 10.5px;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-card-main small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 24px;
  color: #7f8797;
  font-size: 9.5px;
  line-height: 1.22;
  letter-spacing: 0;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.product-card-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 22px;
  max-width: 100%;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.product-hover-summary {
  position: absolute;
  inset: auto 10px 10px;
  z-index: 3;
  border: 1px solid rgba(241, 211, 110, 0.76);
  border-radius: 8px;
  padding: 10px;
  background: rgba(24, 28, 34, 0.92);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(9, 13, 22, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card:hover .product-hover-summary,
.product-card:focus-visible .product-hover-summary {
  opacity: 1;
  transform: translateY(0);
}

.product-hover-summary span {
  color: #ffd000;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-hover-summary p {
  margin: 4px 0 7px;
  color: #f6f7fb;
  font-size: 11px;
  line-height: 1.34;
}

.product-hover-summary small {
  color: #fff1a8;
  font-size: 10px;
  font-weight: 800;
}

.task-builder-body {
  display: grid;
  gap: 14px;
}

.selected-product-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.13), rgba(255, 255, 255, 0.08)),
    #ffffff;
}

.selected-product-card p,
.task-route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-point-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-point-row span {
  border: 1px solid #f1d36e;
  border-radius: 999px;
  padding: 5px 8px;
  color: #6f5100;
  background: var(--amber-soft);
  font-size: 12px;
  font-weight: 700;
}

.task-builder-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.task-builder-panel .primary-button {
  width: fit-content;
}

.task-route-card {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(90, 98, 214, 0.09), transparent 48%),
    #ffffff;
}

.task-route-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.task-route-card .primary-button {
  width: fit-content;
}

.admin-overview {
  grid-column: 1 / -1;
}

.admin-console {
  min-height: 540px;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.material-preview-card,
.ops-section,
.admin-empty-state {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.material-preview-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 16px;
}

.material-preview-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, var(--glow), transparent 38%),
    #ffffff;
}

.material-preview-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.review-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-meta-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.review-meta-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-meta-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.ops-stack {
  display: grid;
  gap: 12px;
}

.ops-section {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.ops-stack .ops-section:first-child {
  border-color: rgba(240, 185, 11, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.ops-section h3 {
  margin-bottom: 5px;
}

.ops-section p {
  margin-bottom: 0;
  line-height: 1.55;
}

.ops-section label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.review-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-section > .primary-button {
  width: fit-content;
}

.admin-empty-state {
  min-height: 340px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  border-style: dashed;
}

.admin-empty-state > strong {
  font-size: 24px;
}

.admin-empty-state > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-empty-state .snapshot-grid {
  width: min(420px, 100%);
  text-align: left;
}

.delivery-workspace-panel {
  grid-column: 1 / -1;
  height: min(780px, calc(100dvh - 40px));
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.delivery-workspace-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.delivery-task-list-panel,
.delivery-detail-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
}

.delivery-task-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.delivery-search-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-search-field input {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--text);
  background: #ffffff;
}

.delivery-task-row {
  min-width: 0;
  border: 1px solid rgba(225, 229, 236, 0.92);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.delivery-task-row:hover,
.delivery-task-row.is-selected {
  border-color: rgba(240, 185, 11, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.delivery-task-row strong,
.delivery-task-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-task-row em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.delivery-detail-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow-y: auto;
}

.delivery-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.delivery-detail-head h3 {
  margin: 2px 0;
}

.delivery-detail-head span:not(.status-tag) {
  color: var(--muted);
  font-size: 12px;
}

.delivery-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  gap: 12px;
}

.delivery-preview-card,
.delivery-info-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.delivery-preview-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.delivery-preview-card .video-asset {
  width: 100%;
  min-height: 180px;
  object-fit: contain;
  background: #090d18;
}

.delivery-preview-card video.video-asset,
.delivery-window-card video.video-asset {
  object-fit: contain;
  background: #090d18;
}

.delivery-preview-card strong,
.delivery-preview-card span,
.delivery-preview-card a {
  display: block;
  overflow-wrap: anywhere;
}

.delivery-preview-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.delivery-preview-card a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.delivery-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.delivery-info-grid article {
  padding: 10px;
  display: grid;
  gap: 5px;
}

.delivery-info-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.delivery-info-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.delivery-upload-form {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.delivery-upload-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-local-upload-card {
  border: 1px solid rgba(240, 185, 11, 0.32);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.95)),
    #ffffff;
}

.delivery-file-summary {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.delivery-file-summary span {
  color: #806000;
  font-size: 11px;
  font-weight: 900;
}

.delivery-file-summary strong,
.delivery-file-summary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-file-summary strong {
  color: var(--text);
  font-size: 14px;
}

.delivery-file-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-header-stats {
  min-width: 240px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-header-stats article {
  min-width: 0;
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 8px;
  padding: 9px 11px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.11), rgba(255, 255, 255, 0.88)),
    #ffffff;
}

.admin-header-stats span {
  display: block;
  color: #806000;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-header-stats strong {
  display: block;
  margin-top: 4px;
  color: #151a24;
  font-size: 20px;
  line-height: 1;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.metric-button:hover,
.metric-button.is-active {
  border-color: #b9bdf2;
  background: var(--indigo-soft);
  transform: translateY(-1px);
}

.metric-button span,
.queue-item span,
.queue-item small {
  color: var(--muted);
  font-size: 12px;
}

.metric-button strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.admin-management-grid {
  display: grid;
  gap: 14px;
}

.admin-focus-workspace {
  min-height: 0;
  animation: panelIn 180ms ease both;
}

.admin-focus-intro {
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.11), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.admin-focus-intro span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
}

.admin-focus-intro h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.admin-focus-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-focus-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-focus-meta article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcff;
}

.admin-focus-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.admin-review-lanes {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 14px;
  align-items: stretch;
}

.admin-review-lanes.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-review-lanes .admin-management-section {
  min-width: 0;
  height: clamp(360px, calc(100dvh - 390px), 560px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.admin-review-lanes .admin-management-section.is-review-queue-list {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-review-lanes.is-single .admin-management-section.is-review-queue-list {
  height: clamp(340px, calc(100dvh - 430px), 520px);
}

.admin-review-lanes .admin-material-list {
  grid-template-columns: 1fr;
}

.admin-review-lanes .admin-user-list,
.admin-review-lanes .admin-material-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.admin-review-lanes .admin-user-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-review-lanes .admin-user-row-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-review-lanes .admin-user-row-trailing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  align-items: center;
}

.is-review-queue-list {
  gap: 0;
}

.is-review-queue-list .admin-section-head {
  border-bottom: 1px solid rgba(225, 229, 236, 0.78);
  padding-bottom: 12px;
}

.admin-review-queue-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 7px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: minmax(260px, 1.12fr) minmax(390px, 1.38fr) minmax(180px, auto);
  gap: 12px;
  color: #76612a;
  background:
    linear-gradient(180deg, rgba(255, 252, 239, 0.98), rgba(255, 255, 255, 0.94)),
    #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-review-queue-row {
  grid-template-columns: minmax(260px, 1.12fr) minmax(390px, 1.38fr) minmax(180px, auto);
  gap: 12px;
  padding: 9px 10px;
  box-shadow: none;
}

.admin-review-queue-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(96px, 0.82fr) repeat(3, minmax(82px, 1fr));
  gap: 6px;
  align-items: stretch;
}

.admin-review-queue-meta .admin-row-metric,
.admin-review-queue-meta .admin-row-status-chip {
  min-height: 44px;
  padding: 7px 8px;
}

.admin-review-queue-meta .admin-row-metric strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-review-queue-actions {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-review-queue-actions .secondary-button,
.admin-review-queue-actions .primary-button,
.admin-review-queue-actions .danger-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.admin-review-queue-actions .form-hint {
  max-width: 160px;
  text-align: right;
}

.admin-management-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.05), rgba(255, 255, 255, 0)),
    #fbfcff;
}

.admin-user-management {
  height: 560px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-section-head h3 {
  margin-bottom: 5px;
}

.admin-section-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-material-list {
  display: grid;
  gap: 8px;
}

.is-compact-material-list .admin-material-list {
  gap: 6px;
}

.admin-material-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(61, 48, 20, 0.04);
}

.admin-material-card.is-current {
  border-color: rgba(240, 185, 11, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.86)),
    #ffffff;
}

.admin-material-card.is-demo {
  opacity: 0.82;
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.admin-user-management .admin-user-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 2px;
  align-content: start;
}

.admin-user-filter-bar {
  margin-bottom: 10px;
  border: 1px solid rgba(240, 185, 11, 0.18);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.42fr) auto auto;
  gap: 8px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.88)),
    #ffffff;
}

.admin-user-filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-filter-bar input,
.admin-user-filter-bar select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.admin-user-filter-bar .primary-button,
.admin-user-filter-bar .secondary-button {
  min-height: 36px;
  padding: 0 11px;
  white-space: nowrap;
}

.role-management-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.role-management-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.94)),
    #ffffff;
  display: grid;
  gap: 12px;
}

.role-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.role-section-head span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-section-head strong {
  font-size: 16px;
}

.role-list,
.role-data-list {
  display: grid;
  gap: 6px;
  max-height: 560px;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

.role-data-head,
.role-data-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(176px, auto);
  gap: 10px;
  align-items: center;
}

.is-user-role-list .role-data-head,
.is-user-role-list .role-data-row {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.12fr) minmax(176px, auto);
}

.role-data-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 10px 6px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-data-head span:last-child {
  text-align: right;
  padding-right: 4px;
}

.role-data-row {
  min-height: 64px;
  border: 1px solid rgba(225, 229, 236, 0.92);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.role-data-row:hover,
.role-data-row:focus-visible {
  border-color: var(--brand-line-strong);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(61, 48, 20, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.role-data-row.is-primary {
  border-color: rgba(241, 211, 110, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.13), rgba(255, 255, 255, 0.95)),
  #ffffff;
}

.role-data-row .admin-user-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(240, 185, 11, 0.16);
}

@media (min-width: 1280px) {
  .role-management-grid {
    grid-template-columns: minmax(440px, 0.92fr) minmax(520px, 1.08fr);
  }

  .role-management-section {
    padding: 16px;
  }

  .role-data-head,
  .role-data-row {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(186px, auto);
  }

  .is-user-role-list .role-data-head,
  .is-user-role-list .role-data-row {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.12fr) minmax(186px, auto);
  }
}

.role-row {
  min-width: 0;
  border: 1px solid rgba(225, 229, 236, 0.92);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.role-row.is-primary {
  border-color: rgba(241, 211, 110, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.13), rgba(255, 255, 255, 0.95)),
    #ffffff;
}

.role-main,
.role-identity-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-main > div,
.role-identity-cell > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.role-main strong,
.role-main em,
.role-main small,
.role-identity-cell strong,
.role-identity-cell em,
.role-meta-cell strong,
.role-meta-cell em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-data-row .role-identity-cell strong,
.role-data-row .role-identity-cell em,
.role-data-row .role-meta-cell strong,
.role-data-row .role-meta-cell em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-main em,
.role-main small,
.role-identity-cell em,
.role-meta-cell span,
.role-meta-cell em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.role-identity-cell strong,
.role-meta-cell strong {
  font-size: 13px;
  line-height: 1.25;
}

.role-meta-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.role-state-cell {
  min-width: 0;
  justify-self: end;
  display: grid;
  grid-template-columns: 96px 66px;
  justify-content: end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.role-state-cell .status-tag {
  width: 96px;
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 8px;
  line-height: 1;
}

.role-state-cell .admin-row-link {
  width: 66px;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  justify-content: center;
  line-height: 1;
}

.role-detail-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.role-detail-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.role-permission-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 5px;
  background: #ffffff;
}

.role-permission-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.role-permission-grid strong {
  overflow-wrap: anywhere;
}

.role-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-row,
.admin-material-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(340px, 1.7fr) minmax(110px, auto);
  gap: 12px;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(61, 48, 20, 0.04);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-user-row {
  cursor: pointer;
}

.admin-material-row {
  grid-template-columns: minmax(220px, 1.28fr) minmax(260px, 1fr);
  cursor: pointer;
}

.admin-review-lanes .admin-material-row {
  grid-template-columns: minmax(0, 1fr);
}

.admin-review-lanes .is-compact-material-list .admin-material-row,
.is-compact-material-list .admin-material-row {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 0.72fr);
  gap: 10px;
  padding: 7px 9px;
  box-shadow: none;
}

.admin-review-lanes .is-review-queue-list .admin-review-queue-row {
  grid-template-columns: minmax(220px, 1.05fr) minmax(292px, 1.34fr) minmax(150px, 0.5fr);
  min-height: 72px;
  gap: 10px;
  padding: 8px 10px;
}

.is-review-queue-list .admin-material-main {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.is-review-queue-list .admin-material-kind {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(240, 185, 11, 0.18);
}

.is-review-queue-list .admin-material-main strong,
.is-review-queue-list .admin-material-main em,
.is-review-queue-list .admin-material-main small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-review-queue-list .admin-material-main strong {
  font-size: 13px;
}

.is-review-queue-list .admin-material-main em,
.is-review-queue-list .admin-material-main small {
  font-size: 11px;
  line-height: 1.25;
}

.admin-review-lanes .admin-material-row-trailing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.admin-review-lanes .admin-material-row-trailing .secondary-button,
.admin-review-lanes .admin-material-row-trailing .danger-button {
  justify-content: center;
  width: 100%;
}

.admin-user-row:hover,
.admin-user-row:focus-visible,
.admin-material-row:hover {
  border-color: rgba(240, 185, 11, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.92)),
    #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.admin-user-row.is-current,
.admin-material-row.is-current {
  border-color: rgba(240, 185, 11, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.86)),
    #ffffff;
}

.admin-user-row.is-demo,
.admin-material-row.is-demo {
  opacity: 0.82;
}

.admin-user-row.is-authorized-user,
.admin-user-row.is-cooperated-user,
.admin-user-row.is-paid-user,
.admin-user-row.is-not-cooperated-user {
  opacity: 1;
}

.admin-user-row.is-authorized-user {
  border-color: rgba(34, 197, 94, 0.24);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, 0.92), rgba(255, 255, 255, 0.9)),
    #f0fdf4;
}

.admin-user-row.is-cooperated-user {
  border-color: rgba(22, 163, 74, 0.38);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(255, 255, 255, 0.9)),
    #ecfdf5;
}

.admin-user-row.is-paid-user {
  border-color: rgba(14, 165, 233, 0.38);
  background:
    linear-gradient(135deg, rgba(186, 230, 253, 0.78), rgba(255, 255, 255, 0.9)),
    #f0f9ff;
}

.admin-user-row.is-not-cooperated-user {
  border-color: rgba(248, 113, 113, 0.34);
  background:
    linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(255, 255, 255, 0.9)),
    #fff1f2;
}

.admin-user-row.is-authorized-user:hover,
.admin-user-row.is-authorized-user:focus-visible,
.admin-user-row.is-cooperated-user:hover,
.admin-user-row.is-cooperated-user:focus-visible,
.admin-user-row.is-paid-user:hover,
.admin-user-row.is-paid-user:focus-visible,
.admin-user-row.is-not-cooperated-user:hover,
.admin-user-row.is-not-cooperated-user:focus-visible {
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
}

.admin-user-main,
.admin-material-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.is-compact-material-list .admin-material-main {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.admin-user-avatar,
.admin-material-kind {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #1f1a0b;
  background: linear-gradient(135deg, #fff3a6, #ffd000);
  box-shadow: 0 10px 24px rgba(240, 185, 11, 0.22);
  font-weight: 900;
}

.is-compact-material-list .admin-material-kind {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(240, 185, 11, 0.18);
}

.admin-user-main strong,
.admin-material-card strong,
.admin-material-main strong {
  display: block;
  overflow-wrap: anywhere;
}

.is-compact-material-list .admin-material-main strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-main em,
.admin-user-main small,
.admin-material-main em,
.admin-material-main small,
.admin-material-card span,
.admin-material-card small,
.admin-card-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.is-compact-material-list .admin-material-main em,
.is-compact-material-list .admin-material-main small {
  font-size: 11px;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-row-status,
.admin-material-row-status {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.admin-user-row-status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-material-row-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-compact-material-list .admin-material-row-status {
  gap: 6px;
}

.admin-row-metric,
.admin-row-status-chip {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  display: grid;
  gap: 3px;
  background: #fbfcff;
}

.is-compact-material-list .admin-row-metric,
.is-compact-material-list .admin-row-status-chip {
  padding: 5px 6px;
  gap: 2px;
  border-radius: 7px;
}

.admin-row-status-chip {
  align-content: center;
}

.admin-row-metric small,
.admin-row-status-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.is-compact-material-list .admin-row-metric small,
.is-compact-material-list .admin-row-status-chip small {
  font-size: 10px;
}

.admin-row-status-chip .status-tag {
  min-height: 23px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  white-space: normal;
}

.is-compact-material-list .admin-row-status-chip .status-tag {
  min-height: 20px;
  padding: 3px 6px;
  font-size: 10px;
}

.admin-row-metric strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.is-compact-material-list .admin-row-metric strong {
  font-size: 11px;
}

.admin-user-row-trailing,
.admin-material-row-trailing {
  min-width: 0;
  gap: 6px;
}

.admin-user-row-trailing {
  display: grid;
  justify-items: end;
}

.admin-material-row-trailing {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-user-row-trailing > span:first-child,
.admin-user-row-trailing > span:nth-child(2):not(.admin-row-link) {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(102, 112, 133, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-user-row.is-authorized-user .admin-user-row-trailing > span:first-child {
  border-color: rgba(34, 197, 94, 0.22);
  color: #166534;
  background: #dcfce7;
}

.admin-user-row.is-cooperated-user .admin-user-row-trailing > span:first-child {
  border-color: rgba(22, 163, 74, 0.3);
  color: #14532d;
  background: #bbf7d0;
}

.admin-user-row.is-paid-user .admin-user-row-trailing > span:first-child {
  border-color: rgba(14, 165, 233, 0.28);
  color: #075985;
  background: #bae6fd;
}

.admin-user-row.is-not-cooperated-user .admin-user-row-trailing > span:first-child {
  border-color: rgba(248, 113, 113, 0.3);
  color: #991b1b;
  background: #fee2e2;
}

.admin-row-link {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5d4500;
  background: #fff7d6;
  font-size: 12px;
  font-weight: 900;
}

.admin-row-link .icon {
  width: 14px;
  height: 14px;
}

.admin-user-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-status-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-user-status-grid article > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-user-status-grid strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card-actions .secondary-button,
.admin-card-actions .danger-button,
.admin-material-row-trailing .secondary-button,
.admin-material-row-trailing .danger-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.admin-user-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  padding: 22px;
  display: grid;
  place-items: center;
}

.admin-user-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 14, 20, 0.56);
  backdrop-filter: blur(10px);
}

.admin-user-detail-dialog {
  width: min(960px, 100%);
  height: min(760px, calc(100dvh - 44px));
  max-height: calc(100dvh - 44px);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(8, 11, 18, 0.28);
  animation: modalLift 180ms ease both;
}

.admin-user-detail-head,
.admin-user-detail-foot {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.admin-user-detail-title {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-user-detail-title > div > span {
  color: #8a6500;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-detail-title h2 {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.admin-user-detail-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-user-detail-body {
  min-height: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow-y: auto;
}

.admin-user-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 12px;
  background: #fbfcff;
}

.admin-user-detail-section h3 {
  margin: 0;
}

.admin-user-detail-grid,
.admin-user-detail-status,
.admin-user-linked-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-detail-status article,
.admin-user-linked-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 6px;
  background: #ffffff;
}

.admin-user-detail-status article > span,
.admin-user-detail-status em,
.admin-user-linked-card span,
.admin-user-linked-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-user-detail-status strong,
.admin-user-linked-card strong {
  overflow-wrap: anywhere;
}

.admin-user-linked-card {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.admin-user-linked-task-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.admin-user-linked-task-body {
  min-height: 96px;
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: center;
}

.admin-user-linked-task-head {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.admin-user-linked-task-head strong {
  min-width: 0;
}

.admin-user-linked-task-head .status-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
}

.admin-cooperation-reminder-status {
  border-color: rgba(240, 185, 11, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.86)),
    #ffffff;
}

.admin-cooperation-status-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.admin-cooperation-status-card.is-pending {
  border-color: rgba(255, 208, 0, 0.62);
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 245, 157, 0.88), transparent 34%),
    linear-gradient(135deg, rgba(255, 208, 0, 0.18), rgba(255, 255, 255, 0.92)),
    #fffdf2;
  box-shadow:
    0 0 0 1px rgba(255, 208, 0, 0.12) inset,
    0 14px 34px rgba(240, 185, 11, 0.18);
  animation: cooperationPendingGlow 2.4s ease-in-out infinite;
}

.admin-cooperation-status-card.is-pending::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -30%;
  z-index: -1;
  width: 42%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  animation: cooperationPendingSweep 3.2s ease-in-out infinite;
}

.admin-cooperation-status-card.is-pending strong {
  color: #3f3100;
}

.admin-cooperation-status-card.is-pending em {
  width: fit-content;
  border: 1px solid rgba(240, 185, 11, 0.5);
  border-radius: 999px;
  padding: 4px 9px;
  color: #5f4600;
  background: rgba(255, 208, 0, 0.24);
  box-shadow: 0 0 16px rgba(255, 208, 0, 0.3);
  font-weight: 900;
}

@keyframes cooperationPendingGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 208, 0, 0.12) inset,
      0 14px 34px rgba(240, 185, 11, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 208, 0, 0.26) inset,
      0 18px 44px rgba(240, 185, 11, 0.32),
      0 0 26px rgba(255, 208, 0, 0.24);
  }
}

@keyframes cooperationPendingSweep {
  0%,
  52% {
    transform: translateX(0) rotate(16deg);
    opacity: 0;
  }
  62% {
    opacity: 0.86;
  }
  100% {
    transform: translateX(340%) rotate(16deg);
    opacity: 0;
  }
}

.admin-user-linked-task-body strong,
.admin-user-linked-task-body span,
.admin-user-linked-task-body small {
  min-width: 0;
}

.admin-user-linked-action {
  width: fit-content;
  min-height: 28px;
  margin-top: 7px;
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: 999px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5d4500;
  background: #fff8cf;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-user-linked-action:hover,
.admin-user-linked-action:focus-visible {
  border-color: rgba(240, 185, 11, 0.62);
  background: #fff1a6;
  transform: translateY(-1px);
  outline: none;
}

.admin-user-linked-action .icon {
  width: 13px;
  height: 13px;
}

.admin-user-linked-card .admin-user-linked-media {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.admin-linked-talent-card {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(240, 185, 11, 0.22);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0) 56%),
    #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-linked-talent-card:hover,
.admin-linked-talent-card:focus-visible {
  border-color: rgba(240, 185, 11, 0.46);
  box-shadow: 0 16px 34px rgba(31, 26, 11, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.admin-linked-talent-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-linked-talent-main strong,
.admin-linked-talent-main span,
.admin-linked-talent-main small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-linked-talent-main span,
.admin-linked-talent-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-linked-talent-status {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-linked-talent-status article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 5px;
  align-content: start;
  background: rgba(255, 255, 255, 0.8);
}

.admin-linked-talent-status article > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-linked-talent-status strong {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-linked-talent-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 5px;
  background: #ffffff;
}

.admin-linked-talent-empty span {
  color: var(--muted);
  font-size: 12px;
}

.admin-linked-asset-card {
  border: 1px solid rgba(102, 112, 133, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.admin-user-linked-empty {
  grid-column: 1 / -1;
  min-height: 96px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
  background: #ffffff;
}

.admin-user-detail-foot {
  align-items: center;
  border-top: 1px solid var(--line);
}

.admin-user-detail-foot .form-hint {
  max-width: 360px;
}

.admin-talent-detail-foot {
  display: grid;
  grid-template-columns: minmax(230px, 0.74fr) minmax(0, 1.26fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.admin-talent-delete-note {
  max-width: none;
  min-width: 0;
  width: 100%;
  min-height: 80px;
  border: 1px solid rgba(240, 185, 11, 0.18);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #775900;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.82)),
    #fffdf4;
  line-height: 1.45;
}

.admin-talent-delete-note::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.12);
}

.admin-talent-detail-actions {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.admin-talent-detail-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  justify-content: center;
  padding-inline: 10px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
}

.admin-binding-reminder-button {
  border-color: rgba(240, 185, 11, 0.28);
  color: #5d4500;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.72)),
    #fffdf4;
}

.admin-material-detail-dialog {
  width: min(920px, 100%);
}

.admin-material-detail-preview-card {
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  align-items: stretch;
}

.admin-material-detail-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.08), rgba(255, 255, 255, 0.92)),
    #f8f9fc;
}

.admin-material-detail-preview .portrait-asset,
.admin-material-detail-preview .video-asset {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  background: #ffffff;
}

.admin-material-review-panel {
  border-color: rgba(240, 185, 11, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.07), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.admin-material-review-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-material-review-panel textarea {
  min-height: 86px;
}

.admin-material-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.admin-material-card p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--muted);
  background: #fbfcff;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-task-list {
  display: grid;
  gap: 8px;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.queue-grid h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.queue-grid h3 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.queue-list {
  display: grid;
  gap: 8px;
}

.empty-queue {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: #fbfcff;
}

.queue-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.queue-button {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.queue-button:hover,
.queue-button.is-selected {
  border-color: color-mix(in srgb, var(--accent), #ffffff 28%);
  background: linear-gradient(135deg, var(--green-soft), #ffffff 54%);
}

.queue-item div,
.queue-item small {
  min-width: 0;
}

.queue-item strong,
.queue-item span {
  display: block;
  overflow-wrap: anywhere;
}

.status-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 74px;
  min-height: 24px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  color: #384255;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

.status-tag.is-ok {
  color: #087263;
  background: var(--green-soft);
  border-color: #a9ded2;
}

.status-tag.is-warn {
  color: #8a5b08;
  background: var(--amber-soft);
  border-color: #efd184;
}

.status-tag.is-danger {
  color: #8a281f;
  background: var(--red-soft);
  border-color: #f4b8b4;
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  color: var(--text);
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 82% 18%, var(--glow), transparent 28%),
    rgba(9, 13, 22, 0.62);
  cursor: default;
}

.task-drawer {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  min-height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.96)),
    var(--surface);
  box-shadow: -28px 0 60px rgba(9, 13, 22, 0.22);
  overflow: auto;
  animation: drawerIn 220ms ease-out both;
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0, var(--glow), transparent 34%),
    rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(14px);
}

.drawer-header h2 {
  margin-bottom: 8px;
}

.drawer-close {
  flex: 0 0 40px;
  color: var(--text);
  border-color: var(--line);
  background: #ffffff;
}

.drawer-body {
  display: grid;
  gap: 18px;
  padding: 20px 24px 28px;
}

.drawer-status-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-section {
  display: grid;
  gap: 12px;
}

.drawer-section h3 {
  margin-bottom: 0;
}

.detail-card,
.video-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.detail-card {
  display: grid;
  gap: 6px;
}

.detail-card span,
.video-detail-card span,
.publish-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-card.is-success {
  border-color: #a9ded2;
  background: var(--green-soft);
}

.video-detail-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.video-detail-card strong,
.video-detail-card a {
  display: block;
}

.video-detail-card a {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.drawer-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.drawer-stat strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.drawer-timeline {
  display: grid;
  gap: 10px;
}

.drawer-event {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.drawer-event > span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #aeb7c7;
  box-shadow: 0 0 0 4px rgba(174, 183, 199, 0.15);
}

.drawer-event.is-done > span {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(25, 169, 150, 0.16);
}

.drawer-event.is-current > span {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(239, 178, 58, 0.18);
}

.drawer-event strong,
.drawer-event em {
  display: block;
}

.drawer-event em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.debug-panel {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.debug-panel.is-open {
  display: block;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.debug-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
  position: relative;
  overflow: hidden;
}

.debug-card-wide {
  grid-column: 1 / -1;
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--indigo);
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: 64px minmax(210px, 0.75fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
}

.endpoint-grid span {
  color: var(--teal);
  font-weight: 800;
}

.endpoint-grid code {
  color: var(--indigo);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.endpoint-grid em {
  color: var(--muted);
  font-style: normal;
}

.code-block {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #151a25;
  color: #edf2ff;
  font-size: 12px;
  line-height: 1.55;
}

.state-block {
  max-height: 360px;
}

.login-stage {
  grid-column: 1 / -1;
  width: min(460px, 100%);
  min-height: min(620px, calc(100vh - 56px));
  color: #f8fbff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  place-items: center;
  align-content: center;
  padding: clamp(18px, 4vw, 42px);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.login-stage.is-register {
  width: min(620px, 100%);
}

.login-stage::before {
  content: "";
  position: absolute;
  inset: -18% -56%;
  z-index: 0;
  background:
    linear-gradient(106deg, transparent 0 34%, rgba(233, 197, 255, 0.08) 43%, rgba(255, 255, 255, 0.18) 50%, rgba(180, 40, 255, 0.11) 57%, transparent 68% 100%),
    linear-gradient(180deg, transparent 0 30%, rgba(255, 255, 255, 0.06), transparent 72% 100%);
  filter: blur(0.4px);
  transform: translateX(-18%) rotate(-7deg);
  animation: voxrStageScan 6800ms ease-in-out infinite;
  pointer-events: none;
}

.login-stage::after {
  content: "";
  position: absolute;
  left: -36%;
  right: -36%;
  bottom: -8%;
  height: 42%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(171, 0, 255, 0.26), rgba(255, 208, 0, 0.1) 28%, transparent 66%);
  filter: blur(18px);
  opacity: 0.82;
  pointer-events: none;
}

.login-signal,
.login-panel,
.login-terminal {
  position: relative;
  z-index: 1;
}

.login-signal {
  min-height: auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.login-logo {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 16px 28px rgba(255, 208, 0, 0.24))
    drop-shadow(0 0 20px rgba(174, 34, 255, 0.18));
  animation: signalPulse 2400ms ease-in-out infinite;
}

.login-signal strong {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.login-signal em,
.login-terminal span {
  color: #aeb7c7;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
}

.login-panel {
  align-self: center;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(23, 20, 32, 0.9), rgba(7, 7, 12, 0.78)),
    rgba(9, 8, 15, 0.86);
  border-color: rgba(233, 197, 255, 0.18);
  color: #f8fbff;
  backdrop-filter: blur(22px);
  max-width: 430px;
  justify-self: center;
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(171, 0, 255, 0.14);
}

.login-stage.is-register .login-panel {
  max-width: 560px;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(233, 197, 255, 0.08) 42%, rgba(255, 208, 0, 0.24) 72%, rgba(255, 255, 255, 0.44) 100%);
  pointer-events: none;
  opacity: 1;
  transform: none;
  transition: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.login-panel:hover {
  border-color: rgba(233, 197, 255, 0.24);
  box-shadow:
    0 34px 104px rgba(0, 0, 0, 0.56),
    0 0 78px rgba(171, 0, 255, 0.16);
}

.login-panel:hover::before {
  opacity: 1;
  transform: none;
}

.login-panel .panel-header,
.login-panel .panel-footer {
  border-color: rgba(233, 197, 255, 0.13);
}

.login-panel .panel-body {
  display: grid;
  gap: 14px;
}

.login-mode-switch {
  border: 1px solid rgba(233, 197, 255, 0.13);
  border-radius: 8px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.login-mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #aeb7c7;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.login-mode-switch button.is-active {
  color: #141922;
  background: linear-gradient(135deg, #fff4b8, #ffd000);
  box-shadow: 0 10px 22px rgba(255, 208, 0, 0.16);
}

.login-panel .panel-header p,
.login-panel .muted {
  color: #aeb7c7;
}

.login-panel-head {
  display: block;
  text-align: center;
}

.login-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(233, 197, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: #eadbff;
  background: rgba(171, 0, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.login-form {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.registration-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #aeb7c7;
  font-size: 13px;
}

.login-form input {
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(233, 197, 255, 0.16);
}

.login-form input:focus {
  border-color: rgba(255, 208, 0, 0.72);
  box-shadow:
    0 0 0 3px rgba(255, 208, 0, 0.18),
    0 0 28px rgba(171, 0, 255, 0.16);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  width: 32px;
  height: 32px;
  position: absolute;
  right: 6px;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #c8d0dd;
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-50%);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  border-color: rgba(255, 208, 0, 0.42);
  color: #ffe27a;
  background: rgba(255, 208, 0, 0.1);
  outline: none;
}

.password-toggle .icon {
  width: 16px;
  height: 16px;
}

.registration-consent {
  border: 1px solid rgba(255, 208, 0, 0.24);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.registration-consent-link {
  width: fit-content;
  border: 0;
  padding: 0;
  color: #ffe27a;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.registration-consent-link:hover {
  color: #fff4b8;
  text-decoration: underline;
}

.registration-consent-link span {
  color: #ffd000;
  font-weight: 900;
}

.registration-consent p {
  margin: 0;
  color: #aeb7c7;
  font-size: 12px;
  line-height: 1.58;
}

.login-form .registration-consent-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: flex-start;
  color: #f4f7fb;
  font-size: 12px;
  line-height: 1.5;
}

.registration-consent-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.registration-submit-row {
  display: grid;
  gap: 8px;
}

.registration-submit-hint {
  color: #aeb7c7;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.registration-submit-hint.is-ready {
  color: #ffe27a;
}

.registration-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  padding: 18px;
  display: grid;
  place-items: center;
}

.registration-notice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 208, 0, 0.2), transparent 34%),
    rgba(6, 9, 18, 0.68);
  backdrop-filter: blur(14px);
}

.registration-notice-dialog {
  width: min(760px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 208, 0, 0.32);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  background: #101622;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  animation: modalLift 180ms ease both;
}

.registration-notice-head,
.registration-notice-foot {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.04)),
    #111827;
}

.registration-notice-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.registration-notice-head span {
  color: #ffe27a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-notice-head h2 {
  margin: 4px 0;
  color: #ffffff;
}

.registration-notice-head p {
  margin: 0;
  color: #aeb7c7;
  line-height: 1.5;
}

.registration-notice-body {
  max-height: min(500px, calc(100dvh - 220px));
  padding: 14px 16px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.registration-notice-body article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.registration-notice-body h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.registration-notice-body p {
  margin: 0;
  color: #b8c1d0;
  font-size: 13px;
  line-height: 1.65;
}

.registration-notice-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.registration-notice-foot .form-hint {
  color: #aeb7c7;
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.primary-button:disabled:hover {
  filter: grayscale(0.35);
  transform: none;
  box-shadow: none;
}

.login-demo-toggle {
  border: 1px solid rgba(255, 208, 0, 0.32);
  border-radius: 8px;
  padding: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.login-demo-toggle input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

.login-demo-toggle span,
.login-demo-toggle strong,
.login-demo-toggle em {
  display: block;
}

.login-demo-toggle strong {
  color: #ffffff;
  font-size: 13px;
}

.login-demo-toggle em {
  margin-top: 3px;
  color: #aeb7c7;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.login-help {
  border: 1px solid rgba(233, 197, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.login-help div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.login-help span {
  color: #aeb7c7;
  font-size: 13px;
}

.login-help strong,
.login-help code {
  color: #f8fbff;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.login-help code {
  white-space: nowrap;
  overflow-wrap: normal;
}

.login-note {
  margin: 0;
  color: #aeb7c7;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.login-card {
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fbff;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.login-card:hover {
  border-color: color-mix(in srgb, var(--accent), white 24%);
  background: rgba(255, 255, 255, 0.09);
}

.login-card strong {
  font-size: 18px;
}

.login-card span {
  color: #aeb7c7;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.login-card code {
  color: #f8fbff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.login-card-static {
  cursor: default;
}

.login-terminal {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-terminal span {
  border: 1px solid rgba(233, 197, 255, 0.16);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.primary-button {
  color: var(--brand-ink);
  background:
    linear-gradient(180deg, #ffe987 0%, var(--brand-yellow) 52%, var(--brand-gold) 100%);
  border-color: rgba(191, 137, 0, 0.72);
  box-shadow:
    0 14px 30px rgba(255, 208, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  font-weight: 900;
}

.primary-button:hover {
  filter: none;
  background:
    linear-gradient(180deg, #fff0a5 0%, var(--brand-yellow) 50%, #e2aa00 100%);
  box-shadow:
    0 18px 38px rgba(255, 208, 0, 0.28),
    0 0 0 4px rgba(255, 208, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.secondary-button,
.ghost-button,
.icon-button {
  color: #2b220e;
  border-color: var(--brand-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 220, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.secondary-button:hover,
.secondary-button.is-active,
.ghost-button:hover,
.icon-button:hover {
  color: var(--brand-ink);
  border-color: var(--brand-line-strong);
  background:
    linear-gradient(180deg, #fffdf4, var(--brand-soft));
  box-shadow:
    0 10px 24px rgba(155, 111, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sidebar-control-stack .secondary-button,
.sidebar-debug-body .secondary-button {
  color: #fff6cf;
  border-color: rgba(255, 208, 0, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
}

.sidebar-control-stack .secondary-button:hover,
.sidebar-debug-body .secondary-button:hover {
  color: #ffffff;
  border-color: rgba(255, 208, 0, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.06);
}

.status-pill,
.mini-pill,
.status-tag,
.business-stage-status,
.mission-state,
.nav-badge {
  color: #4f3900;
  border-color: var(--brand-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 220, 0.82));
  font-weight: 850;
}

.status-tag.is-warn,
.status-pill.is-open,
.mission-state,
.nav-badge.is-warn {
  color: #5d4200;
  background:
    linear-gradient(180deg, var(--brand-soft), rgba(255, 208, 0, 0.18));
  border-color: rgba(255, 208, 0, 0.42);
}

.status-tag.is-ok,
.business-stage-status.is-unlocked,
.nav-badge.is-ok {
  color: #0b6d5d;
  background:
    linear-gradient(180deg, #effbf7, rgba(255, 248, 220, 0.7));
  border-color: rgba(40, 127, 114, 0.28);
}

.status-tag.is-danger,
.status-pill.is-locked,
.business-stage-status:not(.is-unlocked) {
  color: #8a281f;
  background:
    linear-gradient(180deg, #fff7f0, var(--red-soft));
  border-color: rgba(226, 85, 79, 0.26);
}

.status-tag.delivery-status-editing {
  color: #5b3a8c;
  background:
    linear-gradient(180deg, rgba(248, 245, 255, 0.96), rgba(224, 209, 255, 0.72));
  border-color: rgba(126, 87, 194, 0.32);
}

.status-tag.delivery-status-producing {
  color: #1d5d78;
  background:
    linear-gradient(180deg, rgba(239, 250, 255, 0.96), rgba(190, 232, 246, 0.72));
  border-color: rgba(61, 151, 181, 0.3);
}

.status-tag.delivery-status-uploaded {
  color: #0b6d5d;
  background:
    linear-gradient(180deg, rgba(240, 255, 250, 0.98), rgba(198, 239, 226, 0.72));
  border-color: rgba(40, 127, 114, 0.3);
}

.metric-card.is-current {
  border-color: rgba(255, 208, 0, 0.42);
  background:
    linear-gradient(180deg, #fffdf4, var(--brand-soft));
}

.metric-card.is-done {
  border-color: rgba(40, 127, 114, 0.26);
  background:
    linear-gradient(180deg, #f4fbf8, rgba(255, 248, 220, 0.58));
}

.mission-state i {
  background: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.18);
}

:is(
  .mission-dialog,
  .business-motion-dialog,
  .authorization-dialog,
  .task-confirm-dialog,
  .product-detail-dialog,
  .material-history-dialog,
  .admin-user-detail-dialog,
  .registration-notice-dialog
) {
  border-color: var(--brand-line-strong);
  box-shadow:
    0 32px 100px rgba(10, 14, 25, 0.32),
    0 0 0 1px rgba(255, 208, 0, 0.1),
    0 0 56px rgba(255, 208, 0, 0.12);
}

:is(
  .mission-dialog-head,
  .business-motion-head,
  .authorization-dialog-head,
  .authorization-dialog-foot,
  .task-confirm-head,
  .task-confirm-foot,
  .product-detail-head,
  .product-detail-foot,
  .material-history-dialog-head,
  .material-history-dialog-foot,
  .admin-user-detail-head,
  .admin-user-detail-foot
) {
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.2), rgba(255, 255, 255, 0.96) 58%),
    #ffffff;
}

.registration-notice-head,
.registration-notice-foot {
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.16), rgba(255, 255, 255, 0.05)),
    #111827;
}

:is(
  .mission-backdrop,
  .business-motion-backdrop,
  .task-confirm-backdrop,
  .product-detail-backdrop,
  .material-history-backdrop,
  .admin-user-detail-backdrop,
  .registration-notice-backdrop
) {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 208, 0, 0.22), transparent 32%),
    radial-gradient(circle at 26% 86%, rgba(240, 185, 11, 0.16), transparent 34%),
    rgba(6, 9, 18, 0.62);
}

.authorization-gate {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 208, 0, 0.34), transparent 42%),
    radial-gradient(circle at 72% 18%, rgba(240, 185, 11, 0.16), transparent 30%),
    rgba(5, 8, 16, 0.74);
}

.login-help,
.login-terminal span {
  border-color: rgba(255, 208, 0, 0.18);
}

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scaleY(0.96);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.03);
  }
}

@keyframes voxrGridDrift {
  from {
    background-position: 0 0, 18px 13px, 0 0;
    transform: perspective(1100px) rotateX(54deg) translateY(10%) scale(1.06);
  }
  to {
    background-position: 34px 20px, -22px 30px, 44px 0;
    transform: perspective(1100px) rotateX(54deg) translateY(4%) scale(1.1);
  }
}

@keyframes voxrGlowSweep {
  from {
    background-position: 0 0, 50% 100%, -34px 0, 0 0;
    opacity: 0.72;
  }
  to {
    background-position: 26px -18px, 54% 96%, 46px 0, 0 0;
    opacity: 0.9;
  }
}

@keyframes voxrLineDrift {
  from {
    background-position: 0 0, 0 0;
    opacity: 0.34;
  }
  to {
    background-position: 0 -18px, 72px 0;
    opacity: 0.54;
  }
}

@keyframes voxrHaloBreathe {
  from {
    opacity: 0.42;
    transform: scale(0.98);
  }
  to {
    opacity: 0.64;
    transform: scale(1.03);
  }
}

@keyframes voxrStageScan {
  0% {
    opacity: 0.24;
    transform: translateX(-22%) rotate(-7deg);
  }
  48% {
    opacity: 0.62;
  }
  100% {
    opacity: 0.28;
    transform: translateX(18%) rotate(-7deg);
  }
}

.compact-list {
  gap: 8px;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: relative;
    top: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    overflow: visible;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .certification-mark {
    right: 14px;
    bottom: 14px;
    width: 50px;
    opacity: 0.52;
  }

  .w-certification-mark {
    left: 12px;
    bottom: 12px;
    width: 30px;
    opacity: 0.7;
  }

  .brand-block {
    gap: 8px;
  }

  .brand-block strong {
    font-size: 15px;
  }

  .brand-block span {
    font-size: 11px;
    margin-top: 1px;
  }

  .sidebar-context {
    padding: 8px 10px;
    gap: 3px;
  }

  .nav-list {
    grid-auto-flow: column;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
  }

  .nav-item {
    width: auto;
    padding: 9px 12px;
    flex: 0 0 auto;
  }

  .sidebar-bottom-nav {
    width: 100%;
    order: initial;
    margin: 0;
  }

  .sidebar-bottom-nav .nav-item {
    width: auto;
    justify-content: flex-start;
  }

  .sidebar-footer {
    margin-top: 0;
    margin-left: auto;
  }

  .sidebar-actions {
    width: 100%;
    order: initial;
    margin-top: 0;
    margin-bottom: 0;
    display: grid;
    gap: 8px;
  }

  body[data-client="platform"] .sidebar-actions {
    margin-top: 0;
  }

  .sidebar-control-stack,
  .sidebar-debug-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-control-stack .mission-button,
  .sidebar-control-stack .motion-button,
  .sidebar-control-stack .status-pill,
  .sidebar-control-stack .mini-pill,
  .sidebar-control-stack .secondary-button,
  .sidebar-debug-body .secondary-button {
    width: auto;
    flex: 1 1 150px;
  }

  .sidebar-control-stack .mission-button {
    min-height: 40px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .admin-review-grid,
  .delivery-workspace-body,
  .role-management-grid {
    grid-template-columns: 1fr;
  }

  .delivery-workspace-panel {
    height: min(820px, calc(100dvh - 18px));
  }

  .delivery-task-list-panel {
    max-height: 260px;
  }

  .delivery-local-upload-card {
    grid-template-columns: 1fr;
  }

  .delivery-local-upload-card .primary-button {
    width: 100%;
  }

  .talent-hero,
  .talent-action-body {
    max-height: none;
    grid-template-columns: 1fr;
  }

  .talent-action-body.is-delivery-stage {
    grid-template-columns: 1fr;
  }

  .talent-hero-workflow .talent-action-body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .talent-hero-workflow {
    overflow: visible;
  }

  .creator-identity-card {
    width: 100%;
  }

  .talent-step-card {
    min-height: 132px;
    margin: 0 18px 18px;
  }

  .queue-grid {
    grid-template-columns: 1fr;
  }

  .business-line {
    min-width: 920px;
  }

  .business-stage-row {
    grid-template-columns: repeat(8, minmax(96px, 1fr));
    gap: 6px;
  }

  .business-stage {
    padding-right: 10px;
    padding-left: 10px;
  }

  .business-thumb {
    left: clamp(86px, calc(var(--thumb-left) + var(--rubber-x, 0px)), calc(100% - 86px));
    min-width: 158px;
  }

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

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

  .task-selection-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .login-stage {
    width: min(720px, 100%);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-signal {
    min-height: auto;
  }

  .login-logo {
    width: 92px;
    height: 92px;
  }

  .login-panel {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .sidebar {
    padding: 9px 10px;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .certification-mark {
    right: 10px;
    bottom: 10px;
    width: 38px;
    opacity: 0.48;
  }

  .w-certification-mark {
    left: 10px;
    bottom: 10px;
    width: 26px;
    opacity: 0.66;
  }

  .brand-block strong {
    font-size: 14px;
  }

  .sidebar-context {
    padding: 8px 10px;
  }

  .sidebar-context strong {
    font-size: 14px;
  }

  .nav-list {
    gap: 6px;
    padding-bottom: 2px;
  }

  .nav-item {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav-badge {
    padding: 3px 6px;
    font-size: 10px;
  }

  .sidebar-actions {
    gap: 6px;
  }

  .sidebar-control-panel {
    padding: 10px;
  }

  .sidebar-control-stack .mission-button,
  .sidebar-control-stack .status-pill,
  .sidebar-control-stack .mini-pill,
  .sidebar-control-stack .secondary-button,
  .sidebar-debug-body .secondary-button {
    min-height: 36px;
    flex-basis: 132px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .sidebar-control-stack #logoutButton {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 70;
    width: 34px;
    min-height: 34px;
    padding: 0;
    border-color: rgba(240, 185, 11, 0.24);
    border-radius: 8px;
    color: #5d4500;
    background:
      linear-gradient(135deg, rgba(255, 208, 0, 0.14), rgba(255, 255, 255, 0.86)),
      rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(61, 48, 20, 0.1);
    display: grid;
    place-items: center;
    font-size: 0;
  }

  .sidebar-control-stack #logoutButton .icon {
    width: 15px;
    height: 15px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .platform-language-switcher {
    top: 14px;
    right: 14px;
  }

  .platform-language-toggle {
    min-width: 44px;
    min-height: 40px;
    padding: 0 11px;
  }

  .platform-language-menu {
    min-width: 154px;
    padding: 7px;
  }

  .platform-language-option {
    min-height: 40px;
    padding: 0 11px;
  }

  h1 {
    font-size: 23px;
  }

  .secondary-button,
  .primary-button,
  .danger-button,
  .ghost-button,
  .icon-button {
    min-height: 36px;
    padding: 0 11px;
  }

  .icon-button {
    width: 36px;
  }

  .mission-button,
  .status-pill,
  .mini-pill {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .status-tag {
    min-width: 68px;
    min-height: 22px;
    font-size: 9.5px;
  }

  .mission-modal {
    padding: 8px;
  }

  .business-motion-modal {
    padding: 8px;
  }

  .business-motion-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .business-motion-head {
    padding: 12px 12px 10px;
    align-items: center;
  }

  .business-motion-head h2 {
    margin-bottom: 3px;
    font-size: 22px;
  }

  .business-motion-head p {
    max-width: 260px;
    font-size: 12px;
  }

  .business-motion-body {
    max-height: calc(100dvh - 88px);
    padding: 10px 0 12px;
  }

  .motion-swipe-hint {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 12px 10px;
    border: 1px solid rgba(240, 185, 11, 0.22);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #7b5a00;
    background:
      linear-gradient(135deg, rgba(255, 208, 0, 0.14), rgba(255, 255, 255, 0.82)),
      #fffdf5;
    font-size: 12px;
    font-weight: 900;
  }

  .motion-swipe-hint::after {
    content: "< >";
    letter-spacing: 2px;
    color: #9b6f00;
  }

  .business-motion-scroll {
    margin: 0;
    padding: 0 12px 12px;
    border-radius: 8px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
  }

  .business-motion-body .business-line {
    min-width: 1030px;
    padding: 14px;
    border-radius: 8px;
  }

  .business-motion-body .business-line-head {
    margin-bottom: 10px;
    align-items: center;
  }

  .business-motion-body .business-line-head h2 {
    font-size: 20px;
  }

  .business-motion-body .business-track {
    --track-top: 48px;
  }

  .business-motion-body .business-stage-row {
    grid-template-columns: repeat(8, 118px);
    gap: 8px;
  }

  .business-motion-body .business-stage {
    min-height: 160px;
    padding: 68px 9px 10px;
  }

  .business-motion-body .business-step-node {
    top: calc(var(--track-top) - 15px);
    width: 30px;
    height: 30px;
  }

  .business-motion-body .business-thumb {
    top: calc(var(--track-top) - 39px);
    min-width: 148px;
    height: 30px;
  }

  .business-motion-body .business-stage-copy {
    min-height: 74px;
  }

  .business-motion-body .business-stage strong {
    font-size: 13px;
  }

  .business-motion-body .business-stage em {
    font-size: 11px;
    line-height: 1.42;
  }

  .mission-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .mission-dialog-head {
    padding: 12px;
  }

  .mission-dialog-head h2 {
    font-size: 22px;
  }

  .mission-dialog-body {
    max-height: calc(100dvh - 82px);
    padding: 12px;
  }

  .mission-summary,
  .mission-dashboard,
  .mission-detail-stack {
    gap: 10px;
  }

  .mission-task-board {
    padding: 10px;
  }

  .mission-task-board-head {
    display: grid;
    gap: 8px;
  }

  .mission-task-board-head > strong {
    width: fit-content;
  }

  .mission-task-group {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 7px;
  }

  .mission-task-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mission-task-list.is-compact .mission-task-row {
    min-height: 32px;
    grid-template-columns: 30px minmax(0, 1fr) 64px;
    gap: 4px 6px;
    padding: 5px 6px;
  }

  .mission-task-list.is-compact .mission-task-section,
  .mission-task-list.is-compact .mission-task-owner {
    display: none;
  }

  .mission-task-list.is-compact .mission-task-detail {
    grid-column: 2;
    font-size: 10px;
  }

  .mission-task-list.is-compact .mission-task-state {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .mission-task-meta {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    justify-items: initial;
  }

  .mission-status-line {
    padding: 10px;
  }

  .mission-credential-strip {
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mission-credential-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .mission-credential-meta article {
    padding: 7px 6px;
  }

  .mission-credential-strip p,
  .mission-credential-strip em,
  .mission-credential-meta strong {
    white-space: normal;
  }

  .mission-activity {
    padding: 10px;
    gap: 10px;
  }

  .mission-activity-head {
    align-items: flex-start;
    gap: 8px;
  }

  .mission-activity-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }

  .mission-activity-item time {
    min-height: 28px;
    font-size: 11px;
  }

  .mission-activity-item > div {
    padding: 9px 10px;
  }

  .mission-detail-stack {
    order: 0;
  }

  .mission-timeline {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mission-event {
    flex: 0 0 min(82vw, 260px);
    scroll-snap-align: start;
  }

  .content-grid {
    gap: 14px;
  }

  .flow-board,
  .status-strip {
    margin-bottom: 14px;
  }

  .panel-header,
  .panel-body,
  .panel-footer {
    padding: 14px;
  }

  .panel-header {
    display: grid;
    gap: 10px;
  }

  .admin-header-stats {
    width: 100%;
    min-width: 0;
  }

  .status-strip,
  .source-strip,
  .product-grid,
  .product-filter-bar,
  .admin-user-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-user-filter-bar .primary-button,
  .admin-user-filter-bar .secondary-button {
    width: 100%;
    justify-content: center;
  }

	  .admin-section-head,
	  .admin-card-actions,
	  .admin-review-lanes,
		  .admin-user-row,
		  .role-row,
		  .role-data-row,
		  .admin-user-row-status,
	  .admin-material-row,
	  .admin-material-row-status {
	    display: grid;
	  }

  .admin-review-lanes,
  .admin-focus-intro,
  .admin-material-grid,
  .admin-material-list,
	  .admin-user-status-grid,
	  .role-management-grid {
	    grid-template-columns: 1fr;
	  }

	  .admin-user-row,
		  .admin-material-row,
		  .role-row,
		  .role-data-row,
		  .role-detail-summary,
		  .role-permission-grid {
		    grid-template-columns: 1fr;
		  }

	  .role-data-head {
	    display: none;
	  }

	  .role-state-cell {
	    width: fit-content;
	    grid-template-columns: 96px 66px;
	    justify-content: start;
	  }

	  .admin-review-lanes .is-compact-material-list .admin-material-row,
	  .is-compact-material-list .admin-material-row {
	    grid-template-columns: 1fr;
	  }

	  .admin-review-queue-head {
	    display: none;
	  }

	  .admin-review-lanes .is-review-queue-list .admin-review-queue-row,
	  .admin-review-queue-row {
	    grid-template-columns: 1fr;
	    padding: 10px;
	  }

	  .admin-review-queue-meta {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

	  .admin-review-queue-actions {
	    justify-content: flex-start;
	  }

	  .admin-review-queue-actions .form-hint {
	    max-width: none;
	    text-align: left;
	  }

	  .admin-user-row-status,
	  .admin-material-row-status {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

  .is-compact-material-list .admin-material-row-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-user-row-trailing,
  .admin-material-row-trailing {
    justify-items: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-material-row-trailing {
    display: grid;
  }

  .admin-management-section {
    padding: 12px;
  }

  .admin-user-management {
    height: min(62vh, 520px);
  }

  .admin-review-lanes .admin-management-section {
    height: min(62vh, 520px);
  }

  .task-selection-frame,
  .task-product-browser,
  .task-builder-panel {
    padding: 12px;
  }

  .task-workspace-panel {
    height: calc(100dvh - 18px);
    min-height: 0;
  }

  .task-catalog-body {
    grid-template-rows: auto auto;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .task-workspace-panel .product-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-workspace-panel .product-filter-bar .search-field {
    grid-column: 1 / -1;
  }

  .task-workspace-panel .filter-count {
    justify-self: stretch;
    justify-content: center;
  }

  .task-selection-frame {
    min-height: 650px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    overflow: hidden;
  }

  .task-product-browser {
    min-height: 0;
  }

  .task-builder-panel {
    min-height: 128px;
    max-height: 210px;
  }

  .product-grid {
    min-height: 0;
    max-height: none;
  }

  .task-section-head {
    display: grid;
    gap: 6px;
  }

  .task-section-head p {
    max-width: none;
  }

  .product-card {
    min-height: 220px;
    padding: 11px;
  }

  .product-thumb {
    min-height: 96px;
  }

  .talent-hero-workflow {
    margin: 0 12px 12px;
    padding: 12px;
  }

  .current-material-showcase {
    overflow: visible;
  }

  .current-material-showcase .material-preview-frame {
    width: min(58vw, 156px);
    height: clamp(116px, 36vw, 156px);
  }

  .current-material-showcase .current-material-card {
    padding: 8px;
  }

  .current-material-head {
    display: grid;
  }

  .task-progress-step {
    min-height: 42px;
    grid-template-columns: minmax(0, 1fr) 74px;
    column-gap: 6px;
    row-gap: 2px;
    padding-left: 36px;
  }

  .task-progress-step em {
    justify-self: end;
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    font-size: 8.5px;
  }

  .task-progress-step strong {
    font-size: 9.5px;
    line-height: 1.12;
  }

  .creator-identity-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .creator-avatar {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .creator-auth-badge {
    grid-column: 2;
    justify-self: start;
    padding: 6px 10px;
  }

  .product-detail-modal {
    padding: 8px;
  }

  .product-detail-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .product-detail-head,
  .product-detail-body,
  .product-detail-foot {
    padding: 12px;
  }

  .product-detail-head {
    gap: 10px;
  }

  .product-detail-head h2 {
    font-size: 22px;
  }

  .product-detail-body {
    max-height: calc(100dvh - 148px);
    gap: 9px;
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .task-confirm-modal {
    padding: 8px;
  }

  .task-confirm-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .task-confirm-head,
  .task-confirm-body,
  .task-confirm-foot {
    padding: 12px;
  }

  .task-confirm-body {
    max-height: calc(100dvh - 148px);
  }

  .reject-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-detail-modal {
    padding: 8px;
  }

  .admin-user-detail-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .admin-user-detail-head,
  .admin-user-detail-body,
  .admin-user-detail-foot {
    padding: 12px;
  }

  .admin-user-detail-head,
  .admin-user-detail-foot,
  .admin-user-detail-grid,
  .admin-user-detail-status,
  .admin-material-detail-preview-card,
  .admin-user-linked-grid,
  .admin-user-linked-card,
  .admin-linked-talent-card,
  .admin-linked-talent-status {
    grid-template-columns: 1fr;
  }

  .admin-user-detail-head,
  .admin-user-detail-foot {
    display: grid;
  }

  .admin-user-detail-body {
    max-height: calc(100dvh - 156px);
  }

  .admin-talent-detail-foot {
    grid-template-columns: 1fr;
  }

  .admin-talent-delete-note {
    width: 100%;
  }

  .admin-talent-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-material-detail-preview .portrait-asset,
  .admin-material-detail-preview .video-asset {
    min-height: 180px;
  }

  .material-history-modal {
    padding: 8px;
  }

  .material-history-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .material-history-dialog-head,
  .material-history-dialog-body,
  .material-history-dialog-foot {
    padding: 12px;
  }

  .material-history-dialog-body {
    max-height: calc(100dvh - 148px);
  }

  .history-detail-layout,
  .material-history-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .history-table-wrap {
    max-height: min(58vh, 460px);
    border: 0;
    background: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
  }

  .history-table,
  .history-table thead,
  .history-table tbody,
  .history-table tr,
  .history-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .history-table thead {
    display: none;
  }

  .history-table tbody {
    display: grid;
    gap: 8px;
  }

  .history-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px;
    background: #ffffff;
  }

  .history-table th,
  .history-table td {
    border: 0;
  }

  .history-table td {
    min-height: 30px;
    padding: 6px 0 6px 84px;
    position: relative;
  }

  .history-table td.history-table-action-cell {
    width: auto;
    padding: 8px 0 0;
    text-align: left;
  }

  .history-table td.history-table-action-cell::before {
    width: auto;
    position: static;
    display: block;
    margin-bottom: 6px;
  }

  .history-status-wrap,
  .history-review-wrap {
    min-height: 0;
  }

  .history-table td > .status-tag,
  .history-table td > .history-review-chip,
  .history-table td > .history-current-badge {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
  }

  .history-table .history-detail-action {
    width: 100%;
    min-height: 34px;
  }

  .history-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 8px;
    width: 72px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .history-table tr.is-current td {
    background: transparent;
  }

  .history-table tr.is-current {
    border-color: rgba(240, 185, 11, 0.38);
    background:
      linear-gradient(135deg, rgba(255, 208, 0, 0.1), rgba(255, 255, 255, 0.94)),
      #ffffff;
  }

  .history-detail-preview {
    min-height: 220px;
  }

  .history-detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .history-detail-grid article.is-wide {
    grid-column: auto;
  }

  .history-review-item {
    grid-template-columns: 1fr;
  }

  .history-review-item .status-tag {
    justify-self: start;
  }

  .product-thumb.is-large {
    min-height: 132px;
  }

  .business-line {
    min-width: 860px;
    padding: 14px;
  }

  .business-stage-row {
    grid-template-columns: repeat(8, minmax(92px, 1fr));
    gap: 6px;
  }

  .business-stage {
    min-height: 178px;
  }

  .business-thumb {
    left: clamp(80px, calc(var(--thumb-left) + var(--rubber-x, 0px)), calc(100% - 80px));
    min-width: 150px;
  }

  .split-row,
  .two-column,
  .row-card {
    grid-template-columns: 1fr;
  }

  .talent-hero-main,
  .talent-step-card {
    padding: 18px;
  }

  .talent-hero-main {
    min-height: 150px;
  }

  .talent-step-card {
    margin: 0 18px 18px;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .review-meta-grid,
  .review-template-grid,
  .credential-grid,
  .cooperation-grid,
  .cooperation-path-grid,
  .cooperation-choice-list.is-grid,
  .terms-meta-row,
  .publish-summary,
  .video-detail-card,
  .ops-section .two-column {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .platform-language-switcher {
    top: 10px;
    right: 10px;
  }

  .platform-language-toggle {
    min-width: 42px;
    min-height: 38px;
    padding: 0 10px;
  }

  .platform-language-flag {
    font-size: 18px;
  }

  .platform-language-menu {
    min-width: 144px;
    padding: 6px;
    gap: 4px;
  }

  .platform-language-option {
    min-height: 36px;
    padding: 0 10px;
    gap: 8px;
  }

  .platform-language-option-label {
    font-size: 11px;
  }

  .platform-language-option-code {
    font-size: 9px;
  }

  .debug-grid,
  .endpoint-grid,
  .admin-metrics,
  .login-options,
  .registration-form-grid {
    grid-template-columns: 1fr;
  }

  .sensitive-confirm-card .primary-button {
    width: 100%;
    justify-content: center;
  }

  .login-stage {
    padding: 18px;
    gap: 16px;
  }

  .app-shell.is-auth-screen .content-grid {
    min-height: 100dvh;
    padding: 16px;
  }

  .app-shell.is-auth-screen .workspace::after {
    opacity: 0.56;
  }

  .app-shell.is-auth-screen .content-grid::before {
    opacity: 0.34;
  }

  .login-signal {
    min-height: auto;
    gap: 10px;
  }

  .login-logo {
    width: 72px;
    height: 72px;
  }

  .login-signal strong {
    font-size: 25px;
  }

  .login-help div {
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .login-help strong,
  .login-help code {
    text-align: left;
  }

  .login-terminal {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
  }

  .drawer-layer {
    align-items: stretch;
  }

  .task-drawer {
    width: 100%;
    min-height: 100%;
    border-left: 0;
  }

  .drawer-stats {
    grid-template-columns: 1fr;
  }

  .drawer-header,
  .drawer-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 760px) {
  .mobile-collapse-toggle {
    display: inline-flex;
  }

  .mobile-collapsible-content {
    display: none;
  }

  .mobile-collapsible.is-expanded > .mobile-collapsible-content,
  .mobile-collapsible.is-expanded > .material-history-content {
    display: grid;
    gap: 10px;
  }

  .material-history-card.mobile-collapsible {
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
    gap: 10px;
  }

  .material-history-card.mobile-collapsible.is-expanded {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .material-history-card.mobile-collapsible:not(.is-expanded) {
    padding-bottom: 10px;
  }

  .material-history-card.mobile-collapsible:not(.is-expanded) .material-history-head p {
    display: none;
  }

  .material-history-head {
    align-items: center;
  }

  .mobile-collapse-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-filter-bar.mobile-collapsible {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 0;
  }

  .product-filter-toggle {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
    border-radius: 8px;
  }

  .product-filter-toggle strong {
    min-width: 56px;
    border-radius: 999px;
    padding: 3px 8px;
    color: #5d4200;
    background: rgba(255, 208, 0, 0.18);
    text-align: center;
  }

  .product-filter-bar.mobile-collapsible.is-expanded > .product-filter-content {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-filter-content .search-field,
  .product-filter-content .filter-count,
  .product-filter-content .secondary-button {
    grid-column: 1 / -1;
  }

  .product-filter-content .secondary-button,
  .product-filter-content .filter-count {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-gate {
    display: none;
  }

  body[data-client="platform"][data-screen="app"]::before,
  body[data-client="platform"][data-screen="app"]::after,
  .intro-beam,
  .intro-title,
  .login-stage::before,
  .login-stage::after,
  .login-logo,
  .app-shell.is-auth-screen .content-grid::before,
  .app-shell.is-auth-screen .content-grid::after,
  .app-shell.is-auth-screen .workspace::before,
  .app-shell.is-auth-screen .workspace::after,
  .business-rail span,
  .business-thumb,
  .talent-step-card::before,
  .task-drawer {
    animation: none;
  }

.panel::before,
.metric-card::before,
.business-stage::before,
.row-card::before,
.queue-item::before,
.product-card::before,
.source-card::before,
.debug-card::before,
.login-card::before {
    display: none;
  }
}
