/* Autósiskola CRM – letisztult, modern felület */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb; --line: #e5e7eb; --line-2: #eef0f3;
  --ink: #111827; --ink-2: #374151; --mut: #6b7280; --mut-2: #9ca3af;
  --pri: #2563eb; --pri-600: #1d4ed8; --pri-50: #eef4ff; --pri-100: #dbe7fe;
  --ok: #047857; --ok-50: #ecfdf5; --warn: #b45309; --warn-50: #fffbeb; --bad: #dc2626; --bad-50: #fef2f2;
  --acc: #f5b400;
  --r: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 12px 32px -8px rgba(16, 24, 40, .18);
  --side-w: 256px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --surface: #151a22; --surface-2: #1a2029; --line: #262e3a; --line-2: #1f2630;
    --ink: #e8ecf2; --ink-2: #c9d1dc; --mut: #8b95a5; --mut-2: #6b7585;
    --pri: #5b8def; --pri-600: #7aa3f5; --pri-50: #17223a; --pri-100: #1d2c4a;
    --ok: #34d399; --ok-50: #10261f; --warn: #fbbf24; --warn-50: #2a2112; --bad: #f87171; --bad-50: #2c1618;
    --sh-1: none; --sh-2: 0 16px 40px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; margin: 22px 0 10px; color: var(--ink-2); }
p { margin: 0; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.mut { color: var(--mut); } .sm { font-size: 13px; } .nw { white-space: nowrap; } .r { text-align: right; }
.neg { color: var(--bad); } .pos { color: var(--ok); }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* ---------- gombok, űrlapelemek ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: var(--pri); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; text-decoration: none !important; }
.btn:hover { background: var(--pri-600); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.sec:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--line); }
.btn.danger:hover { background: var(--bad-50); }
.btn.ok { background: var(--ok); } .btn.ok:hover { filter: brightness(1.08); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }
input, select, textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-100); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pri); flex: none; }
input[type=file] { padding: 7px 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .req { color: var(--bad); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 40px; cursor: pointer; }
.err { color: var(--bad); font-size: 14px; font-weight: 500; min-height: 20px; margin-top: 10px; }
.search { position: relative; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mut-2); pointer-events: none; }
.search input { padding-left: 38px; }

/* ---------- elrendezés ---------- */
.layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand small { display: block; color: var(--mut); font-size: 12px; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.nav-sec { font-size: 12px; font-weight: 500; color: var(--mut-2); padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14px; text-decoration: none; position: relative; }
.nav a:hover { background: var(--line-2); text-decoration: none; }
.nav a.on { background: var(--pri-50); color: var(--pri); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pri); }
.nav .cnt { margin-left: auto; background: var(--pri); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 600; padding: 1px 7px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.user:hover { background: var(--line-2); }
.user b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user small { display: block; font-size: 12px; color: var(--mut); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; background: var(--pri-50); color: var(--pri); }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .search { width: min(380px, 100%); }
.top .search input { background: var(--surface); height: 38px; }
.top .spacer { flex: 1; }
.burger { display: none; }
.content { padding: 28px; max-width: 1320px; width: 100%; margin: 0 auto; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.phead p { color: var(--mut); margin-top: 4px; }
.phead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.scrim { display: none; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--sh-2); }
  .side.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 20, 30, .4); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .burger { display: inline-flex; }
  .top { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .side, .scrim, .drawer, .toast { transition: none !important; } }

/* ---------- kártyák, statisztikák ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h p { color: var(--mut); font-size: 13px; margin-top: 2px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-h { padding: 18px 20px 0; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .g2, .g3, .g-main { grid-template-columns: minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.stat .lbl { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; font-weight: 500; }
.stat .lbl .ico { width: 16px; height: 16px; }
.stat .val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .sub { font-size: 13px; color: var(--mut); }
.chart { display: grid; gap: 10px; height: 220px; align-items: end; padding-top: 24px; }
.chart .col { display: flex; flex-direction: column; height: 100%; }
.chart .bw { flex: 1; display: flex; align-items: flex-end; }
.chart .bar { position: relative; width: 100%; background: var(--pri-100); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: background .15s; }
.chart .col:hover .bar, .chart .bar.cur { background: var(--pri); }
.chart .bar span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--mut); white-space: nowrap; }
.chart .bar.cur span, .chart .col:hover .bar span { color: var(--ink); font-weight: 600; }
.chart .cl { text-align: center; font-size: 12px; color: var(--mut); padding-top: 8px; }
.hrow { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 72px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.hrow .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .vl { text-align: right; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--pri); border-radius: 99px; }
.track.ok i { background: var(--ok); }
.prog { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.prog .track { flex: 1; }
.prog span { font-size: 13px; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- jelvények, listák ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.bad { background: var(--bad-50); color: var(--bad); }
.badge.info { background: var(--pri-50); color: var(--pri); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
.item .when { width: 78px; flex: none; }
.item .when b { display: block; font-size: 13px; font-weight: 600; }
.item .when span { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.item .what { flex: 1; min-width: 0; }
.item .what b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .what small { display: block; font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item .stripe { width: 3px; align-self: stretch; border-radius: 3px; background: var(--pri); flex: none; }
.item .stripe.vizsga { background: var(--acc); } .item .stripe.kesz { background: var(--ok); } .item .stripe.elmar { background: var(--mut-2); } .item .stripe.igeny { background: repeating-linear-gradient(var(--pri) 0 4px, transparent 4px 7px); }
@media (max-width: 560px) { .item { flex-wrap: wrap; } .item .acts { width: 100%; justify-content: flex-start; padding-left: 95px; } }
.empty { text-align: center; padding: 34px 16px; color: var(--mut); font-size: 14px; }
.empty .ico { width: 28px; height: 28px; margin: 0 auto 8px; display: block; color: var(--mut-2); }
.todo-group + .todo-group { margin-top: 18px; }
.todo-group h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--mut); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.steps li { font-size: 12px; color: var(--mut); padding-top: 10px; border-top: 4px solid var(--line); line-height: 1.3; }
.steps li.done { border-color: var(--ok); color: var(--ink-2); }
.steps li.on { border-color: var(--pri); color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .steps li:not(.on) { font-size: 0; } .steps li.on { grid-column: span 1; font-size: 12px; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip em { font-style: normal; opacity: .6; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 14px; border: 0; background: none; color: var(--mut); font-weight: 500; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--pri); border-bottom-color: var(--pri); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.toolbar select { width: auto; min-width: 180px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--pri-50); color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.banner.warn { background: var(--warn-50); }
.banner .ico { color: var(--pri); margin-top: 1px; } .banner.warn .ico { color: var(--warn); }

/* ---------- táblázatok ---------- */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--mut); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--surface-2); }
th.r, td.r { text-align: right; }
.person { display: flex; align-items: center; gap: 11px; }
.person .avatar { width: 34px; height: 34px; font-size: 12px; }
.person b { display: block; font-weight: 600; }
.person small { display: block; color: var(--mut); font-size: 12px; }
@media (max-width: 700px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  table.stack td::before { content: attr(data-l); color: var(--mut); font-size: 12px; text-align: left; flex: none; }
  table.stack td:first-child { justify-content: flex-start; text-align: left; }
  table.stack td:first-child::before { display: none; }
  table.stack td:empty { display: none; }
}
.matrix td { text-align: center; } .matrix td:first-child { text-align: left; }
.matrix th { white-space: normal; min-width: 110px; }

/* ---------- naptár ---------- */
.calbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.calbar h2 { margin: 0 8px; font-size: 16px; }
.calbar .spacer { flex: 1; }
.seg { display: inline-flex; background: var(--line-2); padding: 3px; border-radius: 10px; gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--mut); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(112px, 1fr)); min-width: 860px; }
.wh { padding: 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); font-size: 12px; color: var(--mut); text-align: center; }
.wh b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.wh.today b { color: #fff; background: var(--pri); width: 34px; height: 34px; line-height: 34px; border-radius: 50%; margin: 2px auto 0; font-size: 17px; }
.wt { position: relative; }
.wt span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--mut-2); }
.wd { position: relative; border-left: 1px solid var(--line-2); cursor: copy; background-image: repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px var(--hh)); }
.wd.today { background-color: color-mix(in srgb, var(--pri-50) 55%, transparent); }
.ev { position: absolute; border: 0; border-radius: 7px; padding: 4px 7px; font-size: 12px; line-height: 1.3; text-align: left; overflow: hidden; cursor: pointer; background: var(--pri-50); color: var(--pri); border-left: 3px solid var(--pri); }
.ev:hover { filter: brightness(.97); z-index: 2; box-shadow: var(--sh-2); }
.ev b { font-weight: 600; } .ev small { display: block; opacity: .8; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.vizsga { background: var(--warn-50); color: var(--warn); border-left-color: var(--acc); }
.ev.kesz { background: var(--ok-50); color: var(--ok); border-left-color: var(--ok); }
.ev.elmar { background: var(--line-2); color: var(--mut); border-left-color: var(--mut-2); text-decoration: line-through; }
.ev.igeny { background: var(--surface); border: 1.5px dashed var(--pri); border-left-width: 3px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--mut); padding: 12px 16px; border-top: 1px solid var(--line); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dayh { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.dayh.today { color: var(--pri); }

/* ---------- oktatói kártyák ---------- */
.icard { display: flex; flex-direction: column; gap: 14px; }
.icard .top-row { display: flex; gap: 12px; align-items: center; }
.icard .meta { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.icard .meta div { display: flex; align-items: center; gap: 8px; }
.icard .meta .ico { width: 15px; height: 15px; color: var(--mut-2); }
.icard .foot { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* ---------- modál, fiók ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(620px, 100%); box-shadow: var(--sh-2); animation: pop .18s ease; }
.modal.wide { width: min(780px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
.modal-f .left { margin-right: auto; }
.overlay.side-o { padding: 0; justify-content: flex-end; align-items: stretch; }
.drawer { background: var(--surface); width: min(640px, 100%); height: 100vh; overflow-y: auto; box-shadow: var(--sh-2); animation: slide .22s ease; display: flex; flex-direction: column; }
.drawer .modal-h { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.drawer .modal-b { flex: 1; }
.drawer .modal-f { border-radius: 0; position: sticky; bottom: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay, .modal, .drawer { animation: none; } }
@media (max-width: 600px) { .fgrid { grid-template-columns: minmax(0, 1fr); } .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } .overlay { padding: 0; } .modal { border-radius: 0; min-height: 100vh; } .modal-f { border-radius: 0; } }
.secret { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.secret span { flex: 1; overflow-wrap: anywhere; }
pre.doc { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); padding: 18px; border-radius: 12px; font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace; max-height: 55vh; overflow: auto; margin: 0; }
.menu { position: absolute; bottom: 64px; left: 14px; right: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); padding: 6px; z-index: 50; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--line-2); text-decoration: none; }
.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: var(--sh-2); max-width: 360px; animation: pop .18s ease; }
.toast.bad { background: var(--bad); color: #fff; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; animation: sh 1.2s linear infinite; margin: 10px 0; }
@keyframes sh { to { background-position: -200% 0; } }
.switch { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-size: 14px; font-weight: 600; }
.switch small { display: block; color: var(--mut); font-size: 13px; }
.switch input { margin-top: 2px; }

/* ---------- belépő oldalak ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; background: linear-gradient(150deg, #1d4ed8, #1e3a8a 70%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art.student { background: linear-gradient(150deg, #0f766e, #134e4a 70%); }
.auth-art .logo { background: #fff; color: #1d4ed8; }
.auth-art.student .logo { color: #0f766e; }
.auth-art h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.12; max-width: 460px; letter-spacing: -.02em; }
.auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 420px; }
.auth-art li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.88); }
.auth-art li .ico { color: #93c5fd; }
.auth-art.student li .ico { color: #5eead4; }
.auth-art .road { position: absolute; right: -60px; bottom: -40px; width: 360px; height: 360px; border-radius: 50%; border: 18px solid rgba(255,255,255,.06); }
.auth-art .road::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.18); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-box { width: min(380px, 100%); }
.auth-box h1 { font-size: 26px; }
.auth-box > p { color: var(--mut); margin: 6px 0 26px; }
.auth-box form { display: grid; gap: 16px; }
.auth-box .alt { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mut); }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw button { position: absolute; right: 4px; top: 4px; height: 32px; width: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--mut); }
.pw button:hover { background: var(--line-2); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { padding: 28px 24px; } .auth-art ul, .auth-art .road { display: none; } .auth-art h2 { font-size: 24px; margin-top: 18px; } }

/* ---------- tanulói felület ---------- */
.s-top { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.s-top .brand { padding: 0; }
.s-top .spacer { flex: 1; }
.s-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 48px; }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .bg { stroke: var(--line-2); } .ring .fg { stroke: var(--pri); stroke-linecap: round; }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.ring small { color: var(--mut); font-size: 12px; }
@media (max-width: 640px) { .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .hero .steps { text-align: left; } }

/* ---------- finomhangolás ---------- */
.grid > .card, .grid > .stat { margin-top: 0; }
@media (max-width: 600px) {
  .top .btn span { display: none; }
  .top .btn { width: 38px; padding: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat .val { font-size: 21px; }
  .stat .sub { font-size: 12px; }
  .phead h1 { font-size: 22px; }
  .s-top .btn span { display: none; }
}
