:root {
  --paper: #f4f8fc;
  --panel: #ffffff;
  --ink: #082048;
  --ink-soft: #2f4a6a;
  --muted: #6a7f96;
  --rule: #d7e4f0;
  --call: #0b9f8a;
  --present: #0b7dd6;
  --warn: #0b7dd6;
  --danger: #dc3d3d;
  --chrome: #ffffff;
  --sidebar: #f7fbfe;
  --sidebar-text: #082048;
  --sidebar-muted: #6a7f96;
  --accent-soft: #e5f4fb;
  --present-soft: #e7f3ff;
  --warn-soft: #e7f3ff;
  --danger-soft: #fdecec;
  --brand-cyan: #2b88d9;
  --brand-teal: #00c48a;
  --brand-purple: #00c48a;
  --brand: linear-gradient(90deg, #2b88d9 0%, #00c48a 100%);
  --sans: "DM Sans", "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --pad-card: var(--space-5);
  --pad-card-compact: var(--space-4);
  --gap-stack: var(--space-5);
  --gap-inline: var(--space-3);
  --gap-buttons: var(--space-2);
  --radius-card: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.app-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  background: var(--chrome);
  color: var(--ink);
  border-bottom: 3px solid var(--brand-purple);
  box-shadow: 0 1px 0 rgba(43, 136, 217, 0.12);
  padding: 0 16px;
  overflow: visible;
}

.app-banner .banner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.app-banner .logo-lockup {
  height: 52px;
  width: auto;
  max-width: 280px;
  display: block;
  background: transparent;
  image-rendering: auto;
}

.banner-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.banner-nav a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.banner-nav a:hover,
.banner-nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--ink);
  outline: 3px solid var(--brand-cyan);
  outline-offset: 0;
}

.banner-menu-btn {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 2px solid var(--brand-purple);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.banner-nav a.active,
.banner-nav a.active:hover,
.banner-nav a.active:focus-visible {
  background: var(--call);
  color: #ffffff;
}

.banner-nav a.nav-submit {
  background: var(--brand);
  color: #ffffff;
}

.banner-nav a.nav-submit.active,
.banner-nav a.nav-submit.active:hover,
.banner-nav a.nav-submit.active:focus-visible {
  background: var(--ink);
  color: #ffffff;
}

.banner-nav .count {
  margin-left: 6px;
  background: var(--brand-cyan);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.banner-nav a.active .count {
  background: #fff;
  color: var(--ink);
}

.banner-meta {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sidebar-text);
}

.lang-switch select {
  min-height: 44px;
  border: 2px solid var(--brand-purple);
  border-radius: 8px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: var(--space-3) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-right: 1px solid var(--rule);
  box-shadow: inset 3px 0 0 var(--call);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-lockup {
  height: 44px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.home-bar .logo-lockup {
  height: 56px;
  max-width: 320px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: var(--space-1) 0 var(--space-2);
  box-shadow: none;
}

.sidebar .logo-lockup {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
}

.mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

.flash {
  background: var(--present-soft);
  color: #0f8f6c;
  padding: var(--space-3) var(--space-4);
  border-radius: 10px;
  margin-bottom: var(--space-4);
}

.filter-select {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.action-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}

.action-link:hover {
  background: var(--accent-soft);
}

.preview {
  margin-top: 48px;
}

.preview h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.preview-frame {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}

.preview-frame .account-row {
  cursor: default;
}

.preview-frame .account-row:hover {
  background: transparent;
}

.home-foot {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: 13px;
}

.home-prototype-note {
  margin-top: var(--space-7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 0.78;
}

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

.home {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) var(--space-7);
}

.home-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

body.landing {
  --landing-ink: #082048;
  --landing-soft: #2f4a6a;
  --landing-mist: #e8f3fb;
  --landing-sky: #8ec8f0;
  --landing-teal: #00c48a;
  --landing-cyan: #2b88d9;
  --landing-display: "DM Sans", "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  color: var(--landing-ink);
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(0, 196, 138, 0.18) 0%, transparent 52%),
    radial-gradient(90% 70% at 0% 100%, rgba(43, 136, 217, 0.2) 0%, transparent 50%),
    linear-gradient(165deg, #f7fbfe 0%, #eaf4fb 48%, #dff0f8 100%);
  overflow-x: hidden;
}

.landing-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.landing-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.landing-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: landing-drift 18s ease-in-out infinite alternate;
}

.landing-visual-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 32, 72, 0.06) 0%, rgba(8, 32, 72, 0.02) 38%, rgba(247, 251, 254, 0.55) 78%, #f7fbfe 100%),
    linear-gradient(180deg, transparent 55%, rgba(247, 251, 254, 0.4) 100%);
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(48px, 7vh, 88px) clamp(24px, 5vw, 64px) clamp(48px, 7vh, 80px);
  max-width: 38rem;
}

.landing-brand {
  margin: 0 0 var(--space-5);
  line-height: 0;
  overflow: visible;
  opacity: 0;
  animation: landing-rise 0.7s ease forwards 0.05s;
}

.landing-mark {
  display: block;
  width: min(360px, 84vw);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.landing-headline {
  margin: 0 0 18px;
  font-family: var(--landing-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--landing-ink);
  max-width: 12ch;
  opacity: 0;
  animation: landing-rise 0.75s ease forwards 0.18s;
}

.landing-lede {
  margin: 0 0 var(--space-5);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--landing-soft);
  max-width: 38ch;
  opacity: 0;
  animation: landing-rise 0.75s ease forwards 0.3s;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;
  opacity: 0;
  animation: landing-rise 0.75s ease forwards 0.42s;
}

.landing-cta-primary {
  border: 0;
  box-shadow: none;
  background: var(--brand);
  color: #fff;
}

.landing-cta-primary:hover,
.landing-cta-primary:focus-visible {
  background: linear-gradient(90deg, #1e6fbf 0%, #00a878 100%);
  color: #fff;
}

.landing-cta-secondary {
  font-weight: 650;
  color: var(--landing-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-cta-secondary:hover,
.landing-cta-secondary:focus-visible {
  color: var(--landing-ink);
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 900px) {
  .landing-stage {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .landing-visual {
    min-height: 42vh;
    order: -1;
  }

  .landing-visual-wash {
    background:
      linear-gradient(180deg, transparent 35%, rgba(244, 247, 252, 0.72) 78%, #f4f7fc 100%);
  }

  .landing-copy {
    max-width: none;
    padding: var(--space-4) var(--space-4) var(--space-6);
  }

  .landing-brand {
    margin-bottom: var(--space-4);
  }

  .landing-headline {
    max-width: 14ch;
    margin-bottom: var(--space-4);
  }

  .landing-lede {
    margin-bottom: var(--space-5);
  }
}

.landing-how {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) var(--space-5) clamp(48px, 8vw, 80px);
}

.landing-how h2 {
  margin: 0 0 var(--space-3);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.landing-how-list {
  margin: 0 0 var(--space-5);
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-3);
  color: var(--ink-soft);
  line-height: 1.5;
}

.landing-how-list li {
  padding-left: var(--space-1);
}

.landing-how > p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .landing-brand,
  .landing-headline,
  .landing-lede,
  .landing-cta,
  .landing-visual-img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.signin-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--space-5);
  max-width: 36rem;
}

.signin-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.signin-panel legend {
  font-weight: 800;
  margin-bottom: 10px;
}

.signin-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.signin-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--accent-soft);
}

.signin-choice em {
  display: block;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 14px;
}

.signin-panel .btn.large {
  margin-top: 8px;
}

.signin-panel-school {
  margin: 0 0 16px;
  padding: 16px 20px;
}

.signin-panel-school fieldset {
  margin-bottom: 0;
}

.signin-preview-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.signin-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.signin-preview label {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.signin-preview select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}

.signin-preview .btn.large {
  margin-top: 0;
}

.signin-preview label[hidden] {
  display: none !important;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 18ch;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

.hero .lede {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 var(--space-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-buttons);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-7) 0 var(--space-5);
}

.home-grid article,
.home-note {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
}

.home-grid h2,
.home-note h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.home-grid p,
.home-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.swatch {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.swatch i {
  display: block;
  height: 56px;
}

.swatch span {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.notice {
  margin: 0 16px 16px;
  padding: 12px;
  background: var(--present-soft);
  color: #0f8f6c;
  border-radius: 8px;
}

.tagline {
  margin: var(--space-2) 0 0;
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  color: var(--sidebar-text);
  font-size: 14px;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.nav a.active,
.nav a.active:hover,
.nav a.active:focus-visible {
  background: var(--brand);
  color: #fff;
}

.nav a.active .count {
  color: inherit;
}

.nav a.nav-submit {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.nav a.nav-submit:hover,
.nav a.nav-submit.active {
  background: var(--brand);
  color: #fff;
}

.btn.large {
  padding: 16px 22px;
  font-size: 18px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.choice-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.choice-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.choice-card p {
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 20px;
}

.choice-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.submit-hero {
  display: block;
  background: var(--brand);
  color: #fff;
  border-radius: 20px;
  padding: var(--space-6) var(--space-5);
  margin-bottom: var(--space-4);
}

.submit-hero:hover {
  background: linear-gradient(90deg, #1e6fbf 0%, #00a878 100%);
}

.submit-hero strong {
  display: block;
  font-size: 36px;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.submit-hero strong:has(+ span) {
  margin-bottom: 8px;
}

.submit-hero span {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  max-width: 38ch;
  opacity: 0.94;
}

.live-link {
  color: var(--call);
  font-weight: 600;
  text-decoration: underline;
}

button.live-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.posted-banner {
  margin: 0 16px 16px;
  padding: 12px 14px;
  background: var(--present-soft);
  border-radius: 8px;
  color: #0f8f6c;
}

.posted-banner .live-link {
  color: #0f8f6c;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
}

.ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: block;
  text-align: center;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
}

.role-switch {
  display: flex;
  gap: 6px;
  background: var(--accent-soft);
  padding: 4px;
  border-radius: 999px;
}

.role-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.role-switch button.active {
  background: var(--panel);
  color: var(--ink);
}

.who {
  text-align: left;
  margin: var(--space-2) 0;
}

.who strong {
  display: block;
  font-size: 14px;
}

.who span {
  display: block;
  color: var(--sidebar-muted);
  font-size: 12px;
}

.sidebar .lang-switch {
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.content {
  padding: var(--space-5) var(--space-6) var(--space-7);
  min-width: 0;
  max-width: 100%;
}

.page-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.page-head-brand {
  flex-shrink: 0;
}

.page-head-brand .logo-frame {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.page-head > div:not(.page-head-brand):not(.detail-mark) {
  flex: 1;
  min-width: 0;
}

/* When tabs follow the header, keep description → tabs tight (Home-like rhythm) */
.page-head:has(+ .section-tabs) {
  margin-bottom: var(--space-5);
}

h1 {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

.page-head h1 {
  color: var(--ink);
  margin: 0 0 6px;
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  max-width: 640px;
}

.btn {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-weight: 600;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn.call {
  background: var(--call);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.stat {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: var(--pad-card-compact);
}

.stat b {
  display: block;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

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

.stat.warn b {
  color: var(--warn);
}

.stat.danger b {
  color: var(--danger);
}

.stat.ok b {
  color: var(--present);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.panel > h2,
section.panel > h2,
.guide-section > h2,
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  padding: var(--space-3) var(--space-5);
  border-bottom: 0;
  background: var(--brand);
}

.panel > h2 + .lede,
.panel > h2 + .note,
.panel > h2 + .quiet-note,
section.panel > h2 + .lede,
section.panel > h2 + .note,
section.panel > p.lede {
  margin: 0;
  max-width: none;
  padding: 14px var(--space-5) 8px;
}

.panel > h2 + .lede + *,
.panel > h2 + .note + *,
section.panel > p.lede + * {
  margin-top: 0;
}

.panel > h2 + ul,
.panel > h2 + ol,
.panel > h2 + .action-task-list,
.guide-section > h2 + ul,
.guide-section > h2 + ol,
.guide-section > h2 + .note {
  padding-top: var(--space-3);
}

.list-row,
.account-row {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.row-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.row-tags .pill,
.row-tags .score-chip {
  flex-shrink: 0;
}

.list-row > div:not(.row-tags) {
  flex: 1;
  min-width: 0;
}

.list-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.list-row-main .handle {
  margin: 0;
}

.list-row-main .row-tags {
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.account-row {
  grid-template-columns: 44px 110px 1.4fr 1.2fr 1fr 130px;
}

.list-row:last-child,
.account-row:last-child {
  border-bottom: 0;
}

.list-row:hover,
.account-row:hover {
  background: var(--accent-soft);
}

.school-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 50%;
  padding: 2px;
}

.school-logo.lg {
  width: 64px;
  height: 64px;
  padding: 4px;
}

.detail-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

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

.school-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
}

.color-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  margin: 0;
}

/* Tight label → supporting line on every surface */
.kicker + .lede,
.kicker + .note,
.kicker + .quiet-note,
.post-preview-kicker + p,
.post-preview-kicker + .note,
.post-preview-kicker + .lede,
.post-preview-kicker + .quiet-note,
.page-head h1 + .lede,
.pm-panel > h2 + .lede,
.pm-panel > h3 + .lede,
.insight-section-title + .insight-section-desc {
  margin-top: 4px;
  padding-top: 0;
}

.name {
  font-weight: 600;
}

.handle {
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  align-items: center;
}

.section-tabs + .filters,
.section-tabs + .discovery-filters {
  margin-top: 0;
}

.filters input[type="date"] {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
}

.report-filters {
  padding: 16px;
  margin-bottom: 0;
}

.report-filter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.report-actions {
  padding: 0 16px 16px;
}

.report-table-wrap {
  overflow: auto;
}

.report-table {
  width: 100%;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  white-space: nowrap;
}

.report-table tbody tr {
  cursor: pointer;
}

.audit-row {
  cursor: default;
}

.search {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 8px;
  padding: 9px 12px;
  min-width: 240px;
}

.chip {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.chip.active {
  background: var(--call);
  border-color: var(--call);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef3f9;
  color: var(--ink-soft);
  width: max-content;
  max-width: 100%;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pill.present {
  background: #128f6a;
  color: #fff;
}

.pill.warn {
  background: #e0f2fe;
  color: #1e40af;
}

.pill.needs-changes,
.row-tags .pill.needs-changes,
.home-screen .pill.needs-changes {
  background: #dbeafe;
  color: #1e3a8a;
}

.pill.branding {
  background: #d4f0ea;
  color: #0f5f56;
}

.pill.work {
  background: #e4e0f8;
  color: #3730a3;
}

.pill.danger {
  background: #c61d1d;
  color: #fff;
}

.pill.pill-inactive {
  background: #9b1010;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.pill.district {
  background: var(--brand);
  color: #fff;
}

.pill.risk {
  background: #f6dde3;
  color: #8b2744;
}

.pill.review {
  background: #ebe4fb;
  color: #4c1d95;
}

.pill.overdue {
  background: #e3e7f8;
  color: #312e81;
}

.logo-frame {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 3px;
  overflow: hidden;
}

.logo-frame.lg {
  width: 88px;
  height: 88px;
  padding: 4px;
}

.logo-frame.xl {
  width: 168px;
  height: 168px;
  padding: 8px;
}

.logo-plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px;
}

.logo-plate {
  min-height: 300px;
  height: 300px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: transparent;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-plate .logo-frame,
.logo-plate .logo-frame.xl {
  width: 168px;
  height: 168px;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
}

.logo-plate .logo-dl {
  margin-top: 0;
  min-height: 44px;
  padding: 12px 16px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}

.btn.secondary.logo-dl-on-dark,
.logo-plate.is-dark .logo-dl,
.logo-plate.is-dark .btn.secondary.logo-dl {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn.secondary.logo-dl-on-dark:hover,
.logo-plate.is-dark .logo-dl:hover,
.logo-plate.is-dark .btn.secondary.logo-dl:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Gold / light brand plates still use the white logo; keep download readable */
.logo-plate.uses-white-logo.is-dark[style*="#D9AD57"] .logo-dl,
.logo-plate.uses-white-logo.is-dark[style*="#d9ad57"] .logo-dl {
  color: #0a0614;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 6, 20, 0.35);
}

.logo-plate.uses-white-logo.is-dark[style*="#D9AD57"] .logo-dl:hover,
.logo-plate.uses-white-logo.is-dark[style*="#d9ad57"] .logo-dl:hover {
  color: #0a0614;
  background: #fff;
  border-color: rgba(10, 6, 20, 0.5);
}

.logo-plate-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.logo-frame img,
.school-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.school-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px;
}

.school-card > .logo-plate {
  margin: 0;
}

.school-card-meta .color-row {
  margin-top: 8px;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
}

.account-card:hover {
  background: var(--accent-soft);
}

.account-card-platform {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-card-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.account-card-meta,
.account-card-owner {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.account-card-owner {
  margin-top: 4px;
}

.check-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.check-mini .check-row {
  font-size: 14px;
}

.mark-ok,
.mark-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.mark-ok {
  background: #128f6a;
  color: #fff;
}

.mark-no {
  background: #c61d1d;
  color: #fff;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
}

.check-panel .check-row {
  border-bottom: 1px solid var(--rule);
}

.check-panel .check-row:last-child {
  border-bottom: 0;
}

.check-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.action-rail {
  position: sticky;
  top: 16px;
}

.action-rail h2 {
  font-size: 15px;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.action-stack .btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 12px;
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 0 12px;
  width: min(100%, 22rem);
}

.account-profile {
  max-width: 44rem;
}

.account-profile-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.account-profile-title {
  min-width: 0;
  flex: 1;
}

.account-standing {
  margin: 6px 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-standing.is-good {
  color: #0b9f8a;
}

.account-standing.is-warn {
  color: #b45309;
}

.account-handle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.account-open-live {
  font-size: 15px;
  font-weight: 650;
  color: var(--call);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.account-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  min-width: 0;
}

.account-person-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.account-person strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.account-person-meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-health {
  margin-bottom: 18px;
}

.account-health h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 18px;
}

.account-health-list {
  list-style: none;
  margin: 0;
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-health-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.account-health-mark {
  width: 1.25rem;
  flex-shrink: 0;
  font-weight: 800;
}

.account-health-list .is-ok .account-health-mark {
  color: #0b9f8a;
}

.account-health-list .is-warn .account-health-mark {
  color: #b45309;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.account-profile-actions .btn.large {
  min-width: 10rem;
}

.account-profile-more {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 800px) {
  .account-people {
    grid-template-columns: 1fr;
  }

  .account-handle-line {
    font-size: 22px;
  }

  .account-profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-profile-actions .btn,
  .account-profile-actions .btn.large {
    width: 100%;
  }
}

.action-dock .btn,
.action-dock .live-link {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  height: auto;
  margin: 0;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.action-dock .btn.secondary,
.action-dock .live-link {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  text-decoration: none;
  font-weight: 600;
}

.action-dock .btn.secondary:hover,
.action-dock .live-link:hover {
  border-color: var(--call);
  color: var(--ink);
}

.school-crest {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--sidebar-text);
}

.school-crest strong {
  font-size: 14px;
  line-height: 1.3;
}

.theme-school .sidebar {
  border-right-color: transparent;
  box-shadow: inset 3px 0 0 var(--call);
}

.theme-school .sidebar-brand {
  background: transparent;
  border: 0;
}

.theme-school .nav a {
  color: var(--ink);
}

.theme-school .nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.theme-school .nav a.active,
.theme-school .nav a.active:hover,
.theme-school .nav a.active:focus-visible {
  background: var(--brand);
  color: #fff;
}

.theme-school .nav a.nav-submit {
  background: var(--brand);
  color: #ffffff;
}

.theme-school .ghost {
  color: var(--ink);
  border-color: var(--rule);
}

.theme-school .submit-hero {
  background: var(--brand);
  color: #fff;
}

.blocked-school {
  font-size: 18px;
  padding: 48px 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
  padding: var(--space-4);
}

.fields.single {
  grid-template-columns: 1fr;
}

.check-mini .check-row {
  padding: 0;
  font-size: 13px;
}

.check-mini .mark-ok,
.check-mini .mark-no {
  width: 22px;
  height: 22px;
  font-size: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.theme-school .nav .count {
  color: var(--muted);
}

.theme-school .nav a.active .count {
  color: inherit;
}

.field p,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  margin: 0;
  width: 100%;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}

.actions {
  display: flex;
  gap: var(--gap-buttons);
  flex-wrap: wrap;
  padding: 0 var(--space-4) var(--space-4);
}

.note {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  color: var(--ink-soft);
  line-height: 1.5;
}

.feedback {
  margin: 0 16px 16px;
  padding: 12px;
  background: var(--warn-soft);
  border-radius: 8px;
  color: #1e3a8a;
}

.empty {
  padding: 28px 16px;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compose {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 340px);
  gap: 32px;
  align-items: start;
}

.compose-form.fields {
  padding: 28px 28px 8px;
  gap: 24px;
}

.compose .panel > .actions {
  padding: 12px 28px 28px;
}

.alt-follow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.alt-follow .btn {
  align-self: flex-start;
}

.draft-caption-follow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.draft-caption-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compose-form .note,
.compose-form .check-flag,
.alt-follow .note,
.alt-follow .check-flag {
  margin: 0;
  padding: 0;
}

.compose-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.live-check {
  position: static;
  padding: 28px 26px 30px;
}

.live-check.panel h2,
.live-check h2 {
  border-bottom: 0;
  padding: 0;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.live-check-meta {
  margin: 0 0 16px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.live-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.live-item span:first-child {
  width: 1.1em;
  flex-shrink: 0;
}

.live-item.is-ok span:first-child {
  color: #128f6a;
}

.live-item.is-wait span:first-child {
  color: var(--muted);
}

.live-item.is-no span:first-child {
  color: #c61d1d;
}

.tips-disclosure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.tips-disclosure > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
}

.tips-disclosure > summary::-webkit-details-marker {
  display: none;
}

.tips-disclosure > summary::after {
  content: " ▾";
  font-size: 12px;
}

.tips-disclosure[open] > summary::after {
  content: " ▴";
}

.tips-disclosure .tips-list {
  padding: 12px 0 0 18px;
  gap: 8px;
}

.tips-disclosure .tips-list li {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

.review-tips {
  margin-top: 16px;
}

.live-check .handle {
  padding: 0;
}

.live-check-foot {
  padding: 12px 0 0;
  margin: 0;
}

.policy-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.policy-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--call);
  color: #fff;
  border-radius: 24px;
  padding: 32px 36px;
}

.policy-hero .kicker {
  color: rgba(255, 255, 255, 0.8);
}

.policy-hero h1 {
  color: #fff;
}

.policy-hero .lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  font-size: 17px;
  margin-top: 8px;
}

.policy-hero .logo-frame {
  background: #fff;
}

.policy-hero .btn {
  margin-left: auto;
  background: #fff;
  color: var(--call);
}

.policy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.policy-col {
  border-radius: 24px;
  padding: 28px 28px 32px;
  min-height: 360px;
}

.policy-col h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
  border: 0;
  padding: 0;
  text-transform: none;
}

.policy-col.do {
  background: #e7faf3;
  border: 2px solid #128f6a;
}

.policy-col.do h2 {
  color: #0f6b50;
}

.policy-col.dont {
  background: #fdecec;
  border: 2px solid #c61d1d;
}

.policy-col.dont h2 {
  color: #9b1010;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 550;
  border-bottom: 1px solid rgba(11, 31, 68, 0.08);
}

.policy-item:last-child {
  border-bottom: 0;
}

.policy-card h3 {
  margin: 16px 0 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.policy-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.policy-card.dos h2 {
  color: #0f8f6c;
}

.policy-card.donts h2 {
  color: var(--danger);
}

.writing-check {
  margin-top: 16px;
  border-radius: 10px;
  padding: 16px 18px;
  background: #eef3f9;
  color: var(--ink-soft);
}

.writing-check p,
.writing-check ul {
  margin: 10px 0 0;
  line-height: 1.5;
}

.writing-check.ok {
  background: var(--present-soft);
  color: #0f8f6c;
}

.writing-check.has-issues {
  background: var(--warn-soft);
  color: #1e3a8a;
}

.writing-check.has-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.issue-list {
  padding-left: 18px;
}

label.media-drop,
#media-drop,
.media-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  border: 2px dashed var(--call);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: left;
  background: var(--accent-soft);
  cursor: pointer;
  color: var(--ink);
}

.media-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.media-drop strong {
  display: block;
  width: 100%;
  font-size: 18px;
  text-align: left;
}

.media-drop span {
  display: block;
  width: 100%;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.4;
  text-align: left;
}

.media-drop.is-over {
  background: #dceaff;
}

.media-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-thumb,
.media-frame {
  margin: 0;
  background: #eef3f9;
  border-radius: 10px;
  overflow: hidden;
}

.media-thumb img,
.media-frame img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.media-thumb span,
.media-frame figcaption {
  display: block;
  padding: 8px 10px 4px;
  font-size: 12px;
  color: var(--ink-soft);
  word-break: break-word;
}

.media-remove {
  margin: 0 10px 10px;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
}

.media-file-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink-soft);
}

.media-error {
  color: var(--danger);
  margin: 8px 0 0;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 16px 8px;
}

.phone-dock {
  display: none;
}

@media (min-width: 981px) {
  body:not(.phone-shell) .app-banner:not(.home-bar) {
    display: none;
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 44px);
  }

  .sidebar {
    display: none;
  }

  .sidebar-brand {
    display: none;
  }

  body.nav-open .sidebar {
    display: flex;
    position: fixed;
    top: 44px;
    left: 0;
    bottom: 52px;
    width: min(86vw, 320px);
    z-index: 46;
    overflow-y: auto;
    box-shadow: 8px 0 28px rgba(11, 31, 68, 0.22);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 52px;
    background: rgba(11, 31, 68, 0.35);
    z-index: 44;
  }

  .app-banner {
    position: relative;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 10px;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .app-banner .logo-lockup,
  .home-bar .logo-lockup {
    height: 28px;
    max-width: 148px;
  }

  .banner-menu-btn {
    display: inline-flex;
  }

  .banner-nav {
    display: none;
  }

  .phone-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    padding: 0 4px env(safe-area-inset-bottom, 0);
    background: var(--chrome);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -3px 0 var(--call);
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-around;
    overflow: hidden;
  }

  .phone-dock a {
    flex: 1 1 0;
    min-width: 0;
    max-width: 20%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    padding: 0;
    font-size: 0;
    line-height: 0;
  }

  .phone-dock a.active {
    background: var(--accent-soft);
    color: var(--brand-purple);
  }

  .phone-dock svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .stats,
  .account-row,
  .account-card,
  .detail-grid,
  .account-layout,
  .check-split,
  .two,
  .compose,
  .policy-columns,
  .fields,
  .home-grid,
  .choice-grid,
  .swatches,
  .logo-plates,
  .school-grid,
  .schedule-row,
  .schedule-layout,
  .flyer-layout,
  .msg-layout {
    grid-template-columns: 1fr;
  }

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

  .action-rail {
    display: none;
  }

  .action-dock {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    background: transparent;
    border-top: 0;
    padding: 0 0 12px;
  }

  .action-dock .btn,
  .action-dock .live-link {
    min-height: 28px;
  }

  .live-check {
    position: static;
  }

  .cal-day-panel {
    position: static;
    min-width: 100%;
    flex-basis: 100%;
  }

  .schedule-cal {
    min-width: 100%;
    flex-basis: 100%;
  }

  .cal-dow-full {
    display: none;
  }

  .cal-dow-short {
    display: inline;
  }

  button.cal-cell {
    min-height: 72px;
    max-height: 136px;
    padding: 6px 4px;
  }

  .logo-frame.cal-chip-logo {
    width: 14px;
    height: 14px;
    min-width: 14px;
  }

  .policy-hero .btn {
    margin-left: 0;
  }

  .policy-hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .account-row {
    gap: 6px;
  }

  .content,
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }

  .content {
    padding: var(--space-4) var(--space-4) var(--space-8);
  }

  .claim-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .claim-head .row-tags {
    align-items: flex-start;
  }

  .claim-card {
    padding: 18px 16px;
  }

  .claim-actions .btn {
    min-width: 0;
    flex: 1 1 auto;
  }
}

.tips-panel h2 {
  border-bottom: 0;
  padding-bottom: 0;
}

.tips-panel .handle {
  padding: 0 16px 8px;
}

.tips-list {
  margin: 0;
  padding: 4px 20px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-list li {
  font-size: 15px;
  line-height: 1.45;
}

.media-flag {
  display: block;
  color: #9b1010;
  font-weight: 700;
  font-size: 13px;
}

.field label.check-flag,
.check-flag {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  color: var(--ink);
}

.field .check-flag input[type="checkbox"],
#ai-made,
.check-flag input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--brand-purple);
  border-radius: 5px;
  background: #fff;
  flex: 0 0 20px;
  flex-shrink: 0;
  box-sizing: border-box;
  accent-color: var(--call);
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.field .check-flag input[type="checkbox"]:checked,
#ai-made:checked,
.check-flag input[type="checkbox"]:checked {
  border-color: var(--brand-purple);
  background-color: var(--call);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4l3.1 3.1 6.5-6.6'/%3E%3C/svg%3E"), var(--brand);
  background-size: 12px 12px, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.field .check-flag input[type="checkbox"]:focus-visible,
#ai-made:focus-visible,
.check-flag input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

.honest-note {
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--accent-soft);
  color: #4c1d95;
  border-radius: 8px;
  font-size: 14px;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef3f9;
  white-space: nowrap;
  box-sizing: border-box;
}

.score-chip.good {
  background: #128f6a;
  color: #fff;
}

.score-chip.work {
  background: #e4e0f8;
  color: #3730a3;
}

.score-chip.risk {
  background: #c61d1d;
  color: #fff;
}

.score-explainer {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: #f5f8fd;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.score-explainer h2,
.score-explainer h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.score-explainer p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.score-explainer ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.score-explainer li {
  margin: 0 0 6px;
  line-height: 1.4;
}

.score-math {
  font-weight: 800;
  color: var(--ink);
}

.score-drop {
  margin: 0 0 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}

.score-drop > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.score-drop > summary::-webkit-details-marker {
  display: none;
}

.score-drop > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 12px;
}

.score-drop[open] > summary::after {
  content: "▴";
}

.score-drop.good > summary {
  color: #0b6b4f;
}

.score-drop.work > summary {
  color: #3730a3;
}

.score-drop.risk > summary {
  color: #a31414;
}

.score-drop-body {
  padding: 12px;
  border-top: 1px solid var(--rule);
  background: #f7fafc;
}

.score-drop-body h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.score-drop-body p,
.score-drop-body li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.score-drop-body ul {
  margin: 0 0 10px;
  padding: 0 0 0 18px;
}

.score-drop-split {
  margin-bottom: 12px;
}

.score-drop-split .check-row {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
}

.msg-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

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

.msg-list h2,
.msg-pane h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.msg-school {
  display: block;
  padding: 16px 18px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.msg-school strong,
.msg-school span {
  display: block;
}

.msg-school span {
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 4px;
}

.msg-school.active {
  background: #eef3f9;
}

.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 18px 8px;
  max-height: 420px;
  overflow: auto;
}

.msg-bubble {
  max-width: 82%;
  padding: 16px 18px;
  border-radius: 12px;
  background: #eef3f9;
}

.msg-bubble p {
  margin: 0;
}

.msg-bubble .kicker {
  margin: 0 0 8px;
}

.msg-bubble.mine {
  margin-left: auto;
  background: #e7f8ef;
}

.msg-compose {
  padding: 0 18px 18px;
}

.msg-compose textarea {
  width: 100%;
  margin-top: 6px;
  padding: 16px 18px;
}

.msg-compose .btn {
  margin-top: 10px;
}

.schedule-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.schedule-controls input[type="date"],
.schedule-controls input[type="time"] {
  min-height: 44px;
  min-width: 158px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
}

.best-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c5ddf7;
  background: #eef7ff;
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.best-chip:hover {
  background: #dceeff;
}

.best-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.schedule-block .honest-note {
  margin: 0;
}

.sched-when {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.schedule-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.schedule-cal {
  flex: 1 1 36rem;
  min-width: min(100%, 36rem);
  width: 100%;
  max-width: 100%;
}

#cal-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.cal-day-panel {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
  max-width: 100%;
  padding: 28px;
  position: sticky;
  top: 96px;
  min-height: 280px;
}

.cal-day-panel .empty {
  padding: 8px 0;
}

.cal-day-head h2 {
  margin: 0 0 8px;
  padding: 0;
  border-bottom: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}

.cal-day-hol {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.cal-day-panel .schedule-controls {
  margin: 8px 0 6px;
}

.cal-connect {
  margin-top: 20px;
  padding: 8px 4px 24px;
}

.cal-connect > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
}

.cal-connect > summary::-webkit-details-marker {
  display: none;
}

.cal-connect > summary::after {
  content: " ▾";
  font-size: 12px;
}

.cal-connect[open] > summary::after {
  content: " ▴";
}

.cal-connect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.cal-connect-row:last-child {
  border-bottom: 0;
}

.cal-connect-row .name {
  font-weight: 650;
}

.cal-connect-row .handle {
  margin: 2px 0 0;
}

.cal-connect-row .btn {
  margin-left: auto;
}

.cal-day-panel .list-row {
  padding-left: 0;
  padding-right: 0;
}

.cal-day-panel .list-row .logo-frame.cal-chip-logo,
.promo-card-head .logo-frame.cal-chip-logo {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 2px;
  border-radius: 8px;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cal-dot.waiting {
  color: #1e3a8a;
}

.cal-dot.scheduled {
  color: var(--call);
  font-weight: 700;
}

.cal-dot.posted {
  color: #128f6a;
}

.pill.sched {
  background: var(--call);
  color: #fff;
}

.banner-nav .banner-account {
  display: none;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cal-grid > .kicker,
.cal-dow {
  padding: 4px 4px 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-dow-short {
  display: none;
}

.cal-pad {
  min-width: 0;
}

button.cal-cell {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 92px;
  max-height: 154px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  overflow: hidden;
}

.cal-cell.is-on {
  border-color: var(--call);
  background: #f3f8ff;
  box-shadow: inset 0 0 0 2px var(--call);
}

.cal-cell:focus-visible {
  outline: 3px solid var(--ink);
}

.cal-cell b {
  display: block;
  margin-bottom: 6px;
}

.cal-cell.holiday {
  background: #f3f0ff;
  border-color: #9ec9e8;
}

.cal-hol,
.cal-promo,
.cal-dot,
.cal-chip,
.cal-more {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 3px;
}

.cal-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  text-overflow: clip;
}

.cal-chip-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-frame.cal-chip-logo {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 1px;
  border-radius: 4px;
}

.cal-more {
  font-weight: 700;
  color: var(--call);
  margin-top: 1px;
}

.promo-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.promo-card-head .kicker {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-hol {
  font-weight: 700;
  color: var(--brand-teal);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.claim-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.claim-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--pad-card);
}

.claim-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.claim-copy {
  min-width: 0;
  flex: 1;
}

.claim-copy .account-card-name {
  line-height: 1.25;
}

.claim-copy .account-card-meta {
  line-height: 1.45;
}

.claim-why {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.claim-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.claim-actions .btn {
  min-width: 7.5rem;
}

.invite-box {
  display: block;
  margin: 0;
}

.invite-box textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 168px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.claim-send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.claim-card .note {
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

.claim-card .claim-sent {
  margin-top: -4px;
}

.compact-stats {
  margin-bottom: 12px;
}

.home-now {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.home-now a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rule);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}

.home-now a.warn {
  background: #e8f1ff;
  border-color: #93c5fd;
}

.home-now a.danger {
  background: #fdecec;
  border-color: #e7b0b0;
}

.roll-heading {
  margin: 8px 0 12px;
  font-size: 18px;
}

.todo-acc {
  border: 1px solid #9ec9e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #eaf6fc 0%, #e4f4f0 100%);
  margin-bottom: 10px;
  overflow: hidden;
}

.todo-acc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(43, 136, 217, 0.16), rgba(0, 196, 138, 0.18));
}

.todo-acc > summary::-webkit-details-marker {
  display: none;
}

.todo-acc > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.todo-acc[open] > summary::after {
  content: "▴";
}

.todo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-purple);
  font-size: 13px;
  font-weight: 800;
}

.todo-acc-body {
  padding: 16px;
  border-top: 1px solid #cfe4f2;
  background: #f7fbfe;
}

.todo-acc-body > .quiet-note:first-child {
  margin-top: 0;
}

.todo-acc-body .list-row {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-top: 8px;
}

.todo-acc-body .list-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.account-facts {
  margin-top: 12px;
  border-color: var(--rule);
  background: #fff;
}

.account-facts > summary {
  background: #f7fafc;
  font-size: 15px;
  padding: 10px 14px;
}

.account-facts-h {
  margin: 14px 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.account-facts-h:first-child {
  margin-top: 12px;
}

.account-facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 0;
}

.account-fact {
  margin: 0;
}

.account-fact dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-fact dd {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}

.account-facts .note {
  padding: 10px 0 0;
}

@media (max-width: 640px) {
  .account-facts-list {
    grid-template-columns: 1fr;
  }
}

.school-acc {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.school-acc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.school-acc > summary::-webkit-details-marker {
  display: none;
}

.school-acc > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.school-acc[open] > summary::after {
  content: "▴";
}

.school-acc > summary em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.school-acc-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--rule);
}

.platform-label {
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.roll-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(11rem, 34%);
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}

.roll-row:last-child {
  border-bottom: 0;
}

.roll-row:hover {
  background: var(--accent-soft);
}

.roll-row .logo-frame {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 2px;
}

.roll-row > div:not(.row-tags) {
  min-width: 0;
}

.roll-row .name {
  line-height: 1.3;
}

.roll-row .handle {
  margin: 4px 0 0;
}

.roll-row .row-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.roll-row .row-tags .pill,
.roll-row .row-tags .score-chip {
  height: auto;
  min-height: 26px;
  box-sizing: border-box;
  padding: 5px 12px;
}

.cal-cell.has-promo {
  box-shadow: inset 0 0 0 1px var(--present);
}

.cal-promo {
  font-weight: 700;
  color: #0b6b4f;
}

.promo-card {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: #e7faf3;
  border: 1px solid #b8ead6;
}

.promo-card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.cal-dot {
  color: var(--ink-soft);
}

.more-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
  color: inherit;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--ink);
}

.post-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.post-start-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px 22px 24px;
  min-height: 160px;
}

.post-start-card:hover,
.post-start-card:focus-visible {
  border-color: #004299;
  box-shadow: 0 0 0 1px #004299, 0 12px 28px rgba(0, 66, 153, 0.1);
  outline: none;
}

.post-start-card strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #004299;
  letter-spacing: -0.02em;
}

.post-start-card span {
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.98rem;
}

.post-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.post-photo-pick {
  position: relative;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #0e1a2b;
  font: inherit;
  color: #fff;
}

.post-photo-pick img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.post-photo-pick span {
  display: block;
  padding: 8px 8px 10px;
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: left;
  background: #0e1a2b;
}

.post-photo-pick.selected {
  border-color: #004299;
  box-shadow: 0 0 0 2px rgba(0, 66, 153, 0.28);
}

.post-account-list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 4px 14px 8px;
  background: #fff;
}

.post-account-group + .post-account-group {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.post-account-group .kicker {
  margin: 8px 0 0;
}

.post-account-list .check-flag {
  padding: 10px 0;
  border-bottom: 1px solid #eef3f9;
}

.post-account-list .check-flag:last-child {
  border-bottom: 0;
}

.tool-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  border: 0;
  padding: 0;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
}

.matrix th {
  background: #eef3f9;
}

.brand-card {
  border-radius: 16px;
  padding: 28px 20px;
  color: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.logo-dl {
  margin-top: 12px;
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.directory-hero {
  max-width: 900px;
  margin: 0 auto 32px;
}

.phone-shell {
  background: #1a1f2b;
}

.phone-shell .app-banner {
  position: static;
}

.phone-frame {
  max-width: 430px;
  margin: 16px auto 32px;
  background: var(--ink);
  border-radius: 36px;
  padding: 12px 10px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.phone-frame .app {
  background: var(--paper);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  min-height: 720px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  position: relative;
}

.phone-frame .app-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 10px 16px;
  gap: 12px;
  border-radius: 24px 24px 0 0;
}

.phone-frame .app-banner .logo-lockup {
  height: 32px;
  max-width: 168px;
}

.phone-frame .banner-menu-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.phone-frame .sidebar-brand {
  display: none;
}

.phone-frame .banner-nav {
  display: none;
}

.phone-frame .phone-dock {
  display: flex;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 0 4px;
  background: var(--chrome);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -3px 0 var(--call);
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-around;
  overflow: hidden;
  z-index: 8;
}

.phone-frame .phone-dock a {
  flex: 1 1 0;
  min-width: 0;
  max-width: 20%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.phone-frame .phone-dock a.active {
  background: var(--accent-soft);
  color: var(--brand-purple);
}

.phone-frame .content {
  padding: 20px 18px 28px;
}

.phone-frame .sidebar {
  display: none;
}

.phone-shell.nav-open .phone-frame .sidebar {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 52px;
  width: min(86%, 280px);
  z-index: 20;
  overflow-y: auto;
  box-shadow: 8px 0 28px rgba(11, 31, 68, 0.22);
}

.phone-shell.nav-open::after {
  display: none;
}

.phone-note {
  text-align: center;
  color: #fff;
  margin: 12px auto;
  max-width: 40ch;
}

.theme-school .banner-nav a,
.theme-school .banner-nav a:hover,
.theme-school .banner-nav a:focus-visible,
.theme-school .sidebar .lang-switch {
  color: var(--ink);
}

.theme-school .banner-nav a.active,
.theme-school .banner-nav a.active:hover,
.theme-school .banner-nav a.active:focus-visible,
.theme-school .banner-nav a.nav-submit.active,
.theme-school .banner-nav a.nav-submit.active:hover,
.theme-school .banner-nav a.nav-submit.active:focus-visible {
  background: var(--call);
  color: #ffffff;
}

.theme-school .app-banner {
  background: var(--chrome);
}

.alt-suggest-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.alt-suggest-row .note {
  margin: 0;
  padding: 0;
}

.guide-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.guide-page h1 {
  margin-bottom: 8px;
}

.guide-section {
  margin: 0 0 20px;
  padding: 0;
}

.guide-section ul,
.guide-section ol {
  margin: 0;
  padding: 16px 20px 12px 36px;
}

.guide-section > .note {
  padding: 16px 20px;
}

.guide-section li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.flyer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.flyer-stage {
  min-width: 0;
}

.flyer-preview {
  padding: 16px;
  display: flex;
  justify-content: center;
  background: #e4dfd4;
  border-radius: 12px;
}

.flyer-sheet {
  width: min(100%, 432px);
  height: auto;
  aspect-ratio: 1080 / 1350;
  display: block;
  background: #f6f3ec;
  box-shadow: 0 18px 48px rgba(16, 14, 22, 0.16);
  border-radius: 2px;
}

.flyer-fields .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ec-layouts {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.ec-layout {
  text-align: left;
  border: 1px solid rgba(0, 66, 153, 0.14);
  border-radius: 12px;
  background: #f7fbfe;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.ec-layout strong {
  font-size: 0.95rem;
}

.ec-layout span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.ec-layout.active {
  border-color: #004299;
  background: rgba(0, 66, 153, 0.06);
  box-shadow: inset 3px 0 0 #00a3c4;
}

.flyer-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-screen .two {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .two {
    grid-template-columns: 1fr;
  }

  .home-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .home-screen .page-head {
    margin-bottom: 0;
    gap: 10px;
    align-items: flex-start;
  }

  .home-screen .page-head-brand .logo-frame {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .home-screen .page-head h1 {
    font-size: 22px;
    margin: 0 0 2px;
  }

  .home-screen .lede {
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    max-width: none;
    overflow-wrap: break-word;
  }

  .home-screen .page-head > div:not(.page-head-brand):not(.detail-mark) {
    width: 100%;
  }

  .home-screen .submit-hero {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .home-screen .submit-hero strong {
    font-size: 20px;
    margin-bottom: 0;
  }

  .home-screen .submit-hero strong:has(+ span) {
    margin-bottom: 4px;
  }

  .home-screen .submit-hero span {
    font-size: 13px;
    line-height: 1.35;
    max-width: none;
  }

  .home-screen .approver-card .note {
    margin-bottom: 0;
  }

  .home-screen .two {
    margin-top: 0;
    gap: 18px;
  }

  .home-screen .todo-acc {
    margin-bottom: 0;
  }

  .home-screen .todo-acc > summary {
    padding: 12px 14px;
    font-size: 15px;
  }

  .home-screen .panel > h2 {
    padding: 11px 16px;
  }

  .home-screen .panel .note {
    padding: 10px 16px 12px;
  }

  .home-screen .panel .empty {
    padding: 16px;
  }

  .two .list-row,
  .panel > .list-row,
  .home-screen .list-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    padding: 12px 16px;
  }

  .two .list-row > div:not(.row-tags),
  .panel > .list-row > div:not(.row-tags),
  .home-screen .list-row > div:not(.row-tags) {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .two .list-row .row-tags,
  .panel > .list-row .row-tags,
  .home-screen .list-row .row-tags {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .two .list-row .list-row-main .row-tags,
  .panel > .list-row .list-row-main .row-tags,
  .home-screen .list-row .list-row-main .row-tags,
  .home-screen .list-row.home-account-row > .row-tags {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .roll-row,
  .home-screen .two > .panel > .list-row.home-account-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .roll-row .row-tags,
  .home-screen .two > .panel > .home-account-row > .row-tags {
    grid-column: 2;
  }

  .two .list-row .kicker,
  .panel > .list-row .kicker,
  .home-screen .list-row .kicker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .two .list-row .name,
  .panel > .list-row .name,
  .home-screen .list-row .name {
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-screen .pill {
    font-size: 11px;
    padding: 5px 12px;
  }

  .home-screen .todo-count {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.phone-frame .two {
  grid-template-columns: 1fr;
}

.phone-frame .home-screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phone-frame .home-screen .page-head {
  margin-bottom: 0;
  gap: 10px;
  align-items: flex-start;
}

.phone-frame .home-screen .page-head-brand .logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.phone-frame .home-screen .page-head h1 {
  font-size: 22px;
  margin: 0 0 2px;
}

.phone-frame .home-screen .lede {
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  max-width: none;
}

.phone-frame .home-screen .submit-hero {
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.phone-frame .home-screen .submit-hero strong {
  font-size: 20px;
  margin-bottom: 4px;
}

.phone-frame .home-screen .submit-hero span {
  font-size: 13px;
  line-height: 1.35;
  max-width: none;
}

.phone-frame .home-screen .approver-card .note {
  margin-bottom: 0;
}

.phone-frame .home-screen .two {
  margin-top: 0;
  gap: 18px;
}

.phone-frame .home-screen .todo-acc {
  margin-bottom: 0;
}

.phone-frame .home-screen .todo-acc > summary {
  padding: 12px 14px;
  font-size: 15px;
}

.phone-frame .home-screen .panel > h2 {
  padding: 11px 16px;
}

.home-screen .two > .panel > .list-row,
.phone-frame .home-screen .two > .panel > .list-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
}

.home-screen .two > .panel > .list-row.home-account-row,
.phone-frame .home-screen .two > .panel > .list-row.home-account-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(9.75rem, 36%);
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
}

.home-screen .two > .panel > .home-account-row > .row-tags,
.phone-frame .home-screen .two > .panel > .home-account-row > .row-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.home-screen .two > .panel > .home-account-row > .row-tags .pill,
.phone-frame .home-screen .two > .panel > .home-account-row > .row-tags .pill {
  height: auto;
  min-height: 26px;
  box-sizing: border-box;
  padding: 5px 12px;
}

@media (max-width: 640px) {
  .home-screen .two > .panel > .list-row.home-account-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .home-screen .two > .panel > .home-account-row > .row-tags {
    grid-column: 2;
  }
}

.phone-frame .roll-row,
.phone-frame .home-screen .two > .panel > .list-row.home-account-row {
  grid-template-columns: 40px minmax(0, 1fr);
}

.phone-frame .roll-row .row-tags,
.phone-frame .home-screen .two > .panel > .home-account-row > .row-tags {
  grid-column: 2;
}

.home-screen .two > .panel > .list-row .logo-frame,
.phone-frame .home-screen .two > .panel > .list-row .logo-frame {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 2px;
  flex-shrink: 0;
}

.home-screen .two > .panel > .list-row .list-row-main,
.phone-frame .home-screen .two > .panel > .list-row .list-row-main {
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}

.home-screen .two > .panel > .list-row .kicker,
.phone-frame .home-screen .two > .panel > .list-row .kicker {
  line-height: 1.3;
}

.home-screen .two > .panel > .list-row .name,
.phone-frame .home-screen .two > .panel > .list-row .name {
  line-height: 1.35;
}

.home-screen .two > .panel > .list-row .list-row-main .row-tags,
.phone-frame .home-screen .two > .panel > .list-row .list-row-main .row-tags {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.home-screen .two > .panel > p.note,
.phone-frame .home-screen .two > .panel > p.note,
.home-screen .two > .panel > p.note a,
.phone-frame .home-screen .two > .panel > p.note a {
  font-size: 13px;
}

.home-screen .two > .panel > p.note a,
.phone-frame .home-screen .two > .panel > p.note a {
  font-weight: 500;
}

.approver-card {
  margin-top: 16px;
}

.approver-assign {
  display: grid;
  gap: 12px;
}

.approver-row {
  padding: 16px;
}

.approver-school {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.approver-school h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.approver-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.signin-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.signin-panel legend {
  font-weight: 600;
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .approver-picks {
    grid-template-columns: 1fr;
  }
}

.post-preview {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.post-preview-kicker {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  line-height: 1.2;
}

.fb-mock,
.ig-mock,
.yt-mock,
.li-mock,
.x-mock,
.th-mock,
.tt-mock {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  max-width: 440px;
  box-shadow: 0 8px 24px rgba(43, 136, 217, 0.1);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}

.mock-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.mock-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mock-caption,
.ig-caption {
  margin: 0;
  padding: 8px 16px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

.caption-credit,
.credit-foot {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92em;
}

.credit-foot {
  margin: 8px 0 0;
}

.people-role-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 12px;
}

.people-role-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.2fr) minmax(12rem, 1fr) minmax(10rem, 1fr) minmax(12rem, 1fr);
  gap: 14px 16px;
  align-items: end;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
}

.people-role-row:last-child {
  border-bottom: 0;
}

.people-role-row > div:first-child {
  min-width: 0;
  padding-bottom: 2px;
}

.people-role-row .name {
  color: var(--brand, #082048);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.people-role-row .handle {
  margin: 0;
  line-height: 1.4;
  color: var(--muted);
}

.people-role-row .field {
  margin: 0;
}

.people-role-row .field label {
  color: var(--muted);
}

#people-roles .panel > .empty {
  padding: 18px 20px 20px;
  margin: 0;
}

#people-roles .actions {
  padding: 4px 0 8px;
}

@media (max-width: 800px) {
  .people-role-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 18px 16px;
  }

  .people-role-row > div:first-child {
    padding: 2px 0 6px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2px;
  }
}

.ig-caption {
  padding-top: 0;
}

.post-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-av img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-av-letter {
  background: var(--accent-soft);
  color: var(--brand-purple);
  font-weight: 700;
}

.post-media {
  position: relative;
  background: #ece8f8;
  overflow: hidden;
}

.post-media img:not(.post-media-mark) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-media-fb {
  aspect-ratio: 4 / 3;
}

.post-media-sq {
  aspect-ratio: 1 / 1;
}

.post-media-wide {
  aspect-ratio: 16 / 9;
}

.post-media-tall {
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.post-media-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.post-media-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.9;
}

.post-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(10, 6, 20, 0.18);
}

.post-play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--brand-purple);
}

.mock-chrome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mock-chrome span {
  text-align: center;
  padding: 11px 6px;
}

.ig-chrome {
  border-top: 0;
  justify-items: start;
  padding: 8px 8px 4px;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
}

.ig-mock .mock-head {
  padding-bottom: 10px;
}

.yt-meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
}

.yt-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tt-mock {
  max-width: 280px;
  position: relative;
  background: #1a1430;
}

.tt-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 20, 0.72));
  color: #fff;
}

.tt-overlay .mock-caption {
  color: #fff;
  padding: 8px 0 0;
}

.li-mock .mock-chrome {
  grid-template-columns: repeat(4, 1fr);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-alt,
.review-looks {
  margin: 0;
}

.review-alt-body,
.review-looks-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-alt-body .field,
.review-looks-body .field {
  margin: 0;
}

.review-looks .actions,
#review-form .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
  padding: 8px 0 0;
  align-items: stretch;
}

.review-looks .actions .btn,
#review-form .actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: visible;
  box-sizing: border-box;
}

.review-looks .actions #approve,
#review-form .actions #approve {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.review-looks .actions #request-changes,
#review-form .actions #request-changes {
  background: #fff;
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}

.review-looks .actions #escalate-post,
#review-form .actions #escalate-post {
  background: var(--call);
  color: #fff;
  border-color: var(--call);
}

.review-looks .actions #flag-story,
#review-form .actions #flag-story {
  background: var(--present);
  color: #fff;
  border-color: var(--present);
}

.review-looks .actions #approve:hover,
#review-form .actions #approve:hover {
  background: linear-gradient(90deg, #2f5de8 0%, #6b35d8 100%);
}

.review-looks .actions #request-changes:hover,
#review-form .actions #request-changes:hover {
  background: var(--accent-soft);
}

.review-looks .actions #escalate-post:hover,
#review-form .actions #escalate-post:hover {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}

.review-looks .actions #flag-story:hover,
#review-form .actions #flag-story:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.review-view-actions {
  margin-top: 16px;
  padding: 4px 0 8px;
  align-items: center;
  gap: 12px;
}

.review-view-actions .btn {
  flex-shrink: 0;
}

.review-view-actions .live-link {
  min-width: 0;
  line-height: 1.4;
}

.quiet-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ============================================================
   Insights design system — calm, spacious, scannable
   Root causes of prior cramped feel:
   - 5 equal metric cards with 12px gaps
   - nested findings / coach mini-cards inside navy-header panels
   - 4–6px internal text gaps; text near edges via shared panel chrome
   - tabs never switched views; everything piled into Overview
   ============================================================ */
.insight-shell {
  --insight-gap: 24px;
  --insight-gap-lg: 40px;
  --insight-pad: 24px;
  --insight-pad-lg: 28px;
  --insight-radius: var(--radius-card);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 48px;
  box-sizing: border-box;
}

.page-head + .section-tabs + .insight-shell {
  margin-top: 0;
}

.insight-shell > .insight-toolbar {
  margin-bottom: 24px;
}

.insight-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--insight-radius);
}

.insight-toolbar .quiet-note {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  line-height: 1.5;
}

.insight-period {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.insight-custom-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.insight-custom-range label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
}

.insight-custom-range input[type="date"] {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
}

.insight-section {
  margin: 0 0 var(--insight-gap-lg);
}

.insight-section:last-child {
  margin-bottom: 0;
}

.insight-section-head {
  margin: 0 0 22px;
}

.insight-section-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  background: none;
  padding: 0;
  border: 0;
}

.insight-section-desc {
  margin: 8px 0 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 450;
}

.insight-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--insight-radius);
  padding: var(--insight-pad);
  box-shadow: none;
}

.insight-card .empty,
.insight-card > .quiet-note:last-child {
  margin: 0;
}

.insight-card-head {
  margin: 0 0 20px;
}

.insight-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.insight-card-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--insight-gap);
}

.insight-metric {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--insight-radius);
  padding: 22px 24px;
  min-width: 0;
}

.insight-metric-value {
  margin: 0 0 8px;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.insight-metric-label {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
}

.insight-trend {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.4;
}

.insight-trend.up {
  color: var(--call);
}

.insight-trend.down {
  color: var(--danger);
}

.insight-delta {
  font-weight: 650;
  font-size: 13px;
}

.insight-chart-card {
  padding: var(--insight-pad-lg);
}

.insight-chart-canvas {
  padding: 8px 4px 0;
}

.insight-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  color: var(--brand-cyan);
}

.insight-chart-area {
  fill: rgba(0, 180, 216, 0.12);
}

.insight-chart-line {
  stroke: var(--brand-cyan);
  stroke-width: 3;
}

.insight-chart circle {
  fill: var(--brand-cyan);
}

.insight-chart text {
  fill: var(--muted);
  font-size: 11px;
}

.insight-stood-out {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.insight-stood-out li {
  margin: 0;
  padding: 0;
  border: 0;
}

.insight-stood-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-stood-delta {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.insight-stood-delta.up {
  color: var(--call);
}

.insight-stood-delta.down {
  color: var(--danger);
}

.insight-stood-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.insight-coach-card .insight-coach-primary {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.insight-coach-support {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.insight-coach-window {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: rgba(0, 66, 153, 0.05);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.insight-coach-window span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-disclose {
  margin: 0 0 20px;
}

.insight-disclose summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: var(--brand-blue, #004299);
  list-style: none;
}

.insight-disclose summary::-webkit-details-marker {
  display: none;
}

.insight-disclose[open] summary {
  margin-bottom: 16px;
}

.insight-coach-more {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-coach-more li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insight-coach-more strong {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-coach-more span {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.insight-coach-more em {
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.insight-actions-footer {
  margin-top: var(--insight-gap-lg);
  padding-top: 8px;
}

.insight-list-card {
  padding: 8px 0;
}

.insight-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule);
}

.insight-list-row:last-child {
  border-bottom: 0;
}

.insight-list-row:hover {
  background: rgba(0, 66, 153, 0.03);
}

.insight-list-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-list-main strong {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

.insight-list-main span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.insight-list-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.insight-list-metrics b {
  color: var(--ink);
  font-weight: 700;
}

.insight-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--insight-gap);
}

.insight-account-card {
  padding: var(--insight-pad-lg);
}

.insight-account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.insight-account-name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.insight-account-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.insight-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 66, 153, 0.08);
  color: var(--ink-soft);
}

.insight-pill.up {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.insight-pill.down {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.insight-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.insight-account-stats b {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.insight-account-stats span {
  font-size: 12px;
  color: var(--muted);
}

.insight-account-trend {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}

.insight-account-trend.up {
  color: var(--call);
}

.insight-account-trend.down {
  color: var(--danger);
}

.insight-account-next {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.insight-account-next span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--insight-gap);
}

.insight-split-tight {
  margin-top: 4px;
}

.insight-plain-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.insight-plain-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insight-plain-list strong {
  font-size: 15px;
  color: var(--ink);
}

.insight-plain-list span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.insight-kpi {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.insight-kpi strong {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.insight-kpi-pair {
  margin-bottom: 16px;
}

.insight-mini-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.audience-bar {
  margin: 0 0 14px;
}

.audience-bar:last-child {
  margin-bottom: 0;
}

.audience-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.audience-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eef5;
  overflow: hidden;
}

.audience-bar-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-teal));
  border-radius: 999px;
}

.insight-retention {
  display: block;
  width: 100%;
  max-height: 160px;
  color: var(--brand-cyan);
}

.insight-detail-page > .page-head {
  margin-bottom: 28px;
}

.insight-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--insight-gap);
  align-items: start;
  margin-bottom: var(--insight-gap-lg);
}

.insight-metrics-col {
  display: flex;
  flex-direction: column;
  gap: var(--insight-gap);
}

.insight-metrics-col .insight-section {
  margin-bottom: 0;
}

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

.insight-why-observations {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insight-why-observations li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-why-observations strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.insight-why-observations span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.insight-context-clean {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-context-clean li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.insight-context-clean strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.insight-context-clean span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.insight-context-clean b {
  flex-shrink: 0;
  font-size: 14px;
}

.insight-context-clean .up b {
  color: var(--call);
}

.insight-context-clean .down b {
  color: var(--danger);
}

/* Insights tabs: breathing room into filter/content */
.section-tabs:has(+ .insight-shell) {
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .insight-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .insight-shell {
    padding: 0 24px 40px;
  }

  .insight-detail-top,
  .insight-split-2,
  .insight-account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .insight-shell {
    --insight-gap: 16px;
    --insight-gap-lg: 32px;
    --insight-pad: 18px;
    --insight-pad-lg: 20px;
    padding: 0 16px 32px;
  }

  .insight-metrics,
  .insight-metrics-detail,
  .insight-account-stats {
    grid-template-columns: 1fr;
  }

  .insight-metric {
    padding: 18px 20px;
  }

  .insight-list-row {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .insight-list-metrics {
    align-items: flex-start;
  }

  .insight-toolbar {
    padding: 14px 16px;
  }
}

.post-results {
  margin: 0 0 12px;
}

.post-results-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.post-stat {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.post-stat b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 4px;
}

.post-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.post-results-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.result-audience-lead {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.audience-bar {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.audience-bar:last-of-type {
  margin-bottom: 0;
}

.audience-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.audience-bar-label strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.audience-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}

.audience-bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-purple), var(--call));
}

.result-advice-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.post-preview-live .post-preview-kicker {
  color: var(--present);
  margin-bottom: 12px;
}

.result-audience,
.result-advice {
  margin-bottom: 12px;
}

.panel > h2 + .review-filters {
  padding: 12px 16px 8px;
  margin-bottom: 0;
}

.sibling-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.review-meta {
  margin-top: 12px;
}

.review-meta .fields {
  padding: 12px 0 0;
  grid-template-columns: 1fr 1fr;
}

.signoff-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.signoff-list li {
  padding: 10px 0;
  border-top: 1px solid #cfe4f2;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.signoff-list li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.signoff-who {
  font-weight: 650;
}

.signoff-when {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.signoff-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.content > .posted-banner,
.content > .feedback {
  margin-left: 0;
  margin-right: 0;
}

.content > .writing-check {
  margin: 0 0 16px;
}

@media (max-width: 980px) {
  .fb-mock,
  .ig-mock,
  .yt-mock,
  .li-mock,
  .x-mock,
  .th-mock {
    max-width: 100%;
  }

  .review-meta .fields {
    grid-template-columns: 1fr;
  }

  .review-view-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .review-looks .actions .btn,
  #review-form .actions .btn {
    font-size: 12px;
    padding: 8px 6px;
  }
}

@media print {
  .guide-print-hide,
  .guide-doc .app-banner {
    display: none;
  }

  .guide-page {
    padding: 0;
  }
}

body.sc-modal-open {
  overflow: hidden;
}

.sc-modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(10, 6, 20, 0.46);
}

.sc-modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: var(--space-5) var(--space-5) var(--space-5);
  box-shadow: 0 18px 48px rgba(10, 6, 20, 0.2);
}

.sc-modal h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-transform: none;
  background: none;
  color: var(--ink);
  padding: 0;
}

.sc-modal-school {
  margin: 14px 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.sc-modal .quiet-note {
  margin: 6px 0 0;
}

.sc-modal-accounts {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 12px;
}

.sc-modal-accounts li {
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.sc-modal-accounts li + li {
  border-top: 1px solid var(--rule);
}

.sc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sc-modal-actions .btn {
  min-height: 44px;
}

.inbox {
  padding: 16px 18px 12px;
}

.inbox-block {
  border-bottom: 1px solid var(--rule);
}

.inbox-block:last-child {
  border-bottom: 0;
}

.inbox-block .list-row {
  border-bottom: 0;
  cursor: default;
  align-items: flex-start;
  padding: 18px 20px;
}

.inbox .inbox-block .list-row {
  padding: 16px 0;
}

.inbox-block .handle {
  margin: 8px 0 0;
}

.inbox-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
}

.inbox-act {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.inbox-act:hover,
.inbox-act:focus-visible {
  color: var(--ink);
}

.inbox-act-draft {
  font-weight: 600;
  color: var(--ink);
}

.todo-acc-body .inbox {
  padding: 4px 0 0;
}

.inbox-guide .note {
  padding: 12px 0 4px;
}

.inbox-guide-h {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.inbox-guide .tips-list {
  padding-bottom: 4px;
}

.draft-reply {
  padding: 16px 20px 20px;
}

.inbox .draft-reply {
  padding: 16px 0 12px;
}

.draft-tone {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.draft-suggests {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.draft-suggest {
  display: grid;
  gap: 6px;
  text-align: left;
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1.45;
}

.draft-suggest:hover,
.draft-suggest.is-on {
  border-color: var(--call);
}

.draft-reply textarea {
  width: 100%;
  min-height: 110px;
  margin-top: 8px;
  padding: 16px 18px;
}

.draft-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quiz-intro {
  padding-top: 0;
}

.quiz-form,
#checkin.quiz-form {
  padding: 8px 16px 0;
  width: 100%;
  text-align: left;
}

.quiz-q,
#checkin .quiz-q {
  display: block;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.quiz-q legend,
#checkin .quiz-q legend {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
}

.quiz-picks,
#checkin .quiz-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px 20px;
  margin: 6px 0;
  clear: both;
  width: 100%;
  text-align: left;
}

.quiz-pick,
#checkin .quiz-pick {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 36px;
  padding: 4px 2px 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.quiz-pick:has(input:checked),
#checkin .quiz-pick:has(input:checked) {
  color: #3b1d8f;
}

.quiz-pick input {
  accent-color: var(--brand-purple);
}

.quiz-note {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.quiz-result {
  padding: 16px 18px;
}

.quiz-result.pass {
  background: #d4f0ea;
}

.quiz-result.needs {
  background: var(--accent-soft);
}

.quiz-score {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.wf-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px 16px 16px;
}

.wf-start-grid .tool-card {
  margin: 0;
}

.wf-steps {
  padding: 8px 16px 16px;
}

.wf-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}

.wf-step input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-purple);
  flex-shrink: 0;
}

.wf-step strong {
  display: block;
  font-size: 15px;
}

.wf-step em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .quiz-picks,
  #checkin .quiz-picks {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-buttons);
  align-items: center;
}

.optout-callout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: min(100%, 180px);
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff4f1;
  border: 2px solid #e07a5f;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(224, 122, 95, 0.15);
}

.optout-callout:hover,
.optout-callout:focus-visible {
  background: #ffe8e1;
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.optout-callout strong {
  font-size: 15px;
  font-weight: 750;
  color: #9a3412;
  letter-spacing: -0.01em;
}

.optout-callout span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.page-head > .optout-callout {
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.page-head:has(> .optout-callout) {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.page-head-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.page-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.page-head-main > div:not(.page-head-brand) {
  flex: 1;
  min-width: 0;
}

.page-head-stack > .optout-callout {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.optout-callout-banner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 0 20px;
  padding: 14px 18px;
  box-sizing: border-box;
}

.compose-form .campaign-attach {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compose-form .campaign-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--wash, #f7f8fc);
}

.compose-form .campaign-pick[hidden] {
  display: none;
}

.compose-form .campaign-pick select {
  width: 100%;
  max-width: 100%;
}

.optout-callout-banner strong {
  font-size: 16px;
}

.optout-callout-banner span {
  font-size: 14px;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 0 0 24px;
}

.campaign-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.campaign-card:hover,
.campaign-card:focus-visible {
  border-color: var(--brand-purple, var(--brand-teal));
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.campaign-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

.campaign-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 18px;
}

.campaign-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: #fff;
}

.campaign-slot-main {
  min-width: 0;
  flex: 1;
}

.campaign-slot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.campaign-slot-form {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.campaign-slot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.campaign-stat-grid {
  margin: 0 0 16px;
}

.amb-home .amb-hero-row {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

.amb-home .submit-hero {
  margin: 0;
}

.amb-secondary-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 72px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid var(--brand-purple);
  background: linear-gradient(135deg, #e8f8f4 0%, #e5f3fb 100%);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(91, 33, 182, 0.08);
}

.amb-secondary-cta:hover,
.amb-secondary-cta:focus-visible {
  background: linear-gradient(135deg, #dff5ef 0%, #d7eef9 100%);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.amb-secondary-cta strong {
  display: block;
  font-size: 17px;
  font-weight: 750;
  color: var(--brand-purple);
  letter-spacing: -0.02em;
}

.amb-secondary-cta span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.35;
}

.amb-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.amb-stat {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.amb-stat b {
  display: block;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.1;
}

.amb-stat span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

.amb-brief-body,
.amb-panel-pad {
  padding: 18px 20px 20px;
}

.amb-event {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.amb-assign {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.amb-assign-page {
  margin: 0 0 12px;
  padding: 0 4px;
}

.amb-cover {
  margin: 14px 0 4px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: #e8f8f4;
  border: 1px solid #d8c9f5;
}

.amb-cover-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.amb-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amb-cover .note {
  margin: 10px 0 0;
}

.amb-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.amb-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.amb-check-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amb-check-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 12px 4px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  line-height: 1.4;
}

.amb-check-btn:hover,
.amb-check-btn:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.amb-check.is-done .amb-check-btn {
  background: transparent;
}

.amb-check.is-done .amb-check-btn:hover,
.amb-check.is-done .amb-check-btn:focus-visible {
  background: #eef8f2;
}

.amb-check-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #fff;
  box-sizing: border-box;
}

.amb-check.is-done .amb-check-mark {
  border-color: var(--present);
  background: var(--present);
  color: #fff;
}

.amb-tip-pad .amb-tip {
  margin: 0 0 12px;
  line-height: 1.45;
}

.amb-practice-out {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .amb-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-head:has(> .optout-callout) {
    flex-direction: column;
    align-items: stretch;
  }

  .page-head > .optout-callout {
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  .page-head-actions:has(.optout-callout) {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .page-head-actions .optout-callout {
    width: 100%;
    box-sizing: border-box;
  }
}

.amb-portfolio-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 72px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.amb-portfolio-cta:hover,
.amb-portfolio-cta:focus-visible {
  border-color: var(--brand-purple);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.amb-portfolio-cta strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.amb-portfolio-cta span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: var(--brand-purple);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.portfolio-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--wash);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-thumb.is-empty {
  border: 1px dashed var(--rule);
}

.portfolio-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portfolio-card-body .name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.portfolio-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.portfolio-reach {
  font-size: 12px;
  color: var(--ink-soft);
}

.remind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.remind-school {
  margin: 0 0 12px;
}

.remind-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}

.remind-row:last-child {
  border-bottom: 0;
}

.remind-row:hover {
  background: var(--accent-soft);
}

.remind-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 4px;
  accent-color: var(--call);
}

.remind-row > div:not(.row-tags) {
  flex: 1;
  min-width: 0;
}

.remind-letter {
  padding: 16px;
}

.sc-modal .remind-letter {
  padding: 12px 0 0;
}

.remind-preview {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 12px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.remind-modal {
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.optout-row {
  cursor: default;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.optout-photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: #eceff3;
}

.optout-class {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.optout-grade {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.optout-avatar {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.optout-avatar.is-demo-sil {
  background: #5b6472;
  color: #e8ebf0;
}

.optout-avatar.is-demo-sil svg {
  width: 36px;
  height: 36px;
  margin-top: 10px;
}

.optout-demo-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.optout-school {
  border-bottom: 1px solid var(--rule);
}

.optout-school:last-child {
  border-bottom: 0;
}

.optout-school > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.optout-school > summary:hover {
  background: var(--accent-soft);
}

.optout-count {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.optout-school .optout-row,
.optout-school .empty {
  padding-left: 16px;
  padding-right: 16px;
}

.optout-remove {
  flex-shrink: 0;
  align-self: center;
}

/* Action Center */
.action-center {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.action-center .page-head {
  margin-bottom: 0;
}

.action-center .action-stats {
  margin-bottom: 0;
}

.action-panel > h2 {
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-teal));
}

.action-task-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-1) 0 var(--space-2);
}

.action-task {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s ease;
}

.action-task:last-child {
  border-bottom: 0;
}

.action-task:hover {
  background: var(--accent-soft, #eef6fc);
}

.action-task-copy {
  display: block;
  padding: 0;
  line-height: 1.35;
}

.action-task-copy strong {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.action-task-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-cyan);
  padding-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.action-panel .activity-row,
.action-panel .list-row {
  padding: var(--space-3) var(--space-5);
}

.action-panel > .empty,
.action-panel > .note {
  padding: var(--space-4) var(--space-5);
  margin: 0;
}


/* Demo Guide (portfolio tour) */
.demo-guide {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(360px, calc(100vw - 24px));
}

.demo-guide-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(8, 32, 72, 0.12);
  cursor: pointer;
  font-weight: 700;
}

.demo-guide-fab:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

.demo-guide-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.demo-guide-panel {
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(8, 32, 72, 0.16);
  padding: 16px 16px 14px;
}

.demo-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-guide-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-guide-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  background: none;
  padding: 0;
  text-transform: none;
  letter-spacing: -0.02em;
}

.demo-guide-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.demo-guide-close:hover,
.demo-guide-close:focus-visible {
  background: var(--accent-soft);
  color: var(--ink);
  outline: none;
}

.demo-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-guide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}

.demo-guide-item.is-done {
  background: #f0faf6;
  border-color: #c6e9dc;
}

.demo-guide-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.demo-guide-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.demo-guide-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--rule);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: #0b7a5a;
}

.demo-guide-item.is-done .demo-guide-mark {
  background: #0b9f8a;
  border-color: #0b9f8a;
  color: #fff;
}

.demo-guide-label {
  line-height: 1.3;
}

.demo-guide-go {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-cyan);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.demo-guide-go:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.demo-guide-foot {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.demo-guide-reset {
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
}

.demo-guide-reset:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.sidebar-foot .ghost#reset-demo {
  border: 0;
  background: transparent;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 4px;
  text-align: left;
}

@media (max-width: 980px) {
  .demo-guide {
    right: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

.phone-frame .demo-guide,
.phone-shell .demo-guide {
  right: 12px;
  bottom: 64px;
}


/* People: school → account → users */
.people-school-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.people-school {
  --school-brand: #2b88d9;
  --school-accent: #00c48a;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--school-brand) 14%, #ffffff) 0%, #ffffff 42%);
  border: 1px solid color-mix(in srgb, var(--school-brand) 28%, var(--rule));
  border-left: 6px solid var(--school-brand);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--school-brand) 10%, transparent);
}

.people-school > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  background: color-mix(in srgb, var(--school-accent) 8%, #f7fbfe);
  border-bottom: 1px solid transparent;
}

.people-school[open] > summary {
  border-bottom-color: color-mix(in srgb, var(--school-accent) 14%, var(--rule));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--school-brand) 8%, #f7fbfe) 0%,
    color-mix(in srgb, var(--school-accent) 10%, #ffffff) 100%
  );
}

.people-school > summary::-webkit-details-marker { display: none; }

.people-school > summary .logo-frame {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 3px;
}

.people-school-swatch {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--school-brand), var(--school-accent));
}

.people-school > summary span:not(.people-school-swatch) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.people-school > summary strong {
  color: color-mix(in srgb, var(--school-brand) 72%, #082048);
}

.people-school > summary em {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.people-school-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: color-mix(in srgb, var(--school-brand) 4%, var(--paper));
}

.people-account-block {
  border: 1px solid color-mix(in srgb, var(--school-brand) 16%, var(--rule));
  border-radius: 12px;
  background: #fff;
  padding: 14px 14px 8px;
}

.people-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--school-brand) 12%, var(--rule));
}

.people-account-head .name {
  color: color-mix(in srgb, var(--school-brand) 55%, #082048);
  font-weight: 700;
}

.people-account-empty {
  margin: 0 0 8px;
  padding: 8px 0;
}

.people-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.people-user-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.1fr) minmax(10rem, 1fr) minmax(9rem, 0.9fr) minmax(10rem, 1fr);
  gap: 10px 12px;
  align-items: end;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.people-user-row.is-ref {
  grid-template-columns: 1fr;
  align-items: start;
  background: color-mix(in srgb, var(--school-brand) 5%, #ffffff);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--school-brand) 22%, var(--rule));
}

.people-user-row .name {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.people-user-row .handle {
  margin: 2px 0 0;
}

.people-user-row .field {
  margin: 0;
}

.people-school-team {
  margin-top: 4px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--school-accent) 35%, var(--rule));
  background: color-mix(in srgb, var(--school-accent) 8%, #ffffff);
}

.people-school-team h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: color-mix(in srgb, var(--school-brand) 60%, #082048);
}

.people-school-team > .handle {
  margin: 0 0 12px;
}

.people-add-panel .fields {
  padding: 16px 20px 20px;
}

.people-add-acc {
  margin: 0 0 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.people-add-acc > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #2b88d9 0%, #00c48a 100%);
}

.people-add-acc > summary::-webkit-details-marker {
  display: none;
}

.people-add-acc > .fields {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--rule);
}

#people-roles > .actions {
  margin: 8px 0 20px;
}

@media (max-width: 800px) {
  .people-user-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .people-account-head {
    flex-direction: column;
  }
}

.entity-social-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  display: grid;
  gap: 0.55rem;
}
.entity-social-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}
.entity-social-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 10rem;
  text-decoration: none;
  color: inherit;
}
.entity-social-platform {
  font-weight: 700;
  color: var(--ink);
}
.entity-social-handle {
  font-size: 0.92rem;
  color: var(--muted);
}
.panel.entity-socials > h2 + .note {
  margin: 0;
  max-width: none;
  padding: 16px 24px 8px;
}

/* Post Creative */
.pc-compose-field {
  margin-top: 1rem;
}

.pc-studio {
  border: 1px solid rgba(0, 66, 153, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #f3f8fd 0%, #ffffff 28%);
  padding: 24px;
}

.pc-studio-head {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.pc-studio-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: none;
  text-transform: none;
  padding: 0;
  border: 0;
}

.pc-brand-line {
  margin: 0;
  font-weight: 650;
  color: #004299;
}

.pc-studio-head .note {
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.pc-starts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pc-start {
  border: 1px solid rgba(0, 66, 153, 0.16);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}

.pc-start.active,
.pc-start:hover {
  border-color: #004299;
  background: rgba(0, 66, 153, 0.06);
  color: #004299;
}

.pc-panel {
  display: grid;
  gap: 28px;
}

.pc-section-head {
  margin: 0 0 16px;
}

.pc-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: none;
  text-transform: none;
  padding: 0;
  border: 0;
}

.pc-section-head p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.pc-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.pc-lib-item {
  border: 1px solid rgba(0, 66, 153, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}

.pc-lib-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pc-lib-item span {
  font-size: 0.78rem;
  line-height: 1.3;
}

.pc-photo-row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

.pc-photo-slot {
  border: 1px dashed rgba(0, 66, 153, 0.22);
  border-radius: 14px;
  min-height: 180px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.pc-photo-slot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.pc-photo-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(8, 32, 72, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.pc-photo-slot .empty {
  padding: 24px;
  margin: 0;
}

.pc-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-fields {
  display: grid;
  gap: 16px;
}

.pc-fields label {
  display: grid;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.92rem;
}

.pc-fields input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid rgba(0, 66, 153, 0.16);
  border-radius: 10px;
  background: #fff;
}

.pc-branding,
.pc-layouts {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 66, 153, 0.1);
  box-shadow: 0 8px 24px rgba(8, 32, 72, 0.04);
}

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

.pc-chip {
  text-align: left;
  border: 1px solid rgba(0, 66, 153, 0.14);
  border-radius: 12px;
  background: #f7fbfe;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 0;
}

.pc-chip strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.pc-chip span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.pc-chip.active {
  border-color: #004299;
  background: rgba(0, 66, 153, 0.06);
  box-shadow: inset 3px 0 0 #00a3c4;
}

.pc-add-photo {
  margin: 0 0 20px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px dashed rgba(0, 66, 153, 0.22);
}

.pc-add-photo.is-over {
  border-color: #004299;
  background: rgba(0, 66, 153, 0.08);
}

.pc-add-photo-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.pc-add-photo-head .note {
  margin: 4px 0 0;
}

.pc-photo-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.pc-photo-pick {
  position: relative;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #0e1a2b;
  aspect-ratio: 1;
  font: inherit;
}

.pc-photo-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-photo-pick-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 6px 6px;
  background: linear-gradient(transparent, rgba(8, 24, 48, 0.88));
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: left;
}

.pc-photo-pick.selected {
  border-color: #004299;
  box-shadow: 0 0 0 2px rgba(0, 66, 153, 0.28);
}

.pc-add-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.pc-layout-card {
  border: 1px solid rgba(0, 66, 153, 0.12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-layout-card:hover {
  border-color: rgba(0, 66, 153, 0.28);
}

.pc-layout-card.active {
  border-color: #004299;
  box-shadow: 0 0 0 1px #004299, 0 12px 28px rgba(0, 66, 153, 0.1);
}

.pc-thumb-wrap {
  background: linear-gradient(160deg, #082048 0%, #004299 55%, #00a3c4 100%);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pc-layout-meta {
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.pc-layout-meta strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.pc-layout-meta span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pc-layout-meta .btn {
  margin-top: 4px;
  justify-self: start;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

@media (max-width: 980px) {
  .pc-branding-grid,
  .pc-layout-grid {
    grid-template-columns: 1fr;
  }

  .pc-photo-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pc-studio {
    padding: 18px;
  }

  .pc-branding,
  .pc-layouts {
    padding: 16px;
  }

  .pc-layout-grid {
    gap: 16px;
  }
}

.compose-preview.panel {
  position: sticky;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
}
.post-preview-disclaimer,
.post-preview > .note,
.ig-grid-preview > .note {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.ig-grid-preview > .post-preview-kicker {
  margin: 0 0 4px;
}
.compose-preview .post-preview { margin-bottom: 0; }
.compose-preview .writing-check { margin-top: 0; }
.compose-side .live-check {
  margin: 0;
}
.compose-side .live-check-meta {
  margin-bottom: 12px;
}
.insight-preview-col .post-preview {
  margin-bottom: 0;
}
.insight-preview-col .post-preview-kicker,
.insight-preview-col .post-preview-disclaimer {
  margin: 0;
}
.preview-media-wrap { position: relative; }
.preview-carousel {
  position: absolute; top: 0.55rem; right: 0.55rem;
  background: rgba(8,24,48,0.72); color: #fff; border-radius: 999px;
  font-size: 0.72rem; padding: 0.15rem 0.45rem;
}
.preview-more {
  border: 0; background: none; color: var(--muted); font: inherit; font-weight: 650; padding: 0; cursor: default;
}
.post-media-portrait { aspect-ratio: 4 / 5; }
.mock-handle { margin: 0; color: var(--muted); font-size: 0.82rem; }

.ig-grid-preview { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--rule); }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 0.55rem;
  background: #fff;
}
.ig-grid-tile {
  position: relative; aspect-ratio: 1; background: #e8eef5; overflow: hidden;
}
.ig-grid-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-grid-tile.is-proposed { outline: 2px solid var(--call); outline-offset: -2px; }
.ig-grid-flag {
  position: absolute; left: 0.3rem; bottom: 0.3rem;
  background: rgba(11,159,138,0.92); color: #fff;
  font-size: 0.65rem; font-weight: 700; border-radius: 999px; padding: 0.12rem 0.4rem;
}
.ig-grid-empty { display: block; width: 100%; height: 100%; background: #d7e4f0; }

@media (max-width: 860px) {
  .pc-photo-row { grid-template-columns: 1fr; }
  .compose-preview { position: static; }
}

/* Section tabs + Account Discovery */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0 0 var(--space-5);
  padding: 0 0 var(--space-2);
  border-bottom: 1px solid var(--rule);
}
.page-head + .section-tabs {
  margin-top: 0;
  margin-bottom: var(--space-5);
}
.section-tabs a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.section-tabs a:hover {
  background: rgba(0, 66, 153, 0.06);
  color: var(--ink);
}
.section-tabs a.active {
  background: rgba(0, 66, 153, 0.12);
  color: #004299;
}

.discovery-list {
  display: grid;
  gap: var(--space-3);
}
.discovery-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: var(--pad-card-compact);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 26, 43, 0.04);
}
.discovery-card-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}
.discovery-card-head .account-card-name {
  margin: 2px 0;
}
.discovery-match,
.discovery-bio {
  margin: var(--space-2) 0;
  color: var(--ink);
}
.discovery-why {
  margin: var(--space-2) 0;
}
.discovery-why .kicker {
  margin: 0 0 2px;
}
.discovery-why ul {
  margin: var(--space-1) 0 0;
  padding-left: var(--space-4);
}
.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-buttons);
  margin-top: var(--space-3);
}
.expected-tag,
.expected-banner {
  color: var(--call);
  font-weight: 650;
}
.duplicate-banner {
  margin-top: var(--space-4);
  border-left: 3px solid #004299;
  padding: var(--space-3) var(--space-4);
}
.choice-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: var(--space-2) 0;
  font-weight: 550;
}
.creative-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.creative-entry .tool-card,
a.tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--pad-card);
}
.creative-entry .tool-card strong,
a.tool-card strong {
  display: block;
  margin-bottom: 6px;
  color: #004299;
}
.creative-entry .tool-card span,
a.tool-card span {
  display: block;
  color: var(--ink-soft);
  line-height: 1.45;
}
.social-map-root > strong {
  font-size: 1.1rem;
}
.social-map-schools,
.social-map-accounts {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0 0 0 var(--space-3);
  border-left: 2px solid rgba(0, 66, 153, 0.18);
}
.social-map-program {
  font-weight: 650;
  margin: var(--space-2) 0 var(--space-1);
}
.social-map-school summary {
  cursor: pointer;
  font-weight: 700;
}
.social-map-school em {
  color: var(--muted);
  font-style: normal;
  font-weight: 550;
}

.smap-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 24px;
  color: var(--ink-soft);
}
.smap-metrics strong {
  color: var(--ink);
}
.smap-filters {
  margin-bottom: 24px;
  align-items: center;
}
.smap-filters .search {
  flex: 1 1 16rem;
  min-width: 16rem;
  max-width: 28rem;
}
.smap-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.smap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.smap-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}
.smap-card-wide {
  width: 100%;
}
.smap-card[open] {
  grid-column: 1 / -1;
}
.smap-card > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}
.smap-card > summary::-webkit-details-marker {
  display: none;
}
.smap-card > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.smap-card[open] > summary {
  border-bottom: 1px solid var(--rule);
}
.smap-card[open] > summary::after {
  content: "▴";
}
.smap-card > summary .logo-frame {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.smap-card-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.smap-card-copy strong {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}
.smap-card-copy span {
  font-size: 13px;
  color: var(--ink-soft);
}
.smap-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 20px;
  background: #f7fbfe;
}
.smap-card-body .empty {
  margin: 4px 8px 8px;
}
.smap-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.smap-account:hover,
.smap-account:focus-visible {
  border-color: var(--brand-cyan);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.smap-account .logo-frame {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.smap-account-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.smap-account-copy strong {
  font-weight: 650;
}
.smap-account-copy span {
  font-size: 13px;
  color: var(--ink-soft);
}
.smap-account .pill {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .smap-grid {
    grid-template-columns: 1fr;
  }
  .smap-card > summary {
    padding: 16px;
  }
  .smap-card-body {
    padding: 12px 12px 16px;
  }
}

.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  max-width: 880px;
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-5);
}
.demo-role-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--pad-card);
  box-shadow: 0 8px 24px rgba(14, 26, 43, 0.05);
  text-align: left;
}
.demo-role-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #004299;
  line-height: 1.3;
}
.demo-role-card p {
  flex: 1 1 auto;
  margin: 0 0 var(--space-4);
  color: var(--muted);
  line-height: 1.45;
}
.demo-role-card .btn {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
}
.demo-more-roles {
  max-width: 880px;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-5);
}
.demo-more-roles-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--pad-card);
  box-shadow: 0 8px 24px rgba(14, 26, 43, 0.05);
  text-align: left;
}
.demo-more-roles-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #004299;
  line-height: 1.3;
}
.demo-more-roles-lede {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  line-height: 1.45;
}
.demo-more-roles .signin-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.demo-more-roles .signin-preview {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-3);
  align-items: end;
}
@media (max-width: 640px) {
  .demo-more-roles .signin-preview {
    grid-template-columns: 1fr;
  }
}
.signin-sublede {
  margin: var(--space-1) 0 0;
  color: var(--muted);
}
body.home .hero {
  margin: 0 0 var(--space-5);
  padding: var(--space-2) 0 0;
}
/* Home: New Account Found — compact attention item (not a hero/banner) */
.found-account-preview {
  padding: var(--space-3) var(--space-5) var(--space-2);
  border-bottom: 1px solid var(--rule);
}

.found-account-summary {
  margin: 0 0 var(--space-3);
  font-size: 13px;
  color: var(--ink-soft);
}

.found-account-summary strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.found-account-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.found-account-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand-cyan);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: none;
  min-height: 0;
}

.found-account-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 10px;
}

.found-account-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

.found-account-date {
  font-size: 12px;
  color: var(--muted);
}

.found-account-platform {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.found-account-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.found-account-handle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.found-account-match {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.found-account-match span {
  font-weight: 650;
  color: var(--ink);
}

.found-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.found-account-actions .btn {
  padding: 8px 12px;
  font-size: 14px;
}

.found-account-more {
  margin: var(--space-3) 0 0;
  font-size: 13px;
}

.panel > h2 + .found-account-preview {
  padding-top: var(--space-3);
}

@media (max-width: 768px) {
  .found-account-card {
    padding: 16px;
  }
}

.discovery-filters .count {
  opacity: 0.75;
  font-size: 0.85em;
}

@media (max-width: 768px) {
  .sc-modal {
    padding: var(--space-5) var(--space-4);
  }
  .action-task {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .demo-role-card,
  .discovery-card,
  .creative-entry .tool-card,
  a.tool-card {
    padding: var(--pad-card-compact);
  }
}

/* —— Prepare Media (school-aware, reusable) —— */
.pm-school-switch {
  max-width: 320px;
  margin: 0 0 var(--space-5);
}
.pm-school-switch label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 650;
  font-size: 0.9rem;
}
.pm-school-switch select {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}
.pm-step-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #004299;
}
.pm-step > h2 {
  margin: 0 0 6px;
  padding: 0;
  background: none;
  color: #004299;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  font-weight: 700;
}
.pm-step > .lede {
  margin: 0 0 16px;
  padding: 0;
  max-width: none;
}
.pm-dropzone {
  margin-top: var(--space-4);
  padding: 40px 28px;
  border: 2px dashed rgba(0, 66, 153, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fafc 0%, #eef4fa 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pm-dropzone.over {
  border-color: #004299;
  background: #e8f1fb;
}
.pm-dropzone strong {
  font-size: 1.2rem;
  color: var(--ink);
}
.pm-dropzone > span {
  color: var(--muted);
}
.pm-drop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.pm-library-strip {
  margin-top: var(--space-5);
}
.pm-strip-label {
  margin: 0 0 12px;
  font-weight: 650;
  color: var(--ink-soft);
}
.pm-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pm-thumb {
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef5;
  cursor: pointer;
}
.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}
.pm-main,
.pm-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.pm-panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(14, 26, 43, 0.04);
}
.pm-panel h2,
.pm-panel h3 {
  margin: 0 0 8px;
  color: #004299;
}
.pm-panel .lede {
  margin: 0 0 16px;
}
.pm-selected-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.pm-selected-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--rule);
}
.pm-selected-meta > div {
  flex: 1 1 180px;
  min-width: 0;
}
.pm-purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.pm-purpose {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  min-height: 110px;
}
.pm-purpose:hover {
  border-color: rgba(0, 66, 153, 0.35);
}
.pm-purpose.active {
  border-color: #004299;
  background: rgba(0, 66, 153, 0.06);
  box-shadow: inset 0 0 0 1px #004299;
}
.pm-purpose strong {
  color: var(--ink);
  font-size: 1rem;
}
.pm-purpose-size {
  font-weight: 650;
  color: #004299;
  font-size: 0.9rem;
}
.pm-purpose-plat {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}
.pm-purpose-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.pm-purpose-mini .pm-purpose {
  min-height: 0;
  padding: 12px;
}
.pm-purpose-mini .pm-purpose-plat {
  display: none;
}
.pm-workspace-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pm-stage-wrap {
  background: #0e1a2b;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.pm-canvas {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #132338;
}
.pm-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pm-tools .btn {
  margin: 0;
}
.pm-smart {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 66, 153, 0.06);
  border: 1px solid rgba(0, 66, 153, 0.18);
}
.pm-smart p {
  margin: 6px 0 12px;
  color: var(--muted);
}
.pm-smart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pm-smart-inline {
  margin-top: 14px;
}
.pm-custom-size {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.pm-custom-size label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 650;
  font-size: 0.88rem;
}
.pm-custom-size input {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.pm-set-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 0 16px;
}
.pm-set-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.pm-version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.pm-version-card {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-version-preview {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1a2b;
}
.pm-version-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.pm-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-check li {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
.pm-check .ok {
  color: #0b6b4f;
}
.pm-check .warn {
  color: #9a6700;
}
.pm-alt-suggest {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}
.pm-alt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-weight: 650;
  font-size: 0.9rem;
}
.pm-alt-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  resize: vertical;
  font: inherit;
  line-height: 1.4;
}
.pm-brand-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  font-weight: 600;
  line-height: 1.35;
}
.pm-brand-swatches {
  display: flex;
  gap: 8px;
}
.pm-brand-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pm-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-actions-panel .btn {
  width: 100%;
}
.pm-picker-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 26, 43, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pm-picker {
  width: min(920px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(14, 26, 43, 0.25);
}
.pm-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pm-picker-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #004299;
}
.pm-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.pm-picker-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.pm-picker-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #e8eef5;
}
.pm-picker-card span {
  display: block;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 980px) {
  .pm-layout {
    grid-template-columns: 1fr;
  }
  .pm-side {
    order: 2;
  }
}

/* —— Media Library (compact DAM shell) —— */
.ml-page-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 var(--space-4);
}
.ml-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--space-4);
}
.ml-summary > div {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
}
.ml-summary b {
  display: block;
  font-size: 1.25rem;
  color: #004299;
}
.ml-summary span {
  color: var(--muted);
  font-size: 0.85rem;
}
.ml-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}
.ml-side {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px;
}
.ml-side-label {
  margin: 12px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ml-side-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ml-side-link.active,
.ml-side-link:hover {
  background: rgba(0, 66, 153, 0.08);
  color: #004299;
}
.ml-side-create {
  margin-top: 12px;
  width: 100%;
}
.ml-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ml-tab {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ml-tab.active {
  background: #004299;
  border-color: #004299;
  color: #fff;
}
.ml-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ml-toolbar input,
.ml-toolbar select {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font: inherit;
}
.ml-toolbar input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
}
.ml-view-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.ml-view-toggle button {
  border: 0;
  background: #fff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ml-view-toggle button.active {
  background: rgba(0, 66, 153, 0.1);
  color: #004299;
}
.ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.ml-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.ml-thumb {
  position: relative;
  aspect-ratio: 1;
  background: #e8eef5;
}
.ml-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-card-body {
  padding: 12px;
}
.ml-name {
  margin: 0 0 4px;
  font-weight: 650;
}
.ml-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.ml-meta.soft {
  opacity: 0.85;
}
.ml-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8eef5;
  color: #004299;
}
.ml-badge.ready {
  background: rgba(11, 107, 79, 0.12);
  color: #0b6b4f;
}
.ml-badge.warn {
  background: rgba(154, 103, 0, 0.14);
  color: #9a6700;
}
.ml-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}
.ml-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.ml-fav.on {
  color: #be1238;
}
.ml-hover {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: none;
  gap: 6px;
  flex-wrap: wrap;
}
.ml-card:hover .ml-hover,
.ml-card:focus-within .ml-hover {
  display: flex;
}
.ml-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  z-index: 70;
  background: #fff;
  border-left: 1px solid var(--rule);
  padding: 20px;
  overflow: auto;
  box-shadow: -12px 0 40px rgba(14, 26, 43, 0.12);
}
.ml-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(14, 26, 43, 0.35);
}
.ml-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ml-drawer-preview img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.ml-sec {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.ml-sec h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #004299;
}
.ml-dl {
  margin: 0;
}
.ml-dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.ml-dl dt {
  color: var(--muted);
  font-weight: 600;
}
.ml-dl dd {
  margin: 0;
}
.ml-versions,
.ml-usage,
.ml-quality {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.ml-versions li,
.ml-usage li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}
.ml-quality .ok {
  color: #0b6b4f;
}
.ml-quality .warn {
  color: #9a6700;
}
.ml-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ml-use-sheet {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(14, 26, 43, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ml-use-sheet button {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: #f8fafc;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
@media (max-width: 900px) {
  .ml-layout {
    grid-template-columns: 1fr;
  }
  .ml-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.tpl-page {
  display: grid;
  gap: 18px;
}
.tpl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tpl-toolbar input,
.tpl-toolbar select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  min-width: 160px;
}
.tpl-toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
}
.tpl-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tpl-cat {
  font: inherit;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink);
}
.tpl-cat.active {
  background: #004299;
  border-color: #004299;
  color: #fff;
}
.tpl-brand-line {
  margin: 0;
  font-weight: 650;
  color: #004299;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tpl-card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tpl-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #0b1f3a;
  position: relative;
}
.tpl-format-square { aspect-ratio: 1; }
.tpl-format-landscape { aspect-ratio: 1200 / 630; }
.tpl-format-portrait { aspect-ratio: 1080 / 1350; }
.tpl-format-story { aspect-ratio: 9 / 16; max-height: 420px; }
.tpl-grid .tpl-preview.tpl-format-square,
.tpl-grid .tpl-preview.tpl-format-portrait,
.tpl-grid .tpl-preview.tpl-format-story {
  max-height: 280px;
}
.tpl-art {
  position: absolute;
  inset: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  box-sizing: border-box;
  text-align: left;
  overflow: hidden;
}
.tpl-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.tpl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, rgba(8,24,48,0.12), rgba(8,24,48,0.82));
}
.tpl-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: auto;
  position: relative;
  z-index: 1;
}
.tpl-kicker {
  margin: 0 0 4px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.tpl-title,
.tpl-huge {
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.tpl-huge { font-size: 1.35rem; }
.tpl-meta,
.tpl-body,
.tpl-note {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.95;
}
.tpl-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--c2, #cc0029);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  width: fit-content;
}
.tpl-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.tpl-stats,
.tpl-minimal,
.tpl-emergency {
  background: var(--c1, #004299);
}
.tpl-emergency { background: #111; }
.tpl-hiring {
  background: var(--c1, #004299);
}
.tpl-hiring ul {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 0.72rem;
}
.tpl-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px 14px;
}
.tpl-card-foot strong {
  display: block;
  font-size: 0.95rem;
}
.tpl-card-foot span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: capitalize;
}
.tpl-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
  gap: 22px;
  align-items: start;
}
.tpl-editor-preview .tpl-preview {
  border-radius: 16px;
  cursor: default;
  max-width: 420px;
}
.tpl-editor-form {
  display: grid;
  gap: 12px;
}
.tpl-field {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 0.88rem;
}
.tpl-field input,
.tpl-field textarea,
.tpl-field select {
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  width: 100%;
}
.tpl-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .tpl-editor-grid {
    grid-template-columns: 1fr;
  }
}

.studio-page {
  display: grid;
  gap: 28px;
  max-width: 1120px;
}
.studio-brand-line {
  margin: 0;
  font-weight: 650;
  color: #004299;
}
.studio-intents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.studio-intent {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 26, 43, 0.04);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 148px;
}
.studio-intent:hover,
.studio-intent:focus-visible {
  border-color: #88b4e3;
  outline: none;
  box-shadow: 0 10px 28px rgba(0, 66, 153, 0.1);
}
.studio-intent-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: #004299;
}
.studio-intent strong {
  font-size: 1.05rem;
}
.studio-intent span:last-child {
  color: var(--muted);
  line-height: 1.4;
}
.studio-form,
.studio-form-page {
  display: grid;
  gap: 16px;
}
.studio-field,
.studio-photo-field {
  display: grid;
  gap: 8px;
  font-weight: 650;
  font-size: 0.9rem;
}
.studio-field-label {
  margin: 0;
  font-weight: 650;
}
.studio-field input,
.studio-field textarea,
.studio-field select,
.studio-picker input[type="search"] {
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  width: 100%;
}
.studio-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.studio-photo-preview,
.studio-photo-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
}
.studio-photo-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}
.studio-set-block {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
}
.studio-set-block h2 {
  margin: 0;
}
.studio-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.studio-size-card {
  display: grid;
  gap: 6px;
}
.studio-size-card span {
  color: var(--muted);
  font-size: 0.82rem;
}
.studio-size-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #0b1f3a;
  border: 1px solid var(--rule);
}
.studio-size-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-size-square { aspect-ratio: 1; }
.studio-size-portrait { aspect-ratio: 1080 / 1350; }
.studio-size-landscape { aspect-ratio: 1200 / 630; }
.studio-size-story { aspect-ratio: 9 / 16; max-height: 280px; }
.studio-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.studio-checks,
.pm-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.studio-checks .ok,
.pm-check .ok { color: #0f8f6c; }
.studio-checks .warn,
.pm-check .warn,
.studio-issue { color: #b45309; }
.studio-picker-back {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 72, 0.45);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.studio-picker {
  width: min(840px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 16px;
}
.studio-picker-head,
.studio-picker-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.studio-picker-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.studio-picker-tabs button {
  font: inherit;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.studio-picker-tabs button.active {
  background: #004299;
  border-color: #004299;
  color: #fff;
}
.studio-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.studio-pick-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.studio-pick-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.studio-pick-card span {
  display: block;
  padding: 8px 10px;
  font-size: 0.8rem;
}
.pm-side-label {
  margin: 0 0 8px;
  font-weight: 650;
}
@media (max-width: 800px) {
  .studio-intents,
  .studio-copy-grid {
    grid-template-columns: 1fr;
  }
}

/* Campaign Detail command center */
.cd-page {
  max-width: 1080px;
}
.cd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}
.cd-head-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.cd-head h1 {
  margin: 0 0 8px;
}
.cd-meta {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
}
.cd-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cd-page .section-tabs {
  margin: 0 0 32px;
}
.cd-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cd-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(14, 26, 43, 0.04);
}
.cd-card h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  background: none;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.cd-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.cd-card p,
.cd-card ul,
.cd-card ol {
  margin: 0;
}
.cd-card .lede {
  margin: 0 0 16px;
  max-width: 52rem;
}
.cd-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.cd-card-head h2 {
  margin: 0;
}
.cd-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.cd-summary-grid p {
  color: var(--ink-soft);
  line-height: 1.45;
}
.cd-progress-line {
  margin: 0 0 12px;
}
.cd-progress-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 16px;
  color: var(--ink-soft);
}
.cd-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
  margin: 0 0 12px;
}
.cd-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.cd-progress-pct {
  color: var(--ink);
}
.cd-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-checks li.ok {
  color: var(--ink);
}
.cd-checks li.warn {
  color: var(--ink);
}
.cd-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 8px;
}
.cd-filters a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #fff;
}
.cd-filters a:hover,
.cd-filters a:focus-visible {
  color: var(--ink);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.cd-filters a.active {
  background: rgba(0, 66, 153, 0.12);
  border-color: transparent;
  color: #004299;
}
.cd-table-wrap {
  overflow: auto;
}
.cd-table {
  width: 100%;
  border-collapse: collapse;
}
.cd-table th,
.cd-table td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  vertical-align: middle;
}
.cd-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.cd-table tbody th {
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 600;
}
.cd-loc-cards {
  display: none;
}
.cd-content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cd-content-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}
.cd-content-thumb {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--accent-soft);
}
.cd-content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cd-content-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cd-content-body h3 {
  font-size: 16px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.cd-content-kicker,
.cd-content-meta {
  color: var(--ink-soft);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cd-content-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.cd-asset-grid,
.cd-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.cd-asset-card,
.cd-tpl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.cd-asset-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--accent-soft);
}
.cd-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cd-asset-actions,
.cd-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cd-inline-actions {
  margin-top: 16px;
}
.cd-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.cd-messages {
  padding: 0 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.cd-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid var(--rule);
}
.cd-timeline li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 0 16px;
  position: relative;
}
.cd-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-cyan);
}
.cd-timeline span {
  color: var(--ink-soft);
}
.cd-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cd-activity-list li {
  color: var(--ink-soft);
}
.cd-activity-list strong {
  color: var(--ink);
}
.cd-activity-list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 0;
}
.cd-empty h3 {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.cd-empty p {
  color: var(--ink-soft);
  max-width: 40rem;
}
.cd-quiet {
  color: var(--muted);
  font-size: 14px;
}
.cd-overflow {
  position: relative;
}
.cd-overflow summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 10px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.cd-overflow summary::-webkit-details-marker {
  display: none;
}
.cd-overflow summary:hover,
.cd-overflow summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.cd-overflow-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(14, 26, 43, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-overflow-menu a,
.cd-overflow-menu button {
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}
.cd-overflow-menu a:hover,
.cd-overflow-menu button:hover,
.cd-overflow-menu a:focus-visible,
.cd-overflow-menu button:focus-visible {
  background: var(--accent-soft);
  outline: none;
}
.cd-health .btn,
.cd-a11y .btn {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .cd-head,
  .cd-head-copy,
  .cd-head-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cd-head-actions .btn {
    width: 100%;
    text-align: center;
  }
  .cd-summary-grid,
  .cd-split {
    grid-template-columns: 1fr;
  }
  .cd-table-wrap {
    display: none;
  }
  .cd-loc-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .cd-loc-card {
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
  }
  .cd-loc-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }
  .cd-content-card {
    grid-template-columns: 1fr;
  }
  .cd-content-thumb {
    width: 100%;
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-bar span {
    transition: none;
  }
}
