:root {
  --ink: #171b2e;
  --muted: #687084;
  --navy: #15192b;
  --navy-2: #202641;
  --teal: #6d5dfc;
  --teal-dark: #5546dc;
  --blue: #4f7cff;
  --cyan: #21c6c7;
  --mist: #f0f2f8;
  --line: #e2e5ee;
  --paper: #ffffff;
  --danger: #bf4053;
  --danger-soft: #fff0f2;
  --warning: #90600b;
  --warning-soft: #fff7df;
  --shadow: 0 14px 42px rgba(35, 39, 72, .08);
  --shadow-soft: 0 5px 18px rgba(35, 39, 72, .055);
  --radius: 20px;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #f5f6fa;
  font-size: 16px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none!important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f5f6fa; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
svg { width: 1.3rem; height: 1.3rem; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 30px; color: var(--ink); background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(222,225,235,.9); backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brandmark { position: relative; overflow: hidden; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; background: linear-gradient(145deg,#7768ff,#4f7cff); box-shadow: 0 8px 20px rgba(91,80,230,.25); font-size: .78rem; letter-spacing: -.02em; }
.brandmark::after { content: ""; position: absolute; width: 26px; height: 26px; right: -12px; bottom: -12px; border: 5px solid rgba(255,255,255,.24); border-radius: 50%; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .96rem; }
.brand-copy small { margin-top: 4px; color: #8a91a3; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.account { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.account form { margin: 0; }
.link-button { min-height: 36px; padding: 6px 10px; color: #747c90; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-weight: 700; }
.link-button:hover { color: var(--ink); background: #f0f2f7; }
.tour-link { min-height: 36px; padding: 7px 12px; color: #5549c8; background: #f0efff; border: 1px solid #dfdcff; border-radius: 10px; cursor: pointer; font-size: .78rem; font-weight: 750; }
.tour-link:hover { background: #e7e4ff; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; background: #f6f7fa; border: 1px solid #e6e8ef; border-radius: 999px; font-weight: 700; }
.user-chip b { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,#202641,#465171); border-radius: 50%; font-size: .75rem; }
.menu-button { display: none; padding: 8px; color: var(--ink); border: 0; background: transparent; font-size: 1.5rem; }

.app-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { position: sticky; top: 76px; height: calc(100vh - 76px); padding: 25px 16px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #687084; background: #fbfbfd; border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 5px; }
.nav-caption { padding: 0 13px 8px; color: #9a9fb0; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-caption-admin { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e8e9ef; }
.nav-link { position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 13px; color: #626a7e; text-decoration: none; border: 1px solid transparent; border-radius: 12px; font-weight: 700; }
.nav-link:hover { color: #302a7b; background: #f1f0ff; }
.nav-link.active { color: #4336c7; background: linear-gradient(90deg,#eceaff,#f5f4ff); border-color: #ddd9ff; box-shadow: inset 3px 0 #6959f5; }
.nav-link svg { flex: 0 0 auto; }
.sidebar-note { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 15px; color: #4d5570; border: 1px solid #e0defa; border-radius: 14px; background: linear-gradient(145deg,#f6f5ff,#f0f4ff); }
.sidebar-note-icon { width: 28px; height: 28px; display: grid; place-items: center; color: white; background: #6354eb; border-radius: 9px; font-size: .75rem; font-weight: 850; }
.sidebar-note div { display: grid; }
.sidebar-note strong { color: #34305f; font-size: .8rem; }
.sidebar-note span { font-size: .75rem; line-height: 1.45; }
.sidebar-note button { margin-top: 8px; padding: 0; color: #5749d8; background: none; border: 0; text-align: left; cursor: pointer; font-size: .75rem; font-weight: 800; }

.main { width: min(100%, 1160px); margin: 0 auto; padding: 48px 52px 86px; }
.main-wide { width: min(100%, 1380px); }
.eyebrow { display: block; margin-bottom: 9px; color: #5d51dc; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.13; }
h1 { margin-bottom: 14px; font-size: clamp(2.15rem, 4vw, 3.55rem); font-weight: 760; }
h2 { font-size: 1.48rem; }
p { color: var(--muted); }
.page-heading { margin-bottom: 36px; max-width: 790px; }
.page-heading p { max-width: 680px; margin-bottom: 0; font-size: 1.05rem; }
.page-heading.admin-heading { max-width: none; }

.welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px 42px; color: white; background: var(--navy-2); border-radius: 26px; box-shadow: var(--shadow); }
.welcome::after { content: ""; position: absolute; right: -90px; top: -130px; width: 340px; height: 340px; border: 65px solid rgba(24,198,165,.1); border-radius: 50%; }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { color: #74e7d1; }
.welcome h1 { max-width: 680px; margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.1rem); }
.welcome p { max-width: 600px; margin: 0; color: #c6d3dc; }
.progress-ring { flex: 0 0 auto; width: 126px; height: 126px; display: grid; place-items: center; }
.progress-ring svg { width: 100%; height: 100%; grid-area: 1/1; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 10; }
.progress-ring-track { stroke: rgba(255,255,255,.12); }
.progress-ring-value { stroke: var(--teal); stroke-linecap: round; }
.progress-ring-value.empty { stroke-linecap: butt; }
.progress-ring div { position: relative; grid-area: 1/1; display: grid; text-align: center; }
.progress-ring strong { font-size: 1.55rem; }
.progress-ring span { color: #b8c9d5; font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.8fr); gap: 22px; margin-top: 24px; }
.continue-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; color: white; background: linear-gradient(145deg,#117969,#0b4f4a); border-radius: var(--radius); box-shadow: var(--shadow); }
.continue-card .card-label, .prompt-preview .card-label { font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.continue-card .module-label { color: #bdf3e8; }
.continue-card h2 { margin: 10px 0 8px; font-size: 2rem; }
.continue-card p { color: #d8f1eb; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px; border: 0; border-radius: 11px; text-decoration: none; cursor: pointer; font-weight: 760; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #062c29; background: var(--teal); box-shadow: 0 10px 25px rgba(24,198,165,.2); }
.button.primary:hover { background: #22dab8; }
.button.light { align-self: flex-start; color: var(--navy); background: white; }
.button.ghost { color: var(--ink); background: transparent; border: 1px solid #c9d6da; box-shadow: none; }
.button.ghost:hover { background: #f1f6f7; }
.button.large { min-height: 50px; padding-inline: 24px; }
.button:disabled { opacity: .65; cursor: default; transform: none; }
.quick-stack { display: grid; gap: 18px; }
.quick-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 22px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 8px 25px rgba(25,52,72,.05); }
.quick-card:hover { border-color: #b9ccc9; transform: translateY(-1px); }
.quick-card div { display: grid; }
.quick-card span { color: var(--muted); font-size: .85rem; }
.quick-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #0d7365!important; background: #dff8f3; border-radius: 12px; }
.quick-icon.shield { color: #315ec5!important; background: #e7edff; }
.section-block { margin-top: 46px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-weight: 700; text-decoration: none; }
.section-meta { color: var(--muted); font-size: .82rem; }
.recent-list { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.recent-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 17px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.recent-list a:last-child { border-bottom: 0; }
.recent-list a > span:last-child { color: var(--muted); font-size: .85rem; }
.status-dot { width: 26px; height: 26px; display: grid; place-items: center; color: #607382; background: #edf2f4; border-radius: 50%; }
.status-dot.complete { color: #064f45; background: #cdf5eb; }
.empty-inline { padding: 22px; background: white; border: 1px dashed #bfccd1; border-radius: var(--radius); color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.achievement { display: flex; align-items: center; gap: 12px; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.achievement > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-weight: 850; }
.achievement div { display: grid; }
.achievement small { color: var(--muted); line-height: 1.35; }
.achievement.unlocked > span { color: #075f51; background: #d9f7ef; }
.achievement.locked { opacity: .55; }
.achievement.locked > span { color: #667783; background: #edf2f4; }

.module-section { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.module-section:first-of-type { border-top: 0; padding-top: 0; }
.module-number { color: #b0bec6; font-size: 1.8rem; font-weight: 350; }
.lesson-list { margin-top: 16px; display: grid; gap: 10px; }
.lesson-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 17px; padding: 18px 20px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.lesson-row:hover { border-color: #aac3bf; box-shadow: 0 8px 24px rgba(20,57,70,.07); }
.lesson-row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lesson-row p { margin: 0; font-size: .85rem; }
.lesson-state { width: 34px; height: 34px; display: grid; place-items: center; color: #647683; background: #edf2f4; border-radius: 50%; font-size: .78rem; font-weight: 800; }
.lesson-state.complete { color: #05594c; background: #cdf5eb; }
.lesson-state.started { color: #78510e; background: #fff0c1; }
.lesson-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.lesson-arrow { font-size: 1.2rem; }

.lesson-shell { max-width: 820px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-weight: 700; }
.lesson-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.module-label { color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lesson-header h1 { margin-top: 12px; }
.lesson-header p { font-size: 1.08rem; }
.read-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.read-tools .button { min-height: 38px; padding: 7px 12px; font-size: .8rem; }
.read-tools [data-read-status] { color: var(--muted); font-size: .78rem; }
.lesson-article { padding: 18px 0 24px; font-size: 1.04rem; }
.lesson-article h2 { margin: 42px 0 14px; }
.lesson-article p { color: #425668; line-height: 1.75; }
.lesson-article li { margin: 8px 0; color: #425668; }
.lesson-article code { display: block; padding: 16px 18px; color: #d9fcf5; background: var(--navy); border-radius: 12px; white-space: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.callout { margin: 20px 0; padding: 18px 20px; border-radius: 13px; }
.callout strong { display: block; margin-bottom: 5px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.callout p { margin: 0; color: inherit; }
.callout.warning { color: #73490a; background: var(--warning-soft); border-left: 4px solid #d69b2e; }
.callout.tip { color: #0b5e51; background: #e0f8f2; border-left: 4px solid var(--teal); }
.quiz-card { margin: 24px 0 32px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(25,52,72,.06); }
.quiz-card h2 { margin-top: 8px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { display: flex; align-items: center; gap: 12px; padding: 13px 15px; text-align: left; color: var(--ink); background: #f7fafb; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.quiz-options button:hover { border-color: #93bcb5; background: #f0fbf8; }
.quiz-options button span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; }
.quiz-options button.correct { color: #07574b; border-color: #57c9b3; background: #e5faf5; }
.quiz-options button.wrong { color: #89352d; border-color: #e3a49d; background: #fff0ee; }
.quiz-result { margin-top: 16px; padding: 13px 15px; border-radius: 10px; background: var(--mist); }
.lesson-finish { padding: 24px 0; border-top: 1px solid var(--line); }
.lesson-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; }
.lesson-nav a { max-width: 44%; font-weight: 700; text-decoration: none; }
.lesson-nav a:last-child { text-align: right; }

.project-heading { margin-bottom: 24px; }
.track-switch { width: min(680px,100%); display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 20px; padding: 6px; background: #e7eef0; border-radius: 16px; }
.track-switch a { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 13px 16px; color: #40566a; border: 1px solid transparent; border-radius: 11px; text-decoration: none; }
.track-switch a > span { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.7); border-radius: 10px; }
.track-switch small { color: var(--muted); }
.track-switch a.active { color: var(--ink); background: white; border-color: #cfdbde; box-shadow: 0 5px 14px rgba(18,45,62,.08); }
.environment-note { margin-bottom: 38px; padding: 22px 24px; border-radius: 15px; }
.environment-note > div { display: flex; align-items: flex-start; gap: 15px; }
.environment-note strong { display: block; margin-bottom: 3px; }
.environment-note p { margin: 0; color: inherit; }
.environment-note ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0 57px; padding: 0; list-style-position: inside; font-size: .82rem; font-weight: 700; }
.environment-note.personal { color: #145c52; background: #e1f7f2; border: 1px solid #b7e5db; }
.environment-note.company { color: #314b75; background: #edf2ff; border: 1px solid #ccd8f5; }
.environment-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.75); border-radius: 12px; font-weight: 850; }
.project-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.project-list-heading h2 { margin: 0; font-size: 2rem; }
.project-list-heading > span { color: var(--muted); font-size: .84rem; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.project-card { min-height: 285px; display: flex; flex-direction: column; padding: 24px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 8px 24px rgba(18,45,62,.045); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #a9c7c1; box-shadow: 0 14px 30px rgba(18,45,62,.08); }
.project-card.complete { border-color: #8ed7c8; background: linear-gradient(180deg,#f4fffc,white); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track-chip { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.track-chip.personal { color: #096658; background: #dcf7f1; }
.track-chip.company { color: #355caa; background: #e7edff; }
.project-state { color: var(--muted); font-size: .78rem; font-weight: 750; }
.project-card h2 { margin: 19px 0 8px; font-size: 1.35rem; }
.project-card p { flex: 1; margin-bottom: 20px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project-meta span { padding: 5px 9px; color: #506477; background: #eef3f4; border-radius: 8px; font-size: .76rem; font-weight: 700; }
.project-progress { width: 100%; inline-size: 100%; max-width: none; height: 7px; display: block; margin-top: 16px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; background: #e6edef; }
.project-progress::-webkit-progress-bar { background: #e6edef; border-radius: 999px; }
.project-progress::-webkit-progress-value { background: linear-gradient(90deg,#6b5cf6,#31c5c8); border-radius: 999px; transition: width .22s ease; }
.project-progress::-moz-progress-bar { background: linear-gradient(90deg,#6b5cf6,#31c5c8); border-radius: 999px; }
.project-open { margin-top: 14px; color: var(--teal-dark); font-size: .85rem; }
.project-detail > .success-banner { margin-top: -12px; margin-bottom: 24px; }
.project-hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 34px 38px; color: white; background: linear-gradient(135deg,#0b2a43,#0c6156); border-radius: 24px; box-shadow: var(--shadow); }
.project-hero h1 { max-width: 800px; margin: 14px 0 9px; font-size: clamp(2rem,4vw,3.25rem); }
.project-hero p { max-width: 720px; color: #d1e2e6; }
.project-hero .track-chip.personal { color: #053c35; }
.project-hero .track-chip.company { color: #1d458e; }
.project-hero .project-meta span { color: #dce9ec; background: rgba(255,255,255,.1); }
.project-score { flex: 0 0 auto; width: 135px; height: 135px; display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.08); border: 2px solid rgba(107,231,207,.65); border-radius: 50%; }
.project-score strong { font-size: 1.85rem; }
.project-score span { color: #bcd1d8; font-size: .75rem; }
.project-outcome { display: grid; gap: 4px; margin: 18px 0; padding: 18px 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.project-outcome span { color: var(--teal-dark); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.company-reminder { display: flex; gap: 12px; margin-bottom: 18px; padding: 16px 18px; color: #3e5271; background: #edf2ff; border: 1px solid #ced9f2; border-radius: 13px; }
.company-reminder svg { flex: 0 0 auto; margin-top: 2px; color: #416bc4; }
.company-reminder p { margin: 0; color: inherit; }
.project-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 22px; align-items: start; }
.project-progress.large { height: 10px; margin: 0 0 14px; }
.project-steps { display: grid; gap: 12px; }
.project-step { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 15px; transition: border-color .15s ease, background .15s ease; }
.project-step.done { background: #f2fdf9; border-color: #9fdacd; }
.step-check { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; color: #526779; background: #edf2f4; border: 1px solid #d4dfe2; border-radius: 12px; cursor: pointer; font-weight: 850; }
.project-step.done .step-check { color: #05594c; background: #cdf5eb; border-color: #83d4c3; }
.step-check:disabled { opacity: .6; cursor: wait; }
.step-title-row { display: grid; gap: 2px; }
.step-title-row > span { color: var(--teal-dark); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.step-title-row strong { font-size: 1.08rem; }
.project-step p { margin: 8px 0 0; }
.step-tip { margin-top: 12px; padding: 10px 12px; color: #536677; background: #f3f7f8; border-radius: 9px; font-size: .82rem; }
.step-tip b { margin-right: 7px; color: var(--ink); }
.project-sidebar { display: grid; gap: 16px; }
.project-sidebar > section, .submission-form { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.project-sidebar h2 { margin-bottom: 14px; }
.rubric-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rubric-list li { display: flex; align-items: flex-start; gap: 9px; color: #485d70; font-size: .88rem; }
.rubric-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-dark); }
.submission-form { display: grid; gap: 10px; }
.submission-form p { margin-bottom: 4px; font-size: .86rem; }
.submission-form label { font-size: .8rem; font-weight: 800; }
.submission-form textarea { width: 100%; padding: 12px; color: var(--ink); background: #f7fafb; border: 1px solid #cbd8dc; border-radius: 10px; resize: vertical; }
.submission-form small { color: var(--muted); line-height: 1.4; }
.file-picker { display: grid; gap: 5px; margin: 4px 0; padding: 14px; color: #3e3a78; background: #f2f0ff; border: 1px dashed #bdb5f3; border-radius: 12px; cursor: pointer; }
.file-picker > span { font-weight: 800; }
.file-picker input { width: 100%; margin-top: 7px; color: #596176; font-size: .8rem; }
.file-picker input::file-selector-button { min-height: 36px; margin-right: 10px; padding: 7px 12px; color: #493cc2; background: white; border: 1px solid #d5d0fa; border-radius: 9px; cursor: pointer; font-weight: 750; }
.submitted-files h2 { margin-bottom: 13px; }
.attachment-list { display: grid; gap: 8px; }
.attachment-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; color: var(--ink); background: #f8f8fc; border: 1px solid #e4e5ed; border-radius: 10px; text-decoration: none; }
.attachment-list a:hover { border-color: #c7c1f4; background: #f3f1ff; }
.attachment-list a > span:nth-child(2) { min-width: 0; display: grid; }
.attachment-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.attachment-list small { color: var(--muted); }
.attachment-list b { color: #5749d4; font-size: .75rem; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #5548cf; background: #e8e5ff; border-radius: 9px; font-weight: 850; }
.empty-attachments { margin: 0; padding: 14px; background: #f7f8fb; border-radius: 10px; font-size: .84rem; }

.workshop { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 28px; align-items: start; }
.workshop-heading { max-width: 720px; margin: 64px 0 22px; }
.workshop-heading h2 { margin-bottom: 8px; font-size: 2rem; }
.simulator { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.scenario-picker { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: #f5f9fa; border-bottom: 1px solid var(--line); }
.scenario-picker .card-label { color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.scenario-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.scenario-tabs button { padding: 8px 11px; color: #42586a; background: white; border: 1px solid #cfdcdf; border-radius: 9px; cursor: pointer; font-size: .82rem; }
.scenario-tabs button.active { color: #063d37; background: #dff8f2; border-color: #7bd9c7; font-weight: 750; }
.simulator-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); min-height: 520px; }
.practice-chat { display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--line); }
.chat-top { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.chat-top div { display: grid; }
.chat-top small { color: var(--muted); }
.practice-avatar { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); background: var(--teal); border-radius: 12px; font-size: .78rem; font-weight: 850; }
.chat-messages { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 12px; padding: 22px 0; }
.message { max-width: 82%; padding: 13px 15px; border-radius: 13px; }
.message strong { display: block; margin-bottom: 3px; font-size: .75rem; }
.message p { margin: 0; color: inherit; }
.message.coach, .message.bot { justify-self: start; color: #2c4657; background: #edf4f5; border-bottom-left-radius: 4px; }
.message.user { justify-self: end; color: white; background: #0a6b5d; border-bottom-right-radius: 4px; }
.practice-chat form { padding-top: 16px; border-top: 1px solid var(--line); }
.practice-chat form > label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 750; }
.practice-chat textarea { width: 100%; padding: 13px; color: var(--ink); background: #f8fbfb; border: 1px solid #cbd8dc; border-radius: 11px; resize: vertical; }
.chat-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.chat-submit span { color: var(--muted); font-size: .75rem; }
.coach-panel { display: flex; flex-direction: column; padding: 28px; color: white; background: var(--navy-2); }
.coach-panel .card-label { color: #8ea8b8; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.score-placeholder { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; }
.score-placeholder > span { width: 70px; height: 70px; display: grid; place-items: center; color: #9ab0be; border: 2px dashed #547082; border-radius: 50%; font-size: 1.6rem; }
.score-placeholder p { max-width: 210px; margin: 15px 0 0; color: #a9bdc8; }
.coach-panel [data-coach-result] { margin: auto 0; }
.score-ring-small { width: 92px; height: 92px; display: grid; place-content: center; margin-bottom: 20px; text-align: center; background: rgba(24,198,165,.13); border: 2px solid var(--teal); border-radius: 50%; }
.score-ring-small strong { font-size: 1.6rem; }
.score-ring-small span { color: #a9c6cf; font-size: .75rem; text-transform: uppercase; }
.coach-panel h2 { margin-bottom: 12px; }
.coach-panel ul { padding-left: 19px; color: #c9d8df; }
.coach-panel li { margin: 9px 0; }
.coach-panel .button.ghost { margin-top: 12px; color: white; border-color: #63808f; }
.coach-panel .button.ghost:hover { background: rgba(255,255,255,.07); }
.workshop-form { display: grid; gap: 12px; }
.workshop-form label { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.workshop-form label > span { grid-row: span 2; width: 35px; height: 35px; display: grid; place-items: center; color: var(--teal-dark); background: #ddf7f1; border-radius: 10px; font-weight: 850; }
.workshop-form label div { display: grid; }
.workshop-form small { color: var(--muted); }
.workshop-form input, .workshop-form textarea { grid-column: 2; width: 100%; margin-top: 12px; padding: 11px 12px; color: var(--ink); background: #f7fafb; border: 1px solid #cedadd; border-radius: 9px; resize: vertical; }
.prompt-preview { position: sticky; top: 96px; padding: 26px; color: white; background: var(--navy-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.prompt-paper { min-height: 260px; margin: 17px 0; padding: 19px; color: #193044; background: #f4fbfa; border-radius: 11px; white-space: pre-wrap; line-height: 1.7; }
.prompt-preview p { margin: 14px 0 0; color: #afc2cf; font-size: .82rem; }

.safety-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.safety-card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.safety-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem; font-weight: 700; }
.safety-card.do .safety-symbol { color: #0b6b5d; background: #d9f7ef; }
.safety-card.dont .safety-symbol { color: #9a3f36; background: #ffe7e4; }
.safety-card h2 { margin: 18px 0 12px; }
.safety-card ul { margin: 0; padding-left: 21px; color: #455a6d; }
.safety-card li { margin: 9px 0; }
.decision-card { margin-top: 22px; padding: 30px; color: white; background: var(--navy-2); border-radius: var(--radius); }
.decision-card .eyebrow { color: #72dfca; }
.decision-card ol { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.decision-card li { display: flex; align-items: center; gap: 12px; padding: 13px; background: rgba(255,255,255,.06); border-radius: 10px; }
.decision-card li span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy); background: var(--teal); border-radius: 8px; font-size: .78rem; font-weight: 850; }
.legal-note { margin-top: 22px; padding: 20px 22px; background: #fff9e7; border: 1px solid #eadcae; border-radius: 13px; }
.legal-note p { margin: 5px 0 0; color: #655b3c; }

.help-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.help-actions article { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.help-actions article > span { width: 43px; height: 43px; display: grid; place-items: center; color: var(--teal-dark); background: #def7f1; border-radius: 12px; }
.help-actions h2 { margin-bottom: 7px; font-size: 1.15rem; }
.help-actions p { margin: 0; }
.restart-tour { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; color: var(--ink); background: #edf4f5; border: 1px solid #cfdddf; border-radius: 11px; cursor: pointer; font-weight: 750; }
.troubleshooting, .glossary { margin-top: 52px; }
.details-list { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.details-list details { border-bottom: 1px solid var(--line); }
.details-list details:last-child { border-bottom: 0; }
.details-list summary { padding: 17px 20px; cursor: pointer; font-weight: 750; }
.details-list p { margin: 0; padding: 0 20px 18px; max-width: 760px; }
.glossary-search input { width: min(260px,42vw); padding: 10px 12px; border: 1px solid #cbd8dc; border-radius: 10px; }
.glossary-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.glossary-grid article { padding: 19px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.glossary-grid h3 { margin-bottom: 7px; font-size: 1rem; }
.glossary-grid p { margin: 0; }
.empty-glossary { padding: 20px; background: white; border-radius: 12px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: var(--navy); }
.login-layout { width: min(1040px,100%); overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; background: white; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.login-story { position: relative; overflow: hidden; min-height: 620px; display: flex; flex-direction: column; justify-content: center; padding: 62px; color: white; background: linear-gradient(145deg,#0c2a43,#0e594f); }
.login-story::after { content: ""; position: absolute; width: 420px; height: 420px; right: -200px; bottom: -210px; border: 80px solid rgba(24,198,165,.18); border-radius: 50%; }
.auth-brand { position: absolute; top: 38px; left: 48px; }
.login-story .eyebrow { color: #7fe8d5; }
.login-story h1 { max-width: 580px; font-size: clamp(2.4rem,5vw,4.1rem); }
.login-story p { max-width: 540px; color: #cedbe3; font-size: 1.08rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; color: #d9e7ec; font-size: .85rem; }
.trust-row span { display: flex; align-items: center; gap: 5px; }
.trust-row svg { color: var(--teal); }
.auth-card { align-self: center; padding: 48px; background: white; }
.auth-card h2 { margin-bottom: 6px; font-size: 2rem; }
.form-stack { display: grid; gap: 17px; margin-top: 24px; }
.form-stack label, .editor-form label { display: grid; gap: 6px; color: #314659; font-size: .88rem; font-weight: 750; }
.form-stack label span, .editor-form label span { color: var(--muted); font-size: .75rem; font-weight: 500; }
.form-stack input, .editor-form input, .editor-form textarea, .editor-form select { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #cbd8dd; border-radius: 9px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--teal-dark)!important; box-shadow: 0 0 0 3px rgba(24,198,165,.14); }
.small-note { margin: 20px 0 0; font-size: .78rem; text-align: center; }
.form-error, .success-banner { margin: 18px 0; padding: 12px 14px; border-radius: 9px; font-size: .88rem; }
.form-error { color: #8d332a; background: var(--danger-soft); border: 1px solid #f0c1bb; }
.success-banner { color: #07594d; background: #e0f8f2; border: 1px solid #b0e9dc; }
.setup-card { width: min(560px,100%); border-radius: 20px; box-shadow: var(--shadow); }
.auth-intro h1 { font-size: 2.4rem; }

.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; align-items: start; }
.admin-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 13px; margin-bottom: 22px; }
.admin-stats article { display: grid; gap: 4px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.admin-stats span { color: var(--muted); font-size: .78rem; }
.admin-stats strong { font-size: 1.65rem; }
.admin-panel { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; }
.panel-heading span { color: var(--muted); font-size: .82rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .86rem; }
th { color: var(--muted); background: #f8fafb; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 2px; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.pill.ok { color: #086151; background: #dff8f1; }
.pill.off { color: #7b5360; background: #f4e9ed; }
.tiny-button { padding: 5px 8px; color: var(--ink); background: white; border: 1px solid #cad6da; border-radius: 7px; cursor: pointer; font-size: .75rem; }
.tiny-button.add-lesson { padding: 7px 10px; color: var(--teal-dark); text-decoration: none; font-weight: 800; }
.user-actions { display: flex; align-items: flex-start; gap: 7px; }
.user-actions details { position: relative; }
.user-actions summary { list-style: none; padding: 5px 8px; border: 1px solid #cad6da; border-radius: 7px; cursor: pointer; font-size: .75rem; white-space: nowrap; }
.user-actions summary::-webkit-details-marker { display: none; }
.user-actions details form { position: absolute; z-index: 5; right: 0; top: 32px; width: 230px; display: grid; gap: 8px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.user-actions details input { width: 100%; padding: 8px; border: 1px solid #cbd8dd; border-radius: 7px; }
.create-panel { padding: 24px; }
.create-panel h2 { margin-bottom: 0; }
.form-stack.compact { gap: 12px; margin-top: 18px; }
.lessons-panel { margin-top: 22px; }
.admin-lessons a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 22px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.admin-lessons a:last-child { border-bottom: 0; }
.admin-lessons a:hover { background: #f8fbfb; }
.admin-lessons div { display: grid; }
.admin-lessons small { color: var(--muted); }
.order-badge { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); background: #eef3f4; border-radius: 8px; font-size: .75rem; }
.editor-form { display: grid; gap: 24px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.editor-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.editor-form .check-label { align-content: center; grid-template-columns: auto 1fr; }
.editor-form .check-label input { width: auto; }
.editor-form textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; line-height: 1.6; }
.editor-form fieldset { display: grid; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.editor-form legend { padding: 0 8px; font-weight: 800; }
.editor-form > .button { justify-self: start; }
.state-card { max-width: 560px; margin: 10vh auto; padding: 40px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.state-icon { width: 50px; height: 50px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--danger); background: var(--danger-soft); border-radius: 50%; font-size: 1.4rem; font-weight: 800; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 340px; padding: 12px 16px; color: white; background: var(--navy); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.tour-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,18,31,.72); backdrop-filter: blur(5px); }
.tour-card { position: relative; width: min(460px,100%); padding: 34px; background: white; border-radius: 21px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.tour-close { position: absolute; top: 15px; right: 17px; width: 34px; height: 34px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
.tour-step { color: var(--muted); font-size: .75rem; font-weight: 750; }
.tour-visual { width: 74px; height: 74px; display: grid; place-items: center; margin: 25px 0 20px; color: var(--navy); background: var(--teal); border-radius: 22px; font-size: 2rem; font-weight: 850; }
.tour-card h2 { margin-bottom: 9px; font-size: 2rem; }
.tour-card p { min-height: 74px; }
.tour-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 25px; }

/* 2026 visual system: calm learning workspace */
:focus-visible { outline: 3px solid rgba(91,78,232,.28); outline-offset: 2px; }
.button { min-height: 46px; padding: 11px 18px; border-radius: 12px; font-weight: 780; box-shadow: none; }
.button.primary { color: white; background: linear-gradient(135deg,#7161fb,#5147d7); box-shadow: 0 9px 22px rgba(83,70,215,.22); }
.button.primary:hover { background: linear-gradient(135deg,#7b6cff,#5b50e3); box-shadow: 0 12px 28px rgba(83,70,215,.27); }
.button.light { color: #383064; background: white; box-shadow: 0 7px 20px rgba(16,20,44,.13); }
.button.ghost { color: #4e566b; background: white; border-color: #dfe2ea; }
.button.ghost:hover { background: #f5f6fa; }

.welcome { min-height: 270px; padding: 42px 46px; background: radial-gradient(circle at 86% 18%,rgba(61,205,207,.34),transparent 24%), linear-gradient(135deg,#1a1e36 0%,#34306b 55%,#554bd2 100%); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 22px 50px rgba(32,30,87,.17); }
.welcome::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.75) .7px,transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(90deg,transparent 20%,black); }
.welcome::after { right: -95px; top: -155px; width: 390px; height: 390px; border: 72px solid rgba(255,255,255,.08); }
.welcome .eyebrow { color: #89eff0; }
.welcome p { color: #d9dcf0; }
.progress-ring { box-shadow: 0 0 0 9px rgba(255,255,255,.05); border-radius: 50%; }
.progress-ring span { color: #d5d7ec; }
.dashboard-grid { gap: 18px; }
.continue-card { background: linear-gradient(150deg,#5d4ee8,#7469f5); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 16px 38px rgba(72,60,185,.18); }
.continue-card .module-label { color: #dcdaff; }
.continue-card p { color: #efefff; }
.quick-stack { gap: 12px; }
.quick-card { padding: 19px; border-color: #e2e4ed; border-radius: 16px; box-shadow: var(--shadow-soft); }
.quick-card:hover { border-color: #c9c5fa; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(42,39,93,.09); }
.quick-icon { color: #5749d8!important; background: #eceaff; }
.quick-icon.shield { color: #247e87!important; background: #e2f7f7; }
.section-block { margin-top: 42px; }
.recent-list, .achievement { border-color: #e3e5ed; box-shadow: var(--shadow-soft); }
.status-dot.complete, .achievement.unlocked > span { color: #4639c0; background: #e7e4ff; }
.badge-grid { grid-template-columns: repeat(5,1fr); }
.achievement { min-width: 0; padding: 16px; }

.module-section { grid-template-columns: 58px 1fr; border-color: #e0e3ec; }
.module-number { color: #adb1bf; font-weight: 650; }
.lesson-list { gap: 9px; }
.lesson-row { padding: 18px 20px; border-color: #e1e4ec; border-radius: 15px; box-shadow: 0 2px 10px rgba(38,43,76,.025); }
.lesson-row:hover { border-color: #bfb9f7; box-shadow: 0 10px 26px rgba(46,42,99,.07); transform: translateX(2px); }
.lesson-state.complete { color: #4437bd; background: #e6e3ff; }
.lesson-state.started { color: #7e5609; background: #fff1c9; }
.lesson-article code { color: #f0efff; background: #20243b; }
.callout.tip { color: #40379c; background: #efedff; border-left-color: #6d5dfc; }
.quiz-card { border-color: #e1e3ec; box-shadow: 0 12px 34px rgba(39,42,78,.065); }
.quiz-options button { background: #f8f8fc; border-color: #e1e3eb; }
.quiz-options button:hover { border-color: #ada5f4; background: #f1efff; }
.quiz-options button.correct { color: #4035a7; border-color: #a69cf4; background: #ece9ff; }

.track-switch { background: #ebedf3; }
.track-switch a.active { border-color: #d7d4fb; box-shadow: 0 5px 16px rgba(52,46,118,.08); }
.track-chip.personal { color: #4538bd; background: #e8e5ff; }
.track-chip.company { color: #246c79; background: #e0f6f7; }
.environment-note.personal { color: #43399b; background: #f0efff; border-color: #dcd8ff; }
.environment-note.company { color: #31546e; background: #edf8fa; border-color: #cee9ed; }
.project-card { border-color: #e1e4ec; box-shadow: var(--shadow-soft); }
.project-card:hover { border-color: #bbb5f4; box-shadow: 0 14px 32px rgba(41,37,93,.09); }
.project-card.complete { border-color: #b8b1f4; background: linear-gradient(180deg,#f8f7ff,white); }
.project-open { color: #584bd9; }
.project-hero { background: radial-gradient(circle at 90% 15%,rgba(47,203,203,.35),transparent 27%), linear-gradient(135deg,#1c2038,#37316f 58%,#5c50d8); box-shadow: 0 22px 48px rgba(34,31,92,.16); }
.project-hero .track-chip.personal { color: #4338a7; }
.project-hero .track-chip.company { color: #216674; }
.project-score { border-color: rgba(91,229,223,.7); }
.company-reminder { color: #31546e; background: #edf8fa; border-color: #cee9ed; }
.company-reminder svg { color: #298a93; }
.project-step, .project-sidebar > section, .submission-form, .project-outcome { border-color: #e1e4ec; box-shadow: var(--shadow-soft); }
.project-step.done { background: #f5f3ff; border-color: #bcb5f3; }
.project-step.done .step-check { color: #4438b7; background: #e6e2ff; border-color: #b5acf4; }
.step-title-row > span, .project-outcome span { color: #5a4ddb; }
.rubric-list svg { color: #6254e6; }

.simulator { border-color: #e0e3ec; box-shadow: 0 16px 42px rgba(38,41,78,.09); }
.scenario-picker { background: #f7f7fb; }
.scenario-tabs button.active { color: #4036a7; background: #e9e6ff; border-color: #b9b1f3; }
.practice-avatar { color: white; background: linear-gradient(145deg,#6f5ff6,#4e78ec); }
.message.coach, .message.bot { color: #414a62; background: #f0f2f7; }
.message.user { background: #5a4dda; }
.coach-panel { background: linear-gradient(160deg,#20243b,#30305d); }
.score-ring-small { background: rgba(99,84,231,.2); border-color: #8478ff; }
.workshop-form label { border-color: #e1e4ec; box-shadow: var(--shadow-soft); }
.workshop-form label > span { color: #5145cf; background: #e9e7ff; }
.prompt-preview { background: linear-gradient(155deg,#20243b,#343164); }
.prompt-paper { color: #252a40; background: #f7f7fc; }

.safety-card, .help-actions article, .details-list, .glossary-grid article { border-color: #e1e4ec; box-shadow: var(--shadow-soft); }
.safety-card.do .safety-symbol { color: #4338b1; background: #e9e6ff; }
.decision-card { background: linear-gradient(140deg,#20243b,#343164); }
.decision-card .eyebrow { color: #87e7e6; }
.decision-card li span { color: white; background: #6d5dfc; }
.help-actions article > span { color: #5649d5; background: #eae8ff; }
.restart-tour { background: #f1f0ff; border-color: #dcd8ff; }

.auth-shell { background: radial-gradient(circle at 15% 10%,rgba(87,75,216,.35),transparent 32%),#15192b; }
.login-layout { border: 1px solid rgba(255,255,255,.1); box-shadow: 0 36px 100px rgba(0,0,0,.34); }
.login-story { background: radial-gradient(circle at 20% 20%,rgba(50,203,204,.27),transparent 30%), linear-gradient(145deg,#1a1e36,#3c347b); }
.login-story::after { border-color: rgba(255,255,255,.08); }
.login-story .eyebrow { color: #8ee8e8; }
.trust-row svg { color: #63ded9; }
.form-stack input, .editor-form input, .editor-form textarea, .editor-form select { min-height: 45px; background: #fafafd; border-color: #dfe2ea; border-radius: 11px; }
input:focus, textarea:focus, select:focus { border-color: #7669ea!important; box-shadow: 0 0 0 4px rgba(109,93,252,.13); }

.admin-heading { display: flex; align-items: end; justify-content: space-between; }
.admin-stats { gap: 12px; }
.admin-stats article { position: relative; overflow: hidden; min-height: 116px; justify-content: space-between; padding: 19px 20px; border-color: #e1e4ec; border-radius: 16px; box-shadow: var(--shadow-soft); }
.admin-stats article::after { content: ""; position: absolute; right: -17px; bottom: -22px; width: 62px; height: 62px; border: 13px solid #efedff; border-radius: 50%; }
.admin-stats article:nth-child(2)::after { border-color: #e5f7f7; }
.admin-stats article:nth-child(3)::after { border-color: #e8efff; }
.admin-stats article:nth-child(4)::after { border-color: #f0eaff; }
.admin-stats article:nth-child(5)::after { border-color: #fff0dc; }
.admin-stats span { position: relative; z-index: 1; font-size: .8rem; font-weight: 700; }
.admin-stats strong { position: relative; z-index: 1; font-size: 2rem; }
.admin-panel { border-color: #e1e4ec; box-shadow: var(--shadow-soft); }
.panel-heading { background: #fcfcfe; }
th { color: #777e91; background: #f6f7fa; font-size: .75rem; }
th, td { padding: 15px 17px; }
tbody tr:hover { background: #fafaff; }
.pill.ok { color: #4237a6; background: #e8e5ff; }
.tiny-button, .user-actions summary { min-height: 32px; color: #51596c; background: #fafafd; border-color: #dfe2e9; border-radius: 9px; }
.tiny-button:hover, .user-actions summary:hover { color: #4539bf; background: #efedff; border-color: #cbc5fa; }
.tiny-button.add-lesson { color: #5144d1; background: #eeecff; border-color: #d7d2ff; }
.order-badge { color: #5147b0; background: #eceaff; border-radius: 9px; font-weight: 800; }
.admin-lessons a:hover { background: #f8f7ff; }
.editor-form { border-color: #e1e4ec; box-shadow: var(--shadow-soft); }
.toast { background: #20243b; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 16px 44px rgba(17,20,40,.24); }
.tour-overlay { background: rgba(19,21,41,.68); }
.tour-card { border: 1px solid rgba(255,255,255,.8); box-shadow: 0 32px 90px rgba(20,21,42,.3); }
.tour-visual { color: white; background: linear-gradient(145deg,#6f5ff6,#4f7cff); }
.homework-panel { margin-top: 22px; }
.homework-reviews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 18px; background: #f8f9fc; }
.homework-review { min-width: 0; padding: 20px; background: white; border: 1px solid #e1e4ec; border-radius: 15px; box-shadow: var(--shadow-soft); }
.homework-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid #eceef3; }
.homework-review h3 { margin: 9px 0 4px; font-size: 1.08rem; }
.homework-review header p { margin: 0; font-size: .8rem; }
.homework-review time { flex: 0 0 auto; color: var(--muted); font-size: .75rem; }
.review-prompt { margin-top: 15px; }
.review-prompt > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.review-prompt > div > span { color: #5a4dd3; font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.review-prompt pre { max-height: 190px; overflow: auto; margin: 0; padding: 13px; color: #30364b; background: #f5f5fb; border: 1px solid #e5e5f0; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: .8rem/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
.review-note { margin-top: 13px; padding: 12px 13px; background: #fbfbfd; border-radius: 10px; }
.review-note strong { font-size: .8rem; }
.review-note p { margin: 5px 0 0; white-space: pre-wrap; font-size: .84rem; }
.review-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.review-files a { min-width: 180px; flex: 1 1 190px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 9px; color: var(--ink); background: #f8f8fc; border: 1px solid #e3e4ed; border-radius: 10px; text-decoration: none; }
.review-files a > span:last-child { min-width: 0; display: grid; }
.review-files strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.review-files small { color: var(--muted); }
.missing-content { margin: 14px 0 0; color: #8a6370; font-size: .82rem; }
.empty-homework { padding: 32px; text-align: center; }
.empty-homework p { margin: 5px 0 0; }
.live-prompt-check { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.live-prompt-check span { padding: 5px 9px; color: #7a8191; background: #f1f2f6; border: 1px solid #e1e3e9; border-radius: 999px; font-size: .75rem; font-weight: 750; transition: .18s ease; }
.live-prompt-check span.met { color: #3f35a4; background: #e9e6ff; border-color: #c4bdf5; }
.setup-lab { margin-top: 58px; overflow: hidden; background: white; border: 1px solid #e0e3ec; border-radius: 22px; box-shadow: var(--shadow); }
.setup-lab > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 30px; border-bottom: 1px solid var(--line); }
.setup-lab > header h2 { margin-bottom: 6px; }
.setup-lab > header p { margin: 0; }
.setup-lab-score { flex: 0 0 auto; min-width: 92px; display: grid; padding: 12px 15px; text-align: center; color: #4d42bf; background: #eeecff; border-radius: 13px; }
.setup-lab-score span { color: var(--muted); font-size: .75rem; }
.setup-lab-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); min-height: 440px; }
.mock-window { margin: 26px; overflow: hidden; background: #f4f6fb; border: 1px solid #cfd4df; border-radius: 14px; box-shadow: 0 18px 40px rgba(28,34,61,.12); }
.mock-window-bar { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 13px; background: #24293f; }
.mock-window-bar > span { width: 9px; height: 9px; background: #65708d; border-radius: 50%; }
.mock-window-bar > span:first-child { background: #f07178; }
.mock-window-bar > span:nth-child(2) { background: #e8b44d; }
.mock-window-bar > span:nth-child(3) { background: #55c692; }
.mock-window-bar strong { margin-left: 8px; color: #d9deed; font-size: .75rem; }
.mock-screen { min-height: 370px; display: grid; place-items: center; padding: 34px; }
.mock-browser,.mock-download,.mock-dialog,.mock-signin,.mock-permission { width: min(500px,100%); display: grid; gap: 11px; }
.mock-address { padding: 10px 13px; color: #72798b; background: white; border: 1px solid #dce0e8; border-radius: 9px; font-size: .8rem; }
.mock-screen button { display: grid; gap: 2px; width: 100%; padding: 13px 15px; text-align: left; color: var(--ink); background: white; border: 1px solid #dce0e8; border-radius: 11px; cursor: pointer; }
.mock-screen button:hover { border-color: #aaa2ef; background: #f4f2ff; }
.mock-screen button.correct { color: #393093; background: #e8e5ff; border-color: #9f96ed; }
.mock-screen button.wrong { color: #8b3846; background: #fff0f2; border-color: #e6a9b2; }
.mock-screen button small { color: var(--muted); }
.mock-screen h3 { margin: 0 0 5px; }
.mock-screen p { margin-bottom: 8px; }
.shield-mark { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: #5478e8; border-radius: 50%; font-size: 1.45rem; font-weight: 850; }
.setup-coach { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; color: white; background: linear-gradient(155deg,#222740,#353268); }
.setup-coach .card-label { color: #a8adcd; }
.setup-coach h3 { margin: 30px 0 10px; font-size: 1.4rem; }
.setup-coach p { color: #cbd0e3; }
.setup-feedback { margin: auto 0 16px; padding: 13px 14px; border-radius: 11px; }
.setup-feedback.correct { color: #c9fff0; background: rgba(59,201,158,.16); border: 1px solid rgba(111,229,193,.3); }
.setup-feedback.wrong { color: #ffdadd; background: rgba(207,75,95,.16); border: 1px solid rgba(236,131,146,.3); }
.setup-coach .button { margin-top: auto; }
.setup-coach .button.ghost { margin-top: 10px; color: white; background: transparent; border-color: #626b91; }
.setup-complete { text-align: center; }
.setup-complete > span { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 18px; color: white; background: #6456e9; border-radius: 50%; font-size: 1.7rem; }

.safety-game { margin-bottom: 24px; padding: 28px; color: white; background: radial-gradient(circle at 90% 10%,rgba(37,198,199,.25),transparent 28%),linear-gradient(145deg,#20243c,#37316c); border-radius: 22px; box-shadow: 0 18px 44px rgba(32,34,74,.15); }
.safety-game > header { display: flex; justify-content: space-between; gap: 20px; }
.safety-game .eyebrow { color: #86e7e5; }
.safety-game h2 { margin-bottom: 18px; }
.safety-game-progress { display: grid; align-content: start; text-align: right; }
.safety-game-progress span { color: #9ee8e5; }
.safety-scenario { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.11); border-radius: 15px; }
.scenario-icon { min-width: 52px; height: 52px; display: grid; place-items: center; padding: 0 7px; color: #28244e; background: #83e2df; border-radius: 13px; font-size: .72rem; font-weight: 900; }
.safety-scenario h3 { margin-bottom: 6px; font-size: 1.25rem; }
.safety-scenario p { margin: 0; color: #d7daea; }
.safety-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.safety-choices button { min-height: 68px; padding: 12px; color: #e8eaf4; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; cursor: pointer; }
.safety-choices button:hover { background: rgba(255,255,255,.12); }
.safety-choices button.correct { color: #caffef; background: rgba(63,201,158,.2); border-color: rgba(110,228,193,.6); }
.safety-choices button.wrong { color: #ffd9df; background: rgba(207,75,95,.2); border-color: rgba(237,126,143,.6); }
.safety-answer { margin-top: 14px; padding: 14px 16px; border-radius: 12px; }
.safety-answer.correct { background: rgba(62,196,155,.16); }
.safety-answer.wrong { background: rgba(203,76,96,.17); }
.safety-answer p { margin: 4px 0 0; color: #e0e2ee; }
.safety-game > .button { margin-top: 15px; }
.safety-game > .button.ghost { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

.student-feedback { border-width: 1px 1px 1px 4px!important; }
.student-feedback.submitted { border-left-color: #5b78df!important; }
.student-feedback.changes_requested { border-left-color: #df8d35!important; background: #fffaf2!important; }
.student-feedback.accepted { border-left-color: #4ebd91!important; background: #f4fcf8!important; }
.feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.feedback-heading span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.feedback-heading strong { color: #5044c7; font-size: .8rem; }
.feedback-grade { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; }
.feedback-grade b { font-size: 2rem; }
.feedback-grade span { color: var(--muted); font-size: .78rem; }
.student-feedback p { margin-bottom: 8px; white-space: pre-wrap; }
.student-feedback > small { color: var(--muted); }
.pill.review-submitted { color: #3453aa; background: #e5ecff; }
.pill.review-changes_requested { color: #87520f; background: #fff0d9; }
.pill.review-accepted { color: #2e795d; background: #dff7ec; }
.review-form { display: grid; gap: 10px; margin-top: 16px; padding-top: 15px; border-top: 1px solid #e7e9f0; }
.review-form > div { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.review-form label { display: grid; gap: 5px; color: #4d5569; font-size: .78rem; font-weight: 750; }
.review-form select,.review-form input,.review-form textarea { width: 100%; padding: 9px 10px; color: var(--ink); background: #fafafd; border: 1px solid #dfe2ea; border-radius: 9px; }
.review-form textarea { resize: vertical; }
.review-form .button { justify-self: start; min-height: 40px; }
.project-editor textarea { font-family: inherit; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar, html[data-textsize] .sidebar { position: fixed; z-index: 30; inset: 76px auto 0 0; width: 280px; height: auto; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 22px 0 45px rgba(24,27,53,.14); }
  .sidebar.open { transform: none; }
  .menu-button { display: block; order: -1; }
  .topbar { padding: 0 18px; }
  .topbar .brand { margin-right: auto; margin-left: 10px; }
  .account > span { display: none; }
  .main { padding: 38px 28px 70px; }
  .dashboard-grid, .workshop, .admin-grid, .simulator-grid, .project-workspace, .setup-lab-grid { grid-template-columns: 1fr; }
  .practice-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .coach-panel { min-height: 340px; }
  .badge-grid, .admin-stats { grid-template-columns: repeat(2,1fr); }
  .homework-reviews { grid-template-columns: 1fr; }
  .setup-coach { min-height: 300px; }
  .prompt-preview { position: static; }
  .project-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-layout { grid-template-columns: 1fr; max-width: 620px; }
  .login-story { min-height: 420px; padding: 100px 48px 48px; }
  .auth-card { width: 100%; }
}

@media (max-width: 620px) {
  :root { font-size: 16px; }
  .main { padding: 28px 18px 60px; }
  .welcome { min-height: 0; align-items: flex-start; flex-direction: column; padding: 30px 25px; }
  .progress-ring { width: 82px; height: 82px; }
  .progress-ring strong { font-size: 1rem; }
  .progress-ring span { display: none; }
  .module-section { grid-template-columns: 1fr; gap: 8px; }
  .module-number { font-size: 1.2rem; }
  .lesson-row { grid-template-columns: auto 1fr auto; padding: 15px; }
  .lesson-time { display: none; }
  .lesson-row p { display: none; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav a, .lesson-nav a:last-child { max-width: none; text-align: left; }
  .safety-grid, .decision-card ol, .editor-grid { grid-template-columns: 1fr; }
  .project-grid, .project-sidebar { grid-template-columns: 1fr; }
  .project-hero { align-items: flex-start; flex-direction: column; padding: 27px 24px; }
  .project-score { width: 92px; height: 92px; }
  .project-score strong { font-size: 1.25rem; }
  .environment-note ul { margin-left: 0; }
  .track-switch { grid-template-columns: 1fr; }
  .help-actions, .glossary-grid, .badge-grid, .admin-stats { grid-template-columns: 1fr; }
  .scenario-picker { align-items: flex-start; flex-direction: column; }
  .scenario-tabs { justify-content: flex-start; }
  .scenario-tabs button { flex: 1 1 45%; }
  .safety-choices { grid-template-columns: 1fr; }
  .chat-submit { align-items: stretch; flex-direction: column; }
  .chat-submit .button { width: 100%; }
  .tour-link { display: none; }
  .auth-shell { padding: 0; align-items: stretch; }
  .login-layout { min-height: 100vh; border-radius: 0; }
  .login-story { min-height: 370px; padding: 92px 28px 34px; }
  .auth-brand { top: 26px; left: 28px; }
  .auth-card { padding: 34px 28px; }
  .account { gap: 8px; }
  .brand-copy small { display: none; }
  .link-button { padding-inline: 6px; }
  .admin-lessons a { grid-template-columns: auto 1fr auto; }
  .admin-lessons .pill { display: none; }
}

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

/* Feladatkiosztás, Skill-labor és kattintós oktatók */
.sidebar { overflow-y: auto; }
.assignment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.assignment-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: -13px 0 22px; }
.assignment-summary span { padding: 9px 12px; color: #596174; background: white; border: 1px solid #e1e4ec; border-radius: 10px; font-size: .8rem; }
.assignment-summary b { margin-right: 4px; color: #4d40c2; font-size: 1rem; }
.assignment-card { display: flex; flex-direction: column; min-height: 260px; padding: 24px; color: var(--ink); background: white; border: 1px solid #e1e4ec; border-radius: 18px; box-shadow: var(--shadow-soft); text-decoration: none; }
.assignment-card:hover { transform: translateY(-2px); border-color: #afa8eb; }
.assignment-card-top,.assignment-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-kind { display: inline-flex; width: max-content; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: .72rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.activity-kind.task { color: #17634f; background: #ddf7ec; }
.activity-kind.exam { color: #684318; background: #fff0d5; }
.activity-kind.project { color: #4338b1; background: #e9e6ff; }
.assignment-card h2 { margin: 21px 0 8px; }
.assignment-card p { flex: 1; }
.assignment-meta { flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.assignment-meta strong { color: #3e465d; }
.assignment-status { display: inline-flex; width: max-content; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.assignment-status.active { color: #3f34ae; background: #ece9ff; }
.assignment-status.waiting { color: #2857a5; background: #e5edff; }
.assignment-status.warning { color: #8c5611; background: #fff0d7; }
.assignment-status.late { color: #9c3d44; background: #ffe7e9; }
.assignment-status.done { color: #17634f; background: #ddf7ec; }
.assignment-hero { display: flex; justify-content: space-between; align-items: start; gap: 26px; margin-bottom: 22px; padding: 31px 34px; color: white; background: radial-gradient(circle at 92% 0,rgba(115,98,255,.34),transparent 32%),linear-gradient(145deg,#20243c,#34305e); border-radius: 22px; }
.assignment-hero .eyebrow { color: #8be0dc; }
.assignment-hero h1 { margin-bottom: 10px; font-size: clamp(1.9rem,4vw,3rem); }
.assignment-hero p,.assignment-hero .assignment-meta { color: #d4d8e7; }
.assignment-hero .assignment-meta strong { color: white; }
.assignment-detail-grid { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 22px; align-items: start; }
.assignment-project-card,.message-panel { padding: 25px; background: white; border: 1px solid #e1e4ec; border-radius: 18px; box-shadow: var(--shadow-soft); }
.assignment-project-card h2 { margin: 18px 0 8px; }
.message-panel > header { border-bottom: 1px solid var(--line); }
.message-thread { max-height: 520px; overflow: auto; display: grid; gap: 10px; padding: 18px 0; }
.thread-message { max-width: 88%; padding: 14px 16px; background: #f2f4f8; border-radius: 14px 14px 14px 4px; }
.thread-message.teacher { justify-self: end; background: #ece9ff; border-radius: 14px 14px 4px 14px; }
.thread-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.thread-message header span { color: var(--muted); font-size: .7rem; }
.thread-message p { margin: 0; color: #40485b; white-space: pre-wrap; }
.empty-thread { margin: 0; padding: 18px; color: var(--muted); background: #f7f8fb; border: 1px dashed #d7dae4; border-radius: 12px; text-align: center; }
.message-form { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.message-form label { font-size: .8rem; font-weight: 800; }
.message-form textarea { width: 100%; padding: 12px; border: 1px solid #ced3df; border-radius: 11px; resize: vertical; }
.message-form .button { justify-self: end; }
.compact-state { min-height: 330px; }
.admin-assignment-grid { margin-top: 22px; }
.activity-admin-panel { margin-top: 22px; }
.admin-activity-list a { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 15px 22px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.admin-activity-list a:last-child { border-bottom: 0; }
.admin-activity-list a:hover { background: #f8f7ff; }
.admin-activity-list a > div { min-width: 0; display: grid; }
.admin-activity-list small,.admin-activity-list time { color: var(--muted); font-size: .76rem; }
.admin-assignments a { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 15px 22px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.admin-assignments a:last-child { border-bottom: 0; }
.admin-assignments a:hover { background: #f8f7ff; }
.admin-assignments a > div { min-width: 0; display: grid; }
.admin-assignments small,.admin-assignments a > span { color: var(--muted); font-size: .76rem; }
.create-panel select,.create-panel textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: white; border: 1px solid #ccd4dc; border-radius: 9px; }

.activity-builder { display: grid; grid-template-columns: minmax(320px,.72fr) minmax(0,1.28fr); gap: 22px; align-items: start; }
.activity-builder-main,.question-builder,.activity-task-form,.activity-admin-review,.exam-sheet { padding: 26px; background: white; border: 1px solid #e1e4ec; border-radius: 18px; box-shadow: var(--shadow-soft); }
.activity-builder-main { display: grid; gap: 17px; }
.activity-builder-main > label,.exam-settings label,.question-editor-card label,.activity-task-form label { display: grid; gap: 7px; color: #424a60; font-size: .82rem; font-weight: 800; }
.activity-builder-main input,.activity-builder-main select,.activity-builder-main textarea,.question-editor-card input,.question-editor-card select,.question-editor-card textarea,.activity-task-form textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fafafd; border: 1px solid #d7dbe5; border-radius: 10px; resize: vertical; }
.activity-builder-main .button { justify-self: start; }
.exam-settings { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding: 15px; background: #f5f4ff; border: 1px solid #e1defa; border-radius: 12px; }
.question-builder { overflow: hidden; padding: 0; }
.question-editor-card { display: grid; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.question-editor-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-editor-card > header > div { display: flex; gap: 6px; }
.question-option-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.question-bottom { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: start; }
.question-builder-empty { margin: 20px; padding: 18px; color: var(--muted); background: #f8f8fb; border: 1px dashed #d5d8e2; border-radius: 11px; text-align: center; }
.activity-hero .activity-kind { margin-bottom: 13px; }
.activity-task-form,.activity-admin-review { max-width: 920px; margin: 0 auto; }
.activity-task-form > h2,.activity-admin-review > h2 { margin-bottom: 18px; }
.activity-task-form form { display: grid; gap: 12px; }
.activity-task-form .button { justify-self: start; }
.activity-response { margin-bottom: 18px; padding: 18px; color: #394156; background: #f7f8fb; border: 1px solid #e2e4eb; border-radius: 12px; white-space: pre-wrap; line-height: 1.65; }
.exam-result { max-width: 920px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto 18px; padding: 20px 24px; border-radius: 15px; }
.exam-result > div { display: grid; }
.exam-result > div span { font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.exam-result > div strong { font-size: 2.2rem; }
.exam-result p { margin: 0; }
.exam-result.passed { color: #17604e; background: #ddf7ec; border: 1px solid #b5e7d7; }
.exam-result.failed { color: #805017; background: #fff2dc; border: 1px solid #edd6ad; }
.exam-sheet { max-width: 920px; margin: 0 auto; }
.exam-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.exam-sheet-head h2 { margin: 0; }
.exam-sheet-head > div:last-child { display: grid; min-width: 120px; text-align: right; }
.exam-sheet-head > div:last-child strong { color: #5547cf; font-size: 1.65rem; }
.exam-sheet-head > div:last-child span,.exam-sheet-head > div:last-child small { color: var(--muted); font-size: .72rem; }
.exam-question { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); }
.exam-question legend { width: 100%; display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.exam-question legend span { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; color: #5146b9; background: #eceaff; border-radius: 9px; font-size: .76rem; }
.exam-options { display: grid; gap: 9px; margin-top: 15px; }
.exam-options label { display: flex; align-items: center; gap: 11px; padding: 12px 14px; color: #424b60; background: #f8f9fb; border: 1px solid #e0e3ea; border-radius: 11px; cursor: pointer; }
.exam-options label:has(input:checked) { border-color: #8b80e8; background: #f0eeff; }
.exam-options label > span { width: 27px; height: 27px; display: grid; place-items: center; background: white; border: 1px solid #d8dbe4; border-radius: 7px; font-size: .75rem; font-weight: 850; }
.exam-options label.correct-option { color: #17604e; background: #e5f9f1; border-color: #91d6bf; }
.exam-options label.wrong-option { color: #8a3940; background: #fff0f1; border-color: #e5aeb3; }
.exam-explanation { margin-top: 11px; padding: 12px 14px; background: #f2f3f8; border-radius: 10px; }
.exam-explanation p { margin: 4px 0 0; font-size: .86rem; }
.exam-sheet form > .button { margin-top: 22px; }

.skill-lab { display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.82fr); gap: 22px; align-items: start; }
.skill-builder,.skill-preview { padding: 26px; background: white; border: 1px solid #e1e4ec; border-radius: 19px; box-shadow: var(--shadow-soft); }
.skill-builder { display: grid; gap: 17px; }
.skill-builder label { display: grid; gap: 7px; font-size: .84rem; font-weight: 800; }
.skill-builder label > span { color: var(--muted); font-size: .75rem; font-weight: 500; }
.skill-builder input,.skill-builder textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fafafd; border: 1px solid #d8dbe5; border-radius: 10px; resize: vertical; }
.skill-mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.skill-builder .button { justify-self: start; }
.skill-preview { position: sticky; top: 98px; color: white; background: linear-gradient(155deg,#20243b,#302b59); border: 0; }
.skill-preview-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.skill-preview-head > div:last-child { display: flex; gap: 7px; }
.skill-preview .eyebrow { color: #87e2de; }
.skill-preview h2 { margin: 0; }
.skill-preview .tiny-button { color: #f3f1ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.17); text-decoration: none; }
.skill-preview pre { max-height: 540px; overflow: auto; margin: 20px 0; padding: 18px; color: #dff9f4; background: rgba(7,10,27,.5); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: .78rem/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; }
.skill-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.skill-checks strong { grid-column: 1/-1; }
.skill-checks span { padding: 8px 9px; color: #afb5ce; background: rgba(255,255,255,.06); border-radius: 8px; font-size: .75rem; }
.skill-checks span.ok { color: #91ead9; background: rgba(49,190,157,.13); }
.skill-preview > p { margin: 18px 0 0; color: #bbc2d5; font-size: .8rem; }
.skill-preview code { color: white; }

.tutorial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tutorial-card { overflow: hidden; color: var(--ink); background: white; border: 1px solid #e0e3ec; border-radius: 19px; box-shadow: var(--shadow-soft); text-decoration: none; }
.tutorial-card:hover { transform: translateY(-2px); border-color: #b3aceb; }
.tutorial-card > div:last-child { padding: 21px 23px 24px; }
.tutorial-card h2 { margin-bottom: 7px; }
.tutorial-card p { min-height: 44px; }
.tutorial-card strong { color: #584ad1; font-size: .84rem; }
.tutorial-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e9ebf1; }
.tutorial-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tutorial-thumb span { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; color: white; background: rgba(22,24,43,.82); border-radius: 999px; font-size: .72rem; font-weight: 800; }
.tutorial-player { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(290px,.5fr); gap: 20px; align-items: start; }
.tutorial-stage,.tutorial-editor-stage { position: relative; overflow: hidden; background: #dde0e8; border: 1px solid #d5d8e1; border-radius: 18px; box-shadow: var(--shadow-soft); }
.tutorial-stage img,.tutorial-editor-stage img { width: 100%; height: auto; display: block; }
.tutorial-hotspot,.tutorial-editor-marker { position: absolute; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; color: white; background: #6658e9; border: 3px solid white; border-radius: 50%; box-shadow: 0 6px 18px rgba(31,28,91,.35); transform: translate(-50%,-50%); cursor: pointer; font-weight: 850; }
.tutorial-hotspot.current { animation: hotspot-pulse 1.5s infinite; }
.tutorial-hotspot.locked { opacity: .25; }
.tutorial-hotspot.done { color: #075949; background: #60e0c2; }
@keyframes hotspot-pulse { 50% { box-shadow: 0 0 0 11px rgba(102,88,233,.22),0 6px 18px rgba(31,28,91,.35); } }
.tutorial-coach { position: sticky; top: 98px; padding: 27px; color: white; background: linear-gradient(160deg,#20243c,#38316c); border-radius: 19px; }
.tutorial-coach .eyebrow { color: #82dedb; }
.tutorial-coach > strong { color: #aaa5ef; font-size: .78rem; }
.tutorial-coach h2 { margin: 15px 0 8px; }
.tutorial-coach p { color: #d2d5e2; }
.tutorial-coach .button { margin-top: 14px; color: white; border-color: #686a86; }
.tutorial-result { margin-top: 17px; padding: 13px; color: #bff4e7; background: rgba(46,193,154,.14); border-radius: 10px; }
.tutorial-new-form { max-width: 760px; }
.tutorial-editor-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.5fr); gap: 20px; align-items: start; }
.tutorial-editor-stage { cursor: crosshair; }
.tutorial-settings { display: grid; gap: 16px; padding: 23px; background: white; border: 1px solid #e1e4ec; border-radius: 17px; box-shadow: var(--shadow-soft); }
.tutorial-settings label { display: grid; gap: 7px; font-size: .82rem; font-weight: 800; }
.tutorial-settings input,.tutorial-settings textarea { width: 100%; padding: 11px; border: 1px solid #d4d8e3; border-radius: 9px; resize: vertical; }
.editor-hint { margin: 11px 5px 0; font-size: .78rem; }
.hotspot-list-panel { overflow: hidden; margin-top: 22px; background: white; border: 1px solid #e1e4ec; border-radius: 18px; box-shadow: var(--shadow-soft); }
.hotspot-editor-list { display: grid; }
.hotspot-editor-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: start; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.hotspot-editor-row:last-child { border-bottom: 0; }
.hotspot-editor-row > span { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: #6558dd; border-radius: 50%; font-size: .76rem; font-weight: 850; }
.hotspot-editor-row > div { display: grid; grid-template-columns: minmax(160px,.35fr) minmax(0,.65fr); gap: 10px; }
.hotspot-editor-row input,.hotspot-editor-row textarea { width: 100%; padding: 9px 10px; border: 1px solid #d8dce6; border-radius: 9px; resize: vertical; }
.tiny-button.danger { color: #9c4048; background: #fff0f1; border-color: #f0c8cc; }

+/* Auditbarát, CSP-kompatibilis hotspot koordináták. */
.hotspot-x-0 { left: 0%; }
.hotspot-x-1 { left: 1%; }
.hotspot-x-2 { left: 2%; }
.hotspot-x-3 { left: 3%; }
.hotspot-x-4 { left: 4%; }
.hotspot-x-5 { left: 5%; }
.hotspot-x-6 { left: 6%; }
.hotspot-x-7 { left: 7%; }
.hotspot-x-8 { left: 8%; }
.hotspot-x-9 { left: 9%; }
.hotspot-x-10 { left: 10%; }
.hotspot-x-11 { left: 11%; }
.hotspot-x-12 { left: 12%; }
.hotspot-x-13 { left: 13%; }
.hotspot-x-14 { left: 14%; }
.hotspot-x-15 { left: 15%; }
.hotspot-x-16 { left: 16%; }
.hotspot-x-17 { left: 17%; }
.hotspot-x-18 { left: 18%; }
.hotspot-x-19 { left: 19%; }
.hotspot-x-20 { left: 20%; }
.hotspot-x-21 { left: 21%; }
.hotspot-x-22 { left: 22%; }
.hotspot-x-23 { left: 23%; }
.hotspot-x-24 { left: 24%; }
.hotspot-x-25 { left: 25%; }
.hotspot-x-26 { left: 26%; }
.hotspot-x-27 { left: 27%; }
.hotspot-x-28 { left: 28%; }
.hotspot-x-29 { left: 29%; }
.hotspot-x-30 { left: 30%; }
.hotspot-x-31 { left: 31%; }
.hotspot-x-32 { left: 32%; }
.hotspot-x-33 { left: 33%; }
.hotspot-x-34 { left: 34%; }
.hotspot-x-35 { left: 35%; }
.hotspot-x-36 { left: 36%; }
.hotspot-x-37 { left: 37%; }
.hotspot-x-38 { left: 38%; }
.hotspot-x-39 { left: 39%; }
.hotspot-x-40 { left: 40%; }
.hotspot-x-41 { left: 41%; }
.hotspot-x-42 { left: 42%; }
.hotspot-x-43 { left: 43%; }
.hotspot-x-44 { left: 44%; }
.hotspot-x-45 { left: 45%; }
.hotspot-x-46 { left: 46%; }
.hotspot-x-47 { left: 47%; }
.hotspot-x-48 { left: 48%; }
.hotspot-x-49 { left: 49%; }
.hotspot-x-50 { left: 50%; }
.hotspot-x-51 { left: 51%; }
.hotspot-x-52 { left: 52%; }
.hotspot-x-53 { left: 53%; }
.hotspot-x-54 { left: 54%; }
.hotspot-x-55 { left: 55%; }
.hotspot-x-56 { left: 56%; }
.hotspot-x-57 { left: 57%; }
.hotspot-x-58 { left: 58%; }
.hotspot-x-59 { left: 59%; }
.hotspot-x-60 { left: 60%; }
.hotspot-x-61 { left: 61%; }
.hotspot-x-62 { left: 62%; }
.hotspot-x-63 { left: 63%; }
.hotspot-x-64 { left: 64%; }
.hotspot-x-65 { left: 65%; }
.hotspot-x-66 { left: 66%; }
.hotspot-x-67 { left: 67%; }
.hotspot-x-68 { left: 68%; }
.hotspot-x-69 { left: 69%; }
.hotspot-x-70 { left: 70%; }
.hotspot-x-71 { left: 71%; }
.hotspot-x-72 { left: 72%; }
.hotspot-x-73 { left: 73%; }
.hotspot-x-74 { left: 74%; }
.hotspot-x-75 { left: 75%; }
.hotspot-x-76 { left: 76%; }
.hotspot-x-77 { left: 77%; }
.hotspot-x-78 { left: 78%; }
.hotspot-x-79 { left: 79%; }
.hotspot-x-80 { left: 80%; }
.hotspot-x-81 { left: 81%; }
.hotspot-x-82 { left: 82%; }
.hotspot-x-83 { left: 83%; }
.hotspot-x-84 { left: 84%; }
.hotspot-x-85 { left: 85%; }
.hotspot-x-86 { left: 86%; }
.hotspot-x-87 { left: 87%; }
.hotspot-x-88 { left: 88%; }
.hotspot-x-89 { left: 89%; }
.hotspot-x-90 { left: 90%; }
.hotspot-x-91 { left: 91%; }
.hotspot-x-92 { left: 92%; }
.hotspot-x-93 { left: 93%; }
.hotspot-x-94 { left: 94%; }
.hotspot-x-95 { left: 95%; }
.hotspot-x-96 { left: 96%; }
.hotspot-x-97 { left: 97%; }
.hotspot-x-98 { left: 98%; }
.hotspot-x-99 { left: 99%; }
.hotspot-x-100 { left: 100%; }
.hotspot-y-0 { top: 0%; }
.hotspot-y-1 { top: 1%; }
.hotspot-y-2 { top: 2%; }
.hotspot-y-3 { top: 3%; }
.hotspot-y-4 { top: 4%; }
.hotspot-y-5 { top: 5%; }
.hotspot-y-6 { top: 6%; }
.hotspot-y-7 { top: 7%; }
.hotspot-y-8 { top: 8%; }
.hotspot-y-9 { top: 9%; }
.hotspot-y-10 { top: 10%; }
.hotspot-y-11 { top: 11%; }
.hotspot-y-12 { top: 12%; }
.hotspot-y-13 { top: 13%; }
.hotspot-y-14 { top: 14%; }
.hotspot-y-15 { top: 15%; }
.hotspot-y-16 { top: 16%; }
.hotspot-y-17 { top: 17%; }
.hotspot-y-18 { top: 18%; }
.hotspot-y-19 { top: 19%; }
.hotspot-y-20 { top: 20%; }
.hotspot-y-21 { top: 21%; }
.hotspot-y-22 { top: 22%; }
.hotspot-y-23 { top: 23%; }
.hotspot-y-24 { top: 24%; }
.hotspot-y-25 { top: 25%; }
.hotspot-y-26 { top: 26%; }
.hotspot-y-27 { top: 27%; }
.hotspot-y-28 { top: 28%; }
.hotspot-y-29 { top: 29%; }
.hotspot-y-30 { top: 30%; }
.hotspot-y-31 { top: 31%; }
.hotspot-y-32 { top: 32%; }
.hotspot-y-33 { top: 33%; }
.hotspot-y-34 { top: 34%; }
.hotspot-y-35 { top: 35%; }
.hotspot-y-36 { top: 36%; }
.hotspot-y-37 { top: 37%; }
.hotspot-y-38 { top: 38%; }
.hotspot-y-39 { top: 39%; }
.hotspot-y-40 { top: 40%; }
.hotspot-y-41 { top: 41%; }
.hotspot-y-42 { top: 42%; }
.hotspot-y-43 { top: 43%; }
.hotspot-y-44 { top: 44%; }
.hotspot-y-45 { top: 45%; }
.hotspot-y-46 { top: 46%; }
.hotspot-y-47 { top: 47%; }
.hotspot-y-48 { top: 48%; }
.hotspot-y-49 { top: 49%; }
.hotspot-y-50 { top: 50%; }
.hotspot-y-51 { top: 51%; }
.hotspot-y-52 { top: 52%; }
.hotspot-y-53 { top: 53%; }
.hotspot-y-54 { top: 54%; }
.hotspot-y-55 { top: 55%; }
.hotspot-y-56 { top: 56%; }
.hotspot-y-57 { top: 57%; }
.hotspot-y-58 { top: 58%; }
.hotspot-y-59 { top: 59%; }
.hotspot-y-60 { top: 60%; }
.hotspot-y-61 { top: 61%; }
.hotspot-y-62 { top: 62%; }
.hotspot-y-63 { top: 63%; }
.hotspot-y-64 { top: 64%; }
.hotspot-y-65 { top: 65%; }
.hotspot-y-66 { top: 66%; }
.hotspot-y-67 { top: 67%; }
.hotspot-y-68 { top: 68%; }
.hotspot-y-69 { top: 69%; }
.hotspot-y-70 { top: 70%; }
.hotspot-y-71 { top: 71%; }
.hotspot-y-72 { top: 72%; }
.hotspot-y-73 { top: 73%; }
.hotspot-y-74 { top: 74%; }
.hotspot-y-75 { top: 75%; }
.hotspot-y-76 { top: 76%; }
.hotspot-y-77 { top: 77%; }
.hotspot-y-78 { top: 78%; }
.hotspot-y-79 { top: 79%; }
.hotspot-y-80 { top: 80%; }
.hotspot-y-81 { top: 81%; }
.hotspot-y-82 { top: 82%; }
.hotspot-y-83 { top: 83%; }
.hotspot-y-84 { top: 84%; }
.hotspot-y-85 { top: 85%; }
.hotspot-y-86 { top: 86%; }
.hotspot-y-87 { top: 87%; }
.hotspot-y-88 { top: 88%; }
.hotspot-y-89 { top: 89%; }
.hotspot-y-90 { top: 90%; }
.hotspot-y-91 { top: 91%; }
.hotspot-y-92 { top: 92%; }
.hotspot-y-93 { top: 93%; }
.hotspot-y-94 { top: 94%; }
.hotspot-y-95 { top: 95%; }
.hotspot-y-96 { top: 96%; }
.hotspot-y-97 { top: 97%; }
.hotspot-y-98 { top: 98%; }
.hotspot-y-99 { top: 99%; }
.hotspot-y-100 { top: 100%; }

@media (max-width: 1050px) {
  .skill-lab,.tutorial-player,.tutorial-editor-layout,.activity-builder { grid-template-columns: 1fr; }
  .skill-preview,.tutorial-coach { position: static; }
}
@media (max-width: 900px) {
  .assignment-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .assignment-grid,.tutorial-grid,.skill-mini-grid { grid-template-columns: 1fr; }
  .assignment-hero { flex-direction: column; padding: 24px; }
  .admin-assignments a { grid-template-columns: 1fr auto; }
  .admin-assignments a > span { display: none; }
  .hotspot-editor-row { grid-template-columns: auto 1fr; }
  .hotspot-editor-row > div { grid-template-columns: 1fr; }
  .hotspot-editor-row > button { grid-column: 2; justify-self: start; }
  .skill-preview-head { flex-direction: column; }
  .admin-activity-list a { grid-template-columns: 1fr auto; }
  .admin-activity-list .activity-kind,.admin-activity-list time { display: none; }
  .question-option-grid,.question-bottom,.exam-settings { grid-template-columns: 1fr; }
  .exam-result,.exam-sheet-head { align-items: flex-start; flex-direction: column; }
  .exam-sheet-head > div:last-child { text-align: left; }
}

/* Szintfelmérő és személyre szabott útvonal */
.onboarding-heading { max-width: 640px; }
.onboarding-form { display: grid; gap: 18px; max-width: 760px; }
.onboarding-block { margin: 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.onboarding-block legend { display: flex; align-items: flex-start; gap: 13px; padding: 0; margin-bottom: 16px; }
.onboarding-block legend strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.onboarding-block legend small { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; }
.onboarding-number { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: white; background: linear-gradient(145deg,#7768ff,#4f7cff); border-radius: 10px; font-size: .85rem; font-weight: 800; }
.onboarding-options { display: grid; gap: 9px; }
.onboarding-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.onboarding-option:hover { border-color: #c9c3ff; background: #fbfaff; }
.onboarding-option input { flex: none; margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--teal); }
.onboarding-option strong { display: block; font-size: .95rem; font-weight: 700; }
.onboarding-option small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; }
.onboarding-option:has(input:checked) { border-color: var(--teal); background: #f4f2ff; box-shadow: 0 0 0 1px var(--teal) inset; }
.onboarding-option:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.path-block .path-summary { margin: 0 0 14px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.path-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.path-list li a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 15px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.path-list li a:hover { border-color: #c9c3ff; transform: translateX(2px); }
.path-list li.today a { border-color: #cfc8ff; background: linear-gradient(180deg,#fbfaff,#ffffff); }
.path-index { display: grid; place-items: center; width: 30px; height: 30px; color: #5549c8; background: #eeecff; border-radius: 10px; font-size: .85rem; font-weight: 800; }
.path-list strong { display: block; font-size: .96rem; }
.path-list small { display: block; margin-top: 3px; color: var(--muted); font-size: .85rem; }
.path-note { display: block; margin-top: 6px; color: #5549c8; font-size: .8rem; font-style: normal; font-weight: 700; }
.path-minutes { color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.path-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; background: linear-gradient(135deg,#f4f2ff,#eef3ff); border: 1px solid #ddd8ff; border-radius: var(--radius); }
.path-invite h2 { margin: 6px 0 4px; }
.path-invite p { margin: 0; color: var(--muted); }

@media (max-width: 620px) {
  .onboarding-block { padding: 18px 16px; }
  .path-list li a { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
  .path-minutes { display: none; }
}

/* Leckébe ágyazott gyakorló és kiegészített mintakérés */
.lesson-practice { display: grid; gap: 13px; margin: 26px 0; padding: 26px 28px; background: linear-gradient(180deg,#fbfaff,var(--paper)); border: 1px solid #ddd8ff; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.lesson-practice .practice-head h2 { margin: 6px 0 6px; font-size: 1.15rem; }
.lesson-practice .practice-head p { margin: 0; color: var(--muted); }
.lesson-practice > label { font-size: .85rem; font-weight: 750; }
.lesson-practice textarea { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); resize: vertical; }
.lesson-practice textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.practice-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.practice-actions span { color: var(--muted); font-size: .82rem; font-weight: 650; }
.practice-feedback { display: grid; gap: 14px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.practice-feedback.risky { border-color: #f0c2cb; background: var(--danger-soft); }
.practice-score { display: flex; align-items: center; gap: 15px; }
.practice-score strong { display: grid; place-items: center; width: 52px; height: 52px; flex: none; color: white; background: linear-gradient(145deg,#7768ff,#4f7cff); border-radius: 16px; font-size: 1.2rem; }
.practice-feedback.risky .practice-score strong { background: linear-gradient(145deg,#d1596c,#bf4053); }
.practice-score b { display: block; font-size: 1rem; }
.practice-score span { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; font-weight: 650; }
.practice-notes { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--ink); font-size: .9rem; }
.practice-notes li { line-height: 1.5; }

.improved-prompt { display: grid; gap: 11px; padding: 16px 18px; background: #f7f8fc; border: 1px solid var(--line); border-radius: 14px; }
.improved-head strong { display: block; font-size: .95rem; }
.improved-head small { display: block; margin-top: 3px; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.improved-prompt pre { display: grid; gap: 8px; margin: 0; padding: 0; white-space: normal; font: inherit; }
.improved-line { padding: 9px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; line-height: 1.5; }
.improved-line.added { background: #f0f5ff; border-color: #c6d8ff; box-shadow: inset 3px 0 0 var(--blue); }
.improved-prompt .button { justify-self: start; }
.improved-complete { margin: 0; padding: 12px 14px; background: #eefbf4; border: 1px solid #bfe8d2; border-radius: 12px; color: #1d6b45; font-size: .88rem; font-weight: 650; }
[data-coach-improved] .improved-prompt { margin-top: 4px; }

@media (max-width: 620px) {
  .lesson-practice { padding: 20px 17px; }
  .practice-actions { flex-direction: column-reverse; align-items: stretch; }
  .practice-actions span { text-align: center; }
}

/* Megjelenítési beállítások: betűméret és kontraszt */
.display-settings { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.display-caption { color: #9a9fb0; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.size-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.size-buttons button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; color: var(--muted); background: #f7f8fc; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.size-buttons button:hover { border-color: #c9c3ff; color: var(--ink); }
.size-buttons button.active { color: #4a3ec4; background: #eeecff; border-color: #cfc8ff; font-weight: 750; }
.size-buttons .size-normal { font-size: .85rem; font-weight: 750; }
.size-buttons .size-large { font-size: 1.05rem; font-weight: 750; }
.size-buttons .size-xlarge { font-size: 1.3rem; font-weight: 750; }
.size-buttons small { font-size: .62rem; font-weight: 700; letter-spacing: .02em; }
.contrast-toggle { padding: 8px 10px; color: var(--muted); background: #f7f8fc; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .74rem; font-weight: 700; }
.contrast-toggle:hover { border-color: #c9c3ff; color: var(--ink); }
.contrast-toggle.active { color: #4a3ec4; background: #eeecff; border-color: #cfc8ff; }

html[data-textsize="large"] { font-size: 19px; }
html[data-textsize="xlarge"] { font-size: 22px; }
html[data-textsize="large"] .topbar, html[data-textsize="xlarge"] .topbar { height: auto; padding: 12px 24px; }
html[data-textsize="large"] .app-shell, html[data-textsize="xlarge"] .app-shell { min-height: 0; }
/* Nagy betűnél az oldalsáv a lapba folyik, hogy ne vágódjon le az alja.
   Telefonon viszont NEM, mert ott kicsúsztatott menü, és így egy teljes
   képernyőnyi üres helyet tolna a tartalom elé. */
@media (min-width: 901px) {
  html[data-textsize="large"] .sidebar, html[data-textsize="xlarge"] .sidebar { position: static; height: auto; }
}

html[data-contrast="high"] { --ink: #0b0d18; --muted: #3d4354; --line: #9aa0b4; --shadow: 0 10px 28px rgba(20,24,46,.18); --shadow-soft: 0 4px 14px rgba(20,24,46,.14); }
html[data-contrast="high"] body { background: #ffffff; }
html[data-contrast="high"] a { text-decoration: underline; }
html[data-contrast="high"] .sidebar { background: #ffffff; }
html[data-contrast="high"] .lesson-row p, html[data-contrast="high"] .path-list small, html[data-contrast="high"] .onboarding-option small { color: #3d4354; }
html[data-contrast="high"] :focus-visible { outline: 3px solid #1a1f3d; outline-offset: 2px; }

/* Ismétlés */
.review-card { display: grid; gap: 14px; padding: 30px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-count { padding: 5px 11px; color: #4a3ec4; background: #eeecff; border-radius: 999px; font-size: .76rem; font-weight: 750; }
.review-source { color: var(--muted); font-size: .84rem; font-weight: 700; }
.review-card h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.review-options { display: grid; gap: 9px; }
.review-options button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 17px; text-align: left; color: inherit; background: #fbfbfd; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: .95rem; }
.review-options button:hover { border-color: var(--teal); background: #f6f4ff; }
.review-options button span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: #5549c8; background: #eeecff; border-radius: 9px; font-size: .8rem; font-weight: 800; }
.review-hint { margin: 0; color: var(--muted); font-size: .85rem; }

.review-feedback { display: grid; gap: 11px; margin-bottom: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid; }
.review-feedback.correct { background: #eefbf4; border-color: #bfe8d2; }
.review-feedback.wrong { background: var(--warning-soft); border-color: #eedcae; }
.review-verdict { display: flex; align-items: center; gap: 13px; }
.review-verdict span { display: grid; place-items: center; width: 40px; height: 40px; flex: none; color: white; border-radius: 13px; font-size: 1.1rem; font-weight: 800; }
.review-feedback.correct .review-verdict span { background: #1d8a5a; }
.review-feedback.wrong .review-verdict span { background: #b8860b; }
.review-verdict strong { display: block; font-size: 1.02rem; }
.review-verdict small { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; }
.review-feedback p { margin: 0; line-height: 1.55; }
.review-followup { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; font-weight: 650; }
.review-followup span { color: var(--muted); }

.review-empty { display: grid; justify-items: center; gap: 12px; padding: 50px 32px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.review-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; color: white; background: linear-gradient(145deg,#7768ff,#4f7cff); border-radius: 18px; font-size: 1.3rem; }
.review-empty h2 { margin: 4px 0 0; }
.review-empty p { margin: 0; max-width: 430px; color: var(--muted); }

.review-due-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; background: linear-gradient(135deg,#fff6e8,#fffaf2); border: 1px solid #f0dcb8; border-radius: var(--radius); }
.review-due-card strong { display: block; font-size: 1.05rem; }
.review-due-card span { display: block; margin-top: 3px; color: var(--muted); font-size: .88rem; }

@media (max-width: 620px) {
  .review-card { padding: 22px 18px; }
  .review-card h2 { font-size: 1.1rem; }
}

/* Lumen illusztrációk */
/* Csak ott jelenik meg, ahol tényleg elfér a szöveg mellett. */
.hero-mascot { display: none; position: absolute; right: -26px; bottom: -22px; z-index: 0; width: 232px; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 18px 34px rgba(10,14,40,.4)); }
@media (min-width: 1000px) { .hero-mascot { display: block; } }
/* Csak a szövegeket emeljük a kép fölé. Az .auth-brand abszolút marad, különben beesik a folyamba. */
.login-story .eyebrow, .login-story h1, .login-story p, .login-story .trust-row { position: relative; z-index: 1; }
/* A cím marad a teljes szélességén; csak az alsó két elem szűkül, mert azok érnek a kép mellé. */
@media (min-width: 1000px) {
  .login-story p, .login-story .trust-row { max-width: 355px; }
}

.empty-inline.with-mascot { display: flex; align-items: center; gap: 16px; }
.empty-inline.with-mascot img { flex: none; width: 74px; height: auto; }

.review-empty .state-mascot { width: 168px; height: auto; margin-bottom: 2px; }
.review-empty h2 { margin-top: 0; }

.lesson-practice .practice-head { display: flex; align-items: flex-start; gap: 18px; }
.practice-mascot { flex: none; width: 96px; height: auto; margin-top: 2px; }

@media (max-width: 620px) {
  .empty-inline.with-mascot { flex-direction: column; text-align: center; gap: 10px; }
  .empty-inline.with-mascot img { width: 90px; }
  .review-empty .state-mascot { width: 130px; }
  .lesson-practice .practice-head { flex-direction: column; gap: 12px; }
  .practice-mascot { width: 84px; align-self: center; }
}

/* Kitöltöttségi osztályok, mert a CSP nem enged beágyazott stílust */
.fill-0 { width: 0%; }
.fill-5 { width: 5%; }
.fill-10 { width: 10%; }
.fill-15 { width: 15%; }
.fill-20 { width: 20%; }
.fill-25 { width: 25%; }
.fill-30 { width: 30%; }
.fill-35 { width: 35%; }
.fill-40 { width: 40%; }
.fill-45 { width: 45%; }
.fill-50 { width: 50%; }
.fill-55 { width: 55%; }
.fill-60 { width: 60%; }
.fill-65 { width: 65%; }
.fill-70 { width: 70%; }
.fill-75 { width: 75%; }
.fill-80 { width: 80%; }
.fill-85 { width: 85%; }
.fill-90 { width: 90%; }
.fill-95 { width: 95%; }
.fill-100 { width: 100%; }

/* Gyakorlómotor */
.exercise-player { display: grid; gap: 18px; margin: 26px 0; padding: 26px 28px 24px; background: var(--paper); border: 1px solid #ddd8ff; border-radius: var(--radius); box-shadow: var(--shadow); }
.player-top { display: flex; align-items: center; gap: 14px; }
.player-track { flex: 1; height: 12px; background: #eceef6; border-radius: 999px; overflow: hidden; }
.player-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#7768ff,#4f7cff); border-radius: 999px; transition: width .32s cubic-bezier(.4,0,.2,1); }
.player-counter { color: var(--muted); font-size: .8rem; font-weight: 750; white-space: nowrap; }
.player-hearts { display: flex; gap: 3px; font-size: .95rem; color: #e0566f; }
.player-hearts .spent { color: #dfe2ec; }

.player-stage { min-height: 210px; }
.ex-head { margin-bottom: 16px; }
.ex-kind { display: inline-block; margin-bottom: 8px; padding: 4px 10px; color: #5549c8; background: #eeecff; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ex-head h3 { margin: 0; font-size: 1.22rem; line-height: 1.4; letter-spacing: -.01em; }

.ex-options { display: grid; gap: 9px; }
.ex-option { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 17px; text-align: left; color: inherit; background: #fbfbfd; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-size: .96rem; transition: border-color .12s, background .12s; }
.ex-option:hover { border-color: #c9c3ff; background: #f8f7ff; }
.ex-option.picked { border-color: var(--teal); background: #f2efff; }
.ex-letter { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: #5549c8; background: #eeecff; border-radius: 9px; font-size: .78rem; font-weight: 800; }
.ex-truefalse { grid-template-columns: 1fr 1fr; }
.ex-truefalse .ex-option { justify-content: center; font-weight: 700; }

.ex-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { padding: 11px 15px; color: inherit; background: var(--paper); border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 12px; cursor: pointer; font-size: .92rem; transition: transform .1s, border-color .12s, opacity .12s; }
.ex-chip:hover { border-color: #c9c3ff; }
.ex-chip:active { transform: translateY(1px); }
.ex-chip.picked { border-color: var(--teal); background: #f2efff; }
.ex-chip.done { border-color: #bfe8d2; background: #eefbf4; color: #1d6b45; cursor: default; }
.ex-chip.missed { border-color: #f0c2cb; background: var(--danger-soft); }
.ex-chip.used { opacity: .3; pointer-events: none; }
.ex-hint { margin: 0; color: var(--muted); font-size: .84rem; }

.ex-order { display: grid; gap: 13px; }
.ex-answer-row { display: flex; flex-wrap: wrap; gap: 8px; min-height: 58px; padding: 10px; background: #f7f8fc; border: 1.5px dashed var(--line); border-radius: 14px; }
.ex-answer-row.empty::before { content: "Ide kerülnek a lépések"; align-self: center; padding-left: 6px; color: #a5abbd; font-size: .86rem; }

.ex-match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex-match-col { display: grid; gap: 8px; align-content: start; }
.ex-match-col .ex-chip { width: 100%; text-align: left; }

.ex-fill { display: grid; gap: 15px; }
.ex-sentence { margin: 0; font-size: 1.05rem; line-height: 2.2; }
.ex-blank { padding: 4px 8px; min-width: 96px; color: inherit; background: #f2efff; border: 0; border-bottom: 2.5px solid var(--teal); border-radius: 6px 6px 0 0; cursor: pointer; font-size: .95rem; font-weight: 700; }
.ex-blank.done { background: #eeecff; color: #4a3ec4; }

.ex-categorize { display: grid; gap: 14px; }
.ex-buckets { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; }
.ex-bucket { display: grid; gap: 9px; align-content: start; padding: 14px; background: #f7f8fc; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; min-height: 130px; }
.ex-bucket:hover { border-color: #c9c3ff; }
.ex-bucket strong { font-size: .85rem; }
.ex-bucket-items { display: grid; gap: 6px; }
.ex-prompt { display: grid; gap: 11px; }
.ex-prompt textarea { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; resize: vertical; }
.ex-prompt textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }

.player-feedback { display: grid; gap: 8px; padding: 16px 18px; border: 1.5px solid; border-radius: 14px; animation: feedback-in .22s ease-out; }
@keyframes feedback-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.player-feedback.good { background: #eefbf4; border-color: #bfe8d2; color: #145c3c; }
.player-feedback.bad { background: var(--warning-soft); border-color: #eedcae; color: #6d4c09; }
.player-feedback strong { font-size: 1.02rem; }
.player-feedback p { margin: 0; line-height: 1.55; }
.feedback-solution-line { font-weight: 650; }
.feedback-solution { margin: 0; padding: 11px 13px; background: rgba(255,255,255,.72); border-radius: 10px; font: inherit; font-size: .87rem; line-height: 1.6; white-space: pre-wrap; }
.player-actions { display: grid; }
.player-actions .button { width: 100%; }

.player-result { display: grid; justify-items: center; gap: 11px; padding: 22px 12px 8px; text-align: center; animation: feedback-in .28s ease-out; }
.result-mark { display: grid; place-items: center; width: 62px; height: 62px; color: white; background: linear-gradient(145deg,#7768ff,#4f7cff); border-radius: 20px; font-size: 1.5rem; }
.player-result.spent .result-mark { background: linear-gradient(145deg,#8e94a8,#6b7286); }
.player-result h2 { margin: 2px 0 0; }
.player-result p { margin: 0; max-width: 430px; color: var(--muted); }
.result-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.result-stat { display: grid; gap: 2px; min-width: 96px; padding: 13px 16px; background: #f7f8fc; border: 1px solid var(--line); border-radius: 14px; }
.result-stat strong { font-size: 1.22rem; }
.result-stat span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.result-streak { margin-top: 4px !important; color: #4a3ec4 !important; font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* Sorozat a fejlécben */
.streak-chip { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; color: inherit; background: #f6f7fa; border: 1px solid #e6e8ef; border-radius: 999px; text-decoration: none; font-size: .8rem; }
.streak-chip:hover { border-color: #c9c3ff; background: #f8f7ff; }
.streak-chip.reached { background: #eefbf4; border-color: #bfe8d2; }
.streak-flame { color: #e08a2c; font-size: .9rem; }
.streak-chip b { font-weight: 800; }
.streak-goal { width: 46px; height: 6px; background: #e3e6ef; border-radius: 999px; overflow: hidden; }
.streak-goal-bar { display: block; height: 100%; background: linear-gradient(90deg,#7768ff,#4f7cff); border-radius: 999px; }
.streak-chip small { color: var(--muted); font-weight: 700; }

/* Haladás oldal */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; margin-bottom: 28px; }
.stat-card { display: grid; gap: 3px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.stat-card strong { font-size: 1.6rem; letter-spacing: -.02em; }
.stat-card span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat-card.big { background: linear-gradient(140deg,#f4f2ff,#eef3ff); border-color: #ddd8ff; }
.stat-icon { color: #e08a2c; font-size: 1.1rem; }
.goal-met { color: #1d6b45; font-weight: 750; font-size: .88rem; }
.goal-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.goal-picker span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.goal-picker button { padding: 8px 14px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .84rem; font-weight: 700; }
.goal-picker button:hover { border-color: #c9c3ff; color: var(--ink); }
.goal-picker button.active { color: #4a3ec4; background: #eeecff; border-color: #cfc8ff; }
.day-chart { display: grid; grid-auto-flow: column; gap: 7px; align-items: end; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.day-col { display: grid; justify-items: center; gap: 7px; }
.day-bar { display: flex; align-items: flex-end; width: 100%; height: 104px; background: #f2f4f9; border-radius: 8px; overflow: hidden; }
.day-bar-fill { display: block; width: 100%; height: 0; min-height: 0; background: #dfe3ee; border-radius: 8px; align-self: flex-end; }
.day-col.partial .day-bar-fill { background: linear-gradient(180deg,#9a8dff,#7768ff); }
.day-col.met .day-bar-fill { background: linear-gradient(180deg,#4bd39a,#1d8a5a); }
.day-col small { color: var(--muted); font-size: .7rem; font-weight: 750; }

@media (max-width: 620px) {
  .exercise-player { padding: 20px 16px 18px; }
  .ex-head h3 { font-size: 1.05rem; }
  .ex-match { grid-template-columns: 1fr; }
  .ex-truefalse { grid-template-columns: 1fr; }
  .streak-chip small, .streak-goal { display: none; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
}

/* A napi oszlopdiagram függőlegesen tölt, ezért ott magasságot jelent ugyanaz az osztály */
.day-bar-fill.fill-0 { height: 0%; }
.day-bar-fill.fill-5 { height: 5%; }
.day-bar-fill.fill-10 { height: 10%; }
.day-bar-fill.fill-15 { height: 15%; }
.day-bar-fill.fill-20 { height: 20%; }
.day-bar-fill.fill-25 { height: 25%; }
.day-bar-fill.fill-30 { height: 30%; }
.day-bar-fill.fill-35 { height: 35%; }
.day-bar-fill.fill-40 { height: 40%; }
.day-bar-fill.fill-45 { height: 45%; }
.day-bar-fill.fill-50 { height: 50%; }
.day-bar-fill.fill-55 { height: 55%; }
.day-bar-fill.fill-60 { height: 60%; }
.day-bar-fill.fill-65 { height: 65%; }
.day-bar-fill.fill-70 { height: 70%; }
.day-bar-fill.fill-75 { height: 75%; }
.day-bar-fill.fill-80 { height: 80%; }
.day-bar-fill.fill-85 { height: 85%; }
.day-bar-fill.fill-90 { height: 90%; }
.day-bar-fill.fill-95 { height: 95%; }
.day-bar-fill.fill-100 { height: 100%; }

/* Megosztási beállítás a haladás oldalon */
.share-card { display: grid; gap: 12px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.share-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.share-card p strong { color: var(--ink); }
.share-card form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.share-state { color: var(--muted); font-size: .85rem; font-weight: 700; }
.share-state.on { color: #1d6b45; }

/* Határidő-emlékeztetők állapota az adminban */
.reminder-status { display: grid; gap: 10px; }
.reminder-line { display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; background: #fbfbfd; border: 1px solid var(--line); border-radius: 14px; }
.reminder-line > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); background: #eef0f6; border-radius: 10px; font-size: .85rem; }
.reminder-line.ok > span { color: #1d6b45; background: #e4f7ed; }
.reminder-line.off > span { color: #90600b; background: var(--warning-soft); }
.reminder-line strong { display: block; font-size: .95rem; }
.reminder-line small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.5; }

/* Connect-összekötés jelzése a felhasználólistában */
.connect-name { color: #a5abbd; font-size: .74rem; font-weight: 700; }
.connect-name.set { color: #4a3ec4; }
.reminder-line.fail { background: var(--danger-soft); border-color: #f0c2cb; }
.reminder-line.fail > span { color: white; background: var(--danger); }

/* Ha a gyakorlás eredménye nem mentődött el */
.result-unsaved { display: grid; justify-items: center; gap: 8px; margin-top: 10px; padding: 16px 18px; background: var(--warning-soft); border: 1px solid #eedcae; border-radius: 14px; }
.result-unsaved strong { color: #6d4c09; font-size: .95rem; }
.result-unsaved span { max-width: 380px; color: #6d4c09; font-size: .86rem; line-height: 1.55; text-align: center; }

/* A ragadós fejléc ne takarja a feladat címét, amikor odagörgetünk */
.exercise-player, .player-feedback, .review-card, .lesson-practice { scroll-margin-top: 92px; }

/* Képek a leckeszövegben */
.lesson-figures { display: grid; gap: 14px; margin: 22px 0; }
.lesson-figures.pair { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lesson-figures figure { margin: 0; display: grid; gap: 9px; }
.lesson-figures img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: #f7f8fc; box-shadow: var(--shadow-soft); }
.lesson-figures figcaption { color: var(--muted); font-size: .86rem; font-weight: 650; line-height: 1.5; }
.lesson-figures.single { max-width: 560px; }
html[data-contrast="high"] .lesson-figures img { border-color: #6b7288; }

/* Élő visszajelzés a jelszómezőnél. A szöveg a jelszo.js modulból jön, és
   ugyanazt mondja, amit a szerver is ellenőriz. */
.jelszo-jelzes { margin: -2px 0 0; font-size: 0.92rem; line-height: 1.45; min-height: 1.2em; }
.jelszo-jelzes.baj { color: var(--danger); }
.jelszo-jelzes.rendben { color: var(--teal-dark); }
