:root {
  --burgundy:#63283c;
  --dusty-rose:#b77b8a;
  --success:#256b50;
  --rose:#925267;
  --beige:#f5ecdf;
  --paper:#faf6f1;
  --text:#3f2b32;
  --muted:#755c62;
  --line:#e6d9d3;
  --white:#fffdf9;
  --sand:#d9bea3;
  --red:#a32e42;
  --shadow:0 15px 40px rgba(99,40,60,.07)}
* {
  box-sizing:border-box}
html {
  scroll-behavior:smooth}
body {
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:Tahoma,'Segoe UI',Arial,sans-serif;
  line-height:1.7}
a {
  color:inherit;
  text-decoration:none}
button,input,select {
  font:inherit}
button,a,input,select {
  outline-offset:4px}
h1,h2,h3,p {
  margin-top:0}
h1,h2 {
  letter-spacing:-.035em;
  line-height:1.35}
h1 {
  font-size:clamp(2rem,4vw,3.5rem)}
h2 {
  font-size:clamp(1.35rem,2vw,1.9rem)}
h3 {
  font-size:1.14rem}
p {
  color:var(--muted)}
em {
  font-style:normal;
  color:var(--rose)}
.site-header {
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  padding:0 max(5%,calc((100% - 1240px)/2));
  background:#fffdf9;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:25}
.brand {
  display:flex;
  gap:11px;
  align-items:center;
  color:var(--burgundy);
  white-space:nowrap}
.brand-mark {
  background:var(--burgundy);
  color:#f5ecdf;
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:30px}
.brand b {
  display:block;
  font-size:1.45rem;
  line-height:1.3}
.brand small {
  display:block;
  font-size:.65rem;
  color:var(--muted)}
.nav {
  display:flex;
  gap:22px;
  align-items:center;
  font-size:.87rem;
  font-weight:600}
.nav>a:hover,.text-link:hover {
  color:var(--rose)}
.nav-register {
  padding:9px 17px;
  border-radius:12px;
  background:var(--burgundy);
  color:var(--white)!important}
.greet {
  color:var(--muted);
  font-size:.8rem}
.inline-form {
  display:inline}
.nav-logout {
  background:transparent;
  border:0;
  color:var(--red);
  cursor:pointer}
.menu {
  display:none;
  background:transparent;
  border:0;
  font-size:25px}
.main {
  max-width:1240px;
  margin:0 auto;
  padding:30px 22px 85px;
  min-height:70vh}
.hero {
  min-height:500px;
  display:grid;
  grid-template-columns:1.18fr .82fr;
  align-items:center;
  gap:30px;
  padding:65px 54px;
  background:linear-gradient(120deg,#63283c,#925267);
  color:var(--white);
  border-radius:28px;
  overflow:hidden;
  position:relative}
.hero:after {
  content:'';
  width:250px;
  height:250px;
  border:1px solid #ffffff16;
  border-radius:50%;
  position:absolute;
  inset:auto auto -130px -90px}
.hero h1 {
  margin:14px 0 20px;
  color:var(--white)}
.hero em {
  color:#f0d8cd}
.hero p {
  color:#f2e4df;
  font-size:1.03rem;
  max-width:600px}
.eyebrow {
  font-size:.79rem;
  letter-spacing:.07em;
  font-weight:700;
  color:var(--rose);
  display:block;
  margin-bottom:8px}
.hero .eyebrow {
  color:#eed6cd}
.hero-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px}
.btn {
  border:1px solid var(--burgundy);
  background:var(--burgundy);
  color:var(--white);
  padding:12px 24px;
  border-radius:12px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-weight:700;
  transition:transform .15s,opacity .15s;
  min-height:47px}
.btn:hover {
  transform:translateY(-2px);
  opacity:.92}
.hero .btn {
  background:#f5ecdf;
  color:var(--burgundy);
  border-color:#f5ecdf}
.btn.outline {
  background:transparent;
  color:var(--burgundy);
  border-color:#cbb2b0}
.hero .btn.outline {
  color:var(--white);
  border-color:#d0a7ad}
.btn.quiet {
  border-color:transparent;
  background:#f4e8e4;
  color:var(--burgundy)}
.btn.danger {
  background:#a32e42;
  border-color:#a32e42}
.btn.success {
  background:var(--success);
  border-color:var(--success)}
.btn.block {
  width:100%}
.honesty {
  font-size:.78rem;
  color:#eedbd3;
  margin-top:23px}
.hero-visual {
  min-height:330px;
  display:grid;
  place-items:center;
  position:relative}
.hero-dial {
  border:2px dashed #d7afa7;
  border-radius:50%;
  height:min(330px,28vw);
  width:min(330px,28vw);
  min-height:240px;
  min-width:240px;
  display:grid;
  place-items:center;
  box-shadow:0 0 0 30px #ffffff06,0 0 0 60px #ffffff06}
.dial-inner {
  display:grid;
  place-items:center;
  font-size:100px;
  color:#dfc4aa;
  line-height:1}
.dial-inner small {
  font-size:25px;
  color:var(--white);
  font-weight:700;
  margin-top:12px}
.float-chip {
  position:absolute;
  background:var(--white);
  color:var(--burgundy);
  padding:14px 20px;
  border-radius:16px;
  box-shadow:var(--shadow);
  font-weight:700}
.float-chip.top {
  top:13px;
  right:0}
.float-chip.bottom {
  bottom:15px;
  left:-10px}
.section {
  margin-top:62px}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  margin-bottom:23px}
.section-head h2 {
  margin-bottom:0}
.section-head p {
  max-width:440px;
  margin:0;
  font-size:.89rem}
.choice-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px}
.path-card {
  display:block;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:22px;
  padding:32px;
  min-height:270px;
  box-shadow:var(--shadow);
  transition:transform .2s,box-shadow .2s}
.path-card:hover,.bank-tile:hover {
  transform:translateY(-5px);
  box-shadow:0 20px 36px #63283c18}
.path-card.special {
  background:linear-gradient(140deg,#f4e8e4,#fffdf9)}
.big-icon {
  font-size:2.4rem;
  display:inline-block}
.path-card .tag {
  margin:10px 0 0 12px}
.path-card h3 {
  font-size:1.45rem;
  margin-top:18px;
  margin-bottom:8px;
  color:var(--burgundy)}
.path-card p {
  max-width:430px}
.path-action {
  display:block;
  margin-top:20px;
  color:var(--rose);
  font-weight:700}
.tag {
  font-size:.74rem;
  font-weight:700;
  background:#f2e0db;
  color:#7d3e52;
  border-radius:30px;
  padding:5px 13px;
  display:inline-block}
.feature-row {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px}
.feature {
  padding:22px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--white)}
.feature>span {
  color:var(--rose);
  font-size:.82rem;
  font-weight:700}
.feature h3 {
  margin-top:14px;
  margin-bottom:6px}
.feature p {
  font-size:.84rem;
  margin-bottom:0}
.footer {
  text-align:center;
  border-top:1px solid var(--line);
  padding:28px 20px;
  background:var(--white)}
.footer p {
  font-size:.77rem;
  margin:5px auto}
.footer a {
  color:var(--rose)}
.page-intro {
  padding:37px 0 31px}
.page-intro.compact {
  padding-top:20px}
.page-intro h1 {
  margin:8px 0 10px;
  font-size:clamp(1.8rem,3.2vw,2.7rem)}
.page-intro p {
  max-width:850px}
.back {
  display:block;
  color:var(--rose);
  font-size:.87rem;
  font-weight:600;
  margin-bottom:20px}
.metric-row {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px}
.metric-row.twin {
  grid-template-columns:repeat(2,1fr);
  margin-top:14px}
.metric {
  padding:22px;
  border:1px solid var(--line);
  background:#fffdf9;
  border-radius:17px;
  min-height:116px}
.metric span {
  display:block;
  color:var(--muted);
  font-size:.82rem}
.metric strong {
  font-size:2.08rem;
  line-height:1.5;
  color:var(--burgundy)}
.metric .metric-word {
  font-size:1.15rem}
.action-metric {
  background:#f4e8e4}
.action-metric strong {
  font-size:1.2rem;
  color:var(--rose)}
.featured-bank {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  background:#63283c;
  color:var(--white);
  padding:32px 40px;
  border-radius:22px}
.featured-bank h3 {
  font-size:1.5rem;
  margin:5px 0}
.featured-bank p {
  color:#f2e4df;
  margin-bottom:13px}
.featured-bank .pill {
  color:#f5ecdf;
  background:#89546a}
.round-arrow {
  font-size:2.7rem;
  color:#e8c8bf}
.space-top {
  margin-top:48px}
.banks-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:15px}
.bank-tile {
  padding:23px 18px;
  background:var(--white);
  border-radius:18px;
  border:1px solid var(--line);
  min-height:195px;
  transition:transform .2s,box-shadow .2s;
  position:relative}
.bank-tile.primary-bank {
  border-color:#caa0a4;
  background:#fbf2ec}
.tile-icon {
  font-size:2rem;
  display:block;
  margin-bottom:10px}
.bank-tile h3 {
  margin:0;
  font-size:1rem}
.bank-tile p {
  font-size:.8rem;
  margin:7px 0}
.tile-go {
  display:block;
  color:var(--rose);
  font-size:.8rem;
  font-weight:700;
  margin-top:12px}
.pill {
  display:inline-block;
  border-radius:30px;
  font-size:.75rem;
  background:#f2e0db;
  padding:5px 12px;
  color:#7d3e52;
  font-weight:700}
.pill.pale {
  background:#f4efeb;
  color:var(--muted)}
.inline-stats {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px}
.bank-actions {
  margin-top:12px}
.action-card {
  padding:32px;
  background:var(--white);
  border-radius:21px;
  border:1px solid var(--line)}
.action-card h2 {
  font-size:1.45rem}
.action-card p {
  max-width:470px}
.action-card .text-link {
  display:block;
  margin-top:18px}
.icon-circle {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:18px;
  background:#f2e0db;
  color:var(--rose);
  font-size:2rem;
  margin-bottom:18px}
.text-link {
  color:var(--rose);
  font-weight:700}
.topics-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px}
.topic-card {
  padding:22px;
  border-radius:17px;
  background:var(--white);
  border:1px solid var(--line)}
.topic-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px}
.topic-number {
  font-weight:700;
  font-size:1.7rem;
  color:#976778}
.topic-card h3 {
  margin:0 0 10px}
.topic-card p {
  min-height:35px}
.small {
  font-size:.8rem}
.muted {
  color:var(--muted)}
.centered {
  text-align:center}
.auth-wrap {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
  max-width:1030px;
  margin:42px auto}
.auth-side {
  padding:30px}
.auth-side h1 {
  margin:13px 0}
.auth-doodle {
  font-size:90px;
  color:var(--rose);
  opacity:.6;
  letter-spacing:16px;
  margin-top:35px}
.auth-card {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:24px;
  padding:37px;
  box-shadow:var(--shadow)}
.auth-card h2 {
  margin-bottom:5px}
.auth-card>label,.action-card label {
  display:block;
  margin:17px 0;
  font-size:.9rem;
  font-weight:700}
.auth-card input,.auth-card select,.action-card input,.action-card select {
  display:block;
  width:100%;
  margin-top:7px;
  background:#fffdf9;
  border:1px solid #ccb8b3;
  border-radius:11px;
  padding:12px 14px;
  color:var(--text)}
.quiz-shell {
  max-width:860px;
  margin:0 auto;
  background:var(--white);
  border:1px solid var(--line);
  padding:34px;
  border-radius:23px;
  box-shadow:var(--shadow);
  min-height:300px}
.quiz-shell h2 {
  font-size:1.52rem;
  line-height:1.75;
  margin:20px 0}
.quiz-top {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center}
.choices {
  display:grid;
  gap:12px;
  margin:20px 0}
.option {
  display:flex;
  gap:15px;
  align-items:center;
  border:1.5px solid #d7c5be;
  background:var(--white);
  border-radius:14px;
  padding:15px;
  cursor:pointer;
  text-align:right;
  color:var(--text);
  transition:background .15s,border-color .15s}
.option:hover {
  background:#fbf2ec;
  border-color:#bf919b}
.option .letter {
  display:grid;
  place-items:center;
  background:#f4e8e4;
  width:34px;
  height:34px;
  flex-shrink:0;
  border-radius:10px;
  font-weight:700;
  color:var(--rose)}
.option.selected {
  border-color:#925267;
  background:#f6e7e4}
.option.correct {
  border-color:#3b7f60;
  background:#eaf3ec}
.option.wrong {
  border-color:#a32e42;
  background:#fbeaea}
.option:disabled {
  cursor:default}
.quiz-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:23px}
.quiz-actions.spread {
  justify-content:space-between}
.feedback {
  margin-top:20px;
  padding:19px;
  border-radius:13px;
  border:1px solid #a9c7b3;
  background:#edf5ef}
.feedback.error {
  border-color:#dca7b0;
  background:#fff0ee}
.feedback h3 {
  margin-bottom:6px}
.feedback p {
  margin-bottom:7px}
.feedback .source {
  font-size:.8rem}
.progress {
  height:10px;
  border-radius:20px;
  background:#ede0db;
  overflow:hidden;
  margin-top:12px}
.progress>div {
  height:100%;
  border-radius:20px;
  background:linear-gradient(90deg,#7d3e52,#b77b8a);
  transition:width .25s}
.result-hero {
  text-align:center;
  background:#f4e8e4;
  border:1px solid #d4b4b3;
  border-radius:22px;
  padding:28px;
  margin:15px auto 35px;
  max-width:820px}
.result-hero span {
  display:block;
  color:var(--burgundy)}
.result-hero strong {
  display:block;
  font-size:4.1rem;
  color:var(--rose);
  line-height:1.5}
.result-hero .btn {
  margin:5px}
.result-list {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px}
.review-card {
  border-radius:18px;
  padding:24px;
  background:var(--white);
  border:1px solid var(--line)}
.review-card h3 {
  line-height:1.8;
  margin:14px 0}
.review-card p {
  font-size:.88rem;
  margin:9px 0}
.review-card form {
  display:inline-block}
.good {
  color:#256b50;
  font-weight:700}
.bad {
  color:#a32e42;
  font-weight:700}
.note {
  font-size:.77rem;
  background:#f7efe3;
  border:1px solid #e2cfb2;
  border-radius:12px;
  padding:13px;
  margin-top:19px}
.progress-cards {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px}
.progress-card {
  background:var(--white);
  padding:25px;
  border:1px solid var(--line);
  border-radius:17px}
.progress-card p {
  margin-top:16px}
.progress-card .pill {
  display:block;
  margin-top:12px;
  width:max-content}
.empty-state {
  grid-column:1/-1;
  text-align:center;
  background:var(--white);
  border:1px dashed #cbb2b0;
  border-radius:18px;
  padding:50px}
.table-wrap {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--white)}
table {
  width:100%;
  border-collapse:collapse;
  font-size:.88rem}
th,td {
  text-align:right;
  border-bottom:1px solid var(--line);
  padding:15px;
  white-space:nowrap}
th {
  background:#f4e8e4;
  color:var(--burgundy)}
td a {
  color:var(--rose);
  font-weight:700}
.empty {
  margin:30px}
.footer {
  margin-top:60px}
@media(max-width:1050px) {
  .banks-grid {
  grid-template-columns:repeat(3,1fr)}
.feature-row {
  grid-template-columns:repeat(2,1fr)}
.nav {
  gap:12px}
.site-header {
  padding:0 25px}
}
@media(max-width:740px) {
  .site-header {
  height:72px;
  padding:0 17px}
.menu {
  display:block}
.nav {
  display:none;
  position:absolute;
  top:72px;
  right:0;
  left:0;
  background:var(--white);
  padding:20px;
  flex-direction:column;
  align-items:stretch;
  border-bottom:1px solid var(--line)}
.nav.open {
  display:flex}
.main {
  padding:17px 15px 60px}
.hero {
  grid-template-columns:1fr;
  padding:35px 25px}
.hero-visual {
  display:none}
.hero h1 {
  font-size:2.2rem}
.section {
  margin-top:40px}
.section-head {
  display:block}
.section-head p {
  margin-top:12px}
.choice-grid,.auth-wrap,.result-list,.progress-cards {
  grid-template-columns:1fr}
.feature-row,.metric-row {
  grid-template-columns:repeat(2,minmax(0,1fr))}
.banks-grid,.topics-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))}
.bank-tile {
  padding:17px;
  min-height:170px}
.metric {
  padding:15px}
.metric strong {
  font-size:1.5rem}
.metric .metric-word {
  font-size:1rem}
.auth-wrap {
  gap:0}
.auth-side {
  padding:10px}
.auth-doodle {
  display:none}
.auth-card {
  padding:25px}
.quiz-shell {
  padding:20px}
.quiz-shell h2 {
  font-size:1.22rem}
.result-hero strong {
  font-size:3.4rem}
}
@media(max-width:410px) {
  .banks-grid,.topics-grid {
  grid-template-columns:1fr}
.metric-row {
  grid-template-columns:1fr 1fr}
.btn {
  padding:10px 14px}
}
@media print {
  .site-header,.footer,.print-btn,.btn,.back,.menu,.quiz-actions {
  display:none!important}
.main {
  margin:0;
  padding:0;
  max-width:none}
.page-intro {
  padding:10px}
.progress-card,.metric {
  break-inside:avoid}
.result-list {
  grid-template-columns:1fr}
body {
  background:var(--white)}
}
/* 2026 enhancements */
.select-intro {
  max-width:820px}
.choose-paths {
  margin-top:5px}
.choose-paths .path-card {
  min-height:320px}
.choose-paths h2 {
  font-size:1.5rem;
  margin-top:17px}
.journey-grid {
  margin-top:20px}
.journey-grid .topic-card {
  display:flex;
  flex-direction:column;
  gap:9px}
.journey-grid .topic-card .btn {
  margin-top:auto}
.badges-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px}
.badge-card {
  background:#fffdf9;
  border:1px solid var(--line);
  border-radius:16px;
  padding:23px}
.badge-card h3 {
  margin:10px 0 3px}
.badge-card p {
  font-size:.85rem}
@media(max-width:760px) {
  .badges-grid {
  grid-template-columns:repeat(2,1fr)}
.choose-paths .path-card {
  min-height:auto}
}
@media print {
  .nav,.site-header,.footer,.print-btn,.btn {
  display:none!important}
.main {
  max-width:none;
  padding:0}
.metric,.progress-card {
  break-inside:avoid}
}
.progress-native {
  display:block;
  width:100%;
  height:14px;
  border:0;
  border-radius:10px;
  overflow:hidden;
  accent-color:var(--rose);
  margin:12px 0}
.progress-native::-webkit-progress-bar {
  background:#ede0db;
  border-radius:10px}
.progress-native::-webkit-progress-value {
  background:#925267;
  border-radius:10px}
.progress-native::-moz-progress-bar {
  background:#925267;
  border-radius:10px}
.source-edit-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  padding:16px;
  background:#fbf2ec;
  border:1px solid var(--line);
  border-radius:14px;
  margin:18px 0}
.source-edit-form label {
  display:block;
  font-size:.83rem;
  font-weight:700}
.source-edit-form input,.source-edit-form select {
  display:block;
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #ccb8b3;
  border-radius:10px;
  background:#fffdf9;
  color:var(--text)}
.source-edit-form button {
  grid-column:1/-1;
  justify-self:start}
.review-card ol {
  padding-right:24px}
.review-card li {
  padding:4px 0}
.review-card .btn:disabled {
  opacity:.68;
  cursor:not-allowed;
  transform:none}
@media(max-width:740px) {
  .source-edit-form {
  grid-template-columns:1fr}
.source-edit-form button {
  grid-column:auto}
}

/* Keyboard focus and motion remain visible and accessible in the warm palette. */
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.auth-card input:focus, .auth-card select:focus,
.source-edit-form input:focus, .source-edit-form select:focus {
  border-color: var(--rose);
}
.hero :focus-visible { outline-color: var(--beige); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Account management: compact forms, clear changes and RTL responsive cards. */
.account-list { display: grid; gap: 18px; }
.account-card h2 { font-size: 1.2rem; margin-bottom: 0; }
.account-fields, .account-filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.account-fields > label, .account-filters > label { flex: 1 1 180px; margin: 8px 0; }
.account-card p { max-width: none; overflow-wrap: anywhere; }
.account-filters .text-link { margin: 0 0 12px; }
@media (max-width: 740px) {
  .account-fields > label, .account-filters > label { flex-basis: 100%; }
  .account-card { padding: 22px; }
}

.password-toggle { background: transparent; border: 0; color: var(--burgundy); text-decoration: underline; cursor: pointer; padding: 8px 0; margin: 0 0 12px; font-size: .85rem; }
.auth-error { border-color: var(--red); color: var(--red); background: #fff0ee; }
.auth-card .btn:disabled { opacity: .7; cursor: wait; transform: none; }
