/* electro: a calm, readable workspace for Austria's energy world. */
:root {
  --bg: #f4f5ef;
  --paper: #ffffff;
  --ink: #20372f;
  --muted: #64736b;
  --line: #dfe5db;
  --green: #193e32;
  --green2: #2d5846;
  --forest: #142f29;
  --lime: #d6f49b;
  --soft: #edf2e7;
  --mint: #e4f1e8;
  --orange: #a76c27;
  --purple: #70578e;
  --red: #a33e32;
  --radius: 22px;
  --shadow: 0 4px 20px #20372f05, 0 1px 3px #20372f03;
  --sidebar-width: 248px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* Base and keyboard access */
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #86ad55;
  outline-offset: 4px;
}
a { color: inherit; text-decoration: none; }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #748177; opacity: 1; }
button svg, a svg { pointer-events: none; }
svg { display: block; }
::selection { background: var(--lime); color: var(--forest); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.035em; }
p { line-height: 1.7; }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 20px; top: -100px; z-index: 100; background: var(--lime); color: var(--forest); padding: 16px 22px; border-radius: 12px; font-weight: 650; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* Persistent workspace navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 34px 20px 22px;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: #f7faef;
  z-index: 20;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #466354 transparent;
}
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 35px; font-weight: 750; letter-spacing: -1.7px; }
.sidebar .brand { margin-left: 9px; }
.brand-symbol { display: grid; place-items: center; flex-shrink: 0; background: var(--lime); border-radius: 13px; color: var(--forest); width: 42px; height: 46px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.brand-dot { color: var(--lime); }
.brand-caption { font-size: 10px; letter-spacing: 1.1px; margin: 16px 0 0 10px; color: #afc3b7; font-weight: 550; }
.nav-label { font-size: 10px; letter-spacing: 1.5px; color: #9eb6a7; font-weight: 600; margin: 46px 14px 16px; }
#navigation { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 12px 14px; border-radius: 11px; color: #c4d1c8; font-size: 13px; position: relative; transition: background .18s, color .18s; }
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .88; }
.nav-item:hover { background: #ffffff0b; color: #fff; }
.nav-item.active { background: var(--lime); color: var(--forest); font-weight: 650; box-shadow: 0 4px 14px #091c2020; }
.nav-item.active svg { opacity: 1; }
.nav-count { margin-left: auto; background: #ffffff16; color: #e4efdc; border-radius: 6px; font-size: 11px; padding: 2px 6px; }
.nav-item.active .nav-count { background: #b9d97c; color: var(--forest); }
.sidebar-note { margin: 31px 13px 24px; padding-top: 23px; border-top: 1px solid #ffffff18; font-size: 12px; }
.sidebar-note strong { font-weight: 550; vertical-align: middle; margin-left: 7px; color: #d9e5d9; }
.sidebar-note p { margin-top: 10px; color: #a9bdb0; font-size: 12px; line-height: 1.8; }
.austria { display: inline-flex; vertical-align: middle; width: 18px; height: 12px; background: #dc5c55; align-items: center; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.austria i { height: 4px; background: #fff; width: 100%; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #ffffff18; padding: 19px 9px 0; }
.profile { display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; min-height: 46px; padding: 0; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e5ead9; color: #41583c; font-size: 12px; font-weight: 650; flex-shrink: 0; }
.sidebar .avatar { background: #395347; color: #e3f0d3; border: 1px solid #71867550; }
.profile strong { display: block; font-size: 13px; font-weight: 650; }
.profile small { display: block; font-size: 10px; color: #acbeb2; margin-top: 5px; }
.profile-arrow { margin-left: auto; color: #b7c9bb; font-size: 21px; }
.workspace { margin-left: var(--sidebar-width); }
.topbar { height: 88px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; gap: 18px; background: #fafbf6a6; }
.breadcrumb { color: #708074; font-size: 12px; line-height: 1.5; }
.breadcrumb span { margin: 0 10px; color: #9daa9c; }
.breadcrumb strong { font-weight: 550; color: #3f5548; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.search-open { display: flex; gap: 10px; align-items: center; min-height: 44px; color: #627367; font-size: 12px; padding: 0; }
.search-open svg { width: 18px; height: 18px; }
.search-open kbd { border: 1px solid #dce3d6; border-radius: 6px; background: #fff; padding: 3px 6px; font: inherit; font-size: 10px; margin-left: 10px; box-shadow: 0 1px 2px #193e3208; }
.save-status { font-size: 11px; color: #697b63; white-space: nowrap; }
.save-status i, .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #789a51; margin-right: 6px; box-shadow: 0 0 0 3px #789a5110; }
.save-status.error { color: var(--red); }
.save-status.error i { background: var(--red); box-shadow: none; }
.top-avatar { width: 44px; height: 44px; font-size: 12px; border: 4px solid #fff; }
main#main { max-width: 1490px; margin: 0 auto; padding: 39px 40px 26px; min-height: calc(100svh - 165px); }
main#main:focus { outline: none; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.eyebrow { display: block; letter-spacing: 1.6px; font-size: 10px; color: #647c51; font-weight: 700; margin-bottom: 12px; line-height: 1.6; }
.page-heading h1 { font-size: clamp(29px, 2.5vw, 38px); line-height: 1.25; max-width: 900px; }
.page-heading p { margin-top: 11px; color: var(--muted); font-size: 14px; max-width: 750px; line-height: 1.75; }
.date-tag { color: #6b7c61; font-size: 11px; display: flex; align-items: center; gap: 8px; margin-top: 28px; white-space: nowrap; }
.date-tag svg { width: 16px; height: 16px; }
.page-footer { max-width: 1490px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 23px 40px 29px; color: #718069; font-size: 11px; gap: 20px; line-height: 1.7; }
.page-footer > span:first-child { color: #4e6451; }
.footer-dot { margin: 0 7px; color: #94a289; }
.mobile-nav { display: none; }
.loading { text-align: center; padding: 20vh 0; color: var(--muted); font-size: 15px; }
.loading .brand-symbol { margin: 0 auto 20px; }

/* Shared controls and surfaces */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; font-size: 13px; font-weight: 650; line-height: 1.4; padding: 14px 20px; border-radius: 11px; min-height: 48px; transition: background .18s, transform .18s, box-shadow .18s; text-align: center; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 3px 8px #193e3210; }
.button.primary:hover:not(:disabled) { background: #2c5644; box-shadow: 0 5px 15px #193e3215; }
.button.secondary { background: #e9efdf; color: #3c5b36; }
.button.secondary:hover:not(:disabled) { background: #dce8ca; }
.button.outline { border: 1px solid #d6dfd0; background: #fff; color: #415d40; }
.button.outline:hover:not(:disabled) { background: #f4f7ed; border-color: #adc298; }
.button.danger { background: #f8eae5; color: #943e33; }
.button svg { width: 17px; height: 17px; flex-shrink: 0; }
.text-link { font-size: 12px; font-weight: 600; color: #4b6c40; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.text-link:hover { color: var(--forest); }
.text-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 29px; box-shadow: var(--shadow); min-width: 0; }
.area-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: #3e7156; margin-bottom: 20px; flex-shrink: 0; }
.area-icon svg { width: 23px; height: 23px; }
.area-icon.markt { background: #f8edda; color: #a16a24; }
.area-icon.recht { background: #eee9f5; color: #7c5f9d; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; background: #eaf2e4; color: #52723d; font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .65px; padding: 5px 8px; white-space: nowrap; width: fit-content; }
.pill.markt { background: #f8efdF; color: #94621f; }
.pill.recht { background: #eee9f6; color: #70558b; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter { border: 1px solid #dae2d3; border-radius: 10px; background: #fff; padding: 11px 17px; color: #586d4f; font-size: 13px; font-weight: 550; min-height: 44px; transition: background .18s, border-color .18s; }
.filter:hover { border-color: #9eb888; background: #f8faf3; }
.filter.active { background: var(--green); color: #fff; border-color: var(--green); }
.progress-track { height: 5px; background: #eaf0e3; border-radius: 10px; margin-top: 15px; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: #7c9f4f; max-width: 100%; border-radius: inherit; transition: width .25s; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; gap: 18px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.6px; line-height: 1.3; }
.section-heading p { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.65; }
.section-gap { margin-top: 25px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Today: one clear invitation, then useful context */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 22px; margin-bottom: 22px; }
.hero { position: relative; overflow: hidden; background: var(--green); border: 1px solid #294f3c; border-radius: var(--radius); min-height: 326px; color: #fff; padding: 32px 35px; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 100%, #93ba6b20, transparent 70%); z-index: -1; pointer-events: none; }
.hero .eyebrow, .hero-kicker { color: #d0e4b6; font-size: 10px; letter-spacing: 1.7px; position: relative; z-index: 1; }
.hero h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 3.3vw, 50px); line-height: 1.08; letter-spacing: -1.9px; font-weight: 400; max-width: 570px; position: relative; z-index: 1; }
.hero h2 em { font-style: normal; color: var(--lime); }
.hero p { font-size: 14px; color: #d0ddca; max-width: 360px; line-height: 1.75; margin: 18px 0 24px; position: relative; z-index: 1; }
.hero-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; }
.hero .button.primary { background: var(--lime); color: #233d26; box-shadow: 0 4px 14px #091c2020; }
.hero .button.primary:hover:not(:disabled) { background: #e1ffaf; }
.hero-meta { display: flex; align-items: center; gap: 6px; color: #d0dfc1; font-size: 11px; }
.hero-meta svg { width: 14px; height: 14px; }
.hero-progress { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #ffffff1c; background: #ffffff08; color: #d9e7c8; border-radius: 6px; font-size: 11px; margin-bottom: 15px; position: relative; z-index: 1; }
.hero-progress svg { width: 14px; height: 14px; }
.grid-art { position: absolute; right: -13px; bottom: -4px; width: 42%; height: 91%; z-index: 0; opacity: .8; pointer-events: none; }
.goal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow); }
.card-overline { font-size: 10px; letter-spacing: 1.5px; color: #657958; font-weight: 650; }
.goal-ring { position: relative; width: 138px; height: 138px; margin: 17px 0 14px; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.goal-ring circle { fill: none; stroke: #edf2e6; stroke-width: 5; }
.goal-ring circle.progress { stroke: #7d9b4e; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.goal-ring-text { position: absolute; inset: 0; display: grid; place-content: center; }
.goal-ring-text strong { font-size: 33px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.goal-ring-text strong small { font-size: 17px; color: #7d8c71; font-weight: 400; }
.goal-ring-text span { font-size: 10px; color: #6f8062; margin-top: 6px; }
.goal-card p { color: #77836d; font-size: 12px; line-height: 1.65; }
.goal-card p strong { color: #4c6544; font-weight: 550; }
.goal-link { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 550; color: #57743f; margin-top: 7px; min-height: 44px; }
.goal-link svg { width: 13px; height: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.stat-card { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 20px 17px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); min-width: 0; }
.stat-icon { width: 36px; height: 38px; border-radius: 10px; background: #eaf1e3; color: #648244; display: grid; place-items: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.orange { background: #faf0df; color: #a8712d; }
.stat-icon.purple { background: #efebf6; color: #82649e; }
.stat-icon.blue { background: #e9f0f0; color: #467e81; }
.stat-value { display: block; font-size: 29px; line-height: 1.15; letter-spacing: -1px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: #77866b; margin-left: 3px; }
.stat-label { font-size: 11px; color: #526b49; display: block; margin-top: 6px; font-weight: 550; }
.stat-detail { font-size: 10px; color: #75826b; margin-top: 9px; display: block; line-height: 1.6; }
.dashboard-section { margin-top: 34px; }
.content-columns { display: grid; grid-template-columns: 1fr; gap: 20px; }
.lesson-cards, .learning-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.lesson-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 23px 19px; display: flex; flex-direction: column; text-align: left; min-height: 249px; transition: border-color .18s, transform .18s, box-shadow .18s; box-shadow: var(--shadow); min-width: 0; }
.lesson-card:hover, .module-card:hover { border-color: #adc196; transform: translateY(-3px); box-shadow: 0 10px 28px #244c3f0a; }
.lesson-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.lesson-card-top .area-icon { margin: 0; }
.lesson-card h3 { font-size: 18px; letter-spacing: -.4px; line-height: 1.4; margin: 12px 0 10px; }
.lesson-card-top + h3 { margin-top: 0; }
.lesson-card p { font-size: 12px; color: #6b7a62; line-height: 1.75; }
.lesson-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 21px; color: #667d56; font-size: 11px; line-height: 1.5; }
.lesson-card-bottom > svg { width: 16px; height: 16px; flex-shrink: 0; }
.card-link-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e1e8d8; border-radius: 50%; color: #4a6d38; flex-shrink: 0; }
.card-link-icon svg { width: 15px; height: 15px; }
.notice-card { background: #eaf0e1; border: 1px solid #dce5d1; border-radius: 16px; padding: 23px; align-self: start; display: grid; grid-template-columns: 28px 1fr auto; column-gap: 15px; align-items: center; }
.notice-icon { color: #6a8652; grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 3px; }
.notice-icon svg { width: 24px; height: 24px; }
.notice-card h3 { font-size: 15px; letter-spacing: -.2px; margin-bottom: 5px; grid-column: 2; }
.notice-card p { font-size: 12px; color: #5c7051; line-height: 1.8; grid-column: 2; }
.notice-card .text-link { font-size: 11px; grid-column: 3; grid-row: 1 / 3; white-space: nowrap; padding-left: 14px; }
.mini-section { margin-top: 35px; }
.route-strip { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 23px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.route-step { display: flex; align-items: center; gap: 10px; font-size: 12px; flex: 1; color: #6e815f; line-height: 1.6; }
.route-step strong { font-weight: 550; color: #526a47; }
.route-step .step-number { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #edf2e5; color: #6b8454; font-size: 10px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.route-step.current .step-number { background: var(--green); color: #ddefb7; }
.route-line { height: 1px; width: 20px; background: #dce5d2; }

/* Learning path and module details */
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.module-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 25px; transition: border-color .18s, transform .18s, box-shadow .18s; text-align: left; display: flex; flex-direction: column; min-height: 300px; box-shadow: var(--shadow); min-width: 0; }
.module-top { display: flex; justify-content: space-between; align-items: center; }
.module-card .area-icon { margin: 0; }
.module-number { font-size: 11px; color: #718269; font-variant-numeric: tabular-nums; }
.module-category { display: block; color: #56724b; font-size: 10px; letter-spacing: 1.1px; font-weight: 650; margin-top: 23px; }
.module-card h3 { font-size: 20px; margin: 20px 0 11px; line-height: 1.35; letter-spacing: -.5px; }
.module-category + h3 { margin-top: 8px; }
.module-card p { color: #66765e; font-size: 13px; line-height: 1.75; flex: 1; }
.module-meta { font-size: 11px; color: #6c7e60; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 5px 14px; justify-content: space-between; line-height: 1.5; }
.module-card[data-area="markt"] .module-category { color: #946b2f; }
.module-card[data-area="markt"] .progress-track { background: #f5edde; }
.module-card[data-area="markt"] .progress-track span { background: #bc914b; }
.module-card[data-area="recht"] .module-category { color: #7b6195; }
.module-card[data-area="recht"] .progress-track { background: #eee9f4; }
.module-card[data-area="recht"] .progress-track span { background: #9b80b4; }
.back-link { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #587343; margin-bottom: 21px; width: fit-content; min-height: 44px; line-height: 1.5; }
.back-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.module-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.lesson-list { display: grid; gap: 13px; }
.lesson-row { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 25px; text-align: left; align-items: center; box-shadow: var(--shadow); transition: border-color .18s, background .18s; }
.lesson-row:hover { border-color: #abc193; background: #fdfefb; }
.lesson-row .lesson-index { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; background: #edf3e5; border-radius: 12px; color: #628345; font-size: 14px; font-variant-numeric: tabular-nums; }
.lesson-index svg { width: 22px; height: 22px; }
.lesson-row h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.3px; line-height: 1.45; }
.lesson-row p { font-size: 12px; color: #718066; line-height: 1.65; }
.lesson-row .row-arrow { margin-left: auto; color: #729253; }
.lesson-row .row-arrow svg { width: 18px; height: 18px; }
.side-panel h3 { font-size: 18px; margin-bottom: 15px; letter-spacing: -.3px; }
.side-panel p, .side-panel li { font-size: 13px; line-height: 1.85; color: #64765a; }
.side-panel ul { padding-left: 18px; }
.side-panel .button { margin-top: 20px; width: 100%; }
.knowledge-callout { margin: 28px 0; background: #eaf0e1; border: 1px solid #dfe7d4; border-radius: 16px; padding: 25px 28px; }
.knowledge-callout h3 { font-size: 16px; letter-spacing: -.2px; margin-bottom: 9px; }
.knowledge-callout p { font-size: 13px; color: #5b7350; line-height: 1.85; }

/* Reading: generous measure, clear examples and anchored actions */
.reading-wrap { max-width: 890px; margin: auto; }
.reading-head { margin-bottom: 26px; }
.reading-head h1 { font-size: clamp(31px, 3vw, 43px); line-height: 1.2; margin: 18px 0; max-width: 800px; letter-spacing: -1.3px; }
.reading-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.reading-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; color: #6a7c5b; font-size: 12px; align-items: center; line-height: 1.65; }
.reading-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.reading-meta svg { width: 15px; height: 15px; }
.lesson-journey { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 21px; margin: 24px 0; background: #eaf0e2; border: 1px solid #dce6d0; border-radius: 12px; }
.journey-step { display: inline-flex; align-items: center; gap: 8px; color: #738666; font-size: 12px; line-height: 1.6; }
.journey-step svg { width: 16px; height: 16px; }
.journey-step i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dfe9d2; color: #617c4a; font-size: 10px; font-style: normal; font-variant-numeric: tabular-nums; }
.journey-step.active i { color: var(--lime); background: var(--green); }
.reading-status { padding: 4px 8px; border-radius: 6px; background: #e9f0df; font-size: 11px; color: #55773d; }
.journey-step.active { color: #36592d; font-weight: 650; }
.reading-content { padding: 39px 46px; }
.reading-content section { margin-bottom: 35px; }
.reading-content h2 { font-size: 25px; line-height: 1.4; letter-spacing: -.65px; margin-bottom: 14px; }
.reading-content p { font-size: 17px; color: #4a6050; line-height: 1.95; white-space: pre-line; }
.objectives { margin-bottom: 35px; padding: 23px 26px; border-left: 3px solid #89a760; background: #f0f5e8; border-radius: 0 12px 12px 0; }
.objectives h2, .objectives h3 { font-size: 15px; margin-bottom: 11px; letter-spacing: -.1px; }
.objectives ul, .takeaways ul { padding: 0 0 0 20px; margin: 0; }
.objectives li { font-size: 15px; color: #576f48; line-height: 1.9; padding-left: 3px; }
.objectives li::marker, .takeaways li::marker { color: #8ba866; }
.example { background: #f8f4e8; border: 1px solid #ece3ca; border-radius: 15px; padding: 28px; margin: 32px 0; }
.example .eyebrow { color: #98773e; }
.example h3 { font-size: 20px; margin-bottom: 13px; letter-spacing: -.4px; line-height: 1.4; }
.example p { font-size: 16px; line-height: 1.9; color: #766244; }
.takeaways { background: #edf4e4; border: 1px solid #e0e9d2; padding: 27px; border-radius: 15px; margin: 32px 0; }
.takeaways h2, .takeaways h3 { font-size: 18px; margin-bottom: 13px; }
.takeaways li { font-size: 15px; color: #567343; line-height: 1.85; margin-bottom: 7px; padding-left: 3px; }
.lesson-sources h2, .lesson-sources h3, .note-area label { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.2px; margin-bottom: 14px; }
.lesson-sources { padding-top: 28px; border-top: 1px solid var(--line); }
.source-link { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #4b7340; line-height: 1.7; margin-bottom: 7px; padding: 8px 0; overflow-wrap: anywhere; }
.source-link svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.source-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.note-area { margin-top: 29px; border-top: 1px solid var(--line); padding-top: 29px; }
.note-area textarea { width: 100%; min-height: 135px; resize: vertical; border: 1px solid #d6e0ce; border-radius: 12px; padding: 17px; background: #fafcf6; font-size: 15px; line-height: 1.75; }
.note-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 13px; }
.note-actions small { font-size: 11px; color: #718162; max-width: 340px; line-height: 1.7; }
.note-actions .button { flex-shrink: 0; }
.reading-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 24px 0; }
.learning-footnote, .reading-content .learning-footnote { font-size: 12px; line-height: 1.8; color: #748269; margin-top: 20px; white-space: normal; }

/* Practice: selection, feedback, errors and a satisfying finish */
.quiz-wrap { max-width: 850px; margin: auto; }
.quiz-top { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.quiz-top .progress-track { flex: 1; margin: 0; height: 6px; }
.quiz-top > span { font-size: 13px; color: #667b56; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quit-quiz { color: #6a7d60; font-size: 19px; width: 44px; height: 44px; border: 1px solid #dce4d3; border-radius: 50%; background: #fff; flex-shrink: 0; }
.quit-quiz svg { width: 21px; height: 21px; margin: auto; }
.quiz-top > span strong { font-weight: 650; color: var(--green); }
.quit-quiz:hover { background: #e9efdf; }
.quiz-card { padding: 37px 40px; min-height: 400px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.question-type { font-size: 12px; color: #687d5b; display: flex; align-items: center; gap: 7px; }
.question-type svg { width: 15px; height: 15px; }
.quiz-card h1 { font-size: 28px; line-height: 1.45; letter-spacing: -.75px; white-space: pre-line; overflow-wrap: anywhere; }
.question-help { font-size: 14px; color: #687e5b; margin: 14px 0 25px; line-height: 1.8; }
.adaptive-chip { font-size: 11px; color: #607f49; display: flex; align-items: center; gap: 7px; margin-bottom: 18px; line-height: 1.6; }
.adaptive-chip svg { width: 15px; height: 15px; flex-shrink: 0; }
.answer-options { display: grid; gap: 12px; margin-top: 25px; }
.answer-option { display: flex; gap: 15px; align-items: center; border: 1px solid #dce5d3; background: #fff; border-radius: 13px; padding: 18px 20px; text-align: left; min-height: 65px; line-height: 1.75; font-size: 15px; transition: background .15s, border-color .15s, box-shadow .15s; }
.answer-option:hover:not(:disabled) { background: #f7faf1; border-color: #a9be91; }
.answer-marker { flex-shrink: 0; border: 1px solid #cfddc1; border-radius: 8px; width: 29px; height: 29px; display: grid; place-items: center; font-size: 12px; color: #688653; background: #fdfefb; }
.answer-option.selected { background: #eef5e2; border-color: #88a864; box-shadow: 0 0 0 1px #88a864; }
.answer-option.selected .answer-marker { background: #486c34; border-color: #486c34; color: #fff; }
.answer-state { margin-left: auto; font-size: 20px; font-weight: 600; flex-shrink: 0; color: #557d35; }
.wrong-option .answer-state { color: #a44c35; }
.answer-option:disabled { opacity: 1; }
.quiz-card[data-question-type="order"][data-result="wrong"] .answer-option.selected { background: #f4f5ef; border-color: #c9d2c4; box-shadow: none; }
.quiz-card[data-question-type="order"][data-result="wrong"] .answer-marker { background: #647369; border-color: #647369; color: #fff; }
.answer-option.correct-option { background: #eef6e8; border-color: #83a866; box-shadow: inset 4px 0 #83a866; }
.answer-option.correct-option .answer-marker { color: #3c642d; border-color: #95b47a; background: #e1efcf; }
.answer-option.wrong-option { background: #fff1eb; border-color: #ca8d77; box-shadow: inset 4px 0 #ca8d77; }
.answer-option.wrong-option .answer-marker { background: #f5ddd2; border-color: #cc9782; color: #913e29; }
.number-answer { display: flex; align-items: center; gap: 16px; margin: 30px 0; }
.number-answer input { width: 250px; max-width: 80%; padding: 19px; border: 1px solid #becfaf; background: #fafdf4; border-radius: 12px; font-size: 27px; font-variant-numeric: tabular-nums; }
.number-answer span { font-size: 17px; color: #617e4e; }
.order-chosen { padding: 19px 21px; background: #f1f5e9; border: 1px dashed #c8d9b6; border-radius: 12px; font-size: 14px; color: #54753e; line-height: 1.85; min-height: 62px; }
.order-chosen ol { padding-left: 23px; margin: 0; }
.order-chosen li { padding-left: 3px; margin-bottom: 4px; }
.quiz-actions { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 28px; padding-top: 23px; border-top: 1px solid #e7eddf; }
.quiz-actions .hint { max-width: 360px; font-size: 12px; }
.quiz-actions .button { flex-shrink: 0; }
.quiz-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #718365; font-size: 11px; line-height: 1.7; margin: 14px 0; }
.quiz-status-line svg { width: 14px; height: 14px; }
.feedback { margin-top: 26px; border-radius: 15px; padding: 26px; background: #eef6e5; border: 1px solid #d3e4c3; }
.feedback.wrong { background: #fcf0e8; border-color: #ebd4c4; }
.feedback h2 { font-size: 20px; letter-spacing: -.4px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; line-height: 1.4; }
.feedback h2 span { font-size: 12px; letter-spacing: 0; white-space: nowrap; font-weight: 550; }
.feedback p { font-size: 15px; color: #526d41; line-height: 1.9; }
.feedback.wrong p { color: #856044; }
.feedback .source-link { font-size: 12px; margin-top: 12px; }
.correct-answer { font-size: 14px; font-weight: 650; color: #875a38; margin-bottom: 13px; line-height: 1.8; }
.feedback .adaptive-reason, .adaptive-reason { font-size: 12px; color: #657f52; line-height: 1.85; margin-top: 13px; }
.summary-card { text-align: center; padding: 47px 42px; }
.summary-symbol { width: 77px; height: 77px; border-radius: 25px; background: #edf4de; color: #719448; display: grid; place-items: center; margin: 0 auto 27px; box-shadow: 0 0 0 9px #f6f9f0; }
.summary-symbol svg { width: 34px; height: 34px; }
.summary-card h1 { font-size: 33px; margin-bottom: 15px; line-height: 1.3; }
.summary-card > p { color: #617654; font-size: 14px; }
.summary-stats { display: flex; justify-content: center; gap: 47px; margin: 32px 0; padding: 25px 0; border-block: 1px solid #e5ecd9; }
.summary-stats strong { font-size: 31px; display: block; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.summary-stats span { font-size: 12px; color: #6a805a; display: block; margin-top: 8px; line-height: 1.5; }
.summary-card .button { margin-top: 10px; }
.summary-recommend { margin-top: 24px; text-align: left; padding: 25px; background: #f0f5e8; border-radius: 14px; }
.summary-recommend h3 { font-size: 16px; letter-spacing: -.2px; margin-bottom: 9px; }
.summary-recommend p { font-size: 14px; color: #627c50; line-height: 1.8; }
.summary-recommend a { display: block; font-size: 14px; color: #416d2c; font-weight: 550; margin-top: 10px; padding-block: 8px; }
.inline-error { background: #fbedE7; color: #963e2e; padding: 17px; border: 1px solid #ebd0c5; border-radius: 11px; font-size: 14px; margin-top: 20px; line-height: 1.8; }

/* Review and personal notes */
.review-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 31px; }
.review-box { display: flex; flex-direction: column; align-items: flex-start; }
.review-box h2 { font-size: 27px; margin: 4px 0 14px; line-height: 1.3; }
.review-box p { font-size: 14px; color: #647a56; line-height: 1.85; max-width: 500px; flex: 1; }
.review-box .button { margin-top: 25px; }
.review-list { display: grid; gap: 12px; }
.review-row { padding: 22px 25px; display: flex; align-items: center; gap: 18px; }
.review-row h3 { font-size: 16px; letter-spacing: -.3px; margin-bottom: 7px; line-height: 1.5; }
.review-row p { font-size: 12px; color: #6f835f; }
.review-row .pill { margin-left: auto; }
.empty-state { text-align: center; padding: 45px 30px; color: #647b57; }
.empty-state > svg { margin: 0 auto 22px; width: 36px; height: 36px; color: #6e8c53; }
.empty-state > .empty-illustration { width: 160px; height: 120px; margin-bottom: 24px; }
.empty-state h2 { font-size: 26px; margin-bottom: 13px; color: var(--ink); line-height: 1.35; }
.empty-state p { font-size: 14px; max-width: 530px; margin: auto; line-height: 1.85; }
.empty-state .button { margin-top: 25px; }
.empty-state .button svg { width: 17px; height: 17px; margin: 0; }
.notes-list { display: grid; gap: 18px; }
.note-entry { position: relative; border-top: 3px solid #b5c999; }
.note-entry h3 { font-size: 19px; letter-spacing: -.3px; margin-bottom: 14px; line-height: 1.5; }
.note-entry p { font-size: 15px; color: #607651; white-space: pre-wrap; line-height: 1.9; overflow-wrap: anywhere; }
.note-entry .text-link { margin-top: 17px; }

/* Source library */
.sources-note { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 27px; background: #eaf0e0; padding: 24px 27px; border: 1px solid #dde5d1; border-radius: 16px; }
.sources-note > svg { width: 24px; height: 24px; flex-shrink: 0; color: #648647; margin-top: 2px; }
.sources-note p { font-size: 13px; color: #60794f; line-height: 1.85; }
.sources-note strong { color: #435f35; font-weight: 650; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.source-card { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.source-card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; }
.source-card-top > svg, .source-card-icon svg { width: 22px; height: 22px; color: #8a9e7a; }
.source-card h3 { font-size: 19px; line-height: 1.45; letter-spacing: -.35px; margin: 18px 0 13px; overflow-wrap: anywhere; }
.source-card p { font-size: 13px; color: #677e59; line-height: 1.85; flex: 1; }
.source-card a { color: #4e7339; font-size: 12px; font-weight: 600; margin-top: 11px; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.source-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.source-card a svg { width: 14px; height: 14px; flex-shrink: 0; }
.source-publisher { font-size: 11px; color: #6f8062; margin-top: 19px; display: block; line-height: 1.7; }
.source-footer { width: 100%; margin-top: 21px; padding-top: 17px; border-top: 1px solid #e5ecdd; }
.source-footer .source-publisher { margin-top: 0; }
.source-footer a { margin-top: 4px; }
.source-kind-law, .source-kind-regulation { background: #eee9f6; color: #73578e; }
.source-kind-tor { background: #e5f1e6; color: #4e7543; }
.source-kind-standard { background: #faf0de; color: #916d2a; }
.source-kind-official { background: #e9eff1; color: #53717c; }

/* Progress and learning account */
.competence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.competence-card h3 { font-size: 19px; margin: 16px 0 16px; }
.competence-card strong { font-size: 42px; letter-spacing: -1.5px; font-weight: 600; }
.competence-card p { font-size: 12px; color: #6b805d; margin-top: 10px; line-height: 1.8; }
.competence-card:has(.area-icon.markt) .progress-track { background: #f5edde; }
.competence-card:has(.area-icon.markt) .progress-track span { background: #b98e49; }
.competence-card:has(.area-icon.recht) .progress-track { background: #eee9f4; }
.competence-card:has(.area-icon.recht) .progress-track span { background: #9b80b4; }
.skill-table { width: 100%; border-collapse: collapse; }
.skill-table th { text-align: left; font-size: 11px; letter-spacing: .5px; color: #6a7e5c; font-weight: 600; padding: 3px 13px 17px; border-bottom: 1px solid var(--line); }
.skill-table tbody th, .skill-table td { padding: 20px 13px; border-bottom: 1px solid #e9eedf; font-size: 13px; color: #647d53; line-height: 1.7; }
.skill-table tbody th { font-weight: 550; color: #3e6130; max-width: 330px; }
.skill-table tbody th a { display: inline-block; padding-block: 4px; }
.skill-table tbody th a:hover { text-decoration: underline; text-underline-offset: 4px; }
.skill-table tr:last-child td, .skill-table tr:last-child th { border-bottom: 0; }
.skill-table tbody tr:hover { background: #fafcf6; }
.skill-table tbody th { letter-spacing: 0; white-space: normal; }
.skill-score { display: flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.skill-score > span { min-width: 28px; font-size: 11px; color: #6a805a; }
.status-chip { display: inline-block; padding: 5px 9px; border-radius: 6px; font-size: 11px; color: #6f7f62; background: #f1f5e9; line-height: 1.5; }
.status-chip.confirmed { background: #e7f1dc; color: #4b7136; }
.status-chip.needs-work { background: #faf0df; color: #94652c; }
.skill-table .progress-track { width: 95px; margin: 0; }
.skill-table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #bdccad transparent; }
.calendar-grid { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.activity-day { width: 31px; min-height: 48px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; color: #6d825f; font-variant-numeric: tabular-nums; }
.activity-day i { display: block; width: 29px; height: 29px; border-radius: 7px; background: #edf2e5; border: 1px solid #e4ebda; }
.activity-day.active i { background: #9cbd6c; border-color: #8eaf61; }
.activity-day.today i { outline: 1px solid #8ca66a; outline-offset: 3px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 13px; margin: 24px 0 0; }
.badge { display: flex; gap: 13px; align-items: center; padding: 19px; background: #f5f7f0; border: 1px solid #e8ecdf; border-radius: 13px; flex: 1; min-width: 200px; }
.badge.earned { background: #edf4df; border-color: #d5e4c0; }
.badge svg { width: 25px; height: 25px; color: #869574; flex-shrink: 0; }
.badge.earned svg { color: #648d3d; }
.badge strong { display: block; font-size: 13px; font-weight: 550; color: #5e7251; }
.badge small { display: block; font-size: 11px; line-height: 1.7; margin-top: 5px; color: #748466; }
.model-explanation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.model-stage { padding: 20px; background: #f3f6ec; border: 1px solid #e9eedd; border-radius: 12px; font-size: 12px; line-height: 1.85; color: #657e54; }
.model-stage strong { display: block; color: #436631; margin-bottom: 9px; font-size: 14px; line-height: 1.5; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.settings-card h2 { font-size: 22px; margin-bottom: 14px; }
.settings-card p { font-size: 14px; color: #657e53; line-height: 1.85; }
.goal-options { display: flex; gap: 11px; flex-wrap: wrap; margin: 25px 0; }
.goal-option { padding: 19px 20px; border: 1px solid #dce5d1; border-radius: 13px; text-align: center; min-width: 94px; background: #fafcf6; flex: 1; transition: border-color .18s, background .18s; }
.goal-option:hover { background: #f0f6e5; border-color: #a4bd8c; }
.goal-option strong { font-size: 27px; display: block; font-weight: 600; letter-spacing: -.6px; }
.goal-option span { font-size: 11px; color: #698058; display: block; margin-top: 8px; white-space: nowrap; }
.goal-option.active { background: #eaf3d9; border-color: #8da96a; box-shadow: inset 0 0 0 1px #8da96a; }
.settings-divider { border-top: 1px solid var(--line); margin-top: 31px; padding-top: 28px; }
.account-email { font-size: 13px; color: #5d7c4a; margin: 12px 0 24px; overflow-wrap: anywhere; }
.scope-table { display: grid; gap: 12px; }
.scope-table p { font-size: 13px; line-height: 1.85; color: #657e53; }
.scope-table strong { font-weight: 650; color: #456934; }

/* Search, transient status and account errors */
#toast { position: fixed; bottom: 26px; left: calc(50% + var(--sidebar-width) / 2); transform: translateX(-50%) translateY(20px); background: var(--forest); color: #edf5e0; padding: 16px 23px; border: 1px solid #466447; border-radius: 12px; font-size: 13px; box-shadow: 0 8px 30px #142f2925; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: min(550px, 90vw); text-align: center; line-height: 1.65; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
dialog { width: min(650px, calc(100% - 32px)); border: 1px solid #dce5d2; border-radius: 22px; padding: 28px; color: var(--ink); background: #fafcf7; max-height: 85svh; box-shadow: 0 25px 100px #142f2935; }
dialog::backdrop { background: #142f2966; backdrop-filter: blur(6px); }
.search-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 15px; }
.search-heading strong { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.icon-button { color: #5f7b4f; padding: 10px; border-radius: 50%; min-width: 44px; min-height: 44px; background: #eef3e6; }
#global-search { width: 100%; padding: 17px; border: 1px solid #cbdac0; border-radius: 12px; background: #fff; font-size: 16px; }
#search-results { margin-top: 17px; max-height: 51svh; overflow-y: auto; }
.search-result { display: block; padding: 18px 12px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.search-result:hover { background: #edf3e3; }
.search-result strong { font-size: 15px; display: block; font-weight: 550; line-height: 1.5; }
.search-result small { display: block; color: #677e56; font-size: 12px; margin-top: 7px; line-height: 1.6; }
.search-hint { font-size: 13px; color: #6d825c; padding: 13px 10px; line-height: 1.8; }
.form-error { font-size: 13px; color: var(--red); line-height: 1.75; margin-top: 15px; }
.form-error:empty { display: none; }

/* Sign in: editorial introduction, focused form */
.login-page { background: #f7f8f2; }
.login-layout { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100svh; }
.login-intro { background: var(--forest); padding: 47px clamp(35px, 5vw, 78px); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 58px; position: relative; overflow: hidden; isolation: isolate; }
.login-intro::after { position: absolute; content: ""; width: 660px; height: 660px; border: 1px solid #c7e99d10; border-radius: 50%; right: -340px; bottom: -340px; box-shadow: 0 0 0 100px #b9d89005, 0 0 0 200px #b9d89003; z-index: -1; pointer-events: none; }
.login-intro .brand { color: #fff; position: relative; z-index: 1; }
.login-intro .brand-symbol { background: var(--lime); color: var(--forest); }
.login-intro .brand-dot { color: var(--lime); }
.eyebrow.light { color: #bdd59f; font-size: 11px; }
.login-intro-copy { position: relative; z-index: 1; margin-block: auto; padding: 25px 0 70px; }
.login-intro h1 { font: 400 clamp(43px, 4.2vw, 67px) / 1.09 Georgia, "Times New Roman", serif; letter-spacing: -2.2px; margin: 26px 0; }
.login-intro h1 em { font-style: normal; color: var(--lime); }
.login-intro p { color: #c2d3bd; font-size: 15px; line-height: 1.85; margin-top: 24px; max-width: 430px; }
.login-foot { font-size: 11px; color: #afc5a6; display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; line-height: 1.7; }
.login-art { position: absolute; right: -28px; bottom: 42px; width: min(100%, 610px); max-height: 195px; color: #b8d795; opacity: .58; z-index: 0; pointer-events: none; }
.login-topics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.login-topics span { display: inline-flex; align-items: center; min-height: 31px; padding: 6px 11px; border: 1px solid #c4ddaa30; background: #ffffff05; border-radius: 7px; color: #d1e1c0; font-size: 11px; line-height: 1.5; }
.login-form-wrap { display: grid; place-items: center; padding: 55px 40px; }
.login-form { width: min(100%, 390px); }
.login-form h2 { font-size: 39px; line-height: 1.17; letter-spacing: -1.4px; margin: 17px 0 18px; }
.login-form > p { font-size: 14px; color: #6a7d60; line-height: 1.8; }
.login-form form { margin-top: 34px; }
.login-form label { display: block; font-size: 12px; font-weight: 600; color: #4e6b40; margin: 23px 0 10px; }
.login-form input { width: 100%; min-height: 54px; padding: 16px 17px; border: 1px solid #d5e0cb; border-radius: 11px; font-size: 15px; background: #fff; box-shadow: 0 1px 2px #243c3203; }
.login-form input:hover { border-color: #b3c79f; }
.login-form input::placeholder { color: #7a8970; }
.login-form .button { width: 100%; justify-content: space-between; margin-top: 28px; padding: 17px 21px; font-size: 14px; min-height: 55px; }
.login-form .button > span { font-size: 20px; }
.login-persistence { display: flex; gap: 15px; align-items: center; padding-top: 26px; border-top: 1px solid #dce5d1; margin-top: 31px; }
.login-persistence > span { font-size: 31px; color: #749653; width: 44px; height: 44px; display: grid; place-items: center; background: #edf3e3; border-radius: 12px; flex-shrink: 0; }
.login-persistence p { font-size: 12px; color: #718462; line-height: 1.8; }
.login-persistence strong { font-weight: 600; color: #4f6c3e; }
.login-security { display: flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 11px; color: #718363; line-height: 1.7; }
.login-security svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Responsive workspace. Navigation yields space before content gets cramped. */
@media (min-width: 1550px) {
  :root { --sidebar-width: 270px; }
  .sidebar { padding-inline: 24px; padding-top: 40px; }
  .topbar { padding-inline: 48px; }
  main#main { padding: 46px 48px 30px; }
  .page-footer { padding-inline: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 25px; }
  .hero { padding: 37px 40px; min-height: 350px; }
  .hero h2 { font-size: 53px; }
  .hero p { max-width: 430px; font-size: 15px; }
  .goal-ring { width: 145px; height: 145px; }
  .lesson-card { padding: 25px 23px 21px; min-height: 280px; }
  .stat-card { padding: 23px; gap: 17px; }
  .stat-icon { width: 41px; height: 42px; }
  .stat-detail { font-size: 11px; }
}

@media (max-width: 1279px) {
  :root { --sidebar-width: 225px; }
  .sidebar { padding-inline: 15px; }
  .sidebar .brand { margin-left: 7px; }
  .brand { font-size: 33px; }
  .brand-caption { font-size: 9px; letter-spacing: .9px; }
  .nav-item { font-size: 12px; gap: 10px; padding-inline: 12px; }
  .topbar { padding-inline: 28px; }
  main#main { padding: 32px 28px 25px; }
  .page-footer { padding-inline: 28px; }
  .top-actions { gap: 15px; }
  .search-open kbd, .date-tag { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 226px; gap: 18px; }
  .hero { padding: 30px; }
  .hero h2 { font-size: 41px; }
  .hero p { max-width: 320px; }
  .grid-art { right: -28px; opacity: .46; }
  .goal-card { padding-inline: 17px; }
  .stat-card { display: block; padding: 18px; }
  .stat-icon { margin-bottom: 14px; }
  .stat-detail { font-size: 11px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .lesson-cards, .learning-pillars { gap: 14px; }
  .lesson-card { padding: 21px 19px 17px; }
  .lesson-card-top { gap: 8px; }
  .lesson-card h3 { font-size: 17px; }
  .lesson-card-top .pill { font-size: 9px; padding-inline: 6px; }
  .route-strip { gap: 10px; padding: 21px; }
  .route-step { gap: 8px; font-size: 11px; }
  .route-line { width: 12px; }
  .model-explanation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 77px; padding-inline: 32px; }
  main#main { max-width: 1020px; padding: 34px 32px 25px; min-height: calc(100svh - 225px); }
  .page-footer { padding: 22px 32px 111px; }
  .mobile-nav { position: fixed; bottom: 0; inset-inline: 0; background: #fafcf6f2; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid #d8e2cc; display: flex; justify-content: center; padding: 10px 20px max(10px, env(safe-area-inset-bottom)); z-index: 30; gap: 8px; box-shadow: 0 -4px 20px #20372f05; }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; color: #6e825f; min-height: 47px; flex: 1; max-width: 155px; padding: 10px 12px; border-radius: 11px; }
  .mobile-nav a svg { width: 21px; height: 21px; flex-shrink: 0; }
  .mobile-nav a.active { color: var(--forest); font-weight: 650; background: #e7efd9; }
  .stat-card { display: flex; padding: 20px 18px; }
  .stat-icon { margin-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .hero h2 { font-size: 45px; }
  .hero p { max-width: 350px; }
  .grid-art { opacity: .6; }
  .module-layout, .settings-grid { grid-template-columns: minmax(0, 1fr) 270px; }
  #toast { left: 50%; bottom: 92px; }
  .login-intro { padding-inline: 38px; }
  .login-intro h1 { font-size: 45px; letter-spacing: -1.5px; }
  .login-form-wrap { padding-inline: 35px; }
  .login-form h2 { font-size: 35px; }
}

@media (max-width: 850px) {
  .save-status { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 220px; }
  .hero { padding: 29px; }
  .hero h2 { font-size: 40px; }
  .hero-meta { font-size: 10px; }
  .grid-art { opacity: .33; }
  .stat-card { display: block; }
  .stat-icon { margin-bottom: 13px; }
  .lesson-card-top { flex-wrap: wrap; justify-content: flex-start; gap: 11px; }
  .lesson-card-top .pill { font-size: 9px; }
  .notice-card { grid-template-columns: 27px 1fr; }
  .notice-card .text-link { grid-column: 2; grid-row: auto; padding-left: 0; margin-top: 5px; }
  .module-layout, .settings-grid { grid-template-columns: 1fr; }
  .module-layout .side-panel { order: -1; }
  .competence-grid { gap: 13px; }
  .competence-card { padding: 23px; }
  .competence-card h3 { font-size: 17px; }
  .reading-content { padding: 33px 35px; }
  .login-layout { grid-template-columns: 1fr 1fr; }
  .login-intro { padding: 37px 30px; }
  .login-intro h1 { font-size: 40px; }
  .login-intro p { font-size: 14px; }
  .login-intro-copy { padding-bottom: 65px; }
  .login-form-wrap { padding: 45px 27px; }
  .login-form h2 { font-size: 31px; }
}

@media (max-width: 700px) {
  .topbar { height: 68px; padding: 0 21px; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb span { margin-inline: 7px; }
  .top-actions { gap: 8px; }
  .top-avatar { width: 40px; height: 40px; font-size: 11px; border-width: 3px; }
  .search-open { width: 44px; justify-content: center; }
  .search-open > span:not(#search-icon) { display: none; }
  .search-open svg { width: 20px; height: 20px; }
  main#main { padding: 28px 20px 23px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 30px; line-height: 1.24; letter-spacing: -.9px; }
  .page-heading p { font-size: 13px; line-height: 1.75; margin-top: 12px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.35px; margin-bottom: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 15px; margin-bottom: 16px; }
  .hero { min-height: 318px; padding: 29px 27px; border-radius: 20px; }
  .hero h2 { font-size: clamp(36px, 8.1vw, 47px); max-width: 460px; line-height: 1.09; letter-spacing: -1.6px; }
  .hero p { font-size: 14px; max-width: 335px; margin: 18px 0 23px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.35px; }
  .hero-meta { font-size: 11px; }
  .grid-art { width: 45%; right: -23px; opacity: .34; }
  .hero-bottom { gap: 14px; }
  .hero .button { font-size: 13px; }
  .goal-card { padding: 19px; display: grid; grid-template-columns: 69px 1fr; text-align: left; align-items: center; gap: 0 18px; border-radius: 16px; }
  .goal-card .card-overline { grid-column: 2; grid-row: 1; font-size: 10px; margin-bottom: 7px; align-self: end; }
  .goal-ring { grid-column: 1; grid-row: 1 / 4; width: 69px; height: 69px; margin: 0; }
  .goal-ring-text strong { font-size: 21px; letter-spacing: -.8px; }
  .goal-ring-text strong small { font-size: 12px; }
  .goal-ring-text > span { display: none; }
  .goal-ring circle { stroke-width: 7; }
  .goal-card p { grid-row: 2; grid-column: 2; align-self: start; font-size: 12px; }
  .goal-card p br { display: none; }
  .goal-card p strong { margin-left: 3px; }
  .goal-link { grid-row: 3; grid-column: 2; margin: 3px 0 -6px; font-size: 11px; min-height: 36px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 31px; }
  .stat-card { padding: 19px 17px; border-radius: 14px; display: block; }
  .stat-icon { margin: 0 0 14px; width: 35px; height: 36px; }
  .stat-value { font-size: 29px; }
  .stat-label { font-size: 11px; line-height: 1.5; }
  .stat-detail { margin-top: 8px; font-size: 10px; line-height: 1.6; }
  .section-heading { margin-bottom: 19px; gap: 13px; align-items: flex-start; }
  .section-heading h2 { font-size: 23px; line-height: 1.3; }
  .section-heading p { font-size: 12px; line-height: 1.7; }
  .section-heading > .text-link { font-size: 11px; flex-shrink: 0; gap: 4px; padding-top: 2px; }
  .lesson-cards, .learning-pillars { grid-template-columns: 1fr; gap: 14px; }
  .lesson-card { min-height: 0; padding: 23px; border-radius: 17px; }
  .lesson-card-top { justify-content: space-between; margin-bottom: 20px; gap: 15px; }
  .lesson-card-top .pill { font-size: 10px; padding-inline: 8px; }
  .lesson-card h3 { font-size: 21px; margin-bottom: 10px; line-height: 1.35; }
  .lesson-card p { font-size: 13px; }
  .lesson-card-bottom { font-size: 12px; padding-top: 20px; }
  .card-link-icon { width: 31px; height: 31px; }
  .notice-card { padding: 23px; border-radius: 16px; gap: 0 12px; }
  .notice-card h3 { font-size: 16px; margin-bottom: 8px; }
  .notice-card p { font-size: 12px; line-height: 1.85; }
  .mini-section, .dashboard-section { margin-top: 31px; }
  .route-strip { padding: 23px 20px; flex-wrap: wrap; gap: 20px 17px; border-radius: 16px; }
  .route-step { font-size: 12px; min-width: 42%; flex: 1; gap: 9px; }
  .route-line { display: none; }
  .route-step .step-number { width: 29px; height: 29px; font-size: 10px; }
  .page-footer { padding: 18px 21px 113px; align-items: flex-start; gap: 17px; line-height: 1.8; font-size: 10px; }
  .page-footer > span:last-child { text-align: right; }
  .footer-dot { margin-inline: 4px; }
  .mobile-nav { padding: 8px 9px max(10px, env(safe-area-inset-bottom)); gap: 4px; }
  .mobile-nav a { flex-direction: column; gap: 5px; font-size: 10px; min-width: 0; min-height: 55px; padding: 7px 5px; max-width: 100px; border-radius: 10px; }
  .mobile-nav a svg { width: 21px; height: 21px; }
  .mobile-nav a.active { background: #eaf0e0; }
  .filter-row { gap: 7px; margin-bottom: 23px; }
  .filter { font-size: 12px; padding: 11px 14px; }
  .module-grid { grid-template-columns: 1fr; gap: 15px; }
  .module-card { min-height: 0; padding: 25px; border-radius: 18px; }
  .module-card h3 { font-size: 23px; margin-top: 19px; }
  .module-category + h3 { margin-top: 8px; }
  .module-card p { font-size: 14px; }
  .module-meta { margin-top: 23px; font-size: 11px; }
  .back-link { font-size: 12px; margin-bottom: 20px; }
  .module-layout { gap: 20px; }
  .lesson-row { padding: 22px 19px; gap: 14px; align-items: flex-start; }
  .lesson-row h3 { font-size: 17px; line-height: 1.45; }
  .lesson-row p { font-size: 12px; }
  .lesson-row .row-arrow { padding-top: 12px; }
  .lesson-row .lesson-index { width: 38px; height: 40px; font-size: 12px; border-radius: 11px; }
  .panel { padding: 25px 23px; border-radius: 18px; }
  .side-panel { padding: 26px; }
  .knowledge-callout { padding: 23px; margin-block: 26px; }
  .knowledge-callout h3 { font-size: 17px; line-height: 1.45; }
  .knowledge-callout p { font-size: 13px; }
  .reading-head h1 { font-size: 33px; margin: 16px 0; line-height: 1.23; letter-spacing: -1.1px; }
  .reading-meta { font-size: 11px; gap: 7px 15px; }
  .lesson-journey { padding: 15px 17px; gap: 10px 18px; margin: 22px 0; }
  .journey-step { font-size: 11px; }
  .reading-content { padding: 27px 23px; }
  .reading-content h2 { font-size: 24px; line-height: 1.38; }
  .reading-content p { font-size: 16px; line-height: 1.95; }
  .reading-content section { margin-bottom: 30px; }
  .objectives { padding: 21px; margin-bottom: 29px; }
  .objectives h2, .objectives h3 { font-size: 14px; }
  .objectives li { font-size: 14px; line-height: 1.9; }
  .example, .takeaways { padding: 22px; margin: 28px 0; }
  .example h3 { font-size: 20px; }
  .example p { font-size: 15px; }
  .takeaways li { font-size: 14px; }
  .lesson-sources h2, .lesson-sources h3, .note-area label { font-size: 16px; }
  .source-link { font-size: 12px; line-height: 1.8; }
  .note-area textarea { font-size: 16px; padding: 16px; }
  .reading-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .reading-actions .button { font-size: 13px; min-height: 50px; }
  .note-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .note-actions .button { align-self: flex-start; }
  .note-actions small { font-size: 11px; }
  .learning-footnote, .reading-content .learning-footnote { font-size: 11px; }
  .quiz-top { gap: 14px; margin-bottom: 21px; }
  .quiz-top > span { font-size: 12px; }
  .quiz-card { padding: 27px 23px; min-height: 0; }
  .quiz-card h1 { font-size: 24px; line-height: 1.47; letter-spacing: -.65px; }
  .question-meta { margin-bottom: 20px; }
  .question-type { font-size: 11px; }
  .question-help { font-size: 13px; line-height: 1.8; }
  .adaptive-chip { font-size: 11px; }
  .answer-option { padding: 16px 14px; gap: 12px; font-size: 14px; line-height: 1.8; border-radius: 12px; }
  .answer-marker { width: 27px; height: 27px; font-size: 11px; border-radius: 7px; }
  .quiz-actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; margin-top: 24px; padding-top: 22px; }
  .quiz-actions .hint { text-align: center; font-size: 11px; max-width: none; }
  .quiz-actions .button { width: 100%; min-height: 50px; }
  .feedback { padding: 22px 20px; }
  .feedback h2 { font-size: 19px; line-height: 1.4; }
  .feedback p { font-size: 14px; }
  .feedback .adaptive-reason { font-size: 11px; }
  .correct-answer { font-size: 13px; }
  .number-answer input { width: 210px; font-size: 25px; }
  .order-chosen { font-size: 13px; padding: 18px; }
  .summary-card { padding: 35px 23px; }
  .summary-card h1 { font-size: 29px; }
  .summary-card > p { font-size: 13px; }
  .summary-stats { gap: 18px; margin: 27px 0; padding: 23px 0; }
  .summary-stats > div { flex: 1; }
  .summary-stats strong { font-size: 27px; }
  .summary-stats span { font-size: 11px; }
  .summary-recommend { padding: 22px; }
  .summary-recommend p { font-size: 13px; }
  .summary-card .row-actions .button { flex: 1; }
  .review-overview { grid-template-columns: 1fr; gap: 17px; }
  .review-box { padding: 27px; }
  .review-box h2 { font-size: 25px; }
  .review-row { padding: 22px 20px; gap: 13px; flex-wrap: wrap; }
  .review-row h3 { font-size: 16px; }
  .review-row p { font-size: 12px; }
  .review-row > span:nth-child(2) { flex: 1; min-width: 180px; }
  .review-row .pill { margin-left: 57px; }
  .empty-state { padding: 35px 23px; }
  .empty-state h2 { font-size: 25px; }
  .empty-state p { font-size: 14px; }
  .empty-state > .empty-illustration { width: 150px; height: 113px; }
  .sources-note { padding: 22px; gap: 13px; }
  .sources-note p { font-size: 12px; }
  .source-grid { grid-template-columns: 1fr; gap: 16px; }
  .source-card { padding: 25px; }
  .source-card h3 { font-size: 20px; }
  .source-card p { font-size: 13px; }
  .competence-grid { grid-template-columns: 1fr; gap: 14px; }
  .competence-card { display: grid; grid-template-columns: 45px 1fr auto; padding: 24px; gap: 0 14px; }
  .competence-card .area-icon { grid-row: 1 / 4; grid-column: 1; margin: 0; }
  .competence-card h3 { grid-column: 2; grid-row: 1; margin: 0 0 9px; font-size: 18px; }
  .competence-card strong { grid-row: 1 / 3; grid-column: 3; font-size: 32px; align-self: center; }
  .competence-card p { grid-column: 2; grid-row: 2; margin: 0; font-size: 11px; }
  .competence-card .progress-track { grid-column: 2 / 4; grid-row: 3; }
  .skill-table th { font-size: 10px; padding: 0 10px 16px; white-space: nowrap; }
  .skill-table tbody th, .skill-table td { font-size: 12px; padding: 17px 10px; line-height: 1.7; }
  .skill-table tbody th { min-width: 180px; }
  .skill-table td:last-child { min-width: 135px; }
  .skill-table .progress-track { width: 76px; }
  .calendar-grid { gap: 9px; }
  .model-explanation { gap: 11px; }
  .model-stage { font-size: 12px; padding: 18px; }
  .model-stage strong { font-size: 14px; }
  .settings-grid { gap: 19px; }
  .settings-card h2 { font-size: 21px; }
  .settings-card p { font-size: 13px; }
  .goal-options { gap: 8px; }
  .goal-option { padding: 16px 10px; min-width: 65px; }
  .goal-option strong { font-size: 25px; }
  .goal-option span { font-size: 10px; }
  .badge-row { gap: 11px; }
  .badge { padding: 18px; min-width: 180px; }
  .badge strong { font-size: 13px; }
  .badge small { font-size: 11px; }
  .row-actions .button { flex: 1; font-size: 12px; min-width: 135px; }
  #toast { bottom: 95px; min-width: 240px; font-size: 12px; padding: 15px 20px; }
  dialog { padding: 23px; border-radius: 18px; max-height: 87svh; }
  .search-heading strong { font-size: 19px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-intro { padding: 30px 27px 35px; gap: 32px; }
  .login-intro .brand { font-size: 31px; }
  .login-intro .brand-symbol { width: 37px; height: 41px; font-size: 40px; }
  .login-intro-copy { margin: 0; padding: 0; }
  .login-intro h1 { font-size: clamp(37px, 8vw, 48px); line-height: 1.13; margin: 18px 0; letter-spacing: -1.3px; max-width: 500px; }
  .login-intro h1 br { display: none; }
  .login-intro h1 em { display: block; }
  .login-intro p { font-size: 13px; margin-top: 16px; max-width: 320px; }
  .login-topics { margin-top: 21px; gap: 8px; }
  .login-topics span { font-size: 10px; }
  .login-foot { display: none; }
  .login-art { width: 330px; right: -70px; bottom: 37px; opacity: .18; max-height: 145px; }
  .login-form-wrap { padding: 38px 27px 45px; }
  .login-form { width: 100%; max-width: 420px; }
  .login-form h2 { font-size: 34px; margin: 16px 0; }
  .login-form > p { font-size: 14px; }
  .login-form > p br { display: none; }
  .login-form form { margin-top: 27px; }
  .login-form label { margin-top: 22px; font-size: 12px; }
  .login-form input { font-size: 16px; padding: 17px; }
  .login-persistence { margin-top: 27px; padding-top: 24px; }
  .login-security { font-size: 11px; }
}

@media (max-width: 380px) {
  main#main { padding-inline: 16px; }
  .topbar { padding-inline: 15px; }
  .breadcrumb { max-width: 190px; }
  .breadcrumb span { margin-inline: 4px; }
  .page-heading h1 { font-size: 28px; }
  .hero { padding: 26px 23px; }
  .hero h2 { font-size: 35px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-meta { width: 100%; }
  .hero-bottom { gap: 13px; }
  .goal-card { gap: 0 13px; padding: 18px 16px; }
  .stat-card { padding: 17px 15px; }
  .stat-value { font-size: 27px; }
  .section-heading { flex-wrap: wrap; gap: 5px; }
  .section-heading > .text-link { min-height: 36px; }
  .lesson-card { padding: 22px; }
  .route-strip { padding: 20px 17px; gap: 18px 13px; }
  .route-step { font-size: 11px; }
  .reading-content, .quiz-card { padding: 25px 20px; }
  .reading-head h1 { font-size: 30px; }
  .quiz-card h1 { font-size: 22px; }
  .question-type { font-size: 10px; }
  .answer-option { padding: 15px 12px; gap: 10px; }
  .answer-marker { width: 25px; height: 25px; }
  .summary-stats { gap: 12px; }
  .summary-stats strong { font-size: 24px; }
  .summary-stats span { font-size: 10px; }
  .competence-card { gap: 0 10px; padding: 21px 18px; grid-template-columns: 40px 1fr auto; }
  .competence-card h3 { font-size: 16px; }
  .competence-card .area-icon { width: 40px; height: 40px; }
  .competence-card strong { font-size: 28px; }
  .goal-option { padding-inline: 7px; min-width: 57px; }
  .goal-option span { font-size: 9px; }
  .model-explanation { grid-template-columns: 1fr; }
  .mobile-nav a { font-size: 9px; padding-inline: 3px; }
  .page-footer { padding-inline: 17px; }
}

/* Phone landscape uses the same reachable navigation, with a short footer bar. */
@media (max-width: 1100px) and (max-height: 520px) and (orientation: landscape) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 58px; }
  main#main { padding-top: 25px; min-height: calc(100svh - 145px); }
  .mobile-nav { display: flex; padding: 6px 18px max(6px, env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-nav a { flex-direction: row; min-height: 40px; font-size: 11px; gap: 8px; padding: 7px 13px; max-width: 150px; }
  .mobile-nav a svg { width: 18px; height: 18px; }
  .page-footer { padding-bottom: 82px; }
  #toast { left: 50%; bottom: 70px; }
  .hero { min-height: 305px; }
  .login-layout { min-height: 100svh; }
  .login-intro { gap: 40px; }
  .login-intro-copy { padding: 0 0 40px; }
  .login-art { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
