:root {
  --unrest-orange: #EB642A;
  --unrest-night: #0D1A24;
  --unrest-beige: #EDEADB;
  --unrest-white: #FFFFFF;
  --ink: #17252f;
  --muted: #667276;
  --line: rgba(13, 26, 36, 0.14);
  --soft-line: rgba(13, 26, 36, 0.08);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 80px rgba(13, 26, 36, 0.09);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(237,234,219,.9)), var(--unrest-beige);
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button { border: 0; }
a { color: inherit; }
.app-shell { min-height: 100vh; }

.screen { min-height: 100vh; padding: 28px; }
.entry-screen { display: grid; place-items: center; background: var(--unrest-night); }
.entry-card {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
  color: var(--unrest-white);
  box-shadow: 0 28px 90px rgba(0,0,0,.2);
  text-align: center;
}
.entry-logo-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.brand-logo { display: block; object-fit: contain; background: transparent; }
.brand-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo.large { width: min(320px, 82vw); height: auto; }
.brand-logo.small { width: 96px; height: auto; flex: 0 0 auto; }
.brand-logo.hub { width: 180px; height: auto; margin-bottom: 22px; }
.brand-logo.admin { width: 120px; height: auto; flex: 0 0 auto; }
.kicker, .eyebrow, .module-kicker {
  margin: 0;
  color: var(--unrest-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.entry-card h1 { margin: 8px 0 16px; color: var(--unrest-white); font-size: clamp(42px, 8vw, 82px); line-height: .95; letter-spacing: 0; }
.entry-card-simple { width: min(620px, 100%); }
.entry-card-simple .entry-actions { margin-top: 30px; margin-bottom: 10px; }
.entry-card-simple .admin-entry-link { margin-top: 8px; }
.entry-subtitle { max-width: 520px; margin: 0 auto; color: rgba(255,255,255,.86); font-size: 20px; line-height: 1.5; }
.entry-card-simple .entry-subtitle { font-size: 18px; color: rgba(255,255,255,.72); }
.entry-baseline { max-width: 620px; margin: 18px auto 0; color: rgba(255,255,255,.66); line-height: 1.7; }
.entry-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 34px 0 22px; }
.entry-actions.primary-entry { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
.role-card {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--unrest-white);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.role-card:hover { transform: translateY(-2px); border-color: rgba(235,100,42,.68); background: rgba(255,255,255,.12); }
.role-card-main { text-align: center; border-color: var(--unrest-orange); background: var(--unrest-orange); }
.role-card-main:hover { background: #f1743f; border-color: #f1743f; }
.role-card span { display: block; margin-bottom: 8px; font-weight: 900; font-size: 18px; }
.role-card small { color: rgba(255,255,255,.68); line-height: 1.5; }
.principle { border-left: 3px solid var(--unrest-orange); padding-left: 14px; color: rgba(255,255,255,.72); text-align: left; line-height: 1.5; }
.admin-entry-link { margin-top: 18px; padding: 8px 10px; border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.42); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.admin-entry-link:hover { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.12); }

.workspace { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(18px);
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; gap: 22px; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; }
.sidebar-brand strong { display: block; color: var(--unrest-night); font-size: 14px; letter-spacing: .08em; }
.sidebar-brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.side-nav { display: grid; gap: 7px; }
.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.nav-button:hover, .nav-button.active { border-color: var(--line); background: rgba(255,255,255,.76); }
.nav-button em { color: var(--muted); font-size: 12px; font-style: normal; }
.privacy-note { margin-top: auto; border-left: 3px solid var(--unrest-orange); padding-left: 13px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.content { min-width: 0; padding: 34px; }
.content-inner { width: min(1160px, 100%); margin: 0 auto; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.topbar.compact { margin-top: 20px; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; color: var(--unrest-night); font-size: clamp(34px, 5vw, 58px); line-height: 1; }
h2 { margin: 0; color: var(--unrest-night); font-size: clamp(25px, 3vw, 36px); line-height: 1.12; }
h3 { margin: 0; color: var(--unrest-night); font-size: 19px; line-height: 1.24; }
.lead, .muted { color: var(--muted); line-height: 1.65; }
.lead { max-width: 760px; margin: 14px 0 0; font-size: 17px; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; }

.panel, .module, .modal-panel { border: 1px solid var(--line); background: var(--panel); padding: 26px; }
.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.12);
  background: var(--unrest-night);
  color: var(--unrest-white);
  box-shadow: var(--shadow);
}
.hub-hero h2 { max-width: 760px; margin-top: 8px; color: var(--unrest-white); font-size: clamp(34px, 5vw, 62px); }
.hub-hero p:not(.kicker) { max-width: 680px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.studio-badge, .status-pill, .badge, .score-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}
.studio-badge { border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.78); }
.status-pill { border: 1px solid var(--line); background: var(--unrest-white); color: var(--unrest-night); }
.badge { background: rgba(235,100,42,.12); color: var(--unrest-orange); }
.score-pill { margin-top: 12px; background: var(--unrest-night); color: var(--unrest-white); }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.module-card {
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.module-card:hover { transform: translateY(-2px); border-color: rgba(235,100,42,.42); box-shadow: 0 18px 45px rgba(13,26,36,.08); }
.module-card.featured { grid-column: span 2; background: rgba(255,255,255,.96); }
.module-card.locked { opacity: .78; }
.module-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-card h3 { margin-top: 24px; font-size: 25px; }
.module-card p { color: var(--muted); line-height: 1.65; }
.module-card small { display: block; margin-top: 2px; color: var(--unrest-orange); line-height: 1.45; }
.module-card .btn { margin-top: auto; width: fit-content; }

.module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.module-head p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.wizard-panel { min-height: 610px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.progress-track { height: 6px; overflow: hidden; background: rgba(13,26,36,.08); }
.progress-fill { height: 100%; background: var(--unrest-orange); transition: width .25s ease; }
.wizard-step { margin-top: 28px; animation: lift .18s ease both; }
@keyframes lift { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.list, .risk-list, .firewall-grid, .prompt-list { display: grid; gap: 14px; }
.risk-list.compact { margin-top: 10px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.86); color: var(--unrest-night); outline: 0; }
.input, .select { min-height: 44px; padding: 10px 12px; }
.textarea { min-height: 112px; padding: 12px; resize: vertical; line-height: 1.5; }
.textarea.large { min-height: 190px; font-size: 19px; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(235,100,42,.72); box-shadow: 0 0 0 3px rgba(235,100,42,.12); background: var(--unrest-white); }
.form-label { display: grid; gap: 7px; color: var(--unrest-night); font-size: 13px; font-weight: 800; }
.button-row, .cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-row { justify-content: space-between; margin-top: 26px; }
.top-gap { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border: 1px solid var(--line); background: var(--unrest-white); color: var(--unrest-night); cursor: pointer; text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(235,100,42,.5); }
.btn.primary { border-color: var(--unrest-orange); background: var(--unrest-orange); color: var(--unrest-white); }
.btn.dark { border-color: var(--unrest-night); background: var(--unrest-night); color: var(--unrest-white); }
.btn.ghost { background: transparent; }
.btn.subtle { background: rgba(255,255,255,.58); }
.btn.icon { width: 42px; padding: 0; font-weight: 900; }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.disclosure { margin-top: 22px; border: 1px solid var(--soft-line); background: rgba(237,234,219,.45); }
.disclosure summary { cursor: pointer; padding: 14px 16px; color: var(--unrest-night); font-weight: 800; }
.disclosure ul { margin: 0; padding: 0 20px 18px 34px; color: var(--muted); line-height: 1.65; }
.structured-card, .priority-card, .watch-card, .balance-cell, .prompt-card, .security-box, .coach-detail { border: 1px solid var(--soft-line); background: rgba(255,255,255,.66); }
.structured-card, .priority-card, .watch-card, .prompt-card, .security-box { padding: 18px; }
.structured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.priority-grid { display: grid; grid-template-columns: 1fr 210px 210px; gap: 12px; align-items: center; }
.risk-sentence { color: var(--unrest-night); line-height: 1.6; }
.top-three { margin-top: 18px; padding: 16px; border: 1px solid rgba(235,100,42,.28); background: rgba(235,100,42,.08); }
.watch-card { display: grid; gap: 15px; }
.watch-card .risk-sentence { font-size: 17px; font-weight: 800; }
.action-box { border-left: 3px solid var(--unrest-orange); padding: 12px 14px; background: rgba(235,100,42,.08); }
.locked-state { display: grid; gap: 16px; align-items: start; }
.locked-state .btn { width: fit-content; }

.balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.balance-cell { padding: 18px; }
.balance-items { display: grid; gap: 8px; margin: 14px 0; }
.balance-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; min-height: 38px; }
.balance-line span { line-height: 1.45; }
.balance-line.attenuated span { opacity: .4; text-decoration: line-through; }
.toggle { min-width: 84px; min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); background: var(--unrest-white); cursor: pointer; color: var(--unrest-night); font-size: 12px; font-weight: 800; }
.add-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.assistant-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 16px; }
.assistant-main { padding: 24px; background: var(--unrest-night); color: var(--unrest-white); }
.assistant-main h2 { margin-top: 12px; color: var(--unrest-white); }
.assistant-main p { color: rgba(255,255,255,.76); line-height: 1.65; }
.warning { margin-top: 18px; padding: 14px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.84); line-height: 1.5; }
.prompt-card { display: grid; gap: 12px; }
.audio-state audio { display: block; width: 100%; margin: 20px 0 14px; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.security-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.admin-brand-strip { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--soft-line); }
.admin-brand-strip h2 { font-size: 28px; }
.admin-brand-strip p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: minmax(120px,.9fr) minmax(170px,1.2fr) 132px 112px 74px minmax(220px,auto); gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--soft-line); background: rgba(255,255,255,.66); }
.admin-row.header { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; background: transparent; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.coach-detail { position: sticky; top: 34px; padding: 20px; }
.coach-detail h3 { margin-top: 12px; }
.detail-list { display: grid; gap: 12px; margin: 18px 0; }
.detail-list div { display: grid; gap: 4px; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.detail-list dd { margin: 0; color: var(--unrest-night); line-height: 1.45; word-break: break-word; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(13,26,36,.34); }
.modal-panel { width: min(560px, 100%); box-shadow: var(--shadow); }
.modal-form { display: grid; gap: 12px; margin-top: 18px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; padding: 12px 15px; background: var(--unrest-night); color: var(--unrest-white); box-shadow: 0 14px 40px rgba(13,26,36,.18); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1060px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row { grid-template-columns: 1fr; }
  .admin-row.header { display: none; }
  .admin-actions { justify-content: flex-start; }
}
@media (max-width: 920px) {
  .workspace, .admin-grid, .assistant-panel, .balance-grid, .privacy-grid, .hub-hero { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-inner { height: auto; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-note { margin-top: 0; }
  .priority-grid, .structured-grid { grid-template-columns: 1fr; }
  .coach-detail { position: static; }
}
@media (max-width: 680px) {
  .screen, .content { padding: 18px; }
  .entry-actions, .hub-grid, .side-nav { grid-template-columns: 1fr; }
  .module-card.featured { grid-column: auto; }
  .panel, .module, .entry-card { padding: 20px; }
  .topbar, .module-head, .button-row { align-items: stretch; flex-direction: column; }
  .field-row, .add-line, .balance-line { grid-template-columns: 1fr; }
  .btn, .role-card, .nav-button { width: 100%; }
}

.entry-card-simple .role-card-main { min-height: 48px; width: fit-content; margin: 0 auto; padding: 12px 22px; border-radius: 999px; }
.entry-card-simple .role-card-main span { margin: 0; font-size: 15px; }


/* login-refactor */
.login-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  padding: clamp(28px, 6vw, 72px);
  color: var(--unrest-white);
  background:
    linear-gradient(90deg, rgba(7, 20, 29, 0.98) 0%, rgba(7, 20, 29, 0.91) 34%, rgba(7, 20, 29, 0.58) 66%, rgba(7, 20, 29, 0.82) 100%),
    radial-gradient(circle at 76% 26%, rgba(235, 100, 42, 0.3), transparent 22%),
    radial-gradient(circle at 70% 56%, rgba(180, 210, 220, 0.22), transparent 28%),
    var(--unrest-night);
}
.login-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.06) 48.2% 48.7%, transparent 49%),
    linear-gradient(154deg, transparent 0 54%, rgba(255,255,255,.11) 54.2% 54.7%, transparent 55%),
    linear-gradient(24deg, transparent 0 52%, rgba(235,100,42,.14) 52.3% 52.8%, transparent 53%),
    linear-gradient(180deg, transparent 0 44%, rgba(255,255,255,.08) 44.1% 44.6%, transparent 45%),
    linear-gradient(160deg, transparent 0 58%, rgba(255,255,255,.05) 58.2% 58.8%, transparent 59%);
  clip-path: polygon(45% 100%, 63% 24%, 71% 58%, 78% 16%, 98% 100%);
  transform: translateX(8%);
}
.login-logo {
  position: absolute;
  top: clamp(26px, 5vw, 58px);
  left: clamp(28px, 19vw, 365px);
  z-index: 1;
}
.brand-logo.login {
  width: 132px;
  height: auto;
}
.login-copy,
.login-panel {
  position: relative;
  z-index: 1;
}
.login-copy h1 {
  margin: 0;
  color: var(--unrest-white);
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}
.login-copy h1 em {
  color: var(--unrest-orange);
  font-style: italic;
}
.login-points {
  display: grid;
  gap: 30px;
  margin-top: 52px;
  max-width: 520px;
}
.login-points div {
  border-left: 4px solid var(--unrest-orange);
  padding-left: 20px;
}
.login-points strong {
  display: block;
  color: var(--unrest-white);
  font-size: 18px;
  line-height: 1.25;
}
.login-points span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.54);
  font-size: 16px;
  line-height: 1.55;
}
.login-panel {
  width: min(480px, 100%);
  justify-self: center;
  padding: 0;
}
.login-panel h2 {
  margin: 0 0 36px;
  color: var(--unrest-white);
  font-size: clamp(28px, 3vw, 38px);
  text-align: center;
}
.access-label {
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 800;
}
.access-input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 0 18px;
  background: rgba(255,255,255,.11);
  color: var(--unrest-white);
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.access-input:focus {
  border-color: rgba(235,100,42,.82);
  box-shadow: 0 0 0 3px rgba(235,100,42,.16);
}
.login-submit {
  width: 100%;
  min-height: 60px;
  margin-top: 18px;
  border-radius: 10px;
  background: var(--unrest-orange);
  color: var(--unrest-white);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .16s ease, background .16s ease;
}
.login-submit:hover {
  transform: translateY(-1px);
  background: #f1743f;
}
.login-note {
  margin: 28px 0 0;
  color: rgba(255,255,255,.62);
  text-align: center;
  font-size: 14px;
}
.login-admin-link {
  display: block;
  margin: 10px auto 0;
  color: rgba(255,255,255,.5);
}
@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
    padding-top: 112px;
  }
  .login-logo {
    left: 28px;
  }
  .login-panel {
    justify-self: stretch;
  }
}
@media (max-width: 640px) {
  .login-screen {
    padding: 96px 22px 30px;
  }
  .login-points {
    margin-top: 34px;
    gap: 20px;
  }
  .login-points span {
    font-size: 14px;
  }
}


/* sidebar-refactor */
.workspace {
  background: var(--unrest-beige);
}
.sidebar {
  width: 210px;
  padding: 0;
  border-right: 0;
  background: var(--unrest-night);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
}
.sidebar-inner {
  gap: 26px;
  padding: 18px 13px;
}
.sidebar-brand {
  min-height: 42px;
  padding: 0 7px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .brand-logo.small {
  width: 116px;
  height: auto;
}
.side-nav {
  gap: 8px;
}
.nav-button {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.42);
  font-weight: 800;
  background: transparent;
}
.nav-button:hover {
  color: rgba(255,255,255,.76);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
}
.nav-button.active {
  color: var(--unrest-white);
  border-color: var(--unrest-orange);
  background: var(--unrest-orange);
  box-shadow: 0 12px 26px rgba(235,100,42,.2);
}
.nav-label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
  opacity: .92;
}
.nav-button em {
  color: currentColor;
  opacity: .55;
  font-size: 11px;
}
.privacy-note {
  margin-top: auto;
  padding: 14px 11px 0;
  border-left: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.38);
  font-size: 12px;
}
.sidebar .btn.subtle {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.62);
}
.sidebar .btn.subtle:hover {
  border-color: rgba(235,100,42,.5);
  color: var(--unrest-white);
}
.content {
  background: var(--unrest-beige);
}
@media (max-width: 920px) {
  .sidebar {
    width: auto;
  }
  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* sidebar-collapsed */
.brand-logo.mark {
  width: 24px;
  height: 24px;
  object-fit: cover;
  object-position: left center;
}
.sidebar-toggle {
  position: absolute;
  right: -13px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--unrest-orange);
  color: var(--unrest-white);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(235,100,42,.25);
}
.sidebar-brand {
  position: relative;
}
.workspace.sidebar-collapsed {
  grid-template-columns: 62px minmax(0, 1fr);
}
.sidebar-collapsed .sidebar {
  width: 62px;
}
.sidebar-collapsed .sidebar-inner {
  align-items: center;
  padding: 16px 10px;
  gap: 24px;
}
.sidebar-collapsed .sidebar-brand {
  width: 100%;
  justify-content: center;
  padding: 0 0 18px;
}
.sidebar-collapsed .sidebar-toggle {
  right: -23px;
}
.sidebar-collapsed .side-nav {
  width: 100%;
  gap: 12px;
}
.sidebar-collapsed .nav-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  border-color: rgba(255,255,255,.14);
}
.sidebar-collapsed .nav-button.active {
  border-color: var(--unrest-orange);
}
.sidebar-collapsed .nav-label {
  gap: 0;
}
.sidebar-collapsed .nav-label > span:last-child,
.sidebar-collapsed .nav-button em,
.sidebar-collapsed .privacy-note,
.sidebar-collapsed [data-home] {
  display: none;
}
.sidebar-collapsed .nav-icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 920px) {
  .workspace.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .sidebar-collapsed .sidebar {
    width: auto;
  }
  .sidebar-collapsed .sidebar-inner {
    align-items: stretch;
  }
  .sidebar-collapsed .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sidebar-collapsed .nav-button {
    width: 100%;
  }
}


/* login-title-tune */
.login-copy h1 {
  font-weight: 900;
  letter-spacing: 0;
}
.login-copy h1 em {
  display: inline-block;
  color: var(--unrest-orange);
  font-style: italic;
  font-weight: 900;
}
.login-submit {
  margin-bottom: 0;
}
.login-admin-link {
  margin-top: 18px;
}


/* login-scale-tune */
.login-logo {
  top: 24px;
}
.login-copy h1 {
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.16;
}
@media (max-width: 900px) {
  .login-logo {
    top: 20px;
  }
  .login-screen {
    padding-top: 92px;
  }
}


/* admin-gate */
.admin-gate-screen {
  grid-template-columns: minmax(320px, .82fr) minmax(340px, .86fr);
}
.admin-gate-copy h1 em {
  color: var(--unrest-orange);
}
.admin-gate-panel {
  max-width: 420px;
}
.admin-gate-panel .login-submit {
  margin-top: 18px;
}

.login-intro { max-width: 560px; margin: 18px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.58; }


/* login-left-lower */
.login-copy {
  transform: translateY(46px);
}
.login-points {
  gap: 22px;
  margin-top: 38px;
}
.login-points div {
  min-height: 34px;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .login-copy {
    transform: none;
  }
}


/* page-style-refactor */
.content {
  padding: 0;
  background: var(--unrest-beige);
}
.app-chrome {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(13,26,36,.12);
  background: var(--unrest-white);
}
.app-chrome strong {
  color: var(--unrest-orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}
.chrome-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chrome-actions span {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(13,26,36,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.page-hero {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 42px 34px 48px;
  border-bottom: 1px solid rgba(13,26,36,.08);
  background: var(--unrest-white);
  text-align: center;
}
.page-hero h1 {
  max-width: 980px;
  margin: 20px 0 0;
  color: #071722;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .96;
  font-weight: 900;
}
.page-hero .lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: #81909a;
  font-size: 17px;
}
.content-inner {
  width: min(1180px, calc(100% - 68px));
  padding: 44px 0 54px;
}
.panel,
.module {
  border: 1px solid rgba(13,26,36,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(13,26,36,.06);
}
.hub-hero {
  border-radius: 14px;
  border: 1px solid rgba(13,26,36,.08);
  background: var(--unrest-white);
  color: #071722;
  box-shadow: 0 18px 45px rgba(13,26,36,.06);
}
.hub-hero h2 {
  color: #071722;
}
.hub-hero p:not(.kicker) {
  color: #81909a;
}
.studio-badge {
  border-color: rgba(13,26,36,.12);
  color: #81909a;
}
.hub-grid {
  gap: 18px;
}
.module-card {
  border-radius: 14px;
  border-color: rgba(13,26,36,.1);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 32px rgba(13,26,36,.045);
}
.module-card.featured {
  border-left: 4px solid var(--unrest-orange);
}
.btn,
.login-submit {
  border-radius: 10px;
}
.btn.primary {
  box-shadow: 0 12px 24px rgba(235,100,42,.18);
}
.structured-card,
.priority-card,
.watch-card,
.balance-cell,
.prompt-card,
.security-box,
.coach-detail,
.admin-row {
  border-radius: 12px;
  border-color: rgba(13,26,36,.1);
  background: rgba(255,255,255,.9);
}
.input,
.textarea,
.select {
  border-radius: 10px;
}
.progress-track {
  border-radius: 999px;
}
.progress-fill {
  border-radius: 999px;
}
.top-three,
.disclosure,
.action-box {
  border-radius: 10px;
}
.admin-brand-strip {
  border-radius: 12px;
  padding: 18px;
  background: rgba(237,234,219,.45);
}
@media (max-width: 920px) {
  .app-chrome {
    padding: 0 20px;
  }
  .page-hero {
    min-height: 180px;
    padding: 32px 20px;
  }
  .content-inner {
    width: min(100% - 36px, 1180px);
    padding-top: 28px;
  }
}


/* exact-page-header-layout */
.content {
  padding: 0;
  background: var(--unrest-beige);
}
.app-chrome {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 80px;
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(13, 26, 36, .12);
  background: var(--unrest-white);
}
.app-chrome strong {
  color: var(--unrest-orange);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .16em;
}
.chrome-actions {
  gap: 10px;
}
.chrome-actions span {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(13, 26, 36, .14);
  background: var(--unrest-white);
  color: #52616b;
  font-size: 14px;
  font-weight: 900;
}
.page-hero {
  min-height: 372px;
  padding: 54px 48px 62px;
  border-bottom: 0;
  background: var(--unrest-white);
  text-align: center;
}
.page-hero .eyebrow {
  color: var(--unrest-orange);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .16em;
}
.page-hero h1 {
  max-width: 1080px;
  margin: 24px auto 0;
  color: #071722;
  font-size: clamp(58px, 5.15vw, 88px);
  line-height: .95;
  font-weight: 900;
}
.page-hero .lead {
  max-width: 880px;
  margin: 28px auto 0;
  color: #7f8f9b;
  font-size: 20px;
  line-height: 1.45;
}
.content-inner {
  width: min(1474px, calc(100% - 88px));
  padding: 56px 0 64px;
}
@media (max-width: 920px) {
  .app-chrome {
    height: 64px;
    min-height: 64px;
    padding: 0 22px;
  }
  .page-hero {
    min-height: 250px;
    padding: 38px 22px 44px;
  }
  .page-hero h1 {
    font-size: clamp(38px, 9vw, 58px);
  }
  .page-hero .lead {
    font-size: 17px;
  }
  .content-inner {
    width: min(100% - 36px, 1474px);
    padding-top: 32px;
  }
}


/* exact-reference-layout */
.workspace {
  grid-template-columns: 285px minmax(0, 1fr);
}
.sidebar {
  width: 285px;
}
.sidebar-inner {
  padding: 16px 18px;
  gap: 30px;
}
.sidebar-brand {
  min-height: 50px;
  padding: 0 10px 22px;
}
.sidebar-brand .brand-logo.small {
  width: 132px;
}
.sidebar-toggle {
  right: -18px;
  top: 16px;
  width: 34px;
  height: 34px;
}
.nav-button {
  min-height: 58px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 20px;
}
.nav-icon {
  width: 20px;
  height: 20px;
  font-size: 16px;
}
.side-nav {
  gap: 10px;
}
.privacy-note {
  padding: 20px 14px 0;
}
.sidebar .btn.subtle {
  min-height: 52px;
  border-radius: 10px;
}
.app-chrome {
  height: 65px;
  min-height: 65px;
  padding: 0 40px;
}
.app-chrome strong {
  font-size: 15px;
  letter-spacing: .16em;
}
.page-hero {
  min-height: 195px;
  padding: 38px 40px 40px;
}
.page-hero .eyebrow {
  font-size: 15px;
  letter-spacing: .16em;
}
.page-hero h1 {
  max-width: 1050px;
  margin: 22px auto 0;
  font-size: clamp(44px, 4.2vw, 62px);
  line-height: .98;
}
.page-hero .lead {
  display: none;
}
.content-inner {
  width: min(1474px, calc(100% - 88px));
  padding: 46px 0 64px;
}
.workspace.sidebar-collapsed {
  grid-template-columns: 62px minmax(0, 1fr);
}
.sidebar-collapsed .sidebar {
  width: 62px;
}
.sidebar-collapsed .sidebar-inner {
  padding: 16px 10px;
}
.sidebar-collapsed .sidebar-brand {
  min-height: 48px;
  padding-bottom: 18px;
}
.sidebar-collapsed .nav-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 15px;
}
@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: auto;
  }
  .app-chrome {
    height: 64px;
    min-height: 64px;
    padding: 0 22px;
  }
  .page-hero {
    min-height: 170px;
    padding: 32px 22px;
  }
  .page-hero h1 {
    font-size: clamp(34px, 8vw, 48px);
  }
}


/* sampled-hero-specs */
:root {
  --unrest-orange: #EB642A;
  --unrest-night: #0D1A24;
  --unrest-beige: #EDEADB;
  --unrest-white: #FFFFFF;
  --muted: #979AA6;
  --card-secondary: #F6F5ED;
}
.content,
.workspace,
body {
  background: var(--unrest-beige);
}
.app-chrome,
.page-hero {
  background: var(--unrest-white);
}
.app-chrome strong,
.page-hero .eyebrow,
.eyebrow,
.module-kicker {
  color: var(--unrest-orange);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.page-hero {
  min-height: 260px;
  padding: 54px 40px 50px;
}
.page-hero h1 {
  max-width: 1180px;
  margin: 22px auto 0;
  color: var(--unrest-night);
  font-size: clamp(40px, 4.6vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.page-hero .lead {
  display: block;
  max-width: 900px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 400;
  line-height: 1.4;
}
.input,
.textarea,
.select,
.access-input {
  background: var(--unrest-white);
  color: var(--unrest-night);
}
.input::placeholder,
.textarea::placeholder,
.access-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.input {
  font-size: 19px;
  font-weight: 400;
}
.btn.dark,
.btn:not(.primary).dark,
.login-submit {
  background: var(--unrest-night);
  color: var(--unrest-white);
  font-size: 18px;
  font-weight: 600;
}
.btn.primary,
.nav-button.active,
.login-submit:hover {
  background: var(--unrest-orange);
  border-color: var(--unrest-orange);
}
.module-card,
.panel,
.module,
.structured-card,
.priority-card,
.watch-card,
.balance-cell,
.prompt-card,
.security-box,
.coach-detail,
.admin-row {
  background: var(--unrest-white);
}
.module-card.locked,
.admin-row:not(.header) + .admin-row:not(.header) {
  background: var(--card-secondary);
}
@media (max-width: 680px) {
  .app-chrome strong,
  .page-hero .eyebrow,
  .eyebrow,
  .module-kicker {
    font-size: 13px;
  }
  .page-hero {
    min-height: 220px;
    padding: 42px 22px 40px;
  }
  .page-hero h1 {
    font-size: 40px;
  }
  .page-hero .lead {
    font-size: 16px;
  }
}


/* bass-page-update */
.bass-layout {
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
}
.bass-brief {
  display: grid;
  gap: 14px;
}
.bass-brief article {
  border: 1px solid rgba(13,26,36,.1);
  border-radius: 12px;
  background: var(--unrest-white);
  padding: 20px;
}
.bass-brief h3 {
  margin: 0 0 10px;
  color: var(--unrest-night);
}
.bass-brief p,
.bass-brief li {
  color: var(--muted);
  line-height: 1.58;
}
.bass-brief ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}
.bass-brief strong {
  color: var(--unrest-night);
}
@media (max-width: 920px) {
  .bass-layout {
    grid-template-columns: 1fr;
  }
}


/* bass-features */
.bass-features h3 {
  margin-bottom: 16px;
}
.feature-grid {
  display: grid;
  gap: 12px;
}
.feature-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(13,26,36,.09);
  border-radius: 12px;
  background: #F6F5ED;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(235,100,42,.12);
  color: var(--unrest-orange);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.feature-card strong {
  display: block;
  color: var(--unrest-night);
  font-size: 16px;
  margin-bottom: 5px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.hub-grid-only { margin-top: 0; }


/* sidebar-toggle-overlap */
.sidebar {
  overflow: visible;
}
.sidebar-toggle {
  right: -17px;
  top: 40px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border: 3px solid var(--unrest-beige);
}
.sidebar-collapsed .sidebar-toggle {
  right: -17px;
  top: 40px;
}
@media (max-width: 920px) {
  .sidebar-toggle,
  .sidebar-collapsed .sidebar-toggle {
    right: 14px;
    top: 16px;
    border-color: rgba(255,255,255,.12);
  }
}


/* sidebar-toggle-edge-fix */
.sidebar {
  position: sticky;
  overflow: visible;
  z-index: 12;
}
.sidebar-brand {
  position: static;
}
.sidebar-toggle,
.sidebar-collapsed .sidebar-toggle {
  position: absolute;
  left: calc(100% - 17px);
  right: auto;
  top: 16px;
  z-index: 30;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid var(--unrest-beige);
  background: var(--unrest-orange);
  color: var(--unrest-white);
  box-shadow: 0 10px 24px rgba(13,26,36,.18), 0 8px 20px rgba(235,100,42,.24);
}
@media (max-width: 920px) {
  .sidebar-toggle,
  .sidebar-collapsed .sidebar-toggle {
    left: auto;
    right: 14px;
    top: 16px;
  }
}


/* collapsed-logo-behavior */
.brand-logo.mark {
  width: 30px;
  height: 42px;
  object-fit: contain;
  object-position: center;
}
.sidebar-mark-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.sidebar-mark-button:hover .brand-logo.mark {
  filter: drop-shadow(0 0 10px rgba(235,100,42,.34));
}
.sidebar-collapsed .sidebar-toggle {
  display: none;
}
.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}
.sidebar-collapsed .brand-logo.mark {
  width: 28px;
  height: 44px;
}


/* collapsed-mark-header-align */
.sidebar-collapsed .sidebar-brand {
  min-height: 65px;
  height: 65px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-collapsed .sidebar-inner {
  padding-top: 0;
}
.sidebar-collapsed .sidebar-mark-button {
  height: 65px;
}
.sidebar-collapsed .brand-logo.mark {
  width: 28px;
  height: 44px;
}


/* expanded-logo-header-align */
.sidebar:not(.sidebar-collapsed .sidebar) .sidebar-brand {
  min-height: 65px;
  height: 65px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.workspace:not(.sidebar-collapsed) .sidebar-inner {
  padding-top: 0;
}
.workspace:not(.sidebar-collapsed) .sidebar-brand {
  min-height: 65px;
  height: 65px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.workspace:not(.sidebar-collapsed) .sidebar-brand .brand-logo.small {
  width: 132px;
  height: auto;
}
.workspace:not(.sidebar-collapsed) .sidebar-toggle {
  top: 16px;
}


/* home-hero-spacing */
.home-hero h1 {
  margin-top: 12px;
}


/* balance-refactor */
.balance-edit {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(13,26,36,.1);
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--unrest-white);
  color: var(--unrest-night);
  resize: vertical;
  line-height: 1.35;
  outline: 0;
}
.balance-edit:focus {
  border-color: rgba(235,100,42,.72);
  box-shadow: 0 0 0 3px rgba(235,100,42,.12);
}
.balance-line.attenuated .balance-edit {
  opacity: .4;
  text-decoration: line-through;
}
.balance-guide,
.balance-article {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(13,26,36,.1);
  border-radius: 14px;
  background: var(--unrest-white);
}
.balance-guide { margin-bottom: 22px; }
.guide-head h2,
.balance-article h2 {
  max-width: 900px;
  font-size: clamp(26px, 2.4vw, 38px);
}
.guide-head p,
.article-chapo {
  max-width: 980px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.guide-grid div,
.guide-formula {
  border: 1px solid rgba(13,26,36,.08);
  border-radius: 12px;
  background: #F6F5ED;
  padding: 16px;
}
.guide-grid strong,
.guide-formula strong {
  display: block;
  color: var(--unrest-night);
  font-size: 16px;
}
.guide-grid span {
  display: block;
  margin-top: 6px;
  color: var(--unrest-orange);
  font-size: 13px;
  font-weight: 900;
}
.guide-grid p,
.guide-formula p {
  margin: 10px 0 0;
  color: #52616b;
  line-height: 1.55;
}
.guide-formula { margin-top: 12px; }
.balance-article details {
  margin-top: 16px;
  border-top: 1px solid rgba(13,26,36,.1);
  padding-top: 14px;
}
.balance-article summary {
  cursor: pointer;
  color: var(--unrest-orange);
  font-weight: 900;
  letter-spacing: .04em;
}
.article-body {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin-top: 16px;
}
.article-body h3 { margin-top: 8px; }
.article-body p,
.article-body pre {
  margin: 0;
  color: #52616b;
  line-height: 1.62;
  white-space: pre-wrap;
}
@media (max-width: 920px) {
  .guide-grid { grid-template-columns: 1fr; }
}


/* balance-orange-tiles */
.balance-module > h2 {
  display: none;
}
.balance-cell-presentComfort {
  background: rgba(235, 100, 42, .06);
}
.balance-cell-silenceCost {
  background: rgba(235, 100, 42, .10);
}
.balance-cell-changeCost {
  background: rgba(235, 100, 42, .14);
}
.balance-cell-targetImpact {
  background: rgba(235, 100, 42, .18);
}
.balance-cell-presentComfort,
.balance-cell-silenceCost,
.balance-cell-changeCost,
.balance-cell-targetImpact {
  border-color: rgba(235, 100, 42, .24);
}
.balance-cell .balance-edit,
.balance-cell .input {
  background: rgba(255,255,255,.82);
}


/* balance-xls-export */
.balance-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.balance-actions .btn {
  min-height: 40px;
}


/* balance-descriptions-size */
.balance-cell .fine {
  margin-top: 8px;
  color: #52616b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
}


/* balance-inline-help */
.balance-cell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.help-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(13,26,36,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--unrest-orange);
  cursor: help;
  font-weight: 900;
}
.help-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 10;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, 70vw);
  padding: 12px 14px;
  border: 1px solid rgba(13,26,36,.12);
  border-radius: 12px;
  background: var(--unrest-white);
  color: #52616b;
  box-shadow: 0 14px 38px rgba(13,26,36,.16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.help-dot:hover::after,
.help-dot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}


/* sidebar-exit-bottom */
.sidebar-inner {
  min-height: 100%;
}
.sidebar-exit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-exit .btn {
  width: 100%;
}
.sidebar-collapsed .sidebar-exit {
  display: none;
}


/* theory-page */
.theory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.theory-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(13,26,36,.1);
  border-radius: 14px;
  background: var(--unrest-white);
  box-shadow: 0 12px 32px rgba(13,26,36,.045);
}
.theory-card h2 {
  margin-top: 42px;
  color: var(--unrest-night);
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.05;
}
.theory-card p {
  margin: 18px 0 0;
  color: var(--unrest-orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
}
@media (max-width: 920px) {
  .theory-grid {
    grid-template-columns: 1fr;
  }
}


/* sidebar-exit-absolute-bottom */
.sidebar-inner {
  height: 100%;
  min-height: 100%;
}
.privacy-note {
  margin-top: auto;
}
.sidebar-exit {
  margin-top: 18px;
  margin-bottom: 0;
}


/* theory-cta */
.theory-card {
  display: flex;
  flex-direction: column;
}
.theory-cta {
  width: fit-content;
  margin-top: auto;
}
.theory-cta:disabled {
  opacity: .55;
  cursor: not-allowed;
}


/* theory-title-alignment */
.theory-card .module-kicker {
  display: block;
  min-height: 46px;
  max-width: 100%;
  line-height: 1.25;
}
.theory-card h2 {
  margin-top: 28px;
  font-size: clamp(24px, 2.05vw, 34px);
  line-height: 1.08;
}
.theory-card {
  min-height: 230px;
}


/* theory-cta-lower */
.theory-card {
  min-height: 300px;
  padding-bottom: 28px;
}
.theory-cta {
  margin-top: auto;
}


/* premortem article placement */
.wizard-step .premortem-article {
  margin-top: 0;
  margin-bottom: 26px;
}


/* premortem separated article */
.premortem-article {
  margin-top: 0;
  margin-bottom: 26px;
}


/* separated balance and theory components */
.balance-article + .balance-module {
  margin-top: 26px;
}
.theory-components {
  display: grid;
  gap: 22px;
}
.theory-components .module {
  padding: 0;
  background: transparent;
  border: 0;
}
.theory-components .theory-card {
  min-height: 220px;
}


/* access v1 */
.access-message {
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.login-panel .admin-entry-link + .admin-entry-link {
  margin-top: 10px;
}
.module-checks {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(13,26,36,.1);
  border-radius: 10px;
  background: rgba(246,245,237,.7);
}
.module-checks strong {
  color: var(--unrest-night);
}
.module-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52616b;
  font-weight: 800;
}
.module-checks input {
  accent-color: var(--unrest-orange);
}
.admin-actions .btn:disabled {
  opacity: .42;
}


/* admin access layout fix */
.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}
.admin-grid > div:first-child {
  min-width: 0;
}
.admin-row {
  grid-template-columns: minmax(110px, 1fr) 106px 132px 58px minmax(250px, 1.2fr);
  min-width: 0;
}
.admin-row > * {
  min-width: 0;
}
.admin-actions {
  justify-content: flex-start;
}
.coach-detail {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .admin-grid { grid-template-columns: 1fr; }
  .coach-detail { position: static; max-width: none; }
}


/* login mobile responsive */
@media (max-width: 760px) {
  .login-screen,
  .admin-gate-screen,
  .activation-screen {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 28px;
    padding: 86px 20px 34px;
    background:
      linear-gradient(180deg, rgba(7,20,29,.98) 0%, rgba(7,20,29,.94) 54%, rgba(7,20,29,.99) 100%),
      var(--unrest-night);
  }
  .login-backdrop {
    opacity: .34;
    clip-path: polygon(28% 100%, 70% 10%, 102% 100%);
    transform: translateX(18%) scale(1.08);
  }
  .login-logo {
    top: 22px;
    left: 20px;
    right: auto;
  }
  .brand-logo.login {
    width: 116px;
  }
  .login-copy {
    width: 100%;
    max-width: none;
    transform: none;
  }
  .login-copy h1 {
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1.08;
  }
  .login-intro {
    max-width: 100%;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }
  .login-points {
    width: 100%;
    max-width: none;
    margin-top: 26px;
    gap: 14px;
  }
  .login-points div {
    min-height: auto;
    padding-left: 14px;
    border-left-width: 3px;
  }
  .login-points strong {
    font-size: 16px;
  }
  .login-panel {
    width: 100%;
    max-width: none;
    justify-self: auto;
    margin-top: 2px;
  }
  .login-panel h2 {
    margin-bottom: 20px;
    text-align: left;
    font-size: clamp(28px, 9vw, 36px);
  }
  .access-label {
    font-size: 14px;
  }
  .access-input {
    height: 54px;
    min-width: 0;
    font-size: 17px;
  }
  .login-submit {
    min-height: 54px;
    font-size: 16px;
    letter-spacing: .05em;
  }
  .login-admin-link {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .access-message {
    font-size: 15px;
  }
}
@media (max-width: 380px) {
  .login-screen,
  .admin-gate-screen,
  .activation-screen {
    padding-left: 16px;
    padding-right: 16px;
  }
  .login-copy h1 {
    font-size: 32px;
  }
  .brand-logo.login {
    width: 104px;
  }
}


/* demo login entry */
.demo-entry-link {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  font-weight: 800;
  cursor: pointer;
}
.demo-entry-link:hover {
  border-color: rgba(235,100,42,.55);
  color: var(--unrest-white);
}


/* page title size tune */
.page-hero h1 {
  font-size: clamp(36px, 3.8vw, 64px);
  line-height: 1.04;
}
@media (max-width: 680px) {
  .page-hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }
}


/* hero eyebrow title gap tune */
.page-hero h1 {
  margin-top: 8px;
}
@media (max-width: 680px) {
  .page-hero h1 {
    margin-top: 6px;
  }
}
