:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #242d29;
  --muted: #58645d;
  --line: #dedfd6;
  --warm: #f2eade;
  --rust: #a3462b;
  --rust-deep: #82331b;
  --forest: #263f35;
  --sage: #eaf0e7;
  --white: #fffefa;
  --radius: 20px;
  --measure: 1160px;
  font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: var(--forest); text-underline-offset: .18em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, .button-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .62rem;
  min-height: 46px; padding: 11px 18px; border: 1px solid #cbd1c8; border-radius: 10px;
  background: var(--white); color: var(--ink); font-size: .94rem; line-height: 1.3; font-weight: 650;
  text-decoration: none; cursor: pointer;
}
button:disabled { cursor: default; }
button.primary, .button-link.primary { background: var(--rust); color: white; border: 1px solid var(--rust); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #276e9e; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3 { letter-spacing: -.047em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.05; font-weight: 690; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.15; font-weight: 660; }
h3 { font-size: 1.2rem; line-height: 1.25; }
small { font-size: .85rem; }
.label, .eyebrow, .hero-label {
  display: block; font-size: .8rem; font-weight: 720; letter-spacing: .105em; text-transform: uppercase; line-height: 1.5; color: var(--muted);
}
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 9; background: white; padding: 8px 15px; transform: translateY(-155%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: 0; }
.header-inner, main { width: min(calc(100% - clamp(36px, 9vw, 140px)), var(--measure)); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; width: 13.75rem; min-width: 0; min-height: 44px; }
.wordmark img { display: block; width: 100%; height: auto; }
.mobile-class { display: none; }
.app-nav { display: flex; align-items: center; gap: 22px; padding: 0; border: 0; background: transparent; }
.app-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 3px;
  font-size: .92rem; font-weight: 590; color: var(--muted); border-radius: 2px; background: transparent; text-decoration: none;
}
.app-nav a[aria-current="page"] { background: transparent; color: var(--ink); box-shadow: none; }
.app-nav a:not(.account-nav)[aria-current="page"]::after { content: ""; position: absolute; height: 2px; background: var(--rust); left: 3px; right: 3px; bottom: 3px; }
.app-nav .account-nav { margin-left: 3px; padding: 7px 17px; border: 1px solid #cdd2c9; border-radius: 24px; }
.app-nav .account-nav[aria-current="page"] { background: var(--sage); border-color: #a9b8aa; }
main { padding: 36px 0 64px; }
#app:focus { outline: none; }
#sync-note { margin: 12px auto 0; }
.drive-hero { overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 47% 53%; border-radius: 23px; background: var(--warm); }
.hero-copy { align-self: center; padding: clamp(30px, 4.2vw, 58px); }
.hero-label { display: flex; align-items: center; gap: 10px; color: #644638; }
.class-symbol { display: inline-block; width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 5px 7px 3px 3px; position: relative; }
.class-symbol::before { content: ""; position: absolute; left: 3px; top: -7px; width: 13px; height: 7px; border: 1.5px solid currentColor; border-radius: 5px 5px 0 0; border-bottom: 0; }
.class-symbol::after { content: ""; position: absolute; left: 2px; bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 12px 0 currentColor; }
.drive-hero h1 { color: #26312b; font-size: clamp(3rem, 5.85vw, 5.1rem); font-weight: 650; line-height: 1.035; letter-spacing: -.065em; margin: clamp(18px, 2.15vw, 30px) 0 17px; }
.drive-hero h1 em { display: block; color: var(--rust); font-family: "STIX Two Text", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.057em; line-height: .99; }
.hero-intro { max-width: 34ch; color: #48554c; font-size: clamp(.97rem, 1.4vw, 1.09rem); line-height: 1.52; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(23px, 2.35vw, 33px); }
.hero-action .primary { min-width: 166px; min-height: 49px; padding: 13px 21px; font-size: .97rem; border-radius: 10px; }
.start-note { display: block; margin-top: 9px; color: #62685c; font-size: .78rem; }
.home-price { max-width: 37ch; margin: 10px 0 0; color: #48554c; font-size: .9rem; line-height: 1.45; }
.home-price a { color: inherit; text-underline-offset: .18em; }
.trial-restart { margin-top: 10px; }
.hero-photo { position: relative; display: block; width: 100%; min-height: 100%; overflow: hidden; background: #455849; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 57%; }
.home-more { margin-top: clamp(27px, 3.1vw, 44px); }
.home-more h2, .answer-review h2 { margin-bottom: 16px; }
.activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.activity {
  width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: clamp(13px, 2vw, 21px);
  padding: 21px 23px; min-height: 96px; border: 1px solid var(--line); border-radius: 15px; background: var(--white);
  font-size: 1rem; font-weight: 400; line-height: 1.4; color: var(--ink); text-decoration: none; text-align: left;
}
.activity strong, .activity small, .last-round strong { display: block; }
.activity strong { font-size: clamp(1.09rem, 1.6vw, 1.27rem); letter-spacing: -.03em; font-weight: 675; }
.activity small { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.activity-verb { margin-left: auto; padding: 4px 10px; border-radius: 7px; background: #f2f3ed; color: #4b5c4f; font-size: .82rem; font-weight: 600; }
.activity-icon { display: inline-flex; width: 54px; height: 54px; flex: none; border-radius: 15px; align-items: center; justify-content: center; }
.sign-tile { background: #e7edf0; }
.sign-tile img { width: 32px; height: 32px; object-fit: contain; }
.chart-tile { background: #e6ece1; gap: 3px; align-items: flex-end; padding-bottom: 13px; }
.chart-tile i { width: 6px; background: #46664f; border-radius: 2px 2px 0 0; }
.chart-tile i:nth-child(1) { height: 9px; }.chart-tile i:nth-child(2) { height: 16px; }.chart-tile i:nth-child(3) { height: 24px; }


.topic-summary { margin: 24px 0 0; border-top: 1px solid var(--line); }
.topic-summary summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; cursor: pointer; color: var(--muted); font-weight: 550; font-size: .92rem; }
.topic-summary summary::-webkit-details-marker { display: none; }
.topic-summary summary span { display: inline-block; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 7px; }
.topic-summary[open] summary span { transform: rotate(225deg); }
.topic-summary ul { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 13px; margin: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.topic-summary li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: #b57855; margin-right: 7px; vertical-align: .15em; border-radius: 50%; }
.last-round { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0 0; }
.last-round strong { margin-top: 2px; font-size: .97rem; }
.text-link, .back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 620; color: var(--forest); font-size: .91rem; text-decoration: none; }
.text-link, .back-link { text-decoration: underline; text-decoration-color: #a7b3a6; text-underline-offset: 3px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 0; padding: clamp(22px,3vw,40px); }
#app > .card { max-width: 680px; margin: 24px auto; }
.card > p:not(.label), .account-card p:not(.label) { color: var(--muted); }
.exercise { max-width: 1070px; margin: 0 auto; }
.exercise-top, .actions { display: flex; align-items: center; gap: 10px; }
.exercise-top { justify-content: space-between; }
.step-count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 620; font-size: .91rem; }
.progress { display: flex; gap: 5px; margin: 7px 0 22px; }
.progress i { border-radius: 4px; width: 100%; height: 4px; background: #dfe3da; }
.progress .on { background: #577563; }.progress .current { background: var(--rust); }
.question-card { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); grid-template-rows: auto 1fr auto; grid-template-areas: "media heading" "media answers" "feedback feedback"; gap: 16px clamp(22px, 3vw, 40px); align-items: start; }
.question-heading { grid-area: heading; }
.question-heading .label { color: var(--rust); margin: 0 0 9px; }
.question-card h1 { font-size: clamp(1.45rem, 2.6vw, 2.17rem); line-height: 1.17; letter-spacing: -.045em; }
.question-art { grid-area: media; margin: 0; min-width: 0; }
.question-art figcaption { text-align: center; font-size: .77rem; color: var(--muted); margin-top: 7px; }
.art-trigger { display: block; width: 100%; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; }
.question-card.without-image { max-width: 780px; margin-inline: auto; grid-template-columns: 1fr; grid-template-areas: "heading" "answers" "feedback"; }
.answer-list { display: grid; gap: 8px; grid-area: answers; min-width: 0; }
.opt { width: 100%; justify-content: flex-start; border-color: #d3d7cc; border-radius: 10px; padding: 10px 13px; gap: 12px; text-align: left; font-size: .96rem; font-weight: 495; line-height: 1.38; }
.opt b { display: inline-grid; place-items: center; min-width: 27px; height: 27px; border-radius: 7px; background: #eff0ea; color: #4c564c; font-size: .8rem; font-weight: 700; }
.opt.right { background: #e6f1e8; border-color: #62876a; color: #20472e; }
.opt.wrong { background: #fbede7; border-color: #bb7157; color: #713922; }
.opt.right b { background: #c9decd; color: #23492f; }.opt.wrong b { background: #f2d5c7; color: #713922; }
.answer-tag { display: inline; font-size: .76rem; font-weight: 750; }
.answer-tag::before { content: " · "; }
.feedback { grid-area: feedback; padding: 18px 21px; background: #eff3eb; border-left: 3px solid #587962; border-radius: 3px 10px 10px 3px; scroll-margin-top: 20px; }
.feedback.is-wrong { background: #f6efe6; border-left-color: var(--rust); }
.feedback.is-unanswered { background: #eeeee8; border-left-color: var(--muted); }
.feedback:focus { outline: none; }.feedback:focus-visible { outline: 2px solid #276e9e; outline-offset: 3px; }
.feedback-title { display: block; font-weight: 720; }
.feedback p { max-width: 76ch; margin-top: 4px; }
.guide-art { max-width: 700px; }.guide-art figure:only-child { max-width: 465px; }
.feedback-action { margin-top: 16px; }
.results-page, .progress-page { max-width: 900px; margin-inline: auto; }
.result-card { background: var(--warm); border: 0; display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; align-items: center; margin-top: 8px; }
.result-card h1, .progress-page h1, .account-card h1 { font-size: clamp(2rem,4.3vw,3.25rem); }
.result-card h1 { margin: 6px 0 12px; }
.result-card .actions { grid-column: 1 / -1; flex-wrap: wrap; }
.trial-feedback, .trial-offer { grid-column: 1 / -1; }
.trial-feedback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; border-top: 1px solid #d5ccbc; padding-top: 16px; margin: 2px 0 0; }
.trial-feedback dt { color: var(--forest); font-weight: 700; }
.trial-feedback dd { margin: 2px 0 0; }
.trial-offer:empty { display: none; }
.result-card .result-fraction { font-size: 1.2rem; color: var(--ink); margin-bottom: 2px; }
.result-fraction strong { font-weight: 750; }
.result-card small { color: var(--muted); }
.score-ring { width: clamp(84px, 11vw, 126px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--forest) var(--score), #d5ccbc 0); }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: var(--warm); }
.score-ring b { position: relative; z-index: 1; font-size: clamp(1.65rem,3.7vw,2.45rem); line-height: 1; letter-spacing: -.055em; font-weight: 650; color: var(--forest); }
.score-ring small { font-size: .5em; color: inherit; margin-left: 2px; }
.save-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 23px; margin: 16px 0; background: var(--sage); border-radius: 14px; }
.save-card h2 { font-size: 1.18rem; letter-spacing: -.035em; }
.save-card p { color: var(--muted); margin-top: 3px; font-size: .91rem; }
.save-card a { flex-shrink: 0; }
.answer-review { margin-top: 30px; }.review-list { margin: 0; list-style: none; padding: 0; border-block: 1px solid var(--line); }
.review-list li + li { border-top: 1px solid var(--line); }
.review-list :is(a, button) {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: clamp(8px, 2vw, 14px);
  width: 100%; min-height: 48px; padding: 14px 2px; border: 0; border-radius: 0; background: transparent;
  text-align: start; text-decoration: none; color: var(--ink); line-height: 1.45;
}
.review-title { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.review-number { display: grid; place-items: center; width: 26px; min-height: 26px; border-radius: 7px; background: #edece5; color: var(--muted); font-size: .85rem; font-weight: 500; }
.review-state { font-size: .875rem; font-weight: 650; padding: 2px 8px; border-radius: 5px; white-space: nowrap; background: #edece5; color: var(--muted); }
.review-state.right { background: #e3ede3; color: #36563c; }
.review-state.wrong { background: #f4e6dc; color: #83492e; }
.progress-page h1 { margin: 4px 0 23px; }
.readiness { background: var(--forest); color: white; border-radius: var(--radius); padding: clamp(23px,3.3vw,37px); }
.readiness-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px,4vw,52px); align-items: start; }
.readiness .eyebrow { font-size: .8rem; color: #c4d5c8; }
.readiness h2 { margin: 8px 0 7px; color: #fffcf5; font-size: clamp(1.55rem,3vw,2.1rem); }
.readiness p { color: #e4ece5; font-size: .94rem; }
.readiness .forecast { margin: 0; padding: 0 0 0 22px; border: 0; border-left: 1px solid #71867a; }
.forecast span { color: #c9d7cc; font-size: .79rem; }.forecast strong { color: #f6dfb8; }
.readiness details { border-top: 1px solid #5d7265; margin-top: 20px; padding-top: 9px; color: #e3eae2; }
.readiness summary { min-height: 32px; font-size: .84rem; }
.readiness a { color: #f8dfbb; }
.progress-page section + section { margin-top: 25px; }
.progress-page section > h2 { margin-bottom: 14px; }
.goal-card, .history-card { border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.goal-card { padding: 21px; }.goal-card h3 { letter-spacing: -.028em; }
.measure span, .meter-caption, .goal-eta, .history-empty, .local-note, .history-link small { color: var(--muted); }
.meter progress { background: #e8ebe3; color: #54725a; }.meter progress::-webkit-progress-bar { background: #e8ebe3; }.meter progress::-webkit-progress-value { background: #54725a; }.meter progress::-moz-progress-bar { background: #54725a; }
.target-mark { background: #934429; }
.history-list li + li { border-color: var(--line); }
.history-link { padding: 15px 21px; }.history-score strong { color: var(--forest); }
.history-empty { padding: 19px 21px; }.empty-action { margin-top: 9px; }
.local-note { font-size: .82rem; }
.account-card { text-align: left; }
#app > .account-card { max-width: 510px; margin: clamp(15px, 5vw, 60px) auto; }
.account-card h1 { margin: 0 0 12px; }
.account-card .label { margin: 0 0 8px; color: var(--rust); }
.account-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--sage); color: var(--forest); margin-bottom: 21px; }
.account-symbol i { transform: scale(1.15); }
.stack-actions { display: grid; gap: 9px; margin: 22px 0 14px; }
.stack-actions > * { width: 100%; }


.vipps-login { margin-top: 20px; }
.account-detail { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.email-method { margin: 12px 0; }
.email-method summary { width: 100%; list-style: none; }
.email-method summary::-webkit-details-marker { display: none; }
.account-form { max-width: none; margin: 14px 0; }
.account-form button { width: 100%; }
.envelope { width: 17px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.envelope::after { content: ""; position: absolute; left: 3px; top: -2px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }


.storage-note { margin-top: 14px; }
@media (hover: hover) {
  button:not(:disabled):hover, .button-link:hover { background: #f0f1e9; }
  button.primary:hover, .button-link.primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
  .activity:hover { background: #f6f5ee; border-color: #a6b1a4; }

  .text-link:hover, .back-link:hover { text-decoration: underline; }
  .review-list :is(a, button):hover, .history-link:hover { background: #f0f1e9; }
  .review-list :is(a, button):hover .review-title { text-decoration: underline; text-underline-offset: .16em; }
}
@media (max-width: 780px) {
  .header-inner, main { width: calc(100% - 36px); }
  .drive-hero { grid-template-columns: 51% 49%; }
  .hero-copy { padding: 26px; }.drive-hero h1 { font-size: clamp(3rem,6.4vw,3.9rem); }
  .activity { padding: 16px; gap: 12px; }
  .activity-icon { width: 46px; height: 46px; border-radius: 12px; }
  .chart-tile { padding-bottom: 9px; }
  .question-card { grid-template-columns: 1fr; grid-template-areas: "heading" "media" "answers" "feedback"; }
  .question-art { width: min(100%,540px); }
  .question-card:not(:has(.feedback)) { row-gap: 14px; }
}
@media (max-width: 620px) {
  .trial-feedback { grid-template-columns: 1fr; }
  .trial-offer .button-link { width: 100%; }
  main { padding: 17px 0 calc(82px + env(safe-area-inset-bottom,0px)); }
  .header-inner { min-height: 58px; gap: 12px; }
  .wordmark { width: min(50vw, 11.5rem); }
  .mobile-class { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .01em; white-space: nowrap; }
  .app-nav { position: fixed; z-index: 4; inset: auto 0 0; width: 100%; display: flex; justify-content: center; gap: 3px;
    padding: 4px 16px calc(4px + env(safe-area-inset-bottom,0px)); border: 0; border-top: 1px solid var(--line);
    border-radius: 0; background: var(--paper); }
  .app-nav a, .app-nav .account-nav { position: relative; flex: 1; flex-direction: column; gap: 4px; max-width: 160px; min-height: 52px; margin: 0; padding: 6px 4px; border: 0; border-radius: 9px; font-size: .82rem; line-height: 1.2; }
  .app-nav a[aria-current="page"], .app-nav .account-nav[aria-current="page"] { color: var(--rust-deep); background: #f4e9df; }
  .app-nav a:not(.account-nav)[aria-current="page"]::after { display: none; }
  .app-nav .nav-icon { transform: scale(.91); }
  .drive-hero { display: flex; flex-direction: column; border-radius: 16px; }
  .hero-copy { width: 100%; padding: clamp(22px,6vw,35px); }
  .hero-label { display: none; }
  .drive-hero h1 { font-size: clamp(2.85rem,10.5vw,3.75rem); margin: 0 0 12px; }
  .hero-intro { font-size: 1rem; max-width: 37ch; }
  .hero-action { margin-top: 18px; }.hero-action .primary { min-height: 46px; }
  .start-note { font-size: .8rem; margin-top: 6px; }
  .hero-photo { min-height: 0; height: clamp(144px,39vw,210px); }
  .hero-photo img { object-position: 55% 59%; }
  .home-more { margin-top: 24px; }.home-more h2 { margin-bottom: 11px; }.activity-grid { gap: 9px; grid-template-columns: 1fr; }
  .activity { min-height: 72px; padding: 12px 14px; border-radius: 12px; }
  .activity strong { font-size: 1.03rem; }.activity small { font-size: .82rem; margin-top: 2px; }

  .topic-summary { margin-top: 17px; }.topic-summary summary { padding: 13px 0; }
  .card { border-radius: 15px; padding: 17px; }
  .exercise-top { min-height: 36px; }.progress { margin: 4px 0 15px; }
  .question-card h1 { font-size: clamp(1.32rem,5.4vw,1.65rem); }
  .question-heading .label { margin-bottom: 6px; font-size: .8rem; }
  .question-art figcaption { font-size: .8rem; margin-top: 4px; }
  .question-card { gap: 13px; }.opt { padding: 9px 10px; gap: 9px; font-size: 1rem; }
  .feedback { padding: 14px; scroll-margin-block-end: 80px; }.feedback-action .primary { width: 100%; }
  .progress-page h1 { margin-top: 8px; }.readiness-inner { grid-template-columns: 1fr; gap: 15px; }
  .readiness .forecast { padding: 13px 0 0; border: 0; border-top: 1px solid #71867a; }
  .readiness details { margin-top: 14px; }.goal-grid { grid-template-columns: 1fr; gap: 10px; }
  .goal-card { padding: 17px; }.result-card { gap: 13px; }.result-card h1 { margin-top: 3px; margin-bottom: 9px; }
  .result-card .actions > * { flex: 1 1 auto; }.save-card { padding: 15px; flex-wrap: wrap; align-items: flex-start; }
  .last-round { align-items: flex-start; }.last-round strong { font-size: .85rem; }.last-round a { flex-shrink: 0; }
  #app > .account-card { margin: 10px auto; padding: 24px 20px; }
}
@media (max-width: 360px) {
  .header-inner, main { width: calc(100% - 24px); }
  .hero-copy { padding: 19px; }.chart-tile { gap: 2px; }.result-card .label { font-size: .8rem; }.score-ring { width: 70px; }
  .question-card { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.pass-page .pass-price { display: flex; align-items: baseline; gap: 9px; margin: 16px 0 1px; color: var(--ink); }
.pass-price strong { color: var(--forest); font-size: 2.4rem; font-weight: 670; letter-spacing: -.055em; line-height: 1; }
.pass-page .pass-terms { font-size: .9rem; margin-bottom: 18px; }
.pass-page .pass-copy { margin: 13px 0; }
#pass-note:not(:empty) { margin-top: 12px; color: var(--muted); font-size: .92rem; }

.opt[aria-pressed="true"] { border-color:var(--green,#205647); box-shadow:inset 0 0 0 1px #205647; background:#edf3ee; }
.exam-overview { margin:1.25rem 0; }
.exam-overview summary { cursor:pointer; font-weight:600; }
.exam-overview > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(2.8rem,1fr)); gap:.45rem; margin:.8rem 0; }
.exam-overview button { min-height:2.75rem; padding:.3rem; }
.exam-overview .correct { color:#245039; background:#e0eee4; }
.exam-overview .incorrect { color:#862b28; border-color:#cd928a; background:#fae6e2; }
.exam-overview button span { margin-inline-start:.15em; font-weight:700; }
.exam-overview [aria-current] { outline:2px solid #305448; }
#exam-clock { font-variant-numeric:tabular-nums; }

.hero-action.length-actions { display:grid; grid-template-columns:minmax(0,max-content); }
.length-actions > * { width:100%; }
.theory-tile { background:#f2e8de; color:var(--rust); }
#length-sheet { position:fixed; inset:0; margin:0; width:100%; height:100%; max-width:none; max-height:none; border:0; padding:0; background:transparent; color:var(--ink); }
#length-sheet[open] { display:flex; align-items:flex-end; justify-content:center; }
#length-sheet::backdrop, #logout-dialog::backdrop { background:rgb(16 25 21 / 48%); }
.length-panel { width:min(100%,32rem); max-height:100%; overflow:auto; box-sizing:border-box; border-radius:20px 20px 0 0; padding:1.35rem 1.25rem max(1.25rem,env(safe-area-inset-bottom)); background:#fff; }
#length-sheet header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
#length-sheet h2 { margin:0; font-size:1.4rem; }
#length-sheet header button { border:0; font-size:1.6rem; padding:.25rem .7rem; }
.length-options { display:grid; gap:.55rem; margin-top:1rem; }
.length-options > * { justify-content:flex-start; text-align:left; min-height:3rem; }

@media (max-width:600px) {
  .hero-action.length-actions { grid-template-columns:minmax(0,1fr); }
}
body:has(#length-sheet[open], #logout-dialog[open]) { overflow:hidden; }

.resume-choice { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.45rem; }
.resume-choice .button-link:not(.primary) { justify-content:flex-start; text-align:left; background:#f2f5f0; border-color:#cbd6cc; }
.resume-choice .restart-choice {
  display:grid; place-items:center; align-self:center; width:3rem; height:3rem; min-height:3rem; padding:0;
  border:1px solid #d7c6b8; border-radius:50%; background:var(--white); color:var(--rust-deep);
}
@media (hover:hover) {
  .resume-choice .restart-choice:hover { background:#f6efe9; border-color:var(--rust); }
}
.resume-choice .restart-choice:active { background:#efddce; }

.progress-page.theme-page { width:100%; max-width:41rem; margin-inline:auto; }
.theme-page h1 { margin-bottom:1.05rem; }
.theme-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:4px; border:1px solid var(--line); border-radius:13px; background:var(--white); }
.theme-filters a { display:grid; place-items:center; min-height:44px; padding:.4rem .15rem; text-align:center; color:var(--muted); font-size:.96rem; font-weight:600; border-radius:9px; text-decoration:none; }
.theme-filters a[aria-current] { background:var(--forest); color:white; }
.theme-card { margin-top:1rem; padding:clamp(1.1rem,4.5vw,2rem); border-radius:17px; background:var(--warm); }
.theme-page .theme-card h2 { margin:0 0 .5rem; font-size:clamp(1.5rem,5vw,2.1rem); }
.theme-card p { color:#455147; }
.theme-card .meter { margin:.85rem 0 0; }
.theme-card .meter progress, .theme-card .meter progress::-webkit-progress-bar { background:#fffaf1; }
.theme-card .primary { margin-top:1rem; min-height:48px; }
.theme-card .theme-hint { margin-top:.7rem; font-size:.94rem; }
.theme-card #pass-note:empty { display:none; }
.theme-page .theme-others { margin-top:1.5rem; }
.theme-page .theme-others h2 { margin-bottom:.4rem; font-size:1.12rem; }
.theme-others ul { margin:0; padding:0; list-style:none; }
.theme-others li + li { border-top:1px solid var(--line); }
.theme-others a { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.7rem 0; min-height:48px; color:var(--ink); text-decoration:none; }
.theme-others a:hover strong, .theme-others a:focus-visible strong { text-decoration:underline; }
.theme-others strong { font-weight:590; }
.theme-others small { flex:none; color:var(--muted); font-size:.9rem; font-variant-numeric:tabular-nums; }
.theme-empty { margin:1rem 0; padding:1.25rem; border-radius:13px; background:var(--sage); }
.theme-links { margin-top:1.2rem; border-top:1px solid var(--line); }
.theme-links > a, .theme-links summary { display:flex; align-items:center; min-height:46px; width:fit-content; }
.theme-links > a { font-weight:620; }
.theme-links summary { display:list-item; align-content:center; color:var(--muted); cursor:pointer; }
.theme-links details p { max-width:54ch; margin:0 0 .75rem; color:var(--muted); }
.theme-result { grid-column:1/-1; padding:.85rem 1rem; border-radius:10px; color:var(--forest); background:var(--sage); }
.theme-result strong { display:block; margin-bottom:.15rem; }
@media(max-width:600px) { .theme-card .primary { width:100%; } }

.length-actions .resume-choice .primary { min-width:0; }

/* The question picker and restart confirmation share one modal surface. */
#length-sheet .length-panel { padding:clamp(1.3rem,5vw,2rem); padding-bottom:max(clamp(1.3rem,5vw,2rem),env(safe-area-inset-bottom)); background:var(--white); }
#length-sheet header { position:static; padding:0; border:0; background:transparent; }
#length-sheet header button { width:44px; height:44px; padding:0; border-radius:50%; background:var(--paper); }
.restart-symbol { display:grid; place-items:center; width:3rem; height:3rem; margin-bottom:1.15rem; border-radius:50%; color:var(--rust-deep); background:var(--warm); }
#length-sheet .restart-panel h2 { font-size:clamp(1.6rem,4.5vw,2rem); line-height:1.15; }
.restart-panel p { margin:.7rem 0 1.5rem; color:var(--muted); max-width:38ch; }
.restart-actions { display:grid; gap:.55rem; }
.restart-actions button { min-height:48px; }
@media (min-width:650px) {
  #length-sheet[open] { align-items:center; }
  #length-sheet .length-panel { border-radius:var(--radius); box-shadow:0 16px 64px #13281c29; }
  .restart-actions { grid-template-columns:1fr 1fr; }
}

/* Account */
.profile-page { max-width:37rem; margin:clamp(1rem,4vw,3rem) auto; }
.profile-heading { margin:0 0 1.5rem; }
.profile-heading h1 { font-size:clamp(2.15rem,5vw,3rem); }
.profile-heading p { display:flex; align-items:center; gap:.65rem; color:var(--muted); margin-top:.65rem; overflow-wrap:anywhere; }
.profile-heading i { flex:none; }
.profile-pass { background:var(--forest); color:#fffefa; padding:clamp(1.3rem,4vw,2rem); border-radius:18px; }
.profile-pass > span { vertical-align:middle; font-size:.9rem; }
.profile-pass .class-symbol { display:inline-block; margin-right:.45rem; }
.profile-pass h2 { margin:1rem 0 .2rem; font-size:clamp(1.7rem,4vw,2.2rem); }
.profile-pass p { color:#e0e9dd; }
.profile-pass a { display:inline-flex; align-items:center; min-height:44px; color:#fffefa; font-weight:650; margin-top:.55rem; }
.profile-group { margin:1.7rem 0 0; }
.profile-group h2 { margin-bottom:.65rem; font-size:1.2rem; }
.profile-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0; padding:1rem 1.1rem; background:var(--white); border:1px solid var(--line); border-radius:14px; color:var(--ink); text-decoration:none; }
.profile-row + .profile-row { margin-top:.5rem; }
.profile-row small { display:block; color:var(--muted); margin-top:.12rem; font-size:.9rem; }
.profile-row button { flex-shrink:0; }
.profile-group .account-detail { margin:.5rem 1rem; }
.profile-logout { margin-top:.6rem; padding:.5rem .15rem; color:var(--rust-deep); border:0; background:transparent; }
#logout-dialog { width:min(26rem,calc(100% - 2rem)); max-height:calc(100% - 2rem); margin:auto; padding:0; border:1px solid var(--line); border-radius:var(--radius); color:var(--ink); background:var(--white); }
#logout-dialog form { padding:clamp(1.25rem,5vw,2rem); }
#logout-dialog p { margin-top:.6rem; color:var(--muted); }
#logout-dialog .account-actions { margin-top:1.4rem; }
#logout-dialog button { flex:1 1 8rem; min-height:48px; }
.profile-import { flex-wrap:wrap; }
#app > .login-card { border-radius:18px; max-width:29rem; padding:clamp(1.4rem,5vw,2.5rem); }
.login-card .vipps-login, .login-card .email-method { width:100%; }
.login-card .vipps-login button { width:100%; }
.login-card .email-method { padding-top:.7rem; border-top:1px solid var(--line); }
.login-card .guest-link, .login-card > .text-link { display:inline-flex; align-items:center; min-height:44px; }
@media (max-width:360px) {
  .profile-row { flex-wrap:wrap; }
}
