:root{
  --page:#fbfaf7;
  --page-accent:#efe7db;
  --paper:#ffffff;
  --ink:#11182c;
  --muted:#5d6780;
  --line:#ded6ca;
  --dark:#17140f;
  --warm:#d86f35;
  --blue:#2557d6;
  --green:#0f8f7a;
  --shadow:0 12px 30px rgba(26,24,20,.08);
  --button-surface:#ffffff;
  --button-quiet:#f3ede4;
  color-scheme:light;
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Stage 8 app-style polish: make generated web pages feel like the Android app. */
.dense-list a,
.list a[href*="quiz.html?quiz="]{
  position:relative;
  padding:16px 16px 18px;
  border-radius:18px;
  box-shadow:0 12px 26px rgba(44,31,18,.08);
}

.dense-list small,
.list a[href*="quiz.html?quiz="] small{
  display:none !important;
}

.dense-list a::after,
.list a[href*="quiz.html?quiz="]::after{
  content:"Start practice";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:auto;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#fff1e6;
  color:#a84f22;
  border:1px solid rgba(216,111,53,.18);
  font-size:11px;
  font-weight:950;
}

.dense-list a span,
.list a[href*="quiz.html?quiz="] span{
  font-weight:850;
  line-height:1.35;
}

.techpsc-bottom-nav{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:50;
  display:none;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  padding:8px;
  border-radius:22px;
  border:1px solid rgba(222,214,202,.9);
  background:rgba(255,253,249,.94);
  box-shadow:0 18px 44px rgba(17,24,44,.18);
  backdrop-filter:blur(18px);
}

.techpsc-bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-height:48px;
  border-radius:16px;
  color:#5d6780;
  font-size:11px;
  font-weight:950;
}

.techpsc-bottom-nav a span:first-child{
  font-size:18px;
  line-height:1;
}

.techpsc-bottom-nav a.active{
  background:#fff1e6;
  color:#a84f22;
}

.compact-footer-grid{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding-bottom:14px !important;
}

.compact-footer-brand{
  padding:0 !important;
}

.compact-footer-links{
  margin:0 !important;
  justify-content:flex-end !important;
}

.compact-footer-links .footer-icon{
  min-height:34px !important;
  padding:0 12px !important;
}

html[data-theme="dark"] .techpsc-bottom-nav{
  background:rgba(16,24,42,.94);
  border-color:#273149;
  box-shadow:0 18px 44px rgba(0,0,0,.34);
}

html[data-theme="dark"] .techpsc-bottom-nav a{
  color:#aab5cc;
}

html[data-theme="dark"] .techpsc-bottom-nav a.active{
  background:rgba(240,138,75,.16);
  color:#ffd3b6;
}

@media (max-width:640px){
  body{padding-bottom:86px}
  .techpsc-bottom-nav{display:grid}
  .footer-bottom{padding-bottom:96px}
  .grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .list,
  .dense-list{
    grid-template-columns:1fr;
  }
  .card,
  .list a{
    min-height:auto;
  }
  .techpsc-account-chip span{
    display:none;
  }
  .compact-footer-grid{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
  .compact-footer-links{
    justify-content:flex-start !important;
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;min-height:100%}
body{
  margin:0;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  font-family:var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(216,111,53,.09), transparent 24%),
    radial-gradient(circle at top right, rgba(37,87,214,.08), transparent 28%),
    linear-gradient(180deg,var(--page),#f8f4ee 40%,var(--page));
  color:var(--ink);
  color-scheme:light;
}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--font-display);letter-spacing:-.01em}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(251,250,247,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(222,214,202,.92);
  box-shadow:0 1px 0 rgba(255,255,255,.65) inset;
}

.header-inner{
  width:min(1440px,calc(100% - 48px));
  margin:0 auto;
  min-height:76px;
  padding:10px 0;
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:max-content;
}
.mark{
  width:38px;
  height:38px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--warm),var(--blue));
  display:grid;
  place-items:center;
  color:white;
  font-weight:900;
  overflow:hidden;
}
.mark img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.brand strong{display:block;font-size:17px}
.brand span{
  display:block;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:.08em;
}

.nav{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:var(--button-surface);
  border:1px solid rgba(222,214,202,.92);
  font-weight:800;
  font-size:14px;
  box-shadow:0 4px 12px rgba(26,24,20,.04);
  color:var(--ink);
}
.nav a:hover{border-color:rgba(216,111,53,.36);color:var(--ink);}
.nav a.active{
  border-color:rgba(216,111,53,.44);
  color:var(--warm);
  background:#fff4ea;
}

.wrap{
  width:min(1440px,calc(100% - 48px));
  margin:0 auto;
  padding:30px 0 0;
  flex:1 0 auto;
}

body:not(.home-page){
  background:
    radial-gradient(circle at top left, rgba(216,111,53,.08), transparent 24%),
    radial-gradient(circle at top right, rgba(37,87,214,.07), transparent 28%),
    linear-gradient(180deg,var(--page),#f8f4ee 40%,var(--page));
}

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

.home-sidebar{
  position:sticky;
  top:86px;
  display:grid;
  gap:12px;
}

.sidebar-panel{
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  box-shadow:var(--shadow);
}

.sidebar-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.sidebar-title h3{
  margin:0;
  font-size:16px;
}

.sidebar-links{
  display:grid;
  gap:8px;
}

.sidebar-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff,#faf7f0);
  font-weight:900;
}

.sidebar-links a small{
  color:var(--muted);
  font-weight:800;
}

.sidebar-links a.active{
  border-color:rgba(216,111,53,.35);
  background:#fff4ea;
  color:var(--warm);
}

.sidebar-note{
  padding:14px 12px;
  border-radius:14px;
  background:linear-gradient(135deg,#ffffff,#f7efe4);
  border:1px solid rgba(216,111,53,.18);
}

.sidebar-note strong{
  display:block;
  margin-bottom:4px;
}

.home-main{
  min-width:0;
}

.hero{
  display:grid;
  gap:18px;
  grid-template-columns:1.25fr .75fr;
  align-items:stretch;
  margin:18px 0;
}
.hero-main{
  background:
    linear-gradient(135deg,rgba(255,255,255,.06),transparent 40%),
    linear-gradient(135deg,var(--dark),#1c1730 58%,#14324d);
  color:#fff7ed;
  border-radius:20px;
  padding:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-side{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:var(--shadow);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 9px;
  border-radius:999px;
  background:#fff1e6;
  color:#a84f22;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:900;
}
.hero-main .eyebrow{
  background:rgba(255,255,255,.10);
  color:#ffd9c2;
}

h1{
  margin:14px 0 10px;
  font-size:clamp(32px,5vw,56px);
  line-height:1;
  font-weight:950;
  letter-spacing:0;
}
h2{
  margin:0 0 10px;
  font-size:26px;
  line-height:1.1;
  letter-spacing:0;
}
h3{
  margin:10px 0 6px;
  font-size:20px;
  line-height:1.15;
  letter-spacing:0;
}
p{line-height:1.65}
.lead{
  margin:0;
  color:rgba(255,247,237,.84);
  max-width:820px;
}
.muted{color:var(--muted)}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--warm);
  background:linear-gradient(135deg,var(--warm),#ef8a4e);
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 22px rgba(216,111,53,.22);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.hero .button,
.page-intro .button,
.callout .button{
  color:#fff;
}
.button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(26,24,20,.10);
}
.button:focus-visible{
  outline:3px solid rgba(37,87,214,.28);
  outline-offset:2px;
}
.button.primary{
  background:linear-gradient(135deg,var(--warm),#ef8a4e);
  border-color:var(--warm);
  color:#fff;
}
.button.dark{
  background:linear-gradient(135deg,var(--warm),#ef8a4e);
  border-color:var(--warm);
  color:#fff;
  text-shadow:none;
}
.button.soft{
  background:linear-gradient(180deg,#fffdf8,#f6ede3);
  border-color:rgba(222,214,202,.96);
  color:var(--ink);
}

.hero .button,
.page-intro .button,
.callout .button,
.toolbar .button{
  background:linear-gradient(135deg,var(--warm),#ef8a4e);
  border-color:var(--warm);
  color:#fff;
  text-shadow:none;
}

.toolbar .button{
  min-width:138px;
}

.state-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef5ff;
  color:#244a9b;
  font-size:12px;
  font-weight:800;
}
.state-pill.ok{background:#e9fbf5;color:#08715f;}
.state-pill.warn{background:#fff1e6;color:#a84f22;}

.mock-gate-pill{
  position:absolute;
  right:12px;
  top:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#fff1e6;
  color:#a84f22;
  border:1px solid #efcfba;
  font-size:11px;
  font-weight:900;
  box-shadow:none;
}
.mock-gated-card h3{
  padding-right:58px;
}

html[data-theme="light"] .button.dark,
html[data-theme="dark"] .button.dark{
  background:linear-gradient(135deg,var(--warm),#ef8a4e);
  border-color:var(--warm);
  color:#fff;
}

html[data-theme="light"] .button.soft,
html[data-theme="dark"] .button.soft{
  background:linear-gradient(135deg,var(--warm),#ef8a4e);
  border-color:var(--warm);
  color:#fff;
}

.section{margin-top:26px}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

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

.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow);
  min-width:0;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover{
  transform:translateY(-2px);
  border-color:rgba(37,87,214,.32);
  box-shadow:0 14px 30px rgba(26,24,20,.12);
}
.card h3,
.card h2{
  color:var(--ink);
}
.card p{margin:0;color:var(--muted)}

.meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding:6px 9px;
  border-radius:999px;
  background:#eef5ff;
  color:#244a9b;
  font-size:12px;
  font-weight:900;
}
.chip.warm{background:#fff1e6;color:#a84f22}
.chip.green{background:#e9fbf5;color:#08715f}

.list{
  display:grid;
  gap:10px;
  margin-top:12px;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.list a{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  min-height:92px;
  padding:14px;
  border-radius:16px;
  background:var(--paper);
  border:1px solid var(--line);
  font-weight:800;
  color:var(--ink);
}
.list a span{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.list a small{
  color:var(--muted);
  font-weight:800;
  align-self:flex-end;
}
.list a:hover{
  border-color:rgba(37,87,214,.35);
  transform:translateY(-1px);
}
.dense-list{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}

.dense-list a{
  min-height:132px;
}

.warning{
  border-left:4px solid var(--warm);
  background:#fff8f1;
}
.footer-note{
  margin-top:24px;
  color:var(--muted);
  font-size:13px;
}

.hidden{display:none !important;}

.search{
  width:100%;
  min-height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  padding:0 12px;
  font:inherit;
  font-weight:700;
  background:var(--paper);
  color:var(--ink);
}

.stream-card{
  display:grid;
  gap:10px;
}
.stream-card .toolbar{
  margin-top:6px;
}
.stream-card .button{
  min-width:0;
}
.card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.card-actions .button{
  flex:1 1 180px;
}

.page-note,
.support-banner,
.callout,
.panel{
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.page-note,
.support-banner{
  padding:18px;
}

.panel{
  padding:16px;
}

.support-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.stat-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
}

.stat{
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff,#fbf7f0);
  border:1px solid rgba(222,214,202,.92);
}

.stat strong{
  display:block;
  font-size:22px;
  line-height:1.1;
  margin-bottom:4px;
}

.split{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}

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

.tight-list{
  display:grid;
  gap:8px;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
}

.tight-list a{
  justify-content:center;
  min-height:64px;
}

.callout{
  padding:18px;
  background:linear-gradient(135deg,#fffaf3,#f3ece1);
}

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

.pricing-card{
  display:grid;
  gap:12px;
  align-content:start;
}

.pricing-amount{
  font-size:30px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.03em;
}

.pricing-amount small{
  display:block;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  color:var(--muted);
  margin-top:4px;
  letter-spacing:0;
}

.pricing-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.pricing-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff,#faf7f0);
  color:var(--ink);
}

.pricing-list li::before{
  content:"•";
  color:var(--warm);
  font-weight:900;
  line-height:1;
  margin-top:1px;
}

html[data-theme="light"] .pricing-list li,
html[data-theme="light"] .pricing-card{
  background:#fffdf9;
  color:#11182c;
}

html[data-theme="dark"] .pricing-list li,
html[data-theme="dark"] .pricing-card{
  background:#10182a;
  color:#f5f7fc;
}

.page-intro{
  display:grid;
  gap:14px;
  margin-bottom:16px;
  padding:22px 24px 20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--paper);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.page-intro h1{
  max-width:900px;
}

.copy-block{
  color:var(--muted);
  max-width:72ch;
}

html[data-theme="light"] body{
  color:#11182c;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .brand strong,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .page-intro h1,
html[data-theme="light"] .hero-side h2,
html[data-theme="light"] .hero-side h3,
html[data-theme="light"] .card h2,
html[data-theme="light"] .card h3,
html[data-theme="light"] .sidebar-title h3,
html[data-theme="light"] .sidebar-links a,
html[data-theme="light"] .sidebar-note,
html[data-theme="light"] .sidebar-note strong,
html[data-theme="light"] .page-note,
html[data-theme="light"] .stat strong,
html[data-theme="light"] .stat span,
html[data-theme="light"] .support-banner,
html[data-theme="light"] .callout,
html[data-theme="light"] .panel{
  color:#11182c;
}

html[data-theme="light"] .muted,
html[data-theme="light"] .card p,
html[data-theme="light"] .list a small,
html[data-theme="light"] .copy-block,
html[data-theme="light"] .search::placeholder{
  color:#475569;
}

html[data-theme="light"] .card,
html[data-theme="light"] .hero-side,
html[data-theme="light"] .sidebar-panel,
html[data-theme="light"] .sidebar-links a,
html[data-theme="light"] .sidebar-note,
html[data-theme="light"] .page-note,
html[data-theme="light"] .support-banner,
html[data-theme="light"] .callout,
html[data-theme="light"] .panel,
html[data-theme="light"] .stat{
  background:#ffffff;
  border-color:#d8d0c4;
  box-shadow:0 10px 24px rgba(17,24,39,.07);
}

html[data-theme="light"] .sidebar-links a{
  background:linear-gradient(180deg,#ffffff,#faf7f0);
}

html[data-theme="light"] .sidebar-links a.active,
html[data-theme="light"] .nav a.active{
  color:#d86f35;
}

html[data-theme="light"] .hero-main .lead{
  color:#475569;
}

html[data-theme="light"] .hero-main{
  background:linear-gradient(180deg,#fffdf9,#f4ecdf) !important;
  color:#11182c !important;
  border:1px solid rgba(222,214,202,.92) !important;
}

html[data-theme="light"] .hero-main .eyebrow{
  color:#a84f22;
}

html[data-theme="light"] .hero-side .muted,
html[data-theme="light"] .sidebar-note,
html[data-theme="light"] .sidebar-links a small{
  color:#3f4a61;
}

@media (max-width:1100px){
  .header-inner,
  .wrap{
    width:min(100%,calc(100% - 32px));
  }
  .nav{
    gap:6px;
  }
  .nav a{
    padding:0 12px;
    font-size:13px;
  }
}

@media (max-width:900px){
  .home-layout{
    grid-template-columns:1fr;
  }
  .home-sidebar{
    position:static;
  }
  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .dense-list{
    grid-template-columns:1fr;
  }
  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .header-inner{
    align-items:flex-start;
    flex-wrap:wrap;
    padding:12px 0;
  }
  .brand{
    flex:1 1 auto;
  }
  .nav{
    order:3;
    width:100%;
    justify-content:flex-start;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{
    display:none;
  }
  .nav a{
    flex:none;
  }
  .wrap{padding-top:16px}
  h1{font-size:38px}
  .hero-main{padding:20px}
  .page-intro{padding:18px 18px 16px}
  .split{
    grid-template-columns:1fr;
  }
  .comparison-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .header-inner,
  .wrap{
    width:calc(100% - 20px);
  }
  .brand strong{font-size:15px}
  .brand span{font-size:10px}
  .mark{width:34px;height:34px}
  .nav a{
    min-height:36px;
    padding:0 11px;
    font-size:12px;
  }
  .hero-main,
  .hero-side,
  .page-intro,
  .card,
  .sidebar-panel,
  .note-card{
    border-radius:16px;
  }
  .toolbar .button,
  .button{
    width:100%;
    min-width:0;
  }
}

@media (prefers-color-scheme: dark){
  :root{
    --page:#070b14;
    --page-accent:#0f1626;
    --paper:#10182a;
    --ink:#f5f7fc;
    --muted:#aab5cc;
    --line:#273149;
    --dark:#0a1122;
    --warm:#f08a4b;
    --blue:#7f8df7;
    --green:#33d7ae;
    --shadow:0 16px 34px rgba(0,0,0,.36);
    --button-surface:#111827;
    --button-quiet:#0f1728;
    color-scheme:dark;
  }
  body{
    background:
      radial-gradient(circle at top left, rgba(240,138,75,.10), transparent 22%),
      radial-gradient(circle at top right, rgba(127,141,247,.12), transparent 30%),
      linear-gradient(180deg,#060a12 0%,#0a1020 56%,#070b14 100%);
    color-scheme:dark;
  }
  .site-header{
    background:rgba(7,11,20,.88);
    border-bottom:1px solid rgba(39,49,73,.92);
  }
  .nav a,
  .hero-side,
  .card,
  .list a,
  .search,
  .button{
    background:var(--paper);
    border-color:var(--line);
    color:var(--ink);
  }
  .nav a.active{
    background:rgba(240,138,75,.16);
    color:#ffd3b6;
    border-color:rgba(240,138,75,.42);
  }
  .hero-main{
    background:
      linear-gradient(135deg,rgba(255,255,255,.04),transparent 38%),
      linear-gradient(135deg,#10172a,#0d1727 54%,#122c41);
    color:#f8fafc;
  }
  .hero-main .eyebrow{
    background:rgba(255,255,255,.08);
    color:#ffd9c2;
  }
  .hero-main .lead{
    color:rgba(244,246,251,.84);
  }
  .sidebar-panel{
    background:linear-gradient(180deg,#0f1726,#0b1220);
    border-color:rgba(39,49,73,.95);
  }
  .sidebar-links a{
    background:linear-gradient(180deg,#131c31,#0f1727);
    border-color:rgba(39,49,73,.95);
    color:#f5f7fc;
    box-shadow:0 8px 18px rgba(0,0,0,.22);
  }
  .sidebar-links a small{
    color:rgba(180,192,219,.86);
  }
  .sidebar-links a.active{
    background:linear-gradient(135deg,rgba(240,138,75,.20),rgba(240,138,75,.10));
    color:#ffd6bb;
    border-color:rgba(240,138,75,.42);
  }
  .sidebar-note{
    background:linear-gradient(180deg,#0f1727,#10192b);
    border-color:rgba(39,49,73,.95);
    color:#f5f7fc;
  }
  .sidebar-note strong{
    color:#fff2e7;
  }
  .muted,
  .card p,
  .list a small,
  .search::placeholder{
    color:var(--muted);
  }
  .button{
    box-shadow:0 10px 22px rgba(0,0,0,.22);
  }
  .button.primary{
    background:linear-gradient(135deg,#f08a4b,#d86f35);
    color:#fff;
    border-color:#f08a4b;
  }
  .button.dark{
    background:#eff3ff;
    color:#0a1020;
    border-color:#eff3ff;
  }
  .button.soft{
    background:var(--button-quiet);
    color:var(--ink);
    border-color:var(--line);
  }
  .search{
    background:#0f1727;
    color:var(--ink);
  }
  .search::placeholder{
    color:#98a5bf;
  }
  .stat{
    background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
    border-color:rgba(240,138,75,.18);
  }
  .stat span{
    color:rgba(224,232,247,.82);
  }
  .list a:hover{
    border-color:rgba(109,125,245,.55);
  }
  .callout{
    background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  }
}

/* Final production pass: quieter dashboard cards and safer dark-mode contrast. */
.card,
.list a,
.dense-list a,
.page-intro,
.hero-main,
.hero-side,
.sidebar-panel,
.page-note,
.support-banner,
.callout,
.panel{
  border-radius:16px;
}

.card,
.list a,
.dense-list a{
  box-shadow:0 8px 18px rgba(26,24,20,.06);
}

.card:hover,
.list a:hover{
  transform:translateY(-1px);
}

.button,
.nav a,
.eyebrow,
.chip,
.mock-gate-pill,
.state-pill,
.dense-list a::after,
.list a[href*="quiz.html?quiz="]::after{
  border-radius:10px;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-side,
html[data-theme="dark"] .page-intro,
html[data-theme="dark"] .page-note,
html[data-theme="dark"] .support-banner,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .sidebar-panel,
html[data-theme="dark"] .sidebar-note,
html[data-theme="dark"] .sidebar-links a,
html[data-theme="dark"] .list a,
html[data-theme="dark"] .dense-list a,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .pricing-list li,
html[data-theme="dark"] details,
html[data-theme="dark"] .note-card{
  background:#10182a !important;
  border-color:#273149 !important;
  color:#f5f7fc !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] summary,
html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .list a,
html[data-theme="dark"] .dense-list a,
html[data-theme="dark"] .page-intro h1,
html[data-theme="dark"] .section-head h2{
  color:#f8fafc !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .copy-block,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .list a small,
html[data-theme="dark"] .dense-list small,
html[data-theme="dark"] .brand span,
html[data-theme="dark"] .sidebar-links a small,
html[data-theme="dark"] .pricing-amount small,
html[data-theme="dark"] .footer-note{
  color:#b8c3d8 !important;
}

html[data-theme="dark"] .button.soft,
html[data-theme="dark"] .nav a,
html[data-theme="dark"] .search{
  background:#0f1727 !important;
  border-color:#273149 !important;
  color:#f5f7fc !important;
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .button.dark,
html[data-theme="dark"] .hero .button,
html[data-theme="dark"] .page-intro .button,
html[data-theme="dark"] .callout .button,
html[data-theme="dark"] .toolbar .button{
  background:#f08a4b !important;
  border-color:#f08a4b !important;
  color:#08111f !important;
  text-shadow:none !important;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .chip.warm,
html[data-theme="dark"] .mock-gate-pill,
html[data-theme="dark"] .dense-list a::after,
html[data-theme="dark"] .list a[href*="quiz.html?quiz="]::after{
  background:rgba(240,138,75,.16) !important;
  border-color:rgba(240,138,75,.34) !important;
  color:#ffd8bf !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .list a,
html[data-theme="dark"] .dense-list a,
html[data-theme="dark"] .page-intro,
html[data-theme="dark"] .hero-main,
html[data-theme="dark"] .hero-side,
html[data-theme="dark"] .sidebar-panel,
html[data-theme="dark"] .page-note,
html[data-theme="dark"] .support-banner,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .panel{
  border-radius:16px;
}

/* Final futuristic simplification: shared web dashboard look across all generated pages. */
body{
  background:
    radial-gradient(circle at 16% 6%,rgba(216,111,53,.10),transparent 24%),
    radial-gradient(circle at 86% 8%,rgba(37,87,214,.08),transparent 26%),
    linear-gradient(180deg,var(--page),#f8f4ee 42%,var(--page)) !important;
}

.wrap{
  position:relative;
}

.wrap::before{
  content:"";
  position:fixed;
  inset:76px 0 auto;
  height:320px;
  pointer-events:none;
  opacity:.22;
  background-image:
    linear-gradient(rgba(17,24,44,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(17,24,44,.10) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(circle at 50% 0%,#000,transparent 70%);
  z-index:-1;
}

.hero-main,
.page-intro{
  position:relative;
  overflow:hidden;
  border-radius:22px !important;
  border:1px solid rgba(222,214,202,.92) !important;
  background:
    radial-gradient(circle at 86% 16%,rgba(216,111,53,.16),transparent 26%),
    linear-gradient(135deg,#18120d,#24190f 58%,#101827) !important;
  color:#fff7ed !important;
  box-shadow:0 22px 54px rgba(24,18,13,.16) !important;
}

.hero-main::after,
.page-intro::after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-110px;
  width:260px;
  height:260px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 0 38px rgba(255,255,255,.035),0 0 0 74px rgba(255,255,255,.025);
  pointer-events:none;
}

.hero-main h1,
.hero-main h2,
.hero-main h3,
.page-intro h1,
.page-intro h2,
.page-intro h3{
  position:relative;
  z-index:1;
  color:#fff7ed !important;
}

.hero-main p,
.hero-main .lead,
.page-intro p,
.page-intro .copy-block{
  position:relative;
  z-index:1;
  color:rgba(255,247,237,.78) !important;
}

.hero-main .toolbar,
.page-intro .toolbar{
  position:relative;
  z-index:1;
}

.hero-side,
.card,
.list a,
.dense-list a,
.panel,
.support-banner,
.page-note,
.callout,
.sidebar-panel{
  border-radius:18px !important;
  border-color:rgba(222,214,202,.88) !important;
  background:rgba(255,253,249,.90) !important;
  box-shadow:0 12px 30px rgba(26,24,20,.07) !important;
  backdrop-filter:blur(12px);
}

.list a,
.dense-list a{
  min-height:104px;
}

.card:hover,
.list a:hover,
.dense-list a:hover{
  transform:translateY(-2px);
  border-color:rgba(216,111,53,.34) !important;
  box-shadow:0 18px 42px rgba(26,24,20,.12) !important;
}

.button.primary,
.button.dark,
.hero .button,
.page-intro .button,
.callout .button,
.toolbar .button{
  background:#d86f35 !important;
  border-color:#d86f35 !important;
  color:#fff !important;
  box-shadow:0 12px 26px rgba(216,111,53,.20) !important;
}

.button.soft{
  background:#fffdf9 !important;
  color:#11182c !important;
  border-color:#ded6ca !important;
  box-shadow:none !important;
}

.eyebrow,
.label,
.chip.warm,
.mock-gate-pill,
.dense-list a::after,
.list a[href*="quiz.html?quiz="]::after{
  border-radius:10px !important;
  background:#fff1e6 !important;
  color:#a84f22 !important;
  border-color:#efcfba !important;
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 16% 6%,rgba(240,138,75,.12),transparent 24%),
    radial-gradient(circle at 86% 8%,rgba(127,141,247,.10),transparent 26%),
    linear-gradient(180deg,#070b14,#0a1020 46%,#070b14) !important;
}

html[data-theme="dark"] .wrap::before{
  opacity:.14;
  background-image:
    linear-gradient(rgba(248,250,252,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(248,250,252,.10) 1px,transparent 1px);
}

html[data-theme="dark"] .hero-main,
html[data-theme="dark"] .page-intro{
  background:
    radial-gradient(circle at 86% 16%,rgba(240,138,75,.18),transparent 26%),
    linear-gradient(135deg,#0f1727,#10182a 58%,#07111f) !important;
  border-color:#273149 !important;
}

html[data-theme="dark"] .hero-side,
html[data-theme="dark"] .card,
html[data-theme="dark"] .list a,
html[data-theme="dark"] .dense-list a,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .support-banner,
html[data-theme="dark"] .page-note,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .sidebar-panel{
  background:rgba(16,24,42,.90) !important;
  border-color:#273149 !important;
  box-shadow:0 18px 42px rgba(0,0,0,.28) !important;
}

html[data-theme="dark"] .button.soft{
  background:#0f1727 !important;
  color:#f5f7fc !important;
  border-color:#273149 !important;
}
