:root {
  --bg: #f4f7fb; --surface: #fff; --text: #172033; --muted: #667085;
  --primary: #6558d9; --primary-soft: #eeeafd; --border: #e6e9ef;
  --sidebar: #171a29;
}
body.dark {
  --bg: #11131b; --surface: #1b1e2b; --text: #f3f4f8; --muted: #adb4c5;
  --primary: #938cff; --primary-soft: #292743; --border: #303445; --sidebar: #0d0f17;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Inter, Segoe UI, sans-serif; background: var(--bg); color: var(--text); }
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 75% 18%, #45a29e30, transparent 38%),
    linear-gradient(135deg, #0b0c10, #1f2833);
}
.login-card {
  width: min(390px, calc(100% - 32px));
  background: #f4f7f7;
  color: #1f2833;
  border: 1px solid #ffffff25;
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 24px 70px #090b1670;
}
.login-brand-logo { display: block; width: 58px; height: 58px; object-fit: contain; margin: 0 auto 14px; }
.login-card h1 { color: #1f2833; }
.login-card>p { color: #56616b; }
.login-card form { display: grid; gap: 14px; margin-top: 24px; text-align: left; }
.server-help { margin-top: 24px; padding: 18px; border: 1px solid #cbd6da; border-radius: 12px; text-align: left; }
.server-help h2 { margin: 0 0 10px; font-size: 18px; }
.server-help p, .server-help ol { color: #46525b; line-height: 1.55; }
.server-help ol { padding-left: 20px; }
.server-help a { display: block; margin-top: 16px; padding: 12px; border-radius: 9px; background: #45a29e; color: #0b0c10; text-align: center; text-decoration: none; font-weight: 750; }
.server-help a:hover { background: #66fcf1; }
.login-card label { color: #46525b; }
.login-card input { border-color: #cbd6da; }
.login-card input:focus { outline: 2px solid #45a29e; outline-offset: 1px; }
.login-card button { background: #45a29e; color: #0b0c10; }
.login-card button:hover { background: #66fcf1; }
.demo-role-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 16px; }
.demo-role-switch span { grid-column: 1 / -1; color: #56616b; font-size: 11px; font-weight: 750; text-align: left; }
.demo-role-switch button { padding: 8px; border: 1px solid #cbd6da; background: transparent; color: #1f2833; font-size: 11px; }
.demo-role-switch button:hover { background: #e3f7f5; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); padding: 11px 12px; }
button { border: 0; border-radius: 9px; background: var(--primary); color: white; padding: 11px 14px; font-weight: 750; cursor: pointer; }
.error { color: #c93636; min-height: 18px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.sidebar { background: var(--sidebar); color: white; padding: 24px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 32px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav button { background: transparent; text-align: left; color: #cbd0dc; }
.sidebar nav button.active { background: #ffffff18; color: white; }
.quiet-button { margin-top: auto; background: #ffffff12; }
main { min-width: 0; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar h1, .topbar p { margin: 0; }
.eyebrow { color: var(--primary); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.theme-toggle { width: 120px; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; gap: 12px; align-items: end; padding: 16px 28px; }
.content-grid { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 8px 28px 28px; }
.widget-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; align-self: start; }
.widget-panel h2 { margin-top: 0; }
.widget-option { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; margin: 8px 0; color: var(--text); font-weight: 600; }
.widget-option input { width: 16px; }
.widget-option button { background: var(--primary-soft); color: var(--primary); padding: 5px 7px; }
.widget-panel > button { width: 100%; margin-top: 12px; }
.widget-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 16px; }
.widget-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-height: 300px; }
.widget-card h3 { margin: 0 0 12px; }
.widget-card canvas { max-height: 245px; }
.widget-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.widget-card th, .widget-card td { text-align: left; border-bottom: 1px solid var(--border); padding: 8px; }
.widget-card-empty { min-height: 220px; display: grid; place-items: center; color: var(--muted); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; display: block; }
  .sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .quiet-button { width: 100%; margin-top: 12px; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
}

/* Public PlugLytics project website */
.marketing-page {
  --marketing-bg: #f7f8fb;
  --marketing-text: #161824;
  --marketing-muted: #656a78;
  --marketing-line: #e2e4ea;
  --marketing-accent: #6258dc;
  background: var(--marketing-bg);
  color: var(--marketing-text);
}
.marketing-nav {
  height: 76px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  background: rgba(247,248,251,.94);
}
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--marketing-text); text-decoration: none; font-weight: 800; }
.wordmark .logo, .marketing-page .logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--marketing-accent); color: #fff; }
.marketing-nav nav { display: flex; gap: 24px; margin-left: auto; }
.marketing-nav nav a { color: var(--marketing-muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-button { color: #fff !important; background: var(--marketing-text); border-radius: 9px; padding: 10px 14px; text-decoration: none; font-size: 14px; font-weight: 800; }
.hero { max-width: 1180px; min-height: 590px; margin: 0 auto; padding: 70px 24px 90px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.kicker { color: var(--marketing-accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { max-width: 650px; margin: 14px 0 22px; font-size: clamp(54px, 7vw, 86px); line-height: .96; letter-spacing: -.06em; }
.hero h1 span { color: var(--marketing-accent); }
.hero-lede { max-width: 620px; color: var(--marketing-muted); font-size: 19px; line-height: 1.65; }
.hero-actions, .grant-actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 10px; padding: 0 18px; text-decoration: none; font-weight: 850; }
.primary-button { background: var(--marketing-accent); color: #fff; }
.secondary-button { border: 1px solid var(--marketing-line); background: #fff; color: var(--marketing-text); }
.text-link { color: var(--marketing-text); font-weight: 800; text-decoration: none; }
.hero-visual { min-height: 420px; padding: 18px; border: 1px solid #dddfea; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(30,32,51,.12); transform: rotate(1deg); }
.preview-toolbar { height: 42px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--marketing-line); }
.preview-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: #d7dae3; }
.preview-toolbar strong { margin-left: auto; color: var(--marketing-muted); font-size: 12px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; }
.preview-card { min-height: 155px; border: 1px solid var(--marketing-line); border-radius: 12px; padding: 16px; }
.preview-card.wide { grid-column: 1 / -1; }
.preview-card small { color: var(--marketing-muted); }
.preview-card b { display: block; margin-top: 16px; font-size: 34px; }
.mini-bars { height: 55px; display: flex; align-items: end; gap: 8px; margin-top: 8px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 0 0; background: #7770df; }
.mini-bars i:nth-child(1){height:35%}.mini-bars i:nth-child(2){height:58%}.mini-bars i:nth-child(3){height:48%}.mini-bars i:nth-child(4){height:72%}.mini-bars i:nth-child(5){height:88%}
.progress-ring { width: 80px; height: 80px; margin: 8px auto 0; border-radius: 50%; background: conic-gradient(var(--marketing-accent) 0 83%, #eeeefa 83% 100%); display:grid; place-items:center; }
.progress-ring span { width: 58px; height: 58px; border-radius: 50%; background: #fff; }
.trend { height: 90px; display:flex; align-items:end; gap:12px; margin-top:16px; border-bottom:1px solid var(--marketing-line); background: linear-gradient(180deg, transparent 49%, #eff0f5 50%); }
.trend i { flex:1; height:30%; border-radius:8px 8px 0 0; background:#6258dc55; }.trend i:nth-child(2){height:48%}.trend i:nth-child(3){height:42%}.trend i:nth-child(4){height:68%}.trend i:nth-child(5){height:82%}
.proof-strip { max-width: 1132px; margin: 0 auto 90px; border-top: 1px solid var(--marketing-line); border-bottom: 1px solid var(--marketing-line); display:grid; grid-template-columns:repeat(4,1fr); }
.proof-strip div { display:grid; gap:5px; text-align:center; padding:24px 12px; border-right:1px solid var(--marketing-line); }
.proof-strip div:last-child { border-right:0; }.proof-strip b { font-size:28px; }.proof-strip span { color:var(--marketing-muted); }
.feature-section, .how-section, .plugin-section, .grant-section { max-width:1132px; margin:0 auto 90px; padding:0 24px; }
.feature-section h2, .how-section h2, .plugin-section h2, .grant-section h2 { max-width:720px; margin:12px 0 34px; font-size:clamp(38px,5vw,58px); line-height:1.05; letter-spacing:-.04em; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-grid article { min-height:260px; border:1px solid var(--marketing-line); border-radius:16px; background:#fff; padding:24px; }
.feature-number { color:var(--marketing-accent); font-size:12px; font-weight:900; }.feature-grid h3 { margin-top:70px; font-size:24px; }.feature-grid p { color:var(--marketing-muted); line-height:1.6; }
.how-section { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; padding-top:50px; border-top:1px solid var(--marketing-line); }
.steps { list-style:none; margin:0; padding:0; }.steps li { display:flex; gap:18px; border-bottom:1px solid var(--marketing-line); padding:18px 0; }.steps li>span { width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#ebe9ff;color:var(--marketing-accent);font-weight:900; }.steps b { font-size:18px; }.steps p { color:var(--marketing-muted); line-height:1.55; }
.plugin-section { min-height:260px; display:flex; justify-content:space-between; align-items:center; gap:40px; border-radius:18px; background:var(--marketing-text); color:#fff; padding:48px; }.plugin-section h2 { margin:10px 0 12px; }.plugin-section p { color:#cfd1dc; }.plugin-section .kicker { color:#aaa4ff; }.plugin-actions { min-width:250px; display:grid; gap:16px; justify-items:center; }.plugin-actions .text-link { color:#fff; }
.grant-section { text-align:center; border-top:1px solid var(--marketing-line); padding-top:70px; }.grant-section h2 { margin:12px auto 14px; }.grant-section>p:not(.kicker) { color:var(--marketing-muted); }.grant-actions { justify-content:center; }
.marketing-page footer { max-width:1132px; margin:0 auto; height:100px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--marketing-line); }.marketing-page footer p { color:var(--marketing-muted); }
@media (max-width: 900px) {
  .marketing-nav nav { display:none; }.hero { grid-template-columns:1fr; padding-top:45px; }.hero h1 { font-size:58px; }.proof-strip { grid-template-columns:repeat(2,1fr); }.proof-strip div:nth-child(2){border-right:0}.feature-grid { grid-template-columns:1fr; }.feature-grid h3 { margin-top:40px; }.how-section { grid-template-columns:1fr; }.plugin-section { flex-direction:column; align-items:flex-start; }.marketing-page footer { margin:0 24px; }
}

/* PlugLytics editorial palette: #0B0C10, #1F2833, #C5C6C7, #66FCF1, #45A29E */
.marketing-page {
  --marketing-bg: #eef1f2;
  --marketing-text: #0b0c10;
  --marketing-muted: #c5c6c7;
  --marketing-line: #1f2833;
  --marketing-accent: #66fcf1;
  --marketing-accent-dark: #45a29e;
  background: #eef1f2;
}
.marketing-nav {
  max-width: 1180px;
  height: 82px;
  margin: 32px auto 0;
  border-radius: 18px 18px 0 0;
  background: #0b0c10;
  border-bottom: 1px solid #1f2833;
  color: #c5c6c7;
}
.marketing-nav .wordmark { color: #66fcf1; }
.marketing-nav .wordmark .logo { background: transparent; border: 1px solid #66fcf1; color: #66fcf1; }
.marketing-nav nav a { color: #c5c6c7; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.nav-button { background: #66fcf1 !important; color: #0b0c10 !important; border-radius: 0; }
.marketing-page main { max-width: 1180px; margin: 0 auto; }
.hero {
  min-height: 520px;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #0b0c10;
  border-radius: 0 0 18px 18px;
}
.hero-grid { min-height: 520px; display: grid; grid-template-columns: 1fr 200px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 54px 64px; }
.hero-copy .kicker { color: #66fcf1; }
.hero h1 {
  max-width: 700px;
  margin: 12px 0 18px;
  color: #66fcf1;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(82px, 10vw, 145px);
  line-height: .82;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 9px 9px 0 #45a29e;
}
.hero h1 span { color: #c5c6c7; }
.hero-lede { max-width: 520px; color: #c5c6c7; font-size: 17px; line-height: 1.7; }
.hero-actions { margin-top: 24px; }
.primary-button { border: 1px solid #66fcf1; border-radius: 0; background: #66fcf1; color: #0b0c10; }
.secondary-button { border: 1px solid #45a29e; border-radius: 0; background: transparent; color: #c5c6c7; }
.palette-rail { display: grid; grid-template-rows: repeat(5, 1fr); }
.palette-swatch { display: flex; align-items: end; justify-content: center; padding-bottom: 18px; }
.palette-swatch span { font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.swatch-1 { background: #0b0c10; color: #1f2833; }
.swatch-2 { background: #1f2833; color: #c5c6c7; }
.swatch-3 { background: #c5c6c7; color: #1f2833; }
.swatch-4 { background: #66fcf1; color: #45a29e; }
.swatch-5 { background: #45a29e; color: #0b0c10; }
.proof-strip { max-width: none; margin: 28px 0 90px; background: #fff; border: 1px solid #c5c6c7; }
.proof-strip b { color: #45a29e; }
.proof-strip span { color: #1f2833; }
.feature-section h2, .how-section h2, .plugin-section h2, .grant-section h2 { color: #0b0c10; }
.feature-grid article { border-color: #c5c6c7; }
.feature-number { color: #45a29e; }
.how-section { border-top-color: #c5c6c7; }
.steps li { border-bottom-color: #c5c6c7; }
.steps li>span { background: #66fcf1; color: #0b0c10; }
.plugin-section { background: #1f2833; border: 1px solid #45a29e; }
.plugin-section .primary-button { background: #66fcf1; border-radius: 0; }
.grant-section { border-top-color: #c5c6c7; }
.grant-section .kicker { color: #45a29e; }
.marketing-page footer { max-width: 1132px; border-top-color: #c5c6c7; }
.marketing-page footer .logo { background: #1f2833; color: #66fcf1; }
@media (max-width: 900px) {
  .marketing-nav { width: calc(100% - 32px); margin: 16px auto 0; }
  .marketing-page main { width: calc(100% - 32px); }
  .hero-grid { grid-template-columns: 1fr 86px; }
  .hero-copy { padding: 44px 28px; }
  .hero h1 { font-size: clamp(58px, 18vw, 92px); text-shadow: 5px 5px 0 #45a29e; }
  .palette-swatch span { writing-mode: vertical-rl; padding: 0; }
}

/* Configurable analytics dashboard */
.dashboard-page {
  --bg: #f4f7f8;
  --surface: #fff;
  --text: #19262e;
  --muted: #6b7b83;
  --primary: #2e9089;
  --primary-soft: #e7f5f3;
  --border: #dfe7e9;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.dashboard-page.dark {
  --bg: #11171b;
  --surface: #192126;
  --text: #edf4f5;
  --muted: #a4b3b8;
  --primary: #66c5bd;
  --primary-soft: #203b3a;
  --border: #2c3a40;
}
.dashboard-page .app-shell { display: block; min-height: 100vh; }
.dashboard-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dashboard-brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 750; }
.dashboard-brand img { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; object-fit: contain; }
.dashboard-actions { display: flex; align-items: end; gap: 10px; }
.dashboard-page .outline-button {
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.dashboard-page .outline-button:hover { border-color: var(--primary); background: var(--primary-soft); }
.dashboard-page .customize-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  gap: 9px;
  border: 1px solid #45a29e;
  border-radius: 10px;
  background: #45a29e;
  color: #0b0c10;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 16px #45a29e55;
}
.dashboard-page .customize-button:hover {
  border-color: #66fcf1;
  background: #66fcf1;
  box-shadow: 0 7px 20px #45a29e70;
}
.dashboard-page .theme-toggle { width: 110px; color: var(--muted); }
.dashboard-page .theme-toggle select { min-height: 40px; padding: 8px 10px; }
.dashboard-page .sign-out-button { margin-left: 2px; }
.dashboard-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 56px; }
.dashboard-page .topbar { height: auto; padding: 0 0 22px; background: transparent; border: 0; }
.dashboard-page .topbar h1 { margin-top: 6px; font-size: clamp(27px, 4vw, 34px); letter-spacing: -.04em; }
.dashboard-page .dashboard-intro { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.dashboard-page .eyebrow { margin: 0; color: var(--primary); letter-spacing: .08em; }
.widget-panel {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 5px 16px #172b3510;
}
.dashboard-page .customize-dialog {
  position: fixed;
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: min(640px, calc(100vh - 40px));
  margin: auto;
  overflow: auto;
  color: var(--text);
}
.customize-dialog::backdrop { background: rgb(10 17 20 / 62%); backdrop-filter: blur(2px); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.panel-heading button { white-space: nowrap; }
.panel-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.widget-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.dashboard-page .widget-option {
  grid-template-columns: 20px minmax(0, 1fr) 32px;
  gap: 9px;
  align-items: center;
  min-height: 64px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.dashboard-page .widget-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.dashboard-page .widget-option label { display: block; min-width: 0; color: var(--text); cursor: pointer; font-size: 12px; }
.dashboard-page .widget-option strong, .dashboard-page .widget-option small { display: block; }
.dashboard-page .widget-option strong { font-size: 12px; }
.dashboard-page .widget-option small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.35; }
.dashboard-page .widget-option button { padding: 6px 8px; border-radius: 6px; }
.save-status { min-height: 17px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.filter-panel { margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.filter-panel summary { padding: 13px 15px; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 750; }
.filter-panel summary span { margin-left: 9px; color: var(--muted); font-size: 12px; font-weight: 400; }
.dashboard-page .filter-bar {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  padding: 0 15px 15px;
}
.dashboard-page .filter-bar label { color: var(--muted); }
.dashboard-page .filter-bar button { min-height: 40px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.summary-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.summary-card p { margin: 0; color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; margin: 9px 0 5px; overflow-wrap: anywhere; font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.summary-card small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.widget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-page .widget-card {
  min-width: 0;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 4px 14px #172b3508;
}
.widget-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.widget-card-heading h2 { margin: 0; font-size: 15px; }
.widget-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dashboard-page .widget-card canvas { display: block; width: 100%; height: 230px; max-height: 230px; margin-top: 12px; }
.course-progress-list, .schedule-list { margin: 0; padding: 0; list-style: none; }
.course-progress-item { padding: 12px 0 10px; border-bottom: 1px solid var(--border); }
.course-progress-item:last-child, .schedule-item:last-child { border-bottom: 0; }
.course-progress-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.course-progress-heading span { color: var(--muted); white-space: nowrap; }
.progress-track { height: 5px; margin: 8px 0 5px; overflow: hidden; border-radius: 5px; background: var(--border); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.course-progress-item small, .schedule-details small { color: var(--muted); font-size: 11px; }
.schedule-item { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.schedule-date { flex: 0 0 44px; display: grid; place-items: center; padding: 6px 2px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.schedule-date span { font-size: 9px; text-transform: uppercase; }
.schedule-date strong { font-size: 17px; line-height: 1.2; }
.schedule-details { min-width: 0; flex: 1; display: grid; gap: 4px; }
.schedule-details strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { padding: 4px 7px; border-radius: 12px; background: #fff2e8; color: #a34a15; font-size: 10px; }
.dashboard-page.dark .status-badge { background: #482e22; color: #ffc195; }
.insight-value { margin-top: 22px; font-size: 23px; font-weight: 750; }
.insight-value.needs-attention { color: #c55b43; }
.finance-rate { margin: 12px 0 0; color: var(--text); font-size: 13px; }
.finance-rate strong { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.finance-rate span { color: var(--muted); font-size: 12px; }
.widget-card > p:not(.widget-card-heading p) { color: var(--muted); font-size: 13px; line-height: 1.55; }
.dashboard-page .widget-card-empty { min-height: 130px; display: grid; place-items: center; color: var(--muted); }
.widget-error { color: #b33a3a !important; }
.dashboard-page .widget-card table { color: var(--text); }
.dashboard-page .widget-table-wrap {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  overflow-x: auto;
}
.dashboard-page .widget-card th, .dashboard-page .widget-card td { border-color: var(--border); }
.curriculum-dashboard {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 14px #172b3508;
}
.curriculum-dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.curriculum-dashboard-heading h2 { margin: 5px 0; font-size: 21px; letter-spacing: -.03em; }
.curriculum-dashboard-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.curriculum-dashboard-progress { margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.curriculum-dashboard-progress .completion-heading { align-items: center; }
.curriculum-dashboard-progress .completion-heading > span { color: var(--muted); font-size: 12px; }
.curriculum-dashboard-progress > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.curriculum-dashboard-terms { display: grid; gap: 12px; }
.curriculum-dashboard-year { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.curriculum-dashboard-year-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.curriculum-dashboard-year-heading h3 { margin: 0; font-size: 13px; }
.curriculum-dashboard-year-heading span { color: var(--muted); font-size: 10px; }
.curriculum-dashboard-year-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.curriculum-dashboard-term { min-width: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.curriculum-dashboard-term > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; background: var(--bg); cursor: pointer; list-style-position: inside; }
.curriculum-dashboard-term > summary strong { font-size: 12px; }
.curriculum-dashboard-term > summary span { color: var(--muted); font-size: 10px; }
.curriculum-dashboard-term ul { margin: 0; padding: 0 12px; list-style: none; }
.curriculum-dashboard-term .curriculum-course { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 7px; }
.curriculum-dashboard-term .curriculum-course-details strong { font-size: 10px; }
.curriculum-dashboard-term .curriculum-course-details small { font-size: 9px; }
.instructor-section-folders { display: grid; gap: 9px; margin-top: 12px; }
.instructor-section-folder { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.instructor-section-folder > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px; background: var(--bg); cursor: pointer; list-style-position: inside; }
.instructor-section-folder > summary > span:first-child { display: grid; gap: 4px; }
.instructor-section-folder > summary strong { font-size: 12px; }
.instructor-section-folder > summary small, .section-folder-count { color: var(--muted); font-size: 10px; }
.section-folder-count { white-space: nowrap; }
.section-folder-content { padding: 10px 12px; }
.section-folder-content > p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.roster-table-wrap { max-height: 360px; margin: 0 -12px; overflow: auto; }
.roster-table-wrap th { position: sticky; top: 0; background: var(--surface); }
.metric-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; padding: 18px 0; }
.metric-card-grid > div { min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 8px; background: var(--bg); }
.metric-card-grid small { color: var(--muted); font-size: 11px; }
.metric-card-grid strong { font-size: 20px; overflow-wrap: anywhere; }
/* Student payments (Stellar testnet) */
.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; }
.dashboard-page .payments-section { min-height: 0; margin-top: 14px; }
.testnet-badge { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #f0b429; border-radius: 12px; background: #fff7e0; color: #7a4b00; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.dashboard-page.dark .testnet-badge { border-color: #b7791f; background: #3d2e10; color: #ffd98a; }
.payments-message { min-height: 0; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.payments-message:empty { display: none; }
.payments-table-wrap { overflow-x: auto; }
.dashboard-page .invoice-table { margin-top: 8px; }
.dashboard-page .invoice-table th { color: var(--muted); font-size: 11px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-page .invoice-table th, .dashboard-page .invoice-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dashboard-page .invoice-table button { padding: 8px 11px; font-size: 12px; white-space: nowrap; }
.action-cell { text-align: right; }
.muted-cell { color: var(--muted); }
.invoice-status, .payment-status { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.invoice-status-due { background: #fff2e8; color: #a34a15; }
.invoice-status-partial { background: #fff7e0; color: #7a4b00; }
.invoice-status-settled, .payment-status-completed { background: #e6f6ee; color: #1e6b46; }
.payment-status-pending { background: var(--primary-soft); color: var(--primary); }
.payment-status-failed { background: #fdecec; color: #a32d2d; }
.dashboard-page.dark .invoice-status-due { background: #482e22; color: #ffc195; }
.dashboard-page.dark .invoice-status-partial { background: #3d2e10; color: #ffd98a; }
.dashboard-page.dark .invoice-status-settled, .dashboard-page.dark .payment-status-completed { background: #173a2a; color: #8fe0b5; }
.dashboard-page.dark .payment-status-failed { background: #4a1f1f; color: #ffb3b3; }
.payment-panel { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.payment-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-panel-heading h3 { margin: 0; font-size: 15px; }
.testnet-banner { margin: 12px 0; padding: 10px 12px; border: 1px solid #f0b429; border-radius: 8px; background: #fff7e0; color: #7a4b00; font-size: 13px; }
.dashboard-page.dark .testnet-banner { border-color: #b7791f; background: #3d2e10; color: #ffd98a; }
.payment-details { display: grid; gap: 8px; margin: 0; }
.payment-detail { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.payment-detail dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.payment-detail dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin: 0; }
.payment-detail code { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
.dashboard-page .copy-button { flex: 0 0 auto; min-height: 32px; padding: 5px 10px; font-size: 12px; }
.memo-warning { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.payment-status-line { margin: 12px 0 0; font-size: 13px; }
.payment-status-line small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.payment-panel-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.dashboard-page .cancel-payment-button { border-color: #e3a1a1; color: #a32d2d; }
.dashboard-page .cancel-payment-button:hover { border-color: #a32d2d; background: #fdecec; }
.dashboard-page.dark .cancel-payment-button { border-color: #7a3434; color: #ffb3b3; }
.dashboard-page.dark .cancel-payment-button:hover { border-color: #ffb3b3; background: #4a1f1f; }
/* Admin: invoices */
.invoice-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dashboard-page .invoice-form-grid label { font-size: 12px; }
.dashboard-page .invoice-form-grid label small { color: var(--muted); font-weight: 400; }
.dashboard-page .invoice-form-grid input, .dashboard-page .invoice-form-grid select { min-height: 40px; padding: 8px 10px; }
.invoice-form-fixed { grid-column: span 2; align-self: end; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; }
.invoice-form-grid [hidden] { display: none; }
.invoice-preview { display: grid; gap: 4px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--primary-soft); color: var(--text); }
.invoice-preview-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.invoice-preview strong { font-size: 22px; letter-spacing: -.02em; }
.invoice-preview small { color: var(--muted); font-size: 12px; }
.invoice-preview-warning { border-color: #f0b429; background: #fff7e0; }
.dashboard-page.dark .invoice-preview-warning { border-color: #b7791f; background: #3d2e10; }
.invoice-preview-note { color: #a34a15 !important; font-weight: 700; }
.dashboard-page.dark .invoice-preview-note { color: #ffc195 !important; }
.invoice-form-errors { margin: 10px 0 0; padding-left: 18px; color: #b33a3a; font-size: 13px; }
.dashboard-page.dark .invoice-form-errors { color: #ffb3b3; }
.invoice-form-errors:empty { display: none; }
.invoice-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.dashboard-page .admin-payments-table small.muted-cell { display: block; font-size: 11px; }

/* Admin: webhooks */
.webhook-form { margin-top: 4px; }
.webhook-url-field { grid-column: span 2; }
.webhook-events { margin: 14px 0 0; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 9px; }
.webhook-events legend { padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.webhook-event-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 12px; }
.dashboard-page .webhook-event { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; font-weight: 400; }
.dashboard-page .webhook-event input { width: 16px; height: 16px; accent-color: var(--primary); }
.webhook-secret-panel code { overflow-wrap: anywhere; }
.dashboard-page .webhook-table td { white-space: normal; }
.webhook-url-cell code { overflow-wrap: anywhere; }
.webhook-url-cell small, .webhook-table td small { display: block; margin-top: 3px; }
.webhook-events-cell { max-width: 240px; color: var(--muted); font-size: 12px; }
.webhook-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dashboard-page .webhook-actions button { padding: 7px 10px; font-size: 12px; }
.payment-fix-note { grid-column: span 3; }
.dashboard-page .payment-fix-note textarea { width: 100%; min-height: 60px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.dashboard-page .admin-payments-table td small.muted-cell code { font-size: 11px; }

/* Admin: Stellar payments */
.admin-payments-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; }
.dashboard-page .admin-payments-toolbar label { display: grid; gap: 4px; min-width: 170px; color: var(--muted); font-size: 12px; }
.dashboard-page .admin-payments-toolbar select { min-height: 40px; padding: 8px 10px; }
.admin-payments-toolbar .muted-cell { align-self: center; font-size: 12px; }
.dashboard-page .admin-payments-table code { font-size: 12px; }
.dashboard-page .admin-payments-table a { color: var(--primary); text-decoration: none; }
.dashboard-page .admin-payments-table a:hover, .dashboard-page .admin-payments-table a:focus-visible { text-decoration: underline; }
.dashboard-page .admin-payments-table td { white-space: nowrap; }
.admin-payments-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; font-size: 12px; }
.dashboard-page .admin-payments-pager button:disabled { opacity: .5; cursor: not-allowed; }
.dashboard-page input:focus, .dashboard-page select:focus, .dashboard-page button:focus-visible, .filter-panel summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .dashboard-header { align-items: flex-start; flex-direction: column; padding: 14px 20px; }
  .dashboard-actions { width: 100%; flex-wrap: wrap; align-items: end; }
  .dashboard-main { width: calc(100% - 32px); padding-top: 22px; }
  .dashboard-page .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget-grid { grid-template-columns: 1fr; }
  .curriculum-dashboard-year-terms { grid-template-columns: 1fr; }
  .demo-events-section .schedule-list { grid-template-columns: 1fr; }
  .payments-section .widget-card-heading { flex-direction: column; }
  .payment-detail { grid-template-columns: 1fr; gap: 4px; }
  .invoice-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .invoice-form-grid { grid-template-columns: 1fr; }
  .invoice-form-fixed, .payment-fix-note, .webhook-url-field { grid-column: auto; }
}
@media (max-width: 440px) {
  .dashboard-actions { display: grid; grid-template-columns: 1fr 100px; }
  .dashboard-actions .customize-button { grid-column: 1 / -1; }
  .dashboard-page .sign-out-button { grid-column: 1 / -1; }
  .dashboard-page .filter-bar { grid-template-columns: 1fr; }
  .curriculum-dashboard-heading, .curriculum-dashboard-year-heading { align-items: flex-start; flex-direction: column; }
  .curriculum-dashboard-progress .completion-heading { align-items: flex-start; flex-direction: column; }
  .curriculum-dashboard-term > summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .instructor-section-folder > summary { align-items: flex-start; flex-direction: column; }
  .section-folder-count { white-space: normal; }
  .demo-events-section > header { flex-direction: column; }
  .filter-panel summary span { display: block; margin: 5px 0 0; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .panel-actions { width: 100%; justify-content: flex-end; }
}
.dashboard-page a.outline-button { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 9px; text-decoration: none; }
.calendar-section, .curriculum-map {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 14px #172b3508;
}
.calendar-section-heading, .calendar-toolbar, .calendar-legend, .completion-heading, .curriculum-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.calendar-section-heading h2, .curriculum-map-heading h2 { margin: 4px 0; font-size: 21px; letter-spacing: -.03em; }
.calendar-section-heading p:not(.eyebrow), .curriculum-map-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.calendar-section-heading .eyebrow { font-size: 10px; }
.calendar-toolbar { flex: 0 0 auto; }
.calendar-toolbar h3 { min-width: 145px; margin: 0; text-align: center; font-size: 15px; }
.dashboard-page .calendar-nav-button { width: 36px; min-height: 36px; padding: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 20px; }
.calendar-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 10px; }
.calendar-legend { justify-content: flex-start; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-event-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.calendar-legend .calendar-event-dot { width: 8px; height: 8px; }
.calendar-unavailable { color: var(--muted); }
.calendar-data-note { margin: 0; color: var(--muted); font-size: 11px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.calendar-week { display: contents; }
.calendar-weekday, .calendar-day { min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar-weekday { padding: 8px; background: var(--bg); color: var(--muted); text-align: left; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.calendar-day { min-height: 92px; padding: 7px; background: var(--surface); }
.calendar-day.other-month { background: var(--bg); color: var(--muted); }
.calendar-day.today time { display: inline-grid; min-width: 23px; min-height: 23px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; }
.calendar-day time { color: var(--text); font-size: 11px; font-weight: 700; }
.calendar-event-list { display: grid; gap: 4px; margin: 5px 0 0; padding: 0; list-style: none; }
.calendar-event { display: flex; min-width: 0; align-items: center; gap: 5px; padding: 4px 5px; border-radius: 5px; background: var(--primary-soft); color: var(--text); font-size: 10px; }
.calendar-event .calendar-event-dot { width: 5px; height: 5px; flex-basis: 5px; }
.calendar-event-class .calendar-event-dot { background: #4c7bd9; }
.calendar-event-meeting .calendar-event-dot { background: #c78832; }
.calendar-event-demo { border: 1px dashed var(--primary); }
.calendar-event-demo.calendar-event-class { background: #eaf0ff; }
.calendar-event-demo.calendar-event-meeting { background: #fff3df; }
.dashboard-page.dark .calendar-event-demo.calendar-event-class { background: #24314f; }
.dashboard-page.dark .calendar-event-demo.calendar-event-meeting { background: #403522; }
.calendar-event span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-dot-demo { border: 1px dashed var(--primary); background: transparent; }
.demo-events-section { margin: 18px 0; padding: 18px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); }
.demo-events-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.demo-events-section h2 { margin: 4px 0; font-size: 17px; }
.demo-events-section > header > span { color: var(--muted); font-size: 10px; }
.demo-events-section .schedule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.calendar-more { padding-left: 10px; color: var(--muted); font-size: 9px; }
.calendar-empty, .calendar-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 12px; }
.calendar-error, .curriculum-error { color: #b33a3a; }
.curriculum-main .topbar { padding-bottom: 12px; }
.curriculum-source { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); color: var(--muted); font-size: 12px; line-height: 1.5; }
.curriculum-error { margin: 12px 0; padding: 12px; border: 1px solid #e8b8b8; border-radius: 8px; background: #fff3f3; font-size: 13px; }
.completion-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 14px; }
.completion-card, .curriculum-stats article {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.completion-heading { align-items: flex-start; }
.completion-heading p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.completion-heading strong { font-size: 27px; letter-spacing: -.04em; }
.curriculum-version { padding: 5px 8px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-size: 10px; }
.completion-progress { height: 8px; margin: 13px 0 10px; overflow: hidden; border-radius: 8px; background: var(--border); }
.completion-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.completion-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.completion-card > p strong { color: var(--text); }
.curriculum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.curriculum-stats article { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; }
.curriculum-stats span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.curriculum-stats strong { font-size: 21px; }
.curriculum-map { margin-top: 18px; }
.curriculum-map-heading { align-items: flex-start; margin-bottom: 14px; }
.course-status-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.course-status-legend span, .course-status-badge { padding: 4px 7px; border-radius: 14px; font-size: 10px; white-space: nowrap; }
.status-completed { background: var(--primary-soft); color: var(--primary); }
.status-in-progress { background: #fff3db; color: #8d5d00; }
.status-remaining { background: var(--bg); color: var(--muted); }
.dashboard-page.dark .status-in-progress { background: #44391f; color: #ffd576; }
.curriculum-course-list { display: grid; gap: 14px; }
.curriculum-year { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.curriculum-year-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.curriculum-year-heading h3 { margin: 0; font-size: 15px; }
.curriculum-year-heading span { color: var(--muted); font-size: 11px; text-align: right; }
.curriculum-year-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.curriculum-term { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; }
.curriculum-term > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg); }
.curriculum-term > header h4 { margin: 0; font-size: 12px; }
.curriculum-term > header span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.curriculum-term ul { margin: 0; padding: 0 12px; list-style: none; }
.curriculum-course { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.curriculum-course:last-child { border-bottom: 0; }
.curriculum-course input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.curriculum-course-details { min-width: 0; display: grid; gap: 3px; }
.curriculum-course-details strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.curriculum-course-details strong span { color: var(--muted); font-weight: 700; }
.curriculum-course-details small { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.4; }
.course-status-badge { background: var(--bg); color: var(--muted); }
.curriculum-course.status-completed .course-status-badge { background: var(--primary-soft); color: var(--primary); }
.curriculum-course.status-in_progress .course-status-badge { background: #fff3db; color: #8d5d00; }
.dashboard-page.dark .curriculum-course.status-in_progress .course-status-badge { background: #44391f; color: #ffd576; }
@media (max-width: 760px) {
  .calendar-section-heading { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar { width: 100%; justify-content: space-between; }
  .calendar-day { min-height: 72px; padding: 5px; }
  .calendar-event { padding: 3px; font-size: 9px; }
  .completion-overview { grid-template-columns: 1fr; }
  .curriculum-year-terms { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .calendar-section, .curriculum-map { padding: 12px; }
  .curriculum-year-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .curriculum-year-heading span { text-align: left; }
  .calendar-weekday { padding: 6px 2px; text-align: center; font-size: 9px; }
  .calendar-day { min-height: 62px; padding: 4px 2px; }
  .calendar-event-list { gap: 2px; }
  .calendar-event { gap: 3px; font-size: 8px; }
  .calendar-event .calendar-event-dot { width: 4px; height: 4px; flex-basis: 4px; }
  .calendar-more { padding-left: 5px; font-size: 8px; }
  .calendar-meta { align-items: flex-start; flex-direction: column; }
  .course-status-legend { justify-content: flex-start; }
  .curriculum-map-heading { flex-direction: column; }
}

.role-preview-section { padding-top: 20px; }
.role-preview-section .section-heading > p:last-child { max-width: 720px; color: var(--marketing-muted); line-height: 1.6; }
.role-preview-tabs { display: flex; gap: 8px; margin: 22px 0 12px; }
.role-preview-tabs button { min-width: 112px; border: 1px solid #c5c6c7; border-radius: 0; background: #fff; color: #1f2833; }
.role-preview-tabs button[aria-selected="true"] { border-color: #45a29e; background: #0b0c10; color: #66fcf1; }
.role-preview-panel { padding: 20px; border: 1px solid #c5c6c7; border-radius: 12px; background: #fff; box-shadow: 0 16px 38px #0b0c1012; }
.role-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.role-preview-heading span { color: #45a29e; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.role-preview-heading h3 { margin: 6px 0 0; font-size: 19px; }
.role-preview-heading > b { padding: 6px 9px; background: #e9f8f6; color: #236d69; font-size: 10px; white-space: nowrap; }
.role-preview-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 12px; }
.role-preview-filters span { padding: 6px 9px; border: 1px solid #dce3e6; border-radius: 6px; color: #56616b; font-size: 10px; }
.role-preview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.role-preview-metrics article { min-width: 0; min-height: 94px; display: flex; flex-direction: column; justify-content: space-between; gap: 7px; padding: 12px; border: 1px solid #dce3e6; border-radius: 8px; }
.role-preview-metrics small, .role-preview-metrics span { color: #56616b; font-size: 10px; }
.role-preview-metrics strong { color: #0b0c10; font-size: 19px; overflow-wrap: anywhere; }
.role-preview-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 12px; }
.role-preview-detail > section { min-width: 0; padding: 14px; border: 1px solid #dce3e6; border-radius: 8px; }
.role-preview-detail h4 { margin: 0 0 10px; font-size: 12px; }
.role-preview-detail p { color: #56616b; font-size: 11px; line-height: 1.55; }
.preview-roadmap-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 8px 0; border-top: 1px solid #e8edef; font-size: 10px; }
.preview-roadmap-row span, .preview-roadmap-row small { color: #56616b; }
.preview-roadmap-row b { grid-column: 1; }
.preview-roadmap-row small { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.preview-roadmap-row.current { color: #236d69; }
.preview-link-label { color: #236d69; font-size: 10px; font-weight: 800; }
.preview-roster-head, .preview-roster-row { display: grid; grid-template-columns: 1.1fr .8fr .9fr 1.5fr; gap: 8px; padding: 7px 0; border-top: 1px solid #e8edef; color: #56616b; font-size: 9px; }
.preview-roster-head { font-weight: 800; }
.preview-roster-row b { color: #0b0c10; }
.preview-admin-bars { display: grid; gap: 10px; }
.preview-admin-bars span { display: grid; gap: 4px; color: #56616b; font-size: 10px; }
.preview-admin-bars i { display: block; height: 7px; border-radius: 5px; background: #45a29e; }
.role-preview-events { margin-top: 12px; padding: 14px; border: 1px solid #dce3e6; border-radius: 8px; }
.role-preview-events h4 { margin: 0 0 8px; font-size: 12px; }
.role-preview-events ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.role-preview-events li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 7px; background: #f4f7f8; }
.role-preview-events time { flex: 0 0 85px; color: #236d69; font-size: 9px; font-weight: 800; }
.role-preview-events li > span { min-width: 0; display: grid; gap: 3px; }
.role-preview-events li strong { color: #0b0c10; font-size: 10px; }
.role-preview-events li small { color: #56616b; font-size: 9px; text-transform: capitalize; }
.role-preview-note { margin: 10px 0 0; color: var(--marketing-muted); font-size: 10px; line-height: 1.5; }
@media (max-width: 760px) {
  .role-preview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-preview-detail { grid-template-columns: 1fr; }
  .role-preview-events ul { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .role-preview-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .role-preview-tabs button { min-width: 0; padding: 9px; }
  .role-preview-panel { padding: 13px; }
  .role-preview-heading { flex-direction: column; }
  .preview-roadmap-row { grid-template-columns: 1fr; }
  .preview-roadmap-row small { grid-column: 1; grid-row: auto; }
  .preview-roster-head, .preview-roster-row { grid-template-columns: 1fr 1fr; }
}

/* Product landing page */
.marketing-page {
  --marketing-bg: #f4f7f8;
  --marketing-text: #0b0c10;
  --marketing-muted: #56616b;
  --marketing-line: #dce3e6;
  --marketing-accent: #45a29e;
  --marketing-highlight: #66fcf1;
  background: var(--marketing-bg);
  color: var(--marketing-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.marketing-page a { transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.marketing-page a:hover { transform: translateY(-2px); }
.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 1240px;
  width: calc(100% - 64px);
  height: 76px;
  margin: 0 auto;
  padding: 0 30px;
  border: 0;
  border-bottom: 1px solid #ffffff20;
  border-radius: 0;
  background: rgba(11, 12, 16, .96);
  backdrop-filter: blur(14px);
  color: #c5c6c7;
}
.marketing-nav .wordmark { color: #fff; font-size: 17px; }
.marketing-nav .wordmark .logo { width: 34px; height: 34px; border: 0; background: #45a29e; color: #0b0c10; font-weight: 900; }
.marketing-nav .brand-logo { display: block; width: 160px; max-height: 42px; padding: 4px 8px; border-radius: 7px; background: #fff; object-fit: contain; }
.marketing-nav nav { gap: 25px; }
.marketing-nav nav a { color: #c5c6c7; font-size: 12px; letter-spacing: .01em; text-transform: none; }
.marketing-nav nav a:hover { color: #66fcf1; }
.marketing-page .nav-button { display: inline-flex; gap: 10px; align-items: center; padding: 12px 15px; border-radius: 8px; background: #66fcf1 !important; color: #0b0c10 !important; }
.marketing-page main { max-width: none; width: 100%; margin: 0; }
.product-hero {
  position: relative;
  max-width: none;
  width: 100%;
  min-height: 640px;
  margin: 0;
  padding: 74px max(6.5vw, calc((100vw - 1180px) / 2)) 70px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 82% 32%, #1f2833 0, #151a20 32%, transparent 64%),
    linear-gradient(120deg, #0b0c10 0%, #11171d 62%, #1f2833 100%);
  color: #fff;
}
.product-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background: repeating-linear-gradient(145deg, transparent 0 64px, #ffffff06 65px 66px);
  content: "";
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: block; max-width: 1180px; margin: 0 auto; padding: 0; }
.hero-copy .kicker { display: flex; align-items: center; gap: 10px; color: #66fcf1; font-size: 12px; letter-spacing: .1em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #66fcf1; box-shadow: 0 0 14px #66fcf1a0; }
.product-hero h1 {
  max-width: 690px;
  margin: 30px 0 22px;
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(58px, 7.3vw, 94px);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.065em;
  text-shadow: none;
  text-transform: none;
}
.product-hero h1 em { color: #66fcf1; font-style: normal; }
.product-hero .hero-lede { max-width: 600px; margin: 0; color: #c5c6c7; font-size: 18px; line-height: 1.7; }
.product-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 30px; }
.product-hero .primary-button { min-height: 50px; border: 0; border-radius: 8px; background: #66fcf1; color: #0b0c10; }
.product-hero .text-link { color: #e8f0f1; font-size: 14px; }
.hero-note { margin: 19px 0 0; color: #9da8ad; font-size: 12px; }
.analytics-preview {
  position: absolute;
  top: 98px;
  right: max(5.5vw, calc((100vw - 1220px) / 2));
  z-index: 1;
  width: min(460px, 39vw);
  padding: 17px;
  border: 1px solid #ffffff20;
  border-radius: 15px;
  background: #f9fbfc;
  box-shadow: 0 35px 90px #0008;
  color: #0b0c10;
  transform: rotate(1.2deg);
}
.preview-header, .preview-brand, .preview-period, .preview-footer, .chart-heading { display: flex; align-items: center; }
.preview-header { justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #e3e8ea; }
.preview-brand { gap: 8px; font-size: 12px; font-weight: 800; }
.preview-brand .logo { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: #1f2833; color: #66fcf1; font-size: 12px; }
.preview-brand .logo-mark { width: 25px; height: 25px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.preview-period { gap: 14px; padding: 7px 9px; border: 1px solid #e3e8ea; border-radius: 6px; color: #56616b; font-size: 10px; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px 0; }
.preview-metrics article { min-width: 0; padding: 10px; border: 1px solid #e3e8ea; border-radius: 8px; background: #fff; }
.preview-metrics article span, .preview-metrics article small { display: block; color: #66717a; font-size: 9px; }
.preview-metrics article strong { display: block; margin: 8px 0 5px; font-size: 20px; letter-spacing: -.04em; }
.preview-metrics article small.metric-positive { color: #287c77; }
.preview-chart { padding: 13px; border: 1px solid #e3e8ea; border-radius: 8px; background: #fff; }
.chart-heading { justify-content: space-between; margin-bottom: 12px; }
.chart-heading strong, .chart-heading small { display: block; }
.chart-heading strong { font-size: 11px; }.chart-heading small, .chart-heading>span { color: #66717a; font-size: 9px; }.chart-heading small { margin-top: 4px; }
.chart-area { display: flex; height: 150px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding: 0 8px 18px 0; color: #89939a; font-size: 8px; }
.chart-plot { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.chart-gridline { height: 1px; background: #edf0f1; }
.chart-plot svg { position: absolute; inset: 0 0 20px; width: 100%; height: calc(100% - 20px); overflow: visible; }
.chart-x { display: flex; justify-content: space-between; color: #89939a; font-size: 8px; }
.preview-footer { justify-content: space-between; padding-top: 12px; color: #78838b; font-size: 9px; }
.preview-footer span:first-child { display: flex; align-items: center; gap: 5px; }
.preview-footer i { width: 6px; height: 6px; border-radius: 50%; background: #45a29e; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 0 auto; padding: 28px 0; border: 0; border-bottom: 1px solid #dce3e6; background: transparent; }
.trust-strip span { padding: 4px 14px; border-right: 1px solid #dce3e6; color: #56616b; text-align: center; font-size: 13px; }
.trust-strip span:last-child { border: 0; }.trust-strip b { display: block; margin-bottom: 4px; color: #1f2833; font-size: 20px; }
.marketing-section { max-width: 1180px; margin: 0 auto; padding: 110px 24px; }
.section-intro { max-width: 650px; }
.marketing-page .kicker { color: #287c77; }
.marketing-section h2, .plugin-cta h2, .final-cta h2 { color: #0b0c10; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.05em; }
.marketing-section h2 em { color: #287c77; font-style: normal; }
.section-intro>p:last-child, .tracking-copy>p:not(.kicker) { color: #56616b; font-size: 16px; line-height: 1.75; }
.why-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.benefit-list { display: grid; gap: 8px; padding-top: 10px; }
.benefit-list article { display: flex; gap: 17px; padding: 18px 0; border-bottom: 1px solid #dce3e6; }
.benefit-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #dff8f5; color: #1b716c; font-size: 18px; font-weight: 800; }
.benefit-list h3, .tracking-panel h3 { margin: 0 0 6px; font-size: 17px; }
.benefit-list p, .tracking-panel p { margin: 0; color: #66717a; font-size: 14px; line-height: 1.6; }
.use-cases-section { max-width: none; padding: 90px max(24px, calc((100vw - 1180px) / 2)); background: #e9eff1; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 0; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use-case-card { min-height: 390px; padding: 25px; border: 1px solid #d7e0e3; border-radius: 13px; background: #fff; }
.use-case-card.featured { border-color: #45a29e; box-shadow: 0 12px 35px #0b0c1010; }
.card-index { color: #287c77; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.use-case-symbol { width: 44px; height: 44px; display: grid; place-items: center; margin: 28px 0 18px; border-radius: 12px; background: #e1f8f6; color: #287c77; font-size: 21px; }
.use-case-card h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.03em; }
.use-case-card p, .use-case-card li { color: #56616b; font-size: 13px; line-height: 1.6; }
.use-case-card ul { margin: 18px 0 0; padding-left: 18px; }.use-case-card li { padding: 3px 0; }
.tracking-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 80px; }
.tracking-copy .text-link { display: inline-block; margin-top: 20px; color: #1b716c; }
.tracking-panel { padding: 12px 24px; border: 1px solid #dce3e6; border-radius: 13px; background: #fff; }
.tracking-panel article { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid #e7ecee; }
.tracking-panel article:last-child { border-bottom: 0; }
.tracking-number { color: #45a29e; font-size: 12px; font-weight: 900; }
.how-section { display: block; max-width: none; margin: 0; padding: 88px max(24px, calc((100vw - 1180px) / 2)); border: 0; background: #1f2833; }
.how-section .section-heading { max-width: 680px; }
.how-section .section-heading h2 { color: #fff; }
.how-section .kicker { color: #66fcf1; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.workflow article { padding-top: 18px; border-top: 1px solid #ffffff35; }
.workflow article>span { color: #66fcf1; font-size: 11px; font-weight: 900; }
.workflow h3 { margin: 20px 0 8px; color: #fff; font-size: 19px; }
.workflow p { color: #c5c6c7; font-size: 14px; line-height: 1.7; }
.prototype-note { max-width: 900px; margin: 35px 0 0; padding: 14px 18px; border-left: 3px solid #66fcf1; background: #ffffff0a; color: #d4d9dc; font-size: 12px; line-height: 1.7; }
.plugin-cta { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 60px; max-width: 1180px; margin: 0 auto; padding: 110px 24px; }
.plugin-cta h2 { max-width: 650px; margin: 14px 0; }
.plugin-copy>p:not(.kicker) { max-width: 660px; color: #56616b; line-height: 1.75; }
.plugin-features { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.plugin-features span { padding: 8px 11px; border: 1px solid #dce3e6; border-radius: 20px; background: #fff; color: #46525b; font-size: 11px; font-weight: 700; }
.plugin-download-card { padding: 25px; border: 1px solid #dce3e6; border-radius: 13px; background: #fff; box-shadow: 0 20px 55px #0b0c100d; }
.extension-icon { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce3e6; border-radius: 12px; background: #fff; padding: 4px; }
.extension-icon img { width: 100%; height: 100%; object-fit: contain; }
.extension-label { display: block; margin-top: 18px; color: #287c77; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.plugin-download-card h3 { margin: 8px 0; font-size: 23px; }.plugin-download-card p { color: #66717a; font-size: 13px; line-height: 1.6; }
.plugin-download-button { display: flex; justify-content: space-between; width: 100%; margin: 18px 0 12px; border-radius: 8px; background: #1f2833; color: #66fcf1; }
.plugin-download-card small { color: #7a858d; font-size: 10px; }
.final-cta { padding: 86px 24px; background: #e9eff1; text-align: center; }
.final-cta h2 { max-width: 720px; margin: 12px auto; }
.final-cta>p:not(.kicker,.hero-note) { max-width: 650px; margin: 0 auto; color: #56616b; line-height: 1.7; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .primary-button { border-radius: 8px; background: #1f2833; color: #66fcf1; }
.final-cta .secondary-button { border-color: #b7c5c9; border-radius: 8px; background: transparent; color: #1f2833; }
.marketing-footer { max-width: 1180px; min-height: 90px; margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; border: 0; }
.marketing-footer .brand-logo { display: block; width: 145px; height: auto; }
.marketing-footer .wordmark { color: #1f2833; }.marketing-footer .logo { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #1f2833; color: #66fcf1; font-weight: 900; }
.marketing-footer>span, .marketing-footer>a:last-child { color: #66717a; font-size: 12px; text-decoration: none; }
@media (max-width: 1000px) {
  .analytics-preview { position: relative; top: auto; right: auto; width: min(540px, 100%); margin: 54px auto 0; transform: none; }
  .product-hero { padding: 65px 7vw; }
  .product-hero::before { width: 100%; }
}
@media (max-width: 760px) {
  .marketing-nav { width: 100%; height: 66px; padding: 0 18px; }
  .marketing-nav nav { display: none; }
  .marketing-page .nav-button { padding: 10px; font-size: 11px; }
  .marketing-page .nav-button span { display: none; }
  .product-hero { min-height: auto; padding: 54px 22px 40px; }
  .product-hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .product-hero .hero-lede { font-size: 16px; }
  .product-hero .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .analytics-preview { padding: 11px; }
  .preview-metrics { gap: 5px; }.preview-metrics article { padding: 7px; }.preview-metrics article strong { font-size: 15px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); padding: 16px 10px; }
  .trust-strip span:nth-child(2) { border-right: 0; }.trust-strip span { margin: 8px 0; font-size: 11px; }
  .marketing-section { padding: 72px 22px; }
  .why-section, .tracking-section, .plugin-cta { grid-template-columns: 1fr; gap: 32px; }
  .use-cases-section, .how-section { padding: 72px 22px; }
  .use-case-grid, .workflow { grid-template-columns: 1fr; }
  .use-case-card { min-height: auto; }
  .use-case-symbol { margin-top: 20px; }
  .plugin-cta { padding: 72px 22px; }
  .final-cta { padding: 68px 22px; }
  .final-cta .hero-actions { align-items: center; flex-direction: column; }
  .marketing-footer { flex-wrap: wrap; gap: 12px; padding: 20px 22px; }
  .marketing-footer>span { order: 3; width: 100%; }
}

/* Compact academic dashboard preview and tighter section rhythm */
.marketing-page { scroll-behavior: smooth; }
.marketing-page section[id] { scroll-margin-top: 86px; }
.marketing-nav { width: min(100% - 48px, 1240px); padding: 0 24px; }
.marketing-nav nav { gap: clamp(10px, 1.5vw, 22px); }
.marketing-nav nav a { white-space: nowrap; font-size: 11px; }
.marketing-page .nav-button { white-space: nowrap; }
.product-hero { min-height: 570px; padding-top: 58px; padding-bottom: 58px; }
.product-hero .hero-copy { padding-right: 590px; }
.product-hero h1 { font-size: clamp(54px, 6.4vw, 82px); }
.product-hero .hero-lede { font-size: 16px; }
.analytics-preview { top: 72px; right: max(4vw, calc((100vw - 1260px) / 2)); width: min(545px, 45vw); padding: 13px; }
.academic-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 0; }
.academic-summary article { min-width: 0; padding: 8px; border: 1px solid #e3e8ea; border-radius: 7px; background: #fff; }
.academic-summary article span, .academic-summary article small { display: block; color: #66717a; font-size: 8px; }
.academic-summary article strong { display: block; margin: 7px 0 4px; color: #1f2833; font-size: 12px; }
.preview-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8px; }
.preview-course-list, .preview-schedule { min-width: 0; padding: 10px; border: 1px solid #e3e8ea; border-radius: 8px; background: #fff; }
.preview-detail-grid .chart-heading { margin-bottom: 9px; }
.preview-detail-grid .chart-heading strong { color: #1f2833; font-size: 10px; }
.preview-detail-grid .chart-heading small, .preview-detail-grid .chart-heading>span { font-size: 8px; }
.preview-course-list>article { padding: 7px 0; border-top: 1px solid #edf0f1; }
.preview-course-list>article>div { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 5px; }
.preview-course-list>article b { overflow: hidden; color: #1f2833; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.preview-course-list>article>div>span { flex: 0 0 auto; color: #78838b; font-size: 7px; }
.preview-course-list>article>i { display: block; height: 4px; overflow: hidden; border-radius: 5px; background: #e9eff1; }
.preview-course-list>article>i>span { display: block; height: 100%; border-radius: inherit; background: #45a29e; }
.schedule-item { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid #edf0f1; }
.schedule-item time { flex: 0 0 32px; padding: 5px 2px; border-radius: 5px; background: #e1f8f6; color: #287c77; text-align: center; font-size: 7px; line-height: 1.25; }
.schedule-item time b { font-size: 12px; }
.schedule-item>span b, .schedule-item>span small { display: block; }
.schedule-item>span b { color: #1f2833; font-size: 8px; }
.schedule-item>span small { margin-top: 3px; color: #78838b; font-size: 7px; }
.marketing-section { padding-top: 56px; padding-bottom: 56px; }
.section-intro { max-width: 610px; }
.section-intro h2, .marketing-section h2, .plugin-cta h2, .final-cta h2 { margin-top: 9px; margin-bottom: 16px; }
.section-intro>p:last-child, .tracking-copy>p:not(.kicker) { font-size: 14px; line-height: 1.65; }
.why-section { gap: 64px; }
.benefit-list article { padding: 13px 0; }
.use-cases-section, .how-section { padding-top: 56px; padding-bottom: 56px; }
.section-heading { margin-bottom: 24px; }
.use-case-card { min-height: 350px; padding: 20px; }
.use-case-symbol { margin: 19px 0 13px; }
.use-case-card ul { margin-top: 12px; }
.tracking-section { gap: 56px; }
.tracking-panel { padding-top: 5px; padding-bottom: 5px; }
.tracking-panel article { padding: 14px 0; }
.workflow { gap: 22px; }
.workflow h3 { margin-top: 14px; }
.prototype-note { margin-top: 24px; }
.plugin-cta { padding-top: 56px; padding-bottom: 56px; gap: 42px; }
.final-cta { padding-top: 56px; padding-bottom: 56px; }
.marketing-footer { min-height: 72px; }
@media (max-width: 1100px) {
  .marketing-nav nav { gap: 12px; }
  .marketing-nav nav a { font-size: 10px; }
  .product-hero .hero-copy { padding-right: 0; }
  .analytics-preview { width: min(545px, 100%); }
}
@media (max-width: 760px) {
  .marketing-nav { width: 100%; padding: 0 16px; }
  .product-hero { min-height: auto; padding: 44px 22px; }
  .product-hero h1 { font-size: clamp(46px, 12vw, 68px); }
  .analytics-preview { margin-top: 36px; }
  .academic-summary { grid-template-columns: repeat(2, 1fr); }
  .academic-summary article strong { font-size: 14px; }
  .preview-detail-grid { grid-template-columns: 1fr; }
  .marketing-section, .use-cases-section, .how-section, .plugin-cta, .final-cta { padding-top: 44px; padding-bottom: 44px; }
  .use-case-card { min-height: 0; }
}
@media (max-width: 900px) {
  .marketing-nav {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 66px;
    padding: 10px 18px 0;
  }
  .marketing-nav nav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 12px;
    border-top: 1px solid #ffffff20;
    scrollbar-width: thin;
  }
  .marketing-nav nav a { font-size: 11px; }
  .marketing-page .nav-button { margin-left: auto; }
}
@media (max-width: 560px) {
  .marketing-nav nav { gap: 16px; }
  .marketing-nav nav a { font-size: 10px; }
}
.marketing-nav {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 82px;
  margin: 0;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid #ffffff20;
  background: linear-gradient(120deg, #0b0c10 0%, #11171d 62%, #1f2833 100%);
  color: #c5c6c7;
  backdrop-filter: none;
}
.marketing-nav .wordmark {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  flex: 0 0 auto;
  margin: 0;
}
.marketing-nav .brand-logo {
  display: block;
  width: clamp(220px, 22vw, 280px);
  max-height: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.marketing-nav nav {
  position: static;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  flex: 0 0 auto;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 26px);
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  transform: none;
  order: initial;
}
.marketing-nav nav a {
  color: #c5c6c7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.marketing-nav nav a:hover { color: #66fcf1; }
.marketing-page .nav-button {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .marketing-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    width: 100%;
    min-height: 118px;
    padding: 8px 20px 0;
  }
  .marketing-nav .wordmark { grid-column: 1; grid-row: 1; }
  .marketing-nav .brand-logo { width: clamp(180px, 26vw, 220px); }
  .marketing-nav nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 11px 0 12px;
    border-top: 1px solid #ffffff20;
    overflow-x: auto;
  }
  .marketing-nav nav a { font-size: 11px; }
  .marketing-page .nav-button { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (max-width: 560px) {
  .marketing-nav { min-height: 110px; padding: 8px 12px 0; }
  .marketing-nav .brand-logo { width: clamp(125px, 42vw, 170px); }
  .marketing-nav nav { justify-content: flex-start; gap: 16px; padding: 10px 0 12px; }
  .marketing-nav nav a { font-size: 10px; }
  .marketing-page .nav-button { padding: 9px 10px; gap: 6px; font-size: 10px; }
}
