/* Academia do Marketing — área de membros.
   Visual language adapted from the Vyper app (charcoal surfaces, grouped sidebar,
   breadcrumb topbar, solid brand card, numbered steps, segmented progress),
   with the Academia identity from design-dna-v2: neutral greys, yellow brand, Geist. */
@font-face {
  font-family: Geist;
  src: url("/assets/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-synthesis: none;
  --bg: #0e0e0e;
  --sidebar: #121212;
  --surface: #161616;
  --surface2: #1c1c1c;
  --surface3: #262626;
  --border: #2e2e2e;
  --border-subtle: #222222;
  --border-strong: #3d3d3d;
  --text: #f2f2f2;
  --muted: #b3b3b3;
  --subtle: #8c8c8c;
  --accent: #ffe600;
  --accent-hover: #fff36a;
  --accent-ink: #17140a;
  --accent-tint: #262200;
  --accent-line: #4d4500;
  --red: #d95646;
  --red-tint: #2a1714;
  --success: #91c5aa;
  --warning: #eeb27a;
  --danger: #ff8b8b;
  --danger-tint: #2b1717;
  --success-tint: #15241c;
  --radius: 12px;
  --radius-control: 8px;
  --shadow: 0 12px 28px #0003, inset 0 1px #ffffff05;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace;
  /* Figma Color / Dimension: names match the published code syntax. */
  --accent-text: #ffe600;
  --field: #121212;
  --focus: #ffe600;
  --track: #2e2e2e;
  --radius-xs: 5px;
  --radius-sm: 6px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --size-control-sm: 36px;
  --size-control-md: 42px;
  --size-control-lg: 50px;
  --focus-ring: 0 0 0 1px #ffe600, 0 0 0 3px #ffe60029;
  --focus-ring-danger: 0 0 0 1px #ff8b8b, 0 0 0 3px #ff8b8b29;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    450 14px/1.55 Geist,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.icon.sm {
  width: 16px;
  height: 16px;
}
.icon.lg {
  width: 26px;
  height: 26px;
}
.rotate-right {
  transform: rotate(90deg);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
}
.small-top {
  margin-top: 16px;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus-visible {
  top: 12px;
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #ffe27a;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    inset 0 1px #fff4c7,
    inset 0 -2px #b99b24,
    0 3px 8px #0003;
  transition:
    background 0.16s var(--ease),
    border-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.button:hover:not(:disabled) {
  background: var(--accent-hover);
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.secondary,
.button.light {
  background: linear-gradient(#262626, #1c1c1c);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow:
    inset 0 1px #ffffff0a,
    0 2px 3px #0003;
}
.button.secondary:hover:not(:disabled),
.button.light:hover:not(:disabled) {
  background: #2b2b2b;
  border-color: #5a5a5a;
}
.button.secondary.is-done {
  color: var(--success);
  border-color: #35503f;
  background: #17201b;
}
.button.ink {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--accent);
  box-shadow:
    inset 0 1px #ffffff14,
    0 4px 12px #0002;
}
.button.ink:hover:not(:disabled) {
  background: #2a2410;
}
.button.compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.button.large {
  min-height: 50px;
  font-size: 15px;
}
.button.block {
  width: 100%;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface2);
  color: var(--muted);
  transition:
    color 0.16s,
    border-color 0.16s,
    background 0.16s;
}
.icon-button:hover:not(:disabled) {
  color: var(--text);
  border-color: #4a4a4a;
  background: var(--surface3);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link.ink {
  color: var(--accent-ink);
}
.muted-link {
  color: var(--subtle);
  font-weight: 500;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--muted);
}
.chip.success {
  color: var(--success);
  background: #18221d;
  border-color: #2f4639;
}
.chip.warning {
  color: var(--warning);
  background: #261d15;
  border-color: #4a3524;
}
.chip.danger {
  color: var(--danger);
  background: #2a1818;
  border-color: #4d2a2a;
}
.chip.accent {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: #3d3517;
}
.chip.red {
  color: #f08a7d;
  background: var(--red-tint);
  border-color: #4d2722;
}
.chip.dashed {
  border-style: dashed;
  background: transparent;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: #2e2e2e;
  border: 1px solid #454545;
  color: #e6e6e6;
  font-size: 12px;
  font-weight: 600;
}
.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.avatar.xl {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 20px;
}
.progress-track {
  height: 3px;
  border-radius: 2px;
  background: #2c2c2c;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.segments {
  display: flex;
  gap: 4px;
}
.segments span {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: #313131;
}
.segments .on {
  background: var(--accent);
}
.segments .half {
  background: linear-gradient(90deg, #8b7a33 50%, #313131 50%);
}
.segments .now {
  background: #ffe60066;
  box-shadow: 0 0 0 1px var(--accent);
}
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.panel-top > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-top .icon {
  color: var(--subtle);
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-header h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.panel-header .eyebrow {
  margin-bottom: 6px;
}
.panel-header p:not(.eyebrow) {
  color: var(--subtle);
  font-size: 13px;
  margin-top: 4px;
}
.numeral {
  display: block;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 7px;
  background: var(--accent-tint);
  border: 1px solid #3d3517;
  color: var(--accent);
}
.glyph.red {
  background: var(--red-tint);
  border-color: #4d2722;
  color: #f08a7d;
}
.notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  background: #1d1a0f;
  color: #e6dbb0;
  border-radius: var(--radius-control);
  font-size: 13px;
}
.notice .icon {
  color: var(--accent);
}
.notice .text-link {
  margin-left: auto;
}

/* Application frame */
.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border-subtle);
  z-index: 50;
}
.sidebar-top {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 24px;
  flex: none;
}
.brand img {
  width: 128px;
  height: auto;
}
.sidebar-close {
  display: none;
}
.context-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 22px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #181818;
  text-align: left;
  min-width: 0;
}
button.context-card:hover {
  border-color: #4a4a4a;
  background: #1d1d1d;
}
.context-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.context-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-card small {
  font-size: 12px;
  color: var(--subtle);
}
.context-card > .icon {
  color: var(--subtle);
}
.context-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  overflow: hidden;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-tint);
}
.context-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-scroll {
  flex: 1;
  overflow: auto;
  padding: 0 12px;
  scrollbar-width: thin;
}
.nav-group {
  margin-bottom: 20px;
}
.nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0 12px;
  margin: 0 0 8px;
  color: var(--subtle);
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 40px;
  margin: 2px 0;
  padding: 0 12px;
  border-radius: 6px;
  color: #b0b0b0;
  text-align: left;
  font-size: 14px;
  font-weight: 450;
  transition:
    background 0.14s,
    color 0.14s;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  color: var(--text);
  background: #1f1f1f;
}
.nav-link.active {
  background: #231f10;
  color: var(--accent);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 2px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--accent);
}
.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: #2a2a2a;
  color: var(--muted);
  font: 500 11px/20px var(--mono);
  text-align: center;
}
.nav-link.active .nav-count {
  background: #3a3214;
  color: var(--accent);
}
.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
  margin: 0 4px 14px;
}
.sidebar-status.success .dot {
  color: var(--success);
}
.sidebar-status.warning .dot {
  color: var(--warning);
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.user-row > span:last-child {
  min-width: 0;
}
.user-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-row small {
  font-size: 12px;
  color: var(--subtle);
}
.main-area {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0e0e0ee6;
  backdrop-filter: blur(12px);
}
.mobile-toggle,
.mobile-mark {
  display: none;
}
.mobile-mark img {
  width: 108px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  color: var(--subtle);
}
.breadcrumb button {
  color: var(--subtle);
  white-space: nowrap;
}
.breadcrumb button:hover {
  color: var(--text);
}
.breadcrumb .sep {
  color: #4a4a4a;
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.global-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--subtle);
  transition: border-color 0.16s;
}
.global-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffe60014;
}
.global-search .icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
}
.global-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 40px 0 36px;
  font-size: 13px;
}
.global-search input::placeholder {
  color: var(--subtle);
}
.global-search input::-webkit-search-cancel-button {
  display: none;
}
.global-search kbd {
  position: absolute;
  right: 9px;
  font: 11px var(--mono);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--subtle);
}
.demo-switch {
  height: 38px;
  padding: 0 12px;
  border: 1px dashed #5a4c1c;
  border-radius: var(--radius-control);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.demo-switch:hover {
  background: var(--accent-tint);
}
.account-wrap {
  position: relative;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--subtle);
}
.account-button:hover,
.account-button[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--surface2);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  padding: 6px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1b1b1b;
  box-shadow: 0 24px 60px #000a;
  z-index: 60;
}
.account-menu-head {
  padding: 10px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.account-menu-head strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.account-menu-head small {
  font-size: 12px;
  color: var(--subtle);
  overflow-wrap: anywhere;
}
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.account-menu button:hover {
  background: var(--surface3);
  color: var(--text);
}
.account-menu .icon {
  width: 16px;
  height: 16px;
}
.page {
  padding: 32px;
  max-width: 1520px;
  margin: 0 auto;
  outline: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head .eyebrow {
  margin-bottom: 10px;
}
.page-head h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.page-head p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bottom-nav {
  display: none;
}
.menu-shade {
  display: none;
}

/* Home: command grid */
.command-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
/* Progress readout beside the greeting (replaces the old full progress card). */
.progress-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.16s;
}
.progress-summary:hover {
  border-color: var(--accent-line);
}
.progress-summary .numeral {
  font-size: 28px;
}
.progress-summary .numeral small {
  font-size: 15px;
  color: var(--subtle);
  margin-left: 1px;
  letter-spacing: 0;
}
.progress-summary > span {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.progress-summary small {
  font-size: 12px;
  color: var(--muted);
}
.progress-summary .segments span {
  height: 4px;
}
/* Slim neutral strip: resume the last lesson without taking the fold. Yellow only on the action. */
.resume-bar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.resume-bar-thumb {
  width: 34px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.resume-bar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resume-bar-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  column-gap: 24px;
  min-width: 0;
}
.resume-bar .eyebrow {
  grid-column: 1;
  font-size: 11px;
  margin-bottom: 2px;
}
.resume-bar h2 {
  grid-column: 1;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume-bar-copy > p:not(.eyebrow) {
  grid-column: 1;
  margin-top: 1px;
  font-size: 12px;
  color: var(--subtle);
}
.resume-bar-track {
  grid-column: 2;
  grid-row: 1 / 4;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #2c2c2c;
  overflow: hidden;
}
.resume-bar-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.resume-bar.red .resume-bar-track i {
  background: var(--red);
}
/* Guest access card keeps the solid brand treatment. */
.access-card {
  grid-column: span 7;
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px #fff4c4,
    0 12px 32px #0003;
}
.access-card .eyebrow {
  color: #5f4f12;
  margin-bottom: 14px;
}
.access-card h2 {
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
  max-width: 380px;
}
.access-card > p:not(.eyebrow) {
  color: #4f4416;
  font-size: 14px;
  margin-bottom: 16px;
}
.steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #191919;
  text-align: left;
  transition:
    border-color 0.14s,
    background 0.14s;
}
.step:hover {
  border-color: #474747;
  background: #1d1d1d;
}
.step > .icon {
  color: var(--subtle);
}
.step-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  font: 500 12px var(--mono);
  color: var(--muted);
}
.step-copy {
  min-width: 0;
}
.step-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
}
.step-copy small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}
.step-copy .progress-track {
  margin-top: 8px;
  max-width: 240px;
}
.step-state {
  font-size: 12px;
  color: var(--subtle);
  white-space: nowrap;
}
.step.done .step-index,
.step-index.done {
  background: var(--accent-tint);
  border-color: #3d3517;
  color: var(--accent);
}
.step.current {
  border-color: #5a4c1c;
  background: #1e1b11;
}
.step.current .step-index,
.step-index.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.step.current .step-state,
.step.current > .icon {
  color: var(--accent);
}
/* Home banner: full-width course banner under the resume strip. */
.home-banner {
  min-height: 300px;
  margin-bottom: 8px;
}
.home-banner .hero-copy {
  max-width: 520px;
}
.hero-card.home-banner > img {
  object-position: 80% 12%;
}
.hero-card.home-banner.red > img {
  object-position: center 60%;
}
/* Guest home */
.hero-card {
  grid-column: span 8;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0a0a;
}
.hero-card > img,
.course-overview > img,
.auth-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-shade,
.course-overview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #0a0a0a 0%,
    #0a0a0ae6 34%,
    #0a0a0a33 70%,
    transparent
  );
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  max-width: 460px;
  padding: 34px;
}
.hero-copy .eyebrow {
  margin-bottom: 12px;
}
.hero-copy h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin: 12px 0 18px;
  font-size: 15px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}
.hero-copy .button {
  margin-top: auto;
}
.access-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
}
.access-card .button {
  margin-top: 6px;
}
.access-card .text-link {
  margin-top: 14px;
}

/* Library */
.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
}
.library-heading .section-heading {
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 18px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.035em;
}
.section-heading p {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 13px;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #121212;
}
.segmented button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--subtle);
  font-size: 13px;
  white-space: nowrap;
}
.segmented button:hover {
  color: var(--text);
}
.segmented button.active {
  background: #2b2715;
  border-color: #534719;
  color: var(--accent);
  box-shadow: inset 0 1px #ffffff0d;
}
.course-shelf {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.course-shelf:first-child {
  border-top: 0;
  padding-top: 0;
}
.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.course-heading {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}
.course-dot {
  width: 3px;
  flex: none;
  border-radius: 2px;
  background: var(--accent);
}
.course-dot.red {
  background: var(--red);
}
.course-heading h2 {
  font-size: 19px;
  letter-spacing: -0.03em;
}
.course-heading p {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 13px;
}
.shelf-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rail-buttons {
  display: flex;
  gap: 6px;
}
.module-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.module-rail::-webkit-scrollbar {
  display: none;
}
.module-rail > * {
  scroll-snap-align: start;
}
.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.module-card {
  min-width: 0;
}
.poster-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0a;
}
.poster-open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  text-align: left;
}
.poster-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.portrait-cover {
  object-position: 78% center;
}
.poster-open:hover img {
  transform: scale(1.04);
}
.poster-frame:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.poster-open:focus-visible {
  outline: 0;
}
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #00000059 0%,
    transparent 22%,
    transparent 48%,
    #000000d9 86%
  );
}
.poster-number {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 7px;
  border: 1px solid #ffffff26;
  border-radius: 5px;
  background: #0009;
  backdrop-filter: blur(6px);
  font: 500 11px/18px var(--mono);
  color: #e6e6e6;
}
.poster-titles {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.poster-titles strong {
  display: block;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  background: #0009;
  backdrop-filter: blur(6px);
  color: #e6e6e6;
}
.save-button .icon {
  width: 16px;
  height: 16px;
}
.save-button:hover {
  border-color: #ffffff59;
}
.save-button.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.save-button.is-saved .icon {
  fill: currentColor;
}
.poster-completed {
  position: absolute;
  top: 44px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
}
.module-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 8px;
  font-size: 12px;
  color: var(--subtle);
}
.module-card-meta i {
  font-style: normal;
  margin: 0 3px;
}
.module-card-meta .lock {
  display: inline-flex;
}
.module-card > .progress-track {
  margin: 0 2px;
}
.cover-fallback {
  display: grid;
  place-content: center;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, #3a3214, #0e0e0e 70%);
  color: var(--accent);
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.05em;
}
.cover-fallback span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 1px solid #3d3517;
  border-radius: 16px;
  background: linear-gradient(145deg, #2c2714, #17150d);
  box-shadow:
    inset 0 1px #ffffff1c,
    0 8px 20px #0005;
  color: var(--accent);
}
.empty-state h2 {
  font-size: 20px;
}
.empty-state p {
  max-width: 400px;
  margin: 8px 0 22px;
  color: var(--muted);
}

/* Lists */
.list-panel {
  padding: 6px 20px;
}
.list-panel.flush {
  padding: 0;
}
.search-result,
.resume-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.search-result:last-child,
.resume-row:last-child {
  border-bottom: 0;
}
.search-result > span:nth-child(2),
.resume-copy {
  flex: 1;
  min-width: 0;
}
.search-result strong,
.resume-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.search-result small,
.resume-copy small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}
.search-result > .icon,
.resume-row > .icon {
  color: var(--subtle);
}
.search-result:hover strong,
.resume-row:hover strong {
  color: var(--accent);
}
.search-section {
  margin-bottom: 32px;
}
.search-section > h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 12px;
}
.resume-thumb {
  position: relative;
  width: 48px;
  aspect-ratio: 9 / 16;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.resume-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resume-thumb i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0007;
  color: #fff;
}
.resume-copy small {
  margin: 0 0 3px;
}
.resume-copy .progress-track {
  margin-top: 10px;
  max-width: 320px;
}
.resume-time {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.resume-time b {
  color: var(--text);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.resume-time small {
  display: block;
  color: var(--subtle);
  font-size: 12px;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.note-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.note-card .eyebrow {
  margin-bottom: 8px;
}
.note-card h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.note-excerpt {
  margin: 14px 0 18px;
  padding: 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: #121212;
  color: var(--muted);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  color: var(--subtle);
}

/* Course and module */
.course-overview {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0a0a0a;
}
.course-overview.red > img {
  object-position: center 60%;
  width: 55%;
  left: auto;
}
.course-overview-copy {
  position: relative;
  max-width: 580px;
  padding: 40px;
}
.course-overview-copy .eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
}
.course-overview.red .eyebrow {
  color: #f08a7d;
}
.course-overview h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.course-overview-copy > p:not(.eyebrow) {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
}
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.price-caption {
  color: var(--muted);
  font-size: 13px;
}
.overview-progress {
  display: grid;
  gap: 10px;
  max-width: 380px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}
.module-detail {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.module-detail-content {
  padding-top: 6px;
}
.module-detail-content .eyebrow {
  margin-bottom: 12px;
}
.module-detail-content h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.module-description {
  max-width: 620px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.module-progress {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 22px;
  padding: 18px 20px;
}
.module-progress span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.module-progress strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.module-progress strong small {
  font-size: 13px;
  color: var(--subtle);
  letter-spacing: 0;
}
.lessons-panel {
  margin-top: 32px;
  padding: 24px;
}
.lesson-step {
  grid-template-columns: 32px minmax(0, 1fr) auto 16px;
}

/* Classroom */
.classroom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.classroom.focus-mode {
  grid-template-columns: minmax(0, 1fr);
}
.classroom.focus-mode .playlist {
  display: none;
}
.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.video-error,
.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: #0e0e0ef2;
}
.video-error[hidden] {
  display: none;
}
.video-empty .icon {
  color: var(--accent);
}
.video-error p,
.video-empty p {
  color: var(--muted);
  margin-bottom: 10px;
}
/* Player settings live inside the video, over the top edge; native controls keep the bottom. */
.player-demo {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border: 1px solid #ffffff26;
  border-radius: 5px;
  background: #0009;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.player-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.16s;
}
.video-box:hover .player-tools,
.player-tools:focus-within {
  opacity: 1;
}
.player-speed select {
  appearance: none;
  height: 32px;
  padding: 0 26px 0 10px;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  background: #000a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6e6e6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center / 12px;
  color: var(--text);
  font: 500 12px var(--mono);
  backdrop-filter: blur(6px);
}
.player-tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  background: #000a;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.player-tool[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.next-up {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 12px 14px;
  border: 1px solid #5a4c1c;
  border-radius: var(--radius-control);
  background: #1e1b11;
  animation: rise 0.36s var(--ease);
}
.next-up > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.next-up small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.next-up strong {
  font-size: 14px;
  font-weight: 550;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.lesson-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--border-subtle);
}
.lesson-heading .eyebrow {
  margin-bottom: 8px;
}
.lesson-heading h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.lesson-meta {
  margin-top: 6px;
  color: var(--subtle);
  font-size: 13px;
}
.lesson-description {
  margin-bottom: 20px;
  color: var(--muted);
  max-width: 760px;
}
.lesson-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.lesson-count {
  font-size: 13px;
  color: var(--subtle);
}
.lesson-count b {
  color: var(--text);
  font-weight: 550;
}
.notebook {
  margin-top: 24px;
  padding: 20px;
}
.notebook-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.notebook-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.notebook-heading h2 .icon {
  color: var(--accent);
}
.notebook-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--subtle);
}
.notebook textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: #121212;
  outline: 0;
  resize: vertical;
  line-height: 1.6;
  box-shadow: inset 0 2px 4px #0003;
}
.notebook textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffe60014;
}
.notebook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--subtle);
}
.playlist {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 108px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.playlist-heading {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.playlist-heading .eyebrow {
  margin-bottom: 6px;
}
.playlist-heading h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.playlist-progress {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.playlist-body {
  overflow-y: auto;
  scrollbar-width: thin;
}
.playlist details {
  border-bottom: 1px solid var(--border-subtle);
}
.playlist summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.playlist summary::-webkit-details-marker {
  display: none;
}
.playlist summary strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}
.playlist summary small {
  font-size: 12px;
  color: var(--subtle);
}
.playlist summary > .icon {
  color: var(--subtle);
  transition: transform 0.2s;
}
.playlist details[open] summary > .icon {
  transform: rotate(180deg);
}
.playlist details > div {
  padding-bottom: 8px;
}
.playlist-lesson {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px 18px 10px 24px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.playlist-lesson small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}
.playlist-lesson:hover {
  background: #1b1b1b;
  color: var(--text);
}
.pl-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #3d3d3d;
  color: var(--subtle);
}
.pl-icon .icon {
  width: 11px;
  height: 11px;
}
.playlist-lesson.is-complete .pl-icon {
  background: var(--accent-tint);
  border-color: #3d3517;
  color: var(--accent);
}
.playlist-lesson.active {
  background: #1e1b11;
  color: var(--text);
}
.playlist-lesson.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.playlist-lesson.active .pl-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Account */
.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.account-profile h2 {
  font-size: 18px;
}
.account-profile p {
  color: var(--subtle);
  font-size: 13px;
  margin: 2px 0 10px;
  overflow-wrap: anywhere;
}
.account-grid > .panel:last-child {
  padding: 24px;
}

/* Access */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 100dvh;
}
.auth-main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 40px clamp(28px, 5vw, 78px);
}
.auth-brand {
  width: 132px;
}
.auth-content {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
  padding: 48px 0;
}
.auth-content .muted-link {
  margin-bottom: 36px;
}
.auth-content .eyebrow {
  margin-bottom: 10px;
}
.auth-content h1 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.auth-lead {
  color: var(--muted);
  margin: 8px 0 26px;
}
.auth-content .form-stack {
  margin-top: 26px;
}
.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.auth-content .small {
  margin-top: 18px;
  color: var(--subtle);
  font-size: 13px;
}
.auth-bottom {
  color: var(--subtle);
  font-size: 12px;
}
.auth-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-left: 1px solid var(--border-subtle);
  background: #0a0a0a;
}
.auth-stage::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: 1;
  background: radial-gradient(circle, #d9d2b5 0 1px, transparent 1.3px) 0 0 /
    28px 28px;
  opacity: 0.1;
  mask-image: radial-gradient(ellipse at 30% 60%, #000, transparent 62%);
  animation: stageDots 18s linear infinite;
  pointer-events: none;
}
.auth-stage-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, #0a0a0a 4%, #0a0a0a99 34%, transparent 62%),
    radial-gradient(ellipse 260px 300px at 70% 40%, #ffe60010, transparent 75%);
}
.auth-stage-copy {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
}
.auth-stage-copy .eyebrow {
  color: var(--accent);
  margin-bottom: 10px;
}
.auth-stage-copy h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 360px;
}
.auth-stage-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.auth-stage-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid #ffffff1f;
  border-radius: 7px;
  background: #0e0e0ecc;
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: var(--muted);
}
.auth-stage-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--accent-tint);
  color: var(--accent);
  font: 500 11px var(--mono);
}
@keyframes stageDots {
  to {
    transform: translate3d(28px, 28px, 0);
  }
}

/* Forms */
.academy-banner {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 32px;
}
.academy-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.module-card .module-card-meta {
  display: none;
}
.auth-field-error {
  color: var(--danger) !important;
  font-size: 12px;
}
.auth-content input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: var(--focus-ring-danger);
}
.form-stack {
  display: grid;
  gap: 14px;
}
.form-stack label,
.checkout-card label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.form-stack label small,
.field-help {
  font-size: 12px;
  font-weight: 450;
  color: var(--subtle);
}
.form-stack input:not([type="checkbox"]),
.form-stack select,
.form-stack textarea,
.checkout-card input,
.checkout-card textarea {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #383838;
  border-radius: var(--radius-control);
  background: #141414;
  outline: 0;
  box-shadow: inset 0 2px 4px #0003;
  font-weight: 450;
}
.form-stack select {
  padding-right: 34px;
}
.form-stack textarea,
.checkout-card textarea {
  height: 104px;
  padding: 12px 14px;
  resize: vertical;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.checkout-card input:focus,
.checkout-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffe60014;
}
.form-stack input::placeholder,
.checkout-card input::placeholder {
  color: #6f6f6f;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 450 !important;
  color: var(--muted);
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Producer panel */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.metric {
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.metric .numeral {
  font-size: 40px;
  margin: 20px 0 auto;
}
.metric small {
  margin-top: 12px;
  font-size: 12px;
  color: var(--subtle);
}
.metric.featured {
  border-top: 2px solid var(--accent);
  background: #1b1912;
}
.metric.featured .numeral {
  color: var(--accent);
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.admin-overview-grid > .panel {
  padding: 24px;
}
.admin-overview-grid .search-result .chip {
  flex: none;
}
.admin-course {
  padding: 24px;
  margin-bottom: 18px;
}
.admin-course-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-course-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.admin-course-heading h2 {
  font-size: 20px;
}
.admin-course-heading p {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 13px;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-module-list {
  display: grid;
  gap: 8px;
}
.admin-module {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #191919;
}
.admin-module-summary {
  display: grid;
  grid-template-columns: 40px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
}
.admin-module-summary img {
  width: 40px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 5px;
}
.admin-module-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  font: 500 12px var(--mono);
  color: var(--muted);
}
.admin-module-name {
  min-width: 0;
}
.admin-module-name h3 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.admin-module-name p {
  font-size: 12px;
  color: var(--subtle);
}
.admin-module-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-lessons {
  border-top: 1px solid var(--border-subtle);
  padding: 0 12px;
}
.admin-lessons summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.admin-lessons summary::-webkit-details-marker {
  display: none;
}
.admin-lessons[open] summary .icon {
  transform: rotate(180deg);
}
.admin-lessons > .text-link {
  margin: 10px 0 14px;
}
.admin-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}
.admin-lesson-row small {
  display: block;
  color: var(--subtle);
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
}
td.num {
  font-variant-numeric: tabular-nums;
}
.cell-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-action {
  text-align: right;
}

/* Overlays */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000b;
  backdrop-filter: blur(4px);
}
.modal {
  width: min(100%, 540px);
  max-height: 90dvh;
  overflow: auto;
  padding: 26px;
  border: 1px solid #3d3d3d;
  border-radius: 14px;
  background: #1a1a1a;
  box-shadow:
    0 32px 100px #000b,
    inset 0 1px #ffffff0a;
  animation: rise 0.24s var(--ease);
}
.modal.wide {
  width: min(100%, 700px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 19px;
}
.modal > .muted {
  margin-bottom: 8px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.button.danger {
  border: 1px solid var(--danger);
  background: var(--danger-tint);
  color: var(--danger);
  box-shadow: none;
}
.button.danger:hover {
  background: #3a2020;
}
.button.danger:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring-danger);
}
.confirm-dialog {
  width: min(100%, 440px);
  padding: 24px;
}
.confirm-dialog > h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.confirm-dialog > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.confirm-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid;
  border-radius: 11px;
}
.confirm-glyph .icon {
  width: 22px;
  height: 22px;
}
.confirm-glyph.danger {
  border-color: var(--danger-tint);
  background: var(--danger-tint);
  color: var(--danger);
}
.confirm-glyph.success {
  border-color: var(--success-tint);
  background: var(--success-tint);
  color: var(--success);
}
.drawer-backdrop {
  display: block;
  padding: 0;
}
.member-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(480px, 100%);
  height: 100dvh;
  max-height: none;
  flex-direction: column;
  padding: 0;
  border-radius: 14px 0 0 14px;
  animation: drawer-in 0.24s var(--ease);
}
.member-drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.member-drawer-head > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 4px;
}
.member-drawer-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.member-drawer-head small {
  color: var(--subtle);
  font-size: 11px;
}
.member-drawer-head .chip {
  width: max-content;
  margin-top: 2px;
}
.avatar.xl {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface3);
  font:
    600 19px Geist,
    system-ui,
    sans-serif;
}
.member-drawer-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.member-drawer-section > .eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
}
.drawer-access-list {
  display: grid;
  gap: 10px;
}
.drawer-access-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
}
.drawer-access-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.drawer-access-list article strong {
  font-weight: 500;
}
.drawer-access-list article span,
.drawer-access-list article small {
  color: var(--subtle);
  font: 11px var(--mono);
}
.drawer-activity article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-activity article:last-child {
  border-bottom: 0;
}
.drawer-activity .glyph {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.drawer-activity .glyph.success {
  color: var(--success);
  background: var(--success-tint);
}
.drawer-activity .glyph.accent {
  color: var(--accent);
  background: var(--accent-tint);
}
.drawer-activity p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.drawer-activity p strong,
.drawer-activity p small {
  display: block;
}
.drawer-activity p strong {
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 600;
}
.drawer-activity p small {
  margin-top: 3px;
  color: var(--subtle);
}
.member-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding: 20px 24px 28px;
}
@keyframes drawer-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}
.cover-editor {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cover-preview {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
}
.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-preview span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #000a;
  font: 500 11px/18px var(--mono);
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px 13px 14px;
  border: 1px solid #3d3d3d;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #1c1c1c;
  box-shadow: 0 18px 40px #000a;
  font-size: 13px;
  animation: rise 0.24s var(--ease);
}
.toast.error {
  border-left-color: var(--danger);
}
.load-error {
  display: grid;
  place-content: center;
  gap: 12px;
  min-height: 100dvh;
  padding: 24px;
  text-align: center;
}
.load-error p {
  color: var(--muted);
}

/* Checkout keeps its own flow outside the app shell. */
.checkout-page {
  min-height: 100dvh;
  padding: 32px 16px 48px;
  background:
    radial-gradient(ellipse at 50% 0%, #ffe6000d, transparent 50%), var(--bg);
}
.checkout-back {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--subtle);
  font-size: 13px;
}
.checkout-back:hover {
  color: var(--text);
}
.checkout-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.checkout-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout-product img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}
.checkout-product h1 {
  font-size: 18px;
  line-height: 1.25;
}
.checkout-product p,
.checkout-description,
.checkout-note {
  color: var(--subtle);
  font-size: 13px;
}
.checkout-description {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #121212;
}
#checkout-form {
  display: grid;
  gap: 14px;
}
.checkout-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkout-methods legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.checkout-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #141414;
  font-size: 13px;
  font-weight: 500;
}
.checkout-method.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent);
}
/* Painted with the button's text color (yellow when selected). */
.pix-logo {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/assets/pix.svg") center / contain no-repeat;
  mask: url("/assets/pix.svg") center / contain no-repeat;
}
.checkout-pix {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121212;
}
.checkout-pix label {
  width: 100%;
}
.checkout-qr {
  width: 200px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.checkout-total {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.checkout-total b {
  color: var(--text);
  font-weight: 600;
}
.checkout-submit {
  width: 100%;
  min-height: 50px;
}
.checkout-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 12px;
}
.checkout-status {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.checkout-status-logo {
  width: 140px;
  filter: invert(1);
}
.checkout-status p {
  color: var(--muted);
}

/* Breakpoints change information priority, not just scale. */
@media (max-width: 1280px) {
  .classroom {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .global-search {
    width: 240px;
  }
}
@media (max-width: 1080px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.28s var(--ease);
    box-shadow: 24px 0 60px #0008;
  }
  .menu-open .sidebar {
    transform: none;
  }
  .sidebar-close {
    display: grid;
  }
  .menu-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #000a;
  }
  .mobile-toggle {
    display: grid;
  }
  .topbar {
    padding: 0 24px;
  }
  .page {
    padding: 28px 24px;
  }
  .module-rail {
    grid-auto-columns: calc((100% - 2 * 16px) / 3);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .hero-card,
  .access-card {
    grid-column: 1 / -1;
  }
  .classroom {
    grid-template-columns: minmax(0, 1fr);
  }
  .playlist {
    position: static;
    max-height: none;
  }
  .module-detail {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
  .admin-overview-grid,
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 16px 12px;
  }
  .mobile-mark {
    display: block;
  }
  .breadcrumb,
  .demo-switch {
    display: none;
  }
  .top-actions {
    display: contents;
  }
  .account-wrap,
  .topbar > .top-actions > .button {
    margin-left: auto;
  }
  .global-search {
    order: 5;
    width: 100%;
    height: 42px;
  }
  .global-search kbd {
    display: none;
  }
  .page {
    padding: 22px 16px calc(96px + env(safe-area-inset-bottom));
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 28px;
  }
  .page-actions {
    justify-content: flex-start;
  }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #121212f0;
    backdrop-filter: blur(12px);
  }
  .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 50px;
    padding-top: 6px;
    border-radius: 8px;
    color: var(--subtle);
    font-size: 11px;
  }
  .bottom-nav button.active {
    color: var(--accent);
    background: #231f10;
  }
  .bottom-nav .icon {
    width: 20px;
    height: 20px;
  }
  .command-grid {
    gap: 14px;
  }
  .page-head .page-actions {
    width: 100%;
  }
  .progress-summary {
    width: 100%;
    min-width: 0;
  }
  .resume-bar {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 10px;
  }
  .resume-bar-copy {
    grid-template-columns: minmax(0, 1fr);
  }
  .resume-bar-track {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
  .resume-bar .button {
    grid-column: 1 / -1;
  }
  .step {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
  }
  .step .step-state {
    display: none;
  }
  .hero-card {
    min-height: 420px;
  }
  .hero-card > img {
    object-position: 72% center;
  }
  .hero-shade {
    background: linear-gradient(
      0deg,
      #0a0a0a 18%,
      #0a0a0acc 48%,
      transparent 80%
    );
  }
  .hero-copy {
    justify-content: flex-end;
    padding: 24px;
    height: 100%;
    min-height: 420px;
  }
  .hero-copy .button {
    margin-top: 0;
  }
  .access-card {
    padding: 24px;
    min-height: 0;
  }
  .library-heading {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
  }
  .shelf-header {
    align-items: flex-start;
  }
  .rail-buttons {
    display: none;
  }
  .module-rail {
    grid-auto-columns: 62%;
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
  }
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .poster-titles {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .poster-titles strong {
    font-size: 18px;
  }
  .module-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .module-detail-poster {
    max-width: 200px;
  }
  .course-overview {
    min-height: 0;
  }
  .course-overview > img,
  .course-overview.red > img {
    width: 100%;
    height: 240px;
    bottom: auto;
    object-position: 70% 20%;
  }
  .course-overview-shade {
    background: linear-gradient(
      0deg,
      #0a0a0a 55%,
      #0a0a0acc 68%,
      transparent 82%
    );
  }
  .course-overview-copy {
    padding: 190px 20px 22px;
  }
  .lessons-panel {
    padding: 18px;
  }
  .lesson-heading {
    flex-direction: column;
    gap: 14px;
  }
  .lesson-heading .button {
    width: 100%;
  }
  .lesson-count {
    display: none;
  }
  .lesson-navigation .button {
    flex: 1;
  }
  .notebook {
    padding: 16px;
  }
  .notebook-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .search-result small {
    overflow-wrap: anywhere;
  }
  .resume-time {
    display: none;
  }
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-shell {
    display: block;
  }
  .auth-stage {
    display: none;
  }
  .auth-main {
    padding: 28px 22px;
  }
  .auth-content h1 {
    font-size: 30px;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric {
    min-height: 0;
    padding: 18px;
  }
  .metric .numeral {
    font-size: 32px;
    margin-bottom: 0;
  }
  .admin-course {
    padding: 18px;
  }
  .admin-course-heading {
    flex-direction: column;
  }
  .admin-module-summary {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .admin-module-index {
    display: none;
  }
  .admin-module-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .modal-backdrop {
    padding: 12px;
    align-items: end;
  }
  .modal {
    padding: 20px;
  }
  .cover-editor,
  .form-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .cover-preview {
    width: 110px;
  }
  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 420px) {
  .saved-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .shelf-tools .text-link {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Figma 37:1580 — desktop home. Scoped to preserve checkout and mobile. */
@media (min-width: 1101px) {
  .is-signed-home .page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 48px;
  }
  .is-signed-home .page-head {
    margin: 0;
    padding-bottom: 6px;
  }
  .is-signed-home .page-head .eyebrow {
    margin-bottom: 8px;
  }
  .is-signed-home .progress-summary {
    width: 300px;
    min-width: 300px;
  }
  .is-signed-home .progress-summary .numeral {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
  }
  .is-signed-home .progress-summary .numeral small {
    font-size: 14px;
    font-weight: 400;
  }
  .is-signed-home .progress-summary .segments span {
    height: 6px;
  }
  .is-signed-home .resume-bar {
    margin: 0;
    box-shadow: var(--shadow);
  }
  .is-signed-home .resume-bar-thumb {
    height: 60px;
    aspect-ratio: auto;
  }
  .is-signed-home .resume-bar h2 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }
  .is-signed-home .resume-bar-track {
    background: var(--track);
  }
  .is-signed-home .home-banner {
    min-height: 0;
    height: 340px;
    margin: 0;
  }
  .is-signed-home .home-banner .hero-copy {
    padding: 0;
    position: absolute;
    top: 50%;
    left: 33px;
    width: 400px;
    height: auto;
    transform: translateY(-50%);
    max-width: none;
  }
  .is-signed-home .home-banner .hero-copy .button {
    margin-top: 0;
  }
  .is-signed-home .home-banner .hero-meta {
    margin-bottom: 20px;
  }
  .is-signed-home .home-banner > img {
    height: 232.56%;
    top: -18.6%;
    object-position: center;
  }
  .is-signed-home .home-banner.red > img {
    height: 100%;
    top: 0;
    object-position: center 60%;
  }
  .is-signed-home .hero-copy h2 {
    font-size: 46px;
  }
  .is-signed-home .library-heading {
    margin-top: 22px;
  }
  .is-signed-home .library-results {
    display: flex;
    flex-direction: column;
    gap: 64px;
  }
  .is-signed-home .course-shelf {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .is-signed-home .shelf-header {
    margin-bottom: 22px;
  }
  .is-signed-home .module-rail {
    grid-auto-columns: 240px;
    gap: 24px;
    padding-bottom: 0;
  }
  .is-signed-home .poster-frame {
    height: 427px;
    aspect-ratio: auto;
  }
  .is-signed-home .poster-titles strong {
    font-size: 22px;
    line-height: 1.2;
    text-wrap: initial;
  }
  .is-signed-home .poster-number {
    top: 11px;
    left: 11px;
    line-height: 1.4;
  }
  .is-signed-home .poster-completed {
    top: 43px;
    left: 11px;
    font-size: 12px;
    font-weight: 500;
  }
  .is-signed-home .save-button {
    top: 9px;
    right: 9px;
  }
  .is-signed-home .module-card-meta {
    line-height: 1.4;
  }
  .is-signed-home .module-card > .progress-track {
    margin: 0;
  }
  .is-signed-home .segmented button.active {
    background: var(--accent-tint);
    border-color: #3d3517;
    box-shadow: none;
  }
  .is-signed-home .button.secondary {
    background: var(--surface2);
    box-shadow: none;
  }
  .is-signed-home .button.secondary:hover {
    background: var(--surface3);
    border-color: var(--subtle);
  }
  .is-signed-home .icon {
    stroke-width: 2;
  }
}
@media (min-width: 1101px) {
  .is-signed-home .brand img {
    content: url("/assets/figma/brand-logo.png");
  }
  .is-signed-home :focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
}

/* Home: only the course banner and shelves; no introductory library heading. */
.guest-banner {
  width: 100%;
}
.library-heading {
  justify-content: flex-end;
}
.guest-banner + .library-results {
  margin-top: 28px;
}

/* Student states from Figma: scoped away from checkout and producer screens. */
.notice-accent {
  background: #1d1a0f;
  border-color: #3d3517;
}
.video-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  background: var(--accent-tint);
  border: 1px solid #3d3517;
  border-radius: 12px;
}
.video-empty h2 {
  font-size: 19px;
  line-height: 1.25;
}
.video-empty .button {
  margin-top: 2px;
}
.system-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 40px 48px;
}
.system-brand {
  width: 128px;
  height: 39px;
  object-fit: contain;
}
.system-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 40px 0;
}
.system-center .eyebrow {
  color: var(--accent);
}
.system-center h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.system-center > p:not(.eyebrow) {
  max-width: 480px;
  font-size: 15px;
  color: var(--muted);
}
.system-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
}
.home-skeleton {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.skeleton {
  display: block;
  background: var(--surface3);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}
.skeleton-head {
  display: grid;
  gap: 12px;
  padding-bottom: 6px;
}
.skeleton-eyebrow {
  width: 140px;
  height: 10px;
}
.skeleton-title {
  width: 260px;
  height: 30px;
  border-radius: 6px;
}
.skeleton-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.skeleton-row > div {
  display: grid;
  gap: 10px;
}
.skeleton-thumb {
  width: 48px;
  height: 84px;
}
.skeleton-line {
  width: 260px;
  max-width: 100%;
  height: 10px;
}
.skeleton-short {
  width: 120px;
  max-width: 100%;
  height: 10px;
}
.skeleton-medium {
  width: 180px;
  max-width: 100%;
  height: 10px;
}
.skeleton-banner {
  height: 300px;
  border-radius: 12px;
}
.skeleton-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
}
.skeleton-cards > div {
  display: grid;
  gap: 10px;
}
.skeleton-card {
  width: 150px;
  max-width: 100%;
  aspect-ratio: 9/16;
  border-radius: 12px;
}
@keyframes skeleton-pulse {
  to {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}
@media (max-width: 600px) {
  .system-page {
    padding: 24px;
  }
  .skeleton-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1101px) {
  .view-product .course-overview {
    min-height: 0;
    height: 400px;
  }
  .view-product .course-overview:not(.red) > img {
    height: 212.77%;
    top: -12.77%;
  }
  .view-product .course-overview-copy {
    width: 440px;
    max-width: calc(100% - 80px);
    padding: 0;
    top: 39px;
    left: 39px;
  }
  .view-product .course-overview h1 {
    font-size: 46px;
    line-height: 1.05;
  }
  .view-product .course-overview-copy > p:not(.eyebrow) {
    margin: 12px 0 16px;
  }
  .view-product .overview-progress {
    margin-top: 18px;
    width: 320px;
  }
  .view-product .overview-progress > span {
    display: none;
  }
  .view-product .detail-actions {
    margin-top: 38px;
  }
  .view-product .notice {
    margin-top: 22px;
  }
  .view-product .saved-grid {
    grid-template-columns: repeat(auto-fill, 240px);
    gap: 24px;
  }
  .view-module .module-detail {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .view-module .module-detail-content h1 {
    font-size: 46px;
    line-height: 1.05;
  }
  .view-module .module-detail-content .notice {
    max-width: 560px;
    margin-top: 22px;
  }
  .view-module .step {
    background: var(--surface2);
  }
  .view-module .step.current {
    background: #262200;
  }
  :is(.view-product, .view-module) .poster-frame {
    height: 427px;
    aspect-ratio: auto;
  }
  :is(.view-product, .view-module) .poster-titles strong {
    font-size: 22px;
    line-height: 1.2;
    text-wrap: initial;
  }
  :is(
      .view-product,
      .view-module,
      .view-lesson,
      .view-continue,
      .view-notes,
      .view-saved
    )
    .button.secondary {
    background: var(--surface2);
    box-shadow: none;
  }
  .view-lesson .button.secondary.is-done {
    background: #18221d;
    color: var(--success);
    border-color: #18221d;
  }
  .view-lesson .lesson-heading h1 {
    line-height: 1.15;
  }
  .view-lesson .next-up {
    background: var(--accent-tint);
    border-color: #3d3517;
  }
  .view-lesson .video-empty {
    background: #121212;
  }
}
.view-module .notice,
.notice-accent {
  flex-wrap: nowrap;
}
.view-module .notice > span,
.notice-accent > span {
  flex: 1;
  min-width: 0;
}
.app-shell {
  --accent-line: #3d3517;
  --warning-tint: #261d15;
}
@media (min-width: 1101px) {
  .app-shell .empty-state {
    box-shadow: none;
  }
  .app-shell .empty-state h2 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }
}

/* Producer views — Figma 53:6809, 41:3683 and 53:7146. */
.producer-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.producer-header {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.producer-header .page-head {
  margin: 0;
}
.producer-header .page-head .eyebrow {
  margin-bottom: 8px;
}
.producer-header .page-head p:not(.eyebrow) {
  margin-top: 8px;
}
.producer-page .button.secondary {
  background: var(--surface2);
  box-shadow: none;
}
.producer-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.producer-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 14px;
  font-size: 13px;
  color: var(--subtle);
}
.producer-tabs button.active {
  color: var(--text);
  font-weight: 600;
}
.producer-tabs button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.producer-tabs small {
  padding: 0 5px;
  border-radius: 3px;
  background: var(--surface3);
  font: 500 10px/1.4 var(--mono);
}
.producer-tabs .active small {
  color: var(--accent);
  background: var(--accent-tint);
}
.producer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.producer-stat {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 160px;
}
.producer-stat > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.producer-stat .glyph {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent);
}
.producer-stat > strong {
  display: block;
  margin: 22px 0 4px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.producer-stat > p {
  max-width: 62%;
  font-size: 12px;
  line-height: 1.4;
  color: var(--subtle);
}
.trend-badge {
  display: inline-flex;
  margin-left: auto;
  padding: 2px 6px;
  white-space: nowrap;
  background: #18221d;
  color: var(--success);
  border-radius: 4px;
  font-size: 10px;
}
.stat-spark {
  position: absolute;
  bottom: 18px;
  right: 20px;
  width: 76px;
  height: 40px;
}
.report-charts {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}
.report-charts > :only-child {
  grid-column: 1 / -1;
}
.report-chart {
  padding: 22px;
}
.report-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.report-card-heading h2 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.report-card-heading p {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 4px;
}
.report-period {
  padding: 3px;
}
.report-period button {
  padding: 0 10px;
  min-height: 32px;
  font-size: 12px;
}
.chart-value {
  display: block;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 18px;
  letter-spacing: -0.04em;
}
.report-plot {
  display: block;
  width: 100%;
  height: 225px;
  overflow: visible;
  margin-top: 16px;
}
.chart-label {
  fill: var(--subtle);
  font: 11px var(--mono);
}
.chart-point {
  outline: none;
  cursor: crosshair;
}
.chart-tooltip {
  visibility: hidden;
  pointer-events: none;
}
.chart-point:hover .chart-tooltip,
.chart-point:focus-visible .chart-tooltip {
  visibility: visible;
}
.report-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.report-modules,
.progress-distribution {
  padding: 22px;
}
.top-module-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.top-module-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.rank {
  color: var(--accent);
  font: 500 11px var(--mono);
}
.top-module-row img {
  width: 32px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
}
.top-module-row > span:not(.rank) {
  flex: 1;
  min-width: 0;
}
.top-module-row strong {
  font-size: 13px;
  font-weight: 500;
}
.top-module-row .progress-track {
  max-width: 220px;
  margin-top: 8px;
}
.top-module-row > small {
  display: grid;
  text-align: right;
  font-size: 11px;
  gap: 4px;
  color: var(--subtle);
}
.top-module-row > small strong {
  font-size: 12px;
  color: var(--text);
}
.producer-page select {
  min-height: 38px;
  max-width: 220px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.distribution-track {
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  margin: 18px 0;
  gap: 2px;
}
.distribution-track i {
  background: var(--accent);
}
.distribution-track i:nth-child(2) {
  background: #9a8531;
}
.distribution-track i:nth-child(3) {
  background: var(--surface3);
}
.distribution-key {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.distribution-key small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 8px;
}
.distribution-key strong {
  font-size: 24px;
  font-weight: 500;
}
.distribution-key span {
  font-size: 12px;
  color: var(--subtle);
  margin-left: 6px;
}
.distribution-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
.distribution-dot.tone-1 {
  background: #9a8531;
}
.distribution-dot.tone-2 {
  background: var(--surface3);
}
.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  border: 1.5px dashed var(--border-strong);
  background: var(--sidebar);
  border-radius: 12px;
}
.upload-dropzone:hover {
  border-color: var(--accent);
}
.upload-dropzone .glyph {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
}
.upload-dropzone > strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.upload-dropzone .progress-track {
  width: 300px;
  max-width: 100%;
}
.upload-dropzone small {
  color: var(--subtle);
  font-size: 12px;
}
.media-list {
  padding: 8px 22px;
}
.media-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.media-row:last-child {
  border-bottom: 0;
}
.media-row > .glyph {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted);
}
.media-copy {
  flex: 1;
  min-width: 0;
}
.media-copy strong,
.media-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-copy strong {
  font-size: 14px;
  font-weight: 500;
}
.media-copy small {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}
.producer-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}
.producer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--subtle);
}
.producer-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  background: transparent;
  font-size: 13px;
}
.producer-filters > .button {
  margin-left: auto;
}
.enrollment-table {
  box-shadow: none;
}
.enrollment-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 500;
}
.enrollment-table td {
  font-size: 13px;
}
.enrollment-table td:first-child {
  width: 30%;
}
.enrollment-table td:nth-child(2) {
  width: 15%;
}
.enrollment-table td:last-child {
  text-align: right;
}
.producer-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
}
.producer-pagination span {
  color: var(--accent);
  font: 500 12px var(--mono);
}
.producer-pagination small {
  color: var(--subtle);
  margin-left: 4px;
  font-size: 12px;
}
.is-admin .nav-group {
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .producer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-charts,
  .report-bottom {
    grid-template-columns: 1fr;
  }
  .producer-filters {
    flex-wrap: wrap;
  }
  .producer-tabs {
    overflow-x: auto;
  }
  .producer-tabs button {
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .producer-stats {
    grid-template-columns: 1fr;
  }
  .producer-filters > * {
    max-width: 100%;
  }
  .report-card-heading {
    flex-wrap: wrap;
  }
  .distribution-key {
    flex-wrap: wrap;
  }
  .media-row {
    flex-wrap: wrap;
  }
  .media-copy {
    min-width: 160px;
  }
  .report-plot {
    height: 180px;
  }
}
.producer-page .icon,
.is-admin .nav-link .icon {
  stroke-width: 2;
}

/* Coupons and settings — producer UI kit */
.coupon-table {
  overflow: hidden;
  padding: 0;
}
.coupon-table-heading {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.coupon-table-heading h2,
.settings-card-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.coupon-table-heading p,
.settings-card-heading p {
  margin: 5px 0 0;
  color: var(--subtle);
  font-size: 12px;
}
.coupon-table .table-wrap {
  border: 0;
  border-radius: 0;
}
.coupon-table th:first-child,
.coupon-table td:first-child {
  width: 19%;
}
.coupon-table th:nth-child(3),
.coupon-table td:nth-child(3) {
  width: 24%;
}
.coupon-table td:last-child {
  text-align: right;
}
.coupon-code {
  font: 500 12px var(--mono);
  letter-spacing: 0.05em;
}
.coupon-use {
  display: grid;
  grid-template-columns: minmax(90px, 120px) auto;
  align-items: center;
  gap: 10px;
}
.coupon-use .progress-track {
  height: 6px;
}
.coupon-use small {
  color: var(--subtle);
  font: 11px var(--mono);
  white-space: nowrap;
}
.notice.compact {
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
}
.settings-page form {
  display: grid;
  gap: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}
.settings-grid > div,
.settings-grid > aside,
.settings-single {
  display: grid;
  gap: 22px;
}
.settings-single {
  max-width: 780px;
}
.settings-card {
  padding: 22px;
}
.settings-card-heading {
  margin-bottom: 20px;
}
.settings-card-heading.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-fields label,
.card-editor label:not(.setting-switch) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.settings-fields label.full {
  grid-column: 1 / -1;
}
.settings-fields input,
.settings-fields select,
.card-editor label input {
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
}
.settings-fields input:focus,
.settings-fields select:focus,
.card-editor label input:focus {
  border-color: var(--accent);
  outline: 3px solid var(--focus-ring);
}
.settings-fields input:disabled {
  color: var(--subtle);
  background: var(--sidebar);
  cursor: not-allowed;
}
.settings-fields label > small,
.card-editor label:not(.setting-switch) > small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 400;
}
.settings-logo-drop {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--sidebar);
  color: var(--muted);
}
.settings-logo-drop:hover,
.settings-logo-drop:focus-visible {
  border-color: var(--accent);
}
.settings-logo-drop img {
  width: auto;
  max-width: 220px;
  height: 44px;
  object-fit: contain;
}
.settings-logo-drop .glyph {
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--accent-tint);
}
.settings-logo-drop strong {
  font-size: 13px;
  font-weight: 500;
}
.settings-logo-drop small {
  color: var(--subtle);
  font-size: 11px;
}
.setting-list {
  display: grid;
}
.setting-list > h3 {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.setting-switch {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
}
.setting-switch > span {
  flex: 1;
  display: grid;
  gap: 3px;
}
.setting-switch strong {
  font-size: 13px;
  font-weight: 500;
}
.setting-switch small {
  color: var(--subtle);
  font-size: 11px;
}
.setting-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.setting-switch > i {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface3);
  transition: 150ms ease;
}
.setting-switch > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: 150ms ease;
}
.setting-switch input:checked + i {
  border-color: var(--accent);
  background: var(--accent);
}
.setting-switch input:checked + i::after {
  transform: translateX(16px);
  background: var(--accent-ink);
}
.setting-switch input:focus-visible + i {
  outline: 3px solid var(--focus-ring);
}
.settings-savebar {
  position: sticky;
  z-index: 3;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--sidebar) 94%, transparent);
  box-shadow: 0 12px 32px #0008;
  backdrop-filter: blur(12px);
}
.settings-savebar > span {
  margin-right: auto;
  color: var(--subtle);
  font-size: 12px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.team-row > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}
.team-row strong {
  font-size: 13px;
  font-weight: 500;
}
.team-row small {
  color: var(--subtle);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .settings-fields {
    grid-template-columns: 1fr;
  }
  .settings-fields label.full {
    grid-column: auto;
  }
  .settings-savebar {
    flex-wrap: wrap;
  }
  .settings-savebar > span {
    width: 100%;
  }
}

/* Checkout coupon */
.checkout-coupon {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.checkout-coupon label {
  flex: 1;
}

/* Connected services (settings) */
.service-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
}
.service-row > span {
  display: grid;
  gap: 3px;
}
.service-row strong {
  font-size: 13px;
  font-weight: 500;
}
.service-row small {
  color: var(--subtle);
  font-size: 12px;
}

/* Settings → Integrations */
.integrations {
  display: grid;
  gap: 16px;
}
.integration-steps {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.integration-steps a {
  color: var(--accent);
}
.integration-steps b {
  color: var(--text);
  font-weight: 500;
}
.integration-extra {
  margin-top: 12px;
}
.integration-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.copy-field {
  display: flex;
  gap: 8px;
}
.copy-field input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
}

/* Full admin control: delete, images, lesson order, team */
.modal-actions .push-left {
  margin-right: auto;
}
.danger-text,
.text-link.danger-text {
  color: var(--danger);
}
.admin-lesson-row > span:nth-child(2) {
  flex: 1;
}
.lesson-order {
  display: flex;
  gap: 2px;
}
.lesson-order .icon-button {
  width: 28px;
  height: 28px;
}
.image-field-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 6px;
}
.image-field-row img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.image-field-row > span {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.image-field-row small {
  color: var(--subtle);
  font-size: 12px;
}
.drawer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-row > span:nth-child(2) {
  flex: 1;
}
.team-actions {
  display: flex;
  gap: 12px;
}
.account-edit {
  grid-column: 1 / -1;
  order: 3;
  padding: 24px;
}

/* Lesson materials, locked modules, appearance */
.lesson-materials {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 18px 20px;
}
.lesson-materials h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.material-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text);
  text-decoration: none;
}
.material-row > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.material-row strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-row small {
  color: var(--subtle);
  font-size: 12px;
}
a.material-row:hover strong {
  color: var(--accent);
}
.materials-editor {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.materials-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.materials-heading strong {
  font-size: 13px;
  font-weight: 500;
}
.advanced-field summary {
  cursor: pointer;
  color: var(--subtle);
  font-size: 12px;
}
.advanced-field[open] summary {
  margin-bottom: 8px;
}
.poster-locked {
  background: var(--surface3);
  color: var(--muted);
}
.appearance-fields .image-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.appearance-fields .image-field-row img {
  object-fit: contain;
  background: var(--surface3);
}
.appearance-fields .image-field-row img.on-light {
  background: #f2f2f2;
}

/* Home cards (membro fundador, Grupo VIP, app) */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
.home-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.home-card-art {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}
.home-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}
.home-card p span,
.home-card p strong {
  display: block;
}
.home-card p strong {
  color: var(--text);
  font-weight: 500;
}
.home-card .button {
  flex: 0 0 auto;
}
.home-card-app {
  border-color: var(--accent);
  background: var(--accent);
}
.home-card-app p {
  color: #3d3517;
}
.home-card-app p strong {
  color: var(--accent-ink);
}
.button.on-accent {
  border: 1px solid var(--accent-ink);
  background: transparent;
  color: var(--accent-ink);
  box-shadow: none;
}
.button.on-accent:hover {
  background: #0000000f;
}
.home-card-earned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 10px 2px 4px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.founder-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.vip-modal {
  width: min(100%, 360px);
}
.vip-modal-art {
  display: grid;
  place-items: center;
  height: 132px;
  margin-bottom: 16px;
  border-radius: var(--radius-control);
  background: var(--accent);
}
.vip-modal-art img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.vip-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.install-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}
.install-steps b {
  color: var(--text);
  font-weight: 500;
}
.card-editors {
  display: grid;
  gap: 16px;
}
.card-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.card-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-editor-head .setting-switch {
  min-height: 0;
  border-top: 0;
}
.card-editor .image-field-row img {
  width: 52px;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  border: 0;
}
@media (max-width: 640px) {
  .home-card {
    padding: 12px;
  }
  .home-card p {
    font-size: 14px;
  }
}
/* Cards sit close to the banner above them (Figma: 18px). */
.academy-banner:has(+ .home-cards) {
  margin-bottom: 0;
}
.academy-banner + .home-cards {
  margin-top: 18px;
  margin-bottom: 8px;
}
/* Founder medal pinned to the avatar corner (sidebar). */
.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
}
.avatar-founder {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px #000a);
}
/* Continue-watching card (first slot for signed-in students). */
.home-card-thumb {
  width: 40px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}
.home-card-continue p {
  min-width: 0;
}
.home-card-continue p strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-card .button svg {
  margin-right: 2px;
}

/* ---- Admin modals: layout that never overlaps or overflows ---- */
.modal .form-stack,
.modal .form-stack > *,
.modal label {
  min-width: 0;
}
.form-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.image-fields {
  display: grid;
  gap: 14px;
}
.image-field-row {
  flex-wrap: wrap;
}
.image-field-row > span {
  flex: 1 1 180px;
  min-width: 0;
}
.image-field-row .button {
  max-width: 100%;
}
/* Checkboxes drawn by the theme: the native unchecked box vanished on dark. */
.checkbox-label {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px !important;
  row-gap: 2px !important;
  cursor: pointer;
}
.checkbox-label small {
  grid-column: 2;
}
.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface2);
  cursor: pointer;
  transition: 120ms ease;
}
.checkbox-label input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317140a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
.checkbox-label input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Save/Cancel always visible at the bottom of long modals. */
.modal form > .modal-actions,
.modal > .modal-actions {
  position: sticky;
  bottom: -26px;
  z-index: 2;
  margin: 10px -26px -26px;
  padding: 16px 26px 22px;
  background: #1a1a1a;
}
.modal .cover-editor .form-stack {
  gap: 12px;
}
.modal .cover-editor .button {
  justify-self: start;
}
.modal .materials-editor {
  min-width: 0;
}
.modal .materials-heading {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: calc(100dvh - 20px);
    padding: 20px 18px;
  }
  .modal form > .modal-actions,
  .modal > .modal-actions {
    bottom: -20px;
    margin: 10px -18px -20px;
    padding: 14px 18px 18px;
  }
  .modal .form-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal .cover-editor {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }
  .modal-actions .push-left {
    margin-right: auto;
  }
  .modal-actions .button {
    padding-inline: 12px;
  }
}
@media (max-width: 420px) {
  .modal .cover-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal .cover-preview {
    width: 96px;
  }
}
@media (max-width: 600px) {
  .modal-actions .hide-mobile {
    display: none;
  }
  .modal-actions .push-left {
    width: 42px;
    padding-inline: 0;
    justify-content: center;
  }
}
/* Absolutely positioned helpers (sr-only text, hidden switch inputs) must stay
   inside their scroll box; otherwise they stretch the page sideways on mobile. */
.table-wrap,
.setting-switch {
  position: relative;
}
/* Mobile: home cards become a swipeable rail (next card peeks in). */
@media (max-width: 760px) {
  .home-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .home-cards::-webkit-scrollbar {
    display: none;
  }
  .home-cards > .home-card {
    min-width: 0;
    scroll-snap-align: start;
  }
  .home-cards:has(> .home-card:only-child) {
    grid-auto-columns: 100%;
  }
}

.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-photo-preview{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.profile-photo-preview [role=status]{font-size:12px;color:var(--muted)}
.banner-carousel{position:relative}.banner-slide[hidden]{display:none}.banner-slide img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:cover}.banner-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;background:#090909}.banner-controls button{min-width:44px;min-height:44px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.banner-controls button:focus-visible{outline:2px solid #ffe600;outline-offset:2px}.banner-dots{display:flex}.banner-dots button{position:relative}.banner-dots button:after{content:"";display:block;width:7px;height:7px;border-radius:50%;background:#777;margin:auto}.banner-dots button[aria-pressed=true]:after{background:#ffe600}.banner-controls button:hover{background:#ffffff12}

/* Seletor de foto: prévia e ações em um único campo. */
.profile-photo-field{padding-bottom:24px;border-bottom:1px solid var(--border)}
.profile-photo-label{display:block;font-size:14px;font-weight:500;margin-bottom:16px}
.profile-photo-editor{display:flex;align-items:center;gap:20px}
.avatar.profile-photo-avatar{width:80px;height:80px;flex:0 0 80px;border-radius:20px;font-size:25px;overflow:hidden;background:#1c1c1c;box-shadow:inset 0 0 0 1px #ffffff14}
.profile-photo-details{min-width:0}
.profile-photo-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.profile-photo-actions .button{min-height:42px}
.profile-photo-remove{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;min-height:42px;padding:0 4px;cursor:pointer;transition:color .15s}
.profile-photo-remove:hover{color:var(--text,#eee)}
.profile-photo-remove[hidden],.profile-photo-field input[hidden]{display:none}
.profile-photo-remove:focus-visible{outline:2px solid var(--accent,#ffe600);outline-offset:4px;border-radius:4px}
#profile-photo-help{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.65}
#profile-photo-help span{display:block}
#profile-photo-status{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
#profile-photo-status:empty{display:none}
@media(max-width:480px){.profile-photo-editor{gap:16px;align-items:flex-start}.avatar.profile-photo-avatar{width:68px;height:68px;flex-basis:68px;border-radius:17px;font-size:22px}.profile-photo-actions{gap:2px 12px}.profile-photo-actions .button{font-size:12px;padding-inline:12px}.profile-photo-remove{font-size:12px}}

/* Minha conta — Design DNA: painéis compactos e edição em foco. */
.account-page{max-width:1120px;margin-inline:auto}
.account-page>.page-heading,.account-page>.page-head{margin-bottom:28px}
.account-page .account-grid{grid-template-columns:minmax(260px,320px) minmax(0,1fr);grid-template-areas:"profile edit" "access edit";gap:20px 24px;align-items:start;grid-template-rows:auto 1fr}
.account-page .account-grid>.panel{box-shadow:none;border-color:var(--border-subtle);border-radius:16px}
.account-page .account-profile{grid-area:profile;flex-direction:column;align-items:flex-start;gap:20px;padding:28px;background:linear-gradient(145deg,var(--surface2),var(--surface) 65%)}
.account-page .account-profile>.avatar{width:64px;height:64px;border-radius:16px;font-size:23px;flex-shrink:0}
.account-page .account-profile>div{min-width:0;width:100%}
.account-page .account-profile h2{font-size:21px;line-height:1.3;letter-spacing:-.035em}
.account-page .account-profile p{font-size:13px;line-height:1.6;margin:6px 0 16px;color:var(--muted)}
.account-badges{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.account-badges .founder-badge{margin:0;font-size:11px}
.account-badges .chip{font-size:11px}
.account-page .account-edit{grid-area:edit;grid-column:auto;order:initial;padding:32px}
.account-page .panel-header{margin-bottom:24px}
.account-page .panel-header h2{font-size:19px;letter-spacing:-.025em}
.account-page .panel-header p{font-size:13px;line-height:1.6;margin-top:6px;color:var(--muted)}
.account-page .account-access{grid-area:access;padding:24px}
.account-access .panel-header{margin-bottom:16px}
.account-access .panel-header h2{font-size:16px}
.account-access .search-result{padding:16px 0;gap:12px;align-items:center}
.account-access .search-result:first-child{padding-top:4px}
.account-access .search-result:last-child{padding-bottom:0}
.account-access .glyph{width:36px;height:36px;border-radius:10px;flex-shrink:0}
.account-access .search-result strong{font-size:13px;line-height:1.45}
.account-access .search-result small{font-size:11px;line-height:1.5;margin-top:4px}
.account-course-info{flex:1;min-width:0}
.account-course-progress{display:block;height:3px;background:var(--surface3);border-radius:4px;overflow:hidden;margin-top:10px;width:100%}
.account-course-progress i{display:block;height:100%;background:var(--accent);border-radius:inherit}
.account-page #account-form{gap:24px}
.account-page .profile-photo-field{padding-bottom:24px;border-color:var(--border-subtle)}
.account-page .account-name-field label{font-size:13px}
.account-page #account-form input:not([type=hidden]):not([type=file]){min-height:46px;font-size:14px;background:var(--field);border-color:var(--border)}
.account-security{border-top:1px solid var(--border-subtle);padding-top:24px}
.account-section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
.account-section-icon{display:grid;place-items:center;width:32px;height:32px;background:var(--surface2);color:var(--muted);border:1px solid var(--border-subtle);border-radius:8px;flex-shrink:0}
.account-section-title h3{font-size:15px;font-weight:550;letter-spacing:-.02em;line-height:1.4}
.account-section-title p{font-size:12px;line-height:1.6;margin-top:4px;color:var(--muted)}
.account-security label{font-size:13px}
.account-page .account-save{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding-top:24px;border-top:1px solid var(--border-subtle)}
.account-save>span{max-width:190px;font-size:12px;color:var(--subtle);line-height:1.5}
.account-save .button{min-height:44px;font-size:13px;white-space:nowrap}
@media(max-width:1100px){.account-page .account-grid{grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:20px}.account-page .account-edit{padding:24px}.account-security .form-columns{grid-template-columns:1fr}.account-page .account-profile{padding:24px}.account-page .account-save{flex-wrap:wrap}}
@media(max-width:850px){.account-page{max-width:680px}.account-page .account-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"profile" "edit" "access";grid-template-rows:auto;gap:20px}.account-page .account-profile{flex-direction:row;align-items:center}.account-security .form-columns{grid-template-columns:1fr 1fr}.account-page .account-save{flex-wrap:nowrap}}
@media(max-width:480px){.account-page .account-grid>.panel{border-radius:14px}.account-page .account-profile,.account-page .account-edit,.account-page .account-access{padding:22px}.account-page .account-profile{gap:16px;align-items:flex-start}.account-page .account-profile>.avatar{width:48px;height:48px;border-radius:12px;font-size:18px}.account-page .account-profile h2{font-size:18px}.account-page .account-profile p{font-size:12px}.account-security .form-columns{grid-template-columns:1fr}.account-page .account-save{flex-direction:column;align-items:stretch;gap:16px}.account-save>span{max-width:none}.account-save .button{width:100%;justify-content:center}.account-page .account-access .search-result strong{font-size:14px}}

/* Controles sobre a arte: sem faixa ou altura adicional. */
.banner-carousel .banner-controls{position:absolute;inset:0;padding:0;background:none;pointer-events:none}
.banner-carousel .banner-controls button{pointer-events:auto;position:absolute;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;display:grid;place-items:center;border-radius:50%;background:#0007;color:#fff;opacity:0;transition:opacity .15s,background-color .15s}
.banner-carousel:hover .banner-controls button,.banner-carousel:focus-within .banner-controls button{opacity:1}
.banner-carousel .banner-controls button:hover{background:#000b}
.banner-carousel [data-banner-prev]{left:12px;top:calc(50% - 18px)}
.banner-carousel [data-banner-next]{right:12px;top:calc(50% - 18px)}
.banner-carousel .banner-dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);pointer-events:auto}
.banner-carousel .banner-dots button{position:relative;width:28px;min-width:28px;height:28px;min-height:28px;background:none;opacity:1}
.banner-carousel .banner-dots button:after{width:6px;height:6px;background:#fff8;box-shadow:0 1px 4px #0008}
.banner-carousel .banner-dots button[aria-pressed=true]:after{background:var(--accent)}
.banner-carousel [data-banner-pause]{right:12px;bottom:8px;font-size:0}
.banner-carousel [data-banner-pause]:before{content:'Ⅱ';font-size:15px;font-weight:600}
.banner-carousel [data-banner-pause][data-paused=true]:before{content:'▶';font-size:12px}
@media(hover:none){.banner-carousel .banner-controls button{opacity:.8}.banner-carousel .banner-dots button{opacity:1}}
@media(prefers-reduced-motion:reduce){.banner-carousel .banner-controls button{transition:none}}
