/* Órarend – szerkesztőfelület
   Rendszerbetűk (a szigorú CSP miatt nincs külső betűtípus), hűvös szürke alap, bordó kiemelés. */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #1a1d24;
  --ink-2: #3b4150;
  --muted: #5b6170;
  --line: #dde1e7;
  --line-strong: #c4cad3;
  --accent: #a3195b;
  --accent-ink: #ffffff;
  --accent-soft: #f7e4ee;
  --ok: #1f7a3d;
  --ok-soft: #e3f3e8;
  --warn: #9a5b00;
  --warn-soft: #fdf0d9;
  --err: #b42318;
  --err-soft: #fde7e5;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #7a1043; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hint { color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fejléc ---------- */
.appbar {
  background: var(--ink);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
}
.appbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.mainnav a {
  color: #c9cdd6;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.mainnav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mainnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.14); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who a { color: #fff; text-decoration: none; font-weight: 600; }
.who a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.role-chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff;
}
.logout-form { margin: 0; }
.logout {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.logout:hover { background: rgba(255,255,255,0.1); }

/* ---------- Oldal ---------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head-row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card-flush { padding: 0; overflow: hidden; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Űrlapok ---------- */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.code-input { font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; text-align: center; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.inline-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-fields select, .inline-fields input { width: auto; min-width: 0; flex: 1 1 140px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #8a144c; border-color: #8a144c; color: #fff; }
.btn-danger { color: var(--err); border-color: #e9b3ae; }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 0; min-height: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: #7a1043; }

/* ---------- Üzenetek ---------- */
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #b9dfc6; }
.alert-error { background: var(--err-soft); color: var(--err); border-color: #f2bdb7; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d49a; }
.alert-info { background: var(--accent-soft); color: #6d1140; border-color: #ecc3d6; }

/* ---------- Táblázat ---------- */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8f9fb;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-muted td { color: var(--muted); }
.table tr.is-warn td { background: #fffaf0; }
.actions-cell { text-align: right; width: 1%; white-space: nowrap; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill-on { background: var(--ok-soft); color: var(--ok); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.pill-off { background: #eceef2; color: var(--muted); }

.row-actions { position: relative; display: inline-block; text-align: left; }
.row-actions > summary { list-style: none; }
.row-actions > summary::-webkit-details-marker { display: none; }
.row-actions[open] { display: block; }
.row-actions[open] > summary { margin-left: auto; width: max-content; }
.row-actions-panel {
  margin-top: 8px;
  width: min(260px, 70vw);
  background: #f8f9fb; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  white-space: normal;
}
.row-actions-panel form { margin: 0; }
.row-actions-panel .inline-fields { flex-direction: column; align-items: stretch; }
.row-actions-panel .inline-fields select, .row-actions-panel .inline-fields input { flex: none; width: 100%; }
.row-actions-panel .btn { width: 100%; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain-list li { display: flex; flex-direction: column; gap: 2px; }
.device-ua { font-size: 13px; overflow-wrap: anywhere; }
.log {
  background: #f5f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0;
}
.empty { padding: 24px; color: var(--muted); }

.empty-state { gap: 14px; }
.roadmap { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.roadmap li::marker { font-weight: 700; color: var(--muted); }
.roadmap li.is-done::marker { color: var(--ok); }
.roadmap li.is-done strong { color: var(--ok); }

/* ---------- Belépés előtti oldalak ---------- */
.auth-body {
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh 16px 40px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
}
.brand-line { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.auth-links { font-size: 14px; }
.resend-form { margin: -4px 0 0; }

.install-step { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.install-step.is-disabled { opacity: 0.6; }
.install-step h2 { display: flex; align-items: center; gap: 10px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px;
}
.ok-line { color: var(--ok); font-weight: 600; }
.sql-log summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.sql-line { font: 12px/1.4 var(--mono); padding: 4px 8px; border-radius: 6px; margin-top: 4px; overflow-wrap: anywhere; }
.sql-line.is-ok { background: var(--ok-soft); color: var(--ok); }
.sql-line.is-err { background: var(--err-soft); color: var(--err); }

@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .who { width: 100%; justify-content: space-between; }
  .table th, .table td { padding: 10px 12px; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- 2. lépés: törzsadatok ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-stack.compact { gap: 10px; }
.form-stack.compact h3, .type-side h3, .levels h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
input[type="search"] {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; min-height: 40px;
}
input[type="color"] {
  width: 64px; height: 44px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer;
}

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg a {
  text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff;
}
.seg a:hover { border-color: var(--line-strong); color: var(--ink); }
.seg a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg-page { margin-top: -6px; }
.search-form input { flex: 1 1 200px; }

.place.is-inactive, .type-card.is-inactive { opacity: 0.75; }
.place-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.place-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rooms { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.rooms-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.room-list, .level-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.room-row, .level-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.room-row:last-child, .level-row:last-child { border-bottom: 0; }
.room-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.room-tools, .inline-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.room-tools form, .inline-tools form { margin: 0; }
.room-tools .row-actions[open] { display: inline-block; }
.room-tools .row-actions-panel, .place-head .row-actions-panel { position: absolute; right: 0; z-index: 10; box-shadow: 0 10px 30px rgba(26, 29, 36, 0.14); background: #fff; }
.room-tools .row-actions, .place-head .row-actions { position: relative; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink-2); color: var(--ink); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.add-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.add-row > input[type="text"] { flex: 1 1 160px; width: auto; }
.add-row .field { flex: 1 1 180px; }
.add-row .field-short { flex: 0 1 110px; }
.add-row .field-color { flex: 0 0 auto; }
.add-row .check { min-height: 44px; }
.check.small { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.settings-block { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.block-head { display: flex; flex-direction: column; gap: 4px; }
.type-card { padding: 0; gap: 0; scroll-margin-top: 16px; }
.type-summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; min-height: 56px;
}
.type-summary::-webkit-details-marker { display: none; }
.swatch { width: 18px; height: 18px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.type-name { font-weight: 700; font-size: 16px; }
.level-preview { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s; }
.type-card[open] .chev { transform: rotate(-135deg); }
.type-body { border-top: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.type-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 700px) { .type-grid { grid-template-columns: minmax(0, 1fr); } }
.type-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.levels { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.level-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: #e7e9ee; color: var(--ink);
  font: 600 12px/1 var(--mono);
}
.level-badge.is-off { opacity: 0.4; }
.level-row .level-name { flex: 1 1 160px; }
.level-row.is-inactive .level-badge, .level-row.is-inactive .level-name { opacity: 0.55; }

/* ---------- 3. lépés: rendezvények és órarend-szerkesztő ---------- */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-card { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.event-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.event-title-row h2 a { color: var(--ink); text-decoration: none; }
.event-title-row h2 a:hover { color: var(--accent); }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.narrow-card { max-width: 640px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.info-list { font-size: 13px; color: var(--ink-2); background: #f5f6f8; border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.card-grid-wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.check-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
.check-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-card.is-inactive { opacity: 0.75; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; width: 100%; resize: vertical; min-height: 100px; }
.delete-box { margin-top: 10px; padding: 12px; border: 1px solid #f2bdb7; border-radius: 10px; background: var(--err-soft); }
.tight-list { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.text-warn { color: var(--warn); font-weight: 600; }

.event-head .event-title-row h1 { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); flex-wrap: wrap; }
.tabs a {
  padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.editor-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.day-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.day-tabs a {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink);
}
.day-tabs a span { font-size: 12px; color: var(--muted); }
.day-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-tabs a[aria-current="page"] span { color: #c9cdd6; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.editor-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.editor-panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scroll-margin-top: 12px; }
@media (max-width: 1000px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-panel { position: static; max-height: none; }
  .editor.is-editing .editor-panel { order: -1; }
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-delete { border-top: 1px solid var(--line); padding-top: 12px; }

.grid-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.tt { display: grid; min-width: max-content; }
.tt-head {
  position: sticky; top: 0; z-index: 3; background: #f8f9fb; border-bottom: 1px solid var(--line);
  padding: 10px 12px; font-weight: 700; font-size: 14px; border-left: 1px solid var(--line);
}
.tt-head small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.tt-corner { border-left: 0; }
.tt-times { position: relative; }
.tt-times span {
  position: absolute; right: 8px; transform: translateY(-50%);
  font: 600 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums;
}
.tt-times span:first-child { transform: translateY(2px); }
.tt-times span.is-next { color: #6d1140; }
.tt-midnight { position: absolute; left: 0; right: 0; border-top: 2px dashed #b8bfca; z-index: 1; pointer-events: none; }
.tt-col {
  position: relative; border-left: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
}
.tt-slot { position: absolute; left: 0; right: 0; display: block; border-radius: 4px; }
.tt-slot:hover, .tt-slot:focus-visible { background: rgba(163, 25, 91, 0.08); outline: 1px dashed var(--accent); outline-offset: -2px; }
.tt-slot:hover::after { content: '+'; position: absolute; left: 8px; top: 2px; font-weight: 700; color: var(--accent); }
.tt-class {
  position: absolute; left: 4px; right: 4px; z-index: 2;
  border-radius: 8px; padding: 6px 8px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.25;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.tt-class:hover { filter: brightness(1.06); }
.tt-class.is-selected { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 4; }
.tt-class.is-highlight { animation: flash 1.2s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 6px rgba(163,25,91,0.45); } 100% { box-shadow: 0 0 0 0 rgba(163,25,91,0); } }
.tt-class.has-conflict { outline: 3px solid #e5484d; outline-offset: -3px; }
.tt-class.has-warning { outline: 3px dashed #f5a524; outline-offset: -3px; }
.tt-time { font: 600 11px/1.2 var(--mono); opacity: 0.9; }
.tt-name { font-weight: 700; }
.tt-teach { opacity: 0.92; }
.tt-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tt-meta { display: flex; gap: 3px; flex: none; }
.tt-badge { display: inline-block; padding: 1px 6px; border-radius: 999px; font: 600 11px/1.4 var(--mono); background: rgba(255,255,255,0.85); color: var(--ink); }
.tt-badge-ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.tt-flag { align-self: flex-start; margin-top: auto; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #fff; color: #b42318; }
.swatch-sm { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; }
.table tr.is-selected-row td { background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) { .tt-class.is-highlight { animation: none; outline: 3px solid var(--accent); } }

/* ---------- 4. lépés: jóváhagyás ---------- */
.pill-info { background: #e5edfb; color: #1d4ed8; }
.pill-alert { background: var(--err-soft); color: var(--err); }
.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1d4ed8; vertical-align: 2px; margin-left: 4px; }
.split-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split-wide { grid-template-columns: minmax(0, 1fr); } }
.field-narrow { max-width: 260px; }
.approval-head { gap: 14px; }
.approval-stats { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; gap: 16px 28px; align-items: center; }
@media (max-width: 760px) { .approval-stats { grid-template-columns: minmax(0, 1fr); } }
.big-number { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.progress { height: 10px; border-radius: 999px; background: #e7e9ee; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.quote { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 10px; color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; }
.cron-box summary { cursor: pointer; }
.cron-box[open] { gap: 12px; }
.cron-box input[readonly] { font-family: var(--mono); font-size: 12px; background: #f5f6f8; }

.public-body { min-height: 100vh; }
.public-page { max-width: 880px; margin: 0 auto; padding: 32px 16px 56px; display: flex; flex-direction: column; gap: 20px; }
.public-head { display: flex; flex-direction: column; gap: 6px; }
.public-head h1 { font-size: 30px; }
.approve-card { gap: 14px; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f5f6f8; font-size: 14px; }
.status-line.status-jovahagyta, .status-line.status-helyette { background: var(--ok-soft); }
.status-line.status-modositast_ker { background: var(--warn-soft); }
.my-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.my-class { background: #fff; border: 1px solid var(--line); border-top: 14px solid var(--accent); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.my-class-name { font-weight: 700; font-size: 16px; }
.answer-card { border-color: var(--accent); }
.day-title { font-size: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8f9fb; }
.table tr.is-mine td { background: var(--accent-soft); }
.table tr.is-mine td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.show-sm { display: none; }
@media (max-width: 600px) { .show-sm { display: block; } }

/* ---------- Saját megerősítő ablak (a böngésző confirm() helyett) ---------- */
.btn-danger-solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger-solid:hover { background: #8f1c13; border-color: #8f1c13; color: #fff; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 22, 28, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity 0.12s ease;
}
.modal-backdrop.is-open { opacity: 1; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  width: 100%; max-width: 440px;
  padding: 22px 22px 18px;
  transform: translateY(6px); transition: transform 0.12s ease;
}
.modal-backdrop.is-open .modal { transform: none; }
.modal-title { margin-bottom: 8px; }
.modal-msg { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

/* Saját tárhelyről betöltött betűk a publikus oldalhoz (OFL licenc, assets/fonts/):
   Bebas Neue – címek, napfülek, időpontok; Inter – szöveg. */
@font-face { font-family: "Bebas Neue"; src: url("fonts/bebas-neue.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff") format("woff"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ---------- Publikus órarend és előnézet (pv-) ----------
   Napfülek, napon belül idősávok; idősávonként kártyák (széles képernyőn egymás mellett, mobilon egymás alatt). */
[hidden] { display: none !important; }
.pv-body { --pv-bg: #F5F3EF; --pv-ink: #1A1D24; --pv-muted: color-mix(in srgb, var(--pv-ink) 68%, var(--pv-bg)); background: var(--pv-bg); color: var(--ink); }
.pv-page { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; }
.pv { display: flex; flex-direction: column; gap: 20px; }
.pv-head h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; letter-spacing: -0.015em; }
.pv-head { color: var(--pv-ink); }
.pv-sub { color: var(--pv-muted); font-size: 16px; margin-top: 6px; }
.pv-updated { color: var(--pv-muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.pv-note { color: var(--pv-ink); font-size: 14px; font-weight: 600; margin-top: 10px; opacity: 0.9; }
.pv-empty { color: var(--muted); padding: 24px 0; }

.pv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 6; background: var(--pv-bg); padding: 10px 0; }
.is-preview .pv-bar { top: 44px; }
.pv-days { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-days a {
  display: flex; flex-direction: column; gap: 1px; min-width: 100px; padding: 8px 16px; min-height: 48px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink);
}
.pv-days a strong { font-size: 15px; }
.pv-days a span { font-size: 12px; color: var(--muted); }
.pv-js .pv-days a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pv-js .pv-days a[aria-current="true"] span { color: #c9cdd6; }
.pv-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pv-muted); }
.pv-filter select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; padding: 0 10px; font: inherit; color: var(--ink); }

.pv-day { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.pv-day-title { font-size: 22px; }
.pv-js .pv-day-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Idősávok */
.pv-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pv-slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.pv-slot-time { font: 800 17px/1 var(--font); font-variant-numeric: tabular-nums; padding-top: 14px; color: var(--pv-ink); position: sticky; top: 76px; }
.pv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }

/* Egy óra kártyája */
.pv-card {
  background: #fff; border: 1px solid var(--line); border-top: 16px solid var(--type, var(--line-strong));
  border-radius: 12px; padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.04);
}
.pv-card.is-wide { grid-column: 1 / -1; }
.pv-card.is-program { background: color-mix(in srgb, var(--type) 10%, #fff); }
.pv-time { font: 600 13px/1.3 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pv-room { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pv-title { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); margin-top: 3px; overflow-wrap: anywhere; }
a.pv-title { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--type) 70%, #999); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.pv-title:hover { color: var(--accent); }
.pv-teach { font-size: 14px; color: var(--ink-2); }
.pv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.pv-parity { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pv-meta .pv-parity::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); vertical-align: middle; margin-right: 8px; }
.pv-card.is-filtered { display: none; }

/* Szint-jelvények: saját színnel; a tól–ig közötti kötőjelnek nincs háttere */
.lvl { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 12px/1.4 var(--font); letter-spacing: 0.02em; white-space: nowrap; }
.lvl-plain { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.lvl-range { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lvl-dash { font-weight: 700; color: var(--muted); }
.tt-meta .lvl { padding: 1px 5px; font-size: 11px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.tt-meta .lvl-dash { color: inherit; opacity: 0.8; font-size: 11px; }
.level-row .lvl { min-width: 44px; text-align: center; }

/* Jelmagyarázat és leírások */
.pv-legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 8px; }
.pv-legend h2 { font-size: 18px; color: var(--ink); }
.pv-legend-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: start; }
.pv-legend-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pv-legend-group li { display: inline-flex; align-items: center; gap: 6px; }
.pv-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.pv-descs { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pv-descs > h2 { font-size: 24px; color: var(--pv-ink); }
.pv-desc { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--type, var(--line-strong)); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.pv-desc:target { outline: 3px solid var(--accent); outline-offset: 2px; }
.pv-desc h3 { font-size: 18px; }
.pv-desc-when { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.pv-desc-when .lvl-range { margin-left: 4px; vertical-align: 1px; }
.pv-desc-text { font-size: 15px; line-height: 1.6; max-width: 72ch; }
.pv-back { font-size: 13px; font-weight: 600; }

@media (max-width: 600px) {
  .pv-page { padding-top: 18px; }
  .pv-slot { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pv-slot-time { position: static; padding-top: 4px; font-size: 15px; color: var(--muted); }
  .pv-cards { grid-template-columns: minmax(0, 1fr); }
  .pv-days { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .pv-days a { min-width: 0; padding: 8px 10px; }
  .pv-filters { width: 100%; }
  .pv-filter-row { flex-direction: column; align-items: stretch; }
  .pv-filter { width: 100%; }
  .pv-filter span { min-width: 64px; }
  .pv-filter select { flex: 1; }
  .pv-legend-group { grid-template-columns: minmax(0, 1fr); }
}


/* Betűtípusok a publikus oldalon */
.pv-body { --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif; font-family: "Inter", var(--font); }
.pv-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 76px); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.pv-sub { font-size: 17px; }
.pv-days a strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.pv-days a span { font-size: 12px; }
.pv-js .pv-day-title, .pv-day-title {
  position: static; width: auto; height: auto; overflow: visible; clip: auto;
  font-family: var(--display); font-weight: 400; font-size: 36px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: baseline; gap: 12px;
}
.pv-day-title small { font-family: "Inter", var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--pv-muted); }
.pv-slot-time { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0.02em; padding-top: 10px; }
.pv-time { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; line-height: 1.1; color: var(--ink-2); }
.pv-room { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.pv-title { font-weight: 800; }
.pv-legend h2, .pv-descs > h2 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; }
.pv-desc h3 { font-weight: 800; }
@media (max-width: 600px) {
  .pv-days a strong { font-size: 20px; }
  .pv-slot-time { font-size: 22px; padding-top: 2px; }
  .pv-day-title { font-size: 30px; }
}

/* Előnézet sáv */
.preview-bar { position: sticky; top: 0; z-index: 10; background: #fdf0d9; border-bottom: 1px solid #f0c977; color: #5c3a00; }
.preview-bar-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; min-height: 44px; align-items: center; }
.preview-bar a { color: #5c3a00; font-weight: 700; }
@media (max-width: 600px) { .preview-bar-note { display: none; } .is-preview .pv-bar { position: static; } }
.tabs a.tab-preview { margin-left: auto; color: var(--accent); }

/* ---------- Importálás ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 700; font-size: 12px; background: #fff; }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.steps li[aria-current="step"] span { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.is-done span { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.radio-cards .check-card { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.radio-cards .check-card > span { display: flex; flex-direction: column; gap: 2px; }
.table-compact td, .table-compact th { padding-top: 8px; padding-bottom: 8px; }
.table-compact select { width: 100%; min-width: 0; }
.mt { margin-top: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
.field-error { color: var(--err); font-weight: 600; }
.input-xs { max-width: 80px; }
.new-parity { margin-top: 6px; }
.new-parity input { min-width: 0; }
.bulk-type { margin-top: 10px; align-items: center; }
.import-table { font-size: 13px; }
.import-table td { vertical-align: top; }
.import-table select { min-width: 110px; max-width: 170px; font-size: 13px; }
.import-table .import-name input { min-width: 220px; width: 100%; font-size: 13px; }
.import-table tr.is-off td { opacity: 0.45; }
.import-table tr.is-off td:first-child { opacity: 1; }
.import-table tr.has-error td { background: var(--err-soft); }

/* ---------- Egyszerre szerkesztés ---------- */
.tt-editing { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #1d4ed8; color: #fff; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.presence-box strong { font-weight: 800; }
.clash-box { display: flex; flex-direction: column; gap: 8px; }
.clash-list { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.clash-row { background: #fff; border-radius: 8px; padding: 8px 10px; color: var(--ink); font-size: 13px; }
.clash-row dt { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.clash-row dd { margin: 0; overflow-wrap: anywhere; }
.clash-who { color: var(--muted); font-weight: 600; }

/* ---------- Publikálás utáni változások a publikus oldalon ---------- */
.pv-time-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pv-flag { font: 800 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.pv-flag-new { background: #1f7a3d; color: #fff; }
.pv-flag-changed { background: #f59e0b; color: #1a1d24; }
.pv-flag-off { background: #b42318; color: #fff; }
.pv-flag-text { font-size: 13px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 4px 8px; margin-top: 8px; }
.pv-card.is-flagged { box-shadow: 0 0 0 2px #f59e0b inset, 0 1px 2px rgba(20,22,28,0.04); }
.pv-card.is-cancelled { opacity: 0.85; background: repeating-linear-gradient(135deg, #fff, #fff 10px, #fbf1f0 10px, #fbf1f0 20px); }
.pv-card.is-cancelled .pv-title, .pv-card.is-cancelled .pv-teach, .pv-card.is-cancelled .pv-time, .pv-card.is-cancelled .pv-meta { text-decoration: line-through; text-decoration-color: #b42318; text-decoration-thickness: 2px; }
.pv-card.is-cancelled .pv-flag-text { background: #fde7e5; color: #b42318; }
.pv-card.is-pinged { animation: pv-ping 1.6s ease-out 1; }
@keyframes pv-ping { 0% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pv-card.is-pinged { animation: none; outline: 3px solid var(--accent); } }
.pv-changes { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 14px; padding: 14px 18px; color: #1a1d24; }
.pv-changes h2 { font-family: var(--display, inherit); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; color: #92400e; }
.pv-changes ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pv-changes a { color: #1a1d24; }
.pv-unavailable { max-width: 560px; margin: 80px auto; text-align: center; color: var(--pv-ink); display: flex; flex-direction: column; gap: 10px; }

/* ---------- Publikálás fül ---------- */
.tab-dot-on { background: var(--ok); }
.change-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.change-list li { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.change-list li > span:nth-child(2) { flex: 1 1 220px; min-width: 0; }
.change-list .pill { flex: none; }
.appearance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: start; }
.appearance-grid input[type="color"] { width: 64px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; }
.appearance-sample { background: var(--pv-bg); color: var(--pv-ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sample-title { font-family: "Bebas Neue", var(--font); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1; }
.sample-day { font-family: "Bebas Neue", var(--font); font-size: 20px; text-transform: uppercase; color: var(--accent); }
.sample-card { background: #fff; color: var(--ink); border-radius: 8px; border-top: 4px solid var(--accent); padding: 6px 10px; font-size: 13px; font-weight: 700; }
.tt-class.is-cancelled { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.35) 0 8px, transparent 8px 16px) !important; }
.tt-class.is-cancelled .tt-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.cancel-check { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.cancel-check:has(input:checked) { border-color: var(--err); background: var(--err-soft); }
.appearance-form > .btn { align-self: flex-start; }

/* ---------- Oktatói kép ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft); }
.avatar-empty { display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accent); }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 120px; height: 120px; font-size: 36px; border-radius: 16px; }
.teacher-cell { display: flex; align-items: center; gap: 10px; }
.teacher-link { color: var(--ink); text-decoration: none; }
.teacher-link:hover { color: var(--accent); text-decoration: underline; }
.teacher-title { display: flex; align-items: center; gap: 14px; }
.photo-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

/* ---------- Oktatók a publikus oldalon ---------- */
.pv-teacher-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 2px; }
.pv-teacher-link:hover { color: var(--accent); }
.pv-teachers { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pv-teachers > h2 { font-family: var(--display, inherit); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--pv-ink); }
.pv-teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pv-teacher { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 14px; align-items: flex-start; scroll-margin-top: 90px; color: var(--ink); }
.pv-teacher:target { outline: 3px solid var(--accent); outline-offset: 2px; }
.pv-teacher-photo { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; flex: none; background: color-mix(in srgb, var(--accent) 12%, #fff); }
.pv-teacher-empty { display: grid; place-items: center; font-family: var(--display, inherit); font-size: 44px; color: var(--accent); }
.pv-teacher-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-teacher h3 { font-size: 18px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-guest { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 7px; border-radius: 5px; }
.pv-teacher-bio { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pv-teacher-classes { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.pv-teacher-classes a { font-weight: 700; color: var(--ink-2); }
.pv-cancel-note { color: var(--err); }
@media (max-width: 480px) {
  .pv-teacher-grid { grid-template-columns: minmax(0, 1fr); }
  .pv-teacher-photo { width: 84px; height: 84px; }
}

/* ---------- Részek fülei: Órarend | Óraleírások | Oktatók ---------- */
.pv-panes { display: none; gap: 4px; border-bottom: 2px solid color-mix(in srgb, var(--pv-ink) 18%, transparent); }
.pv-js .pv-panes { display: flex; }
.pv-panes a {
  font-family: var(--display, inherit); font-size: 24px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1;
  padding: 10px 14px 9px; color: var(--pv-muted); text-decoration: none; border-bottom: 4px solid transparent; margin-bottom: -2px;
}
.pv-panes a:hover { color: var(--pv-ink); }
.pv-panes a[aria-current="true"] { color: var(--pv-ink); border-bottom-color: var(--accent); }
.pv-pane { display: flex; flex-direction: column; gap: 20px; }
.pv-js .pv-pane > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .pv-panes { display: none; }
  .pv-js .pv-panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .pv-panes a { font-size: 19px; padding: 10px 4px 9px; text-align: center; }
}

/* ---------- Oktatói kártya (a rendszer rajzolja a kivágott fotóból) ---------- */
.tcard {
  --tc-bg: #FFC20E; --tc-name: #C90909; --tc-accent: #C90909;
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--tc-bg);
  box-shadow: 0 12px 28px rgba(80, 10, 10, 0.16); isolation: isolate; container-type: inline-size;
}
.tcard::before {
  content: ""; position: absolute; inset: -20% -40% auto auto; width: 120%; height: 70%; z-index: -1;
  background: linear-gradient(115deg, transparent 0 38%, color-mix(in srgb, var(--tc-accent) 85%, transparent) 38% 46%,
    transparent 46% 52%, color-mix(in srgb, var(--tc-accent) 40%, transparent) 52% 55%, transparent 55%);
}
.tcard::after {
  content: ""; position: absolute; left: 0; bottom: 17%; width: 46%; height: 34%; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--tc-accent) 70%, transparent) 2.2px, transparent 2.6px);
  background-size: 11px 11px;
  -webkit-mask-image: linear-gradient(45deg, #000 20%, transparent 75%); mask-image: linear-gradient(45deg, #000 20%, transparent 75%);
}
.tcard-photo { position: absolute; right: -12%; bottom: 17%; width: 92%; height: auto; max-height: 80%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22)); }
.tcard.is-photo .tcard-photo { right: 6%; bottom: 20%; width: 66%; max-height: none; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 4px solid #fff; }
.tcard-initials { position: absolute; right: 10%; bottom: 26%; font-family: "Bebas Neue", var(--font); font-size: 46cqw; line-height: 1; color: color-mix(in srgb, var(--tc-name) 30%, transparent); }
.tcard-name {
  position: absolute; left: 6.5cqw; bottom: 19%; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: "Bebas Neue", var(--font); font-size: 26cqw; line-height: 0.86; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--tc-name); -webkit-text-stroke: 1.6cqw var(--tc-bg); paint-order: stroke fill; max-height: 70%; padding-right: 2cqw;
}
.tcard-logo { position: absolute; top: 4.5cqw; left: 4.5cqw; width: 30cqw; height: 30cqw; object-fit: contain; z-index: 2; }
.tcard-guest { position: absolute; top: 5cqw; right: 5cqw; z-index: 2; font: 800 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; background: #1a1d24; color: #fff; padding: 6px 8px; border-radius: 6px; }
.tcard-band { position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: #1a1d24; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 5cqw; z-index: 3; }
.tcard-event { font-family: "Bebas Neue", var(--font); font-size: 6.6cqw; letter-spacing: 0.04em; line-height: 1.3; padding-top: 0.6cqw; color: var(--tc-band-ink, #FFC20E); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-sub { font-size: 3.7cqw; font-weight: 600; opacity: 0.9; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Publikus oldal: oktatók rácsa kártyákkal */
.pv-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.pv-titem { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; border-radius: 18px; }
.pv-titem:target .tcard { outline: 4px solid var(--accent); outline-offset: 3px; }
.pv-titem .pv-teacher-bio { color: var(--pv-ink); opacity: 0.88; }
.pv-titem .pv-teacher-classes { color: var(--pv-muted); }
.pv-titem .pv-teacher-classes a { color: var(--pv-ink); }
@media (max-width: 480px) { .pv-tgrid { grid-template-columns: minmax(0, 1fr); } .pv-titem .tcard { max-width: 360px; } }

/* Kis kerek kép a kivágott fotóból */
.avatar.is-cutout { object-fit: cover; object-position: 50% 12%; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: start; }
.logo-preview { width: 120px; height: 120px; border-radius: 12px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); }
.logo-preview img { max-width: 100%; max-height: 100%; }
.logo-on-light { background: #FFC20E; }
.logo-on-dark { background: #1a1d24; }
.brand-grid input[type="color"] { width: 64px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; }
.card-preview { width: 260px; max-width: 100%; }
.card-color-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-side { flex: 1 1 240px; min-width: 0; }
.subhead { margin: 1.25rem 0 .25rem; font-size: 1rem; }
/* hosszú sávfelirat (pl. „A … – Zalakaros rendezvény főszervezője”): két sorban, kisebb betűvel */
.tcard-event.is-long { white-space: normal; font-size: 5.2cqw; line-height: 1.15; padding-top: 0.3cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* oktatói előnézet: a saját órák kiemelése */
.pv-card.is-mine { box-shadow: 0 0 0 3px var(--accent, #C90909) inset, 0 2px 6px rgba(20,22,28,0.12); }
.pv-flag.pv-flag-mine { background: var(--accent, #C90909); color: #fff; }
.pv-flags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
/* gyors beállítás: kinek mi a neme */
.gender-bulk summary { cursor: pointer; }
.gender-bulk form { margin-top: 10px; }
.gender-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.gender-row { display: flex; align-items: center; gap: 10px; }
.gender-row > span:first-child { min-width: 90px; font-weight: 600; }
.minor-check { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.minor-check:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
/* Facebook-képek */
.fb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.fb-item { margin: 0; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fb-canvas { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.fb-item figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.fb-item figcaption .btn { margin-left: auto; }
.fb-tools { margin-top: 8px; }
.seg-radio { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; margin: 0 0 6px; background: var(--surface); }
.seg-radio label { cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: block; padding: 7px 14px; border-radius: 7px; font-weight: 600; font-size: 14px; }
.seg-radio input:checked + span { background: var(--accent, #A3195B); color: #fff; }
.seg-radio input:focus-visible + span { outline: 2px solid var(--accent, #A3195B); outline-offset: 2px; }
/* Statisztika */
.stat-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 16px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; }
.stat-pay .stat-num { color: var(--ok); }
.threshold-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.threshold-form label { margin: 0; font-weight: 600; }
.threshold-form input#kuszob { width: 72px; flex: 0 0 72px; text-align: center; }
.stat-note { padding: 0 16px; }
.stat-table th.num, .stat-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-table tr.is-paid td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.stat-detail summary { cursor: pointer; }
.stat-classes { margin: 8px 0 4px; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.stat-classes .is-off { color: var(--muted); text-decoration: line-through; }

/* mobilon a műfaj színcsíkja még vastagabb, hogy jól látsszon */
@media (max-width: 600px) { .pv-card { border-top-width: 18px; } }

/* Szűrés a publikus oldalon: program, terem, oktató */
.pv-filters { position: relative; }
.pv-filters > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }
.pv-filters > summary::-webkit-details-marker { display: none; }
.pv-filters > summary::before { content: ""; width: 14px; height: 10px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 2px 4px / 10px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 4px 8px / 6px 2px no-repeat; }
.pv-filter-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.pv-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.pv-filter-clear { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 2px; }
.pv-day-count { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.pv-js .pv-days a[aria-current="true"] .pv-day-count { color: #fff; }
.pv-days a.is-empty { opacity: 0.55; }
@media (min-width: 801px) {
  /* széles képernyőn a „Szűrés” gomb helyett a mezők látszanak egy sorban */
  .pv-filters > summary { display: none; }
  .pv-filter-row { margin-top: 0; }
}
@media (max-width: 800px) {
  /* nyitott szűrővel a sáv ne ragadjon felül (túl magas lenne) */
  .pv-bar:has(.pv-filters[open]) { position: static; }
}
/* A rendezvény saját logója a publikus oldal fejlécében */
.pv-head.has-logo { display: flex; align-items: center; gap: 22px; }
.pv-event-logo { flex: 0 0 auto; width: 132px; height: 132px; object-fit: contain; border-radius: 14px; }
.pv-head-text { min-width: 0; }
@media (max-width: 600px) {
  .pv-head.has-logo { gap: 14px; align-items: flex-start; }
  .pv-event-logo { width: 76px; height: 76px; border-radius: 10px; }
}
.event-logo-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.event-logo-preview { width: 110px; height: 110px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.event-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.event-logo-row .form-stack { flex: 1; min-width: 220px; }
.change-list .quiet-check { margin-left: auto; white-space: nowrap; color: var(--muted); }
.change-list .quiet-check:has(input:checked) { color: var(--ok); font-weight: 700; }
.fb-teachers-head { margin: 36px 0 12px; }
.cron-card h3 { margin-top: 0; } .cron-card h4 { margin: 18px 0 8px; font-size: 15px; }
/* belépő oldal: a tánciskola logója a kártya jobb felső sarkában */
.auth-card { position: relative; }
.auth-logo { position: absolute; top: 16px; right: 20px; width: 94px; height: 94px; object-fit: contain; }
@media (max-width: 420px) { .auth-logo { width: 80px; height: 80px; top: 14px; right: 16px; } }
