/* NJE HÖK Események — arculat: Titillium Web, lila #784598, grafit #222527, fehér.
   Motívum: a logó körei (pötty, gyűrű) → státuszpöttyök, kör alakú pipák, a jóváhagyási lánc köröcskéi. */

/* ---------- Betűtípus (helyben kiszolgálva) ---------- */
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 200; font-display: swap; src: url(/fonts/titillium-web-latin-ext-200-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 200; font-display: swap; src: url(/fonts/titillium-web-latin-200-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/titillium-web-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/titillium-web-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/titillium-web-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/titillium-web-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/titillium-web-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Titillium Web'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/titillium-web-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokenek ---------- */
:root {
  --purple: #784598;
  --purple-hover: #66397f;
  --purple-ink: #784598;
  --purple-soft: #f3ecf8;
  --purple-line: #e2d3ee;
  --graphite: #222527;

  --bg: #faf9fb;
  --surface: #ffffff;
  --surface-2: #f5f3f7;
  --surface-3: #eeebf2;
  --border: #ebe8ef;
  --border-strong: #dcd8e2;
  --text: #222527;
  --text-2: #50545b;
  --muted: #868a92;

  --ok: #1d9367; --ok-soft: #e6f5ee;
  --warn: #c97716; --warn-soft: #fcf1e3;
  --danger: #d23f4f; --danger-soft: #fceaec;
  --info: #2f7fc1; --info-soft: #e7f1fa;

  --font: 'Titillium Web', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 26px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(34, 37, 39, .05);
  --shadow: 0 1px 2px rgba(34, 37, 39, .04), 0 12px 32px -16px rgba(34, 37, 39, .18);
  --shadow-lg: 0 24px 60px -20px rgba(34, 37, 39, .35);
  --sidebar: 264px;
  --rail: 84px;
  --topbar: 64px;
  --bottombar: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --purple-ink: #c49be2; --purple-soft: rgba(176, 125, 214, .16); --purple-line: rgba(176, 125, 214, .32);
  --bg: #222527; --surface: #2a2e31; --surface-2: #313539; --surface-3: #383d41;
  --border: #393e43; --border-strong: #474d53; --text: #f4f3f6; --text-2: #c5c7cc; --muted: #959aa1;
  --ok: #43c08f; --ok-soft: rgba(67, 192, 143, .14); --warn: #eba04a; --warn-soft: rgba(235, 160, 74, .14);
  --danger: #f06a77; --danger-soft: rgba(240, 106, 119, .14); --info: #64aee8; --info-soft: rgba(100, 174, 232, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px -16px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --purple-ink: #c49be2; --purple-soft: rgba(176, 125, 214, .16); --purple-line: rgba(176, 125, 214, .32);
    --bg: #222527; --surface: #2a2e31; --surface-2: #313539; --surface-3: #383d41;
    --border: #393e43; --border-strong: #474d53; --text: #f4f3f6; --text-2: #c5c7cc; --muted: #959aa1;
    --ok: #43c08f; --ok-soft: rgba(67, 192, 143, .14); --warn: #eba04a; --warn-soft: rgba(235, 160, 74, .14);
    --danger: #f06a77; --danger-soft: rgba(240, 106, 119, .14); --info: #64aee8; --info-soft: rgba(100, 174, 232, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px -16px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* Logó: világos témában pozitív, sötétben negatív */
.logo-neg { display: none; }
:root[data-theme='dark'] .logo-pos { display: none; }
:root[data-theme='dark'] .logo-neg { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .logo-pos { display: none; }
  :root[data-theme='auto'] .logo-neg { display: block; }
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--purple-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(26px, 3.2vw, 34px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 .75em; }
small, .small { font-size: 13.5px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.thin { font-weight: 200; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--purple); color: #fff; }

.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 17px; height: 17px; }
.i-lg { width: 28px; height: 28px; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-ink); }
.eyebrow.muted { color: var(--muted); }

/* ---------- Váz: oldalsáv (PC), sáv (tablet), alsó navigáció (mobil) ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 16px 16px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 22px; color: inherit; }
.brand:hover { text-decoration: none; }
/* Biztonsági terület a logó körül: a lila pötty átmérőjének megfelelő tér */
.brand-logo { padding: 7px; margin: -7px; }
.brand-logo img { height: 26px; width: auto; }
.brand-sub { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px; line-height: 1.2; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sep { margin: 18px 12px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav a {
  position: relative; display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 14px; border-radius: 14px;
  color: var(--text-2); font-weight: 600; font-size: 15.5px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--purple-soft); color: var(--purple-ink); }
.nav a.active::before { content: ''; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--purple); }
.nav .lbl-short { display: none; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--purple); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }

.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; padding: 6px; border-radius: 12px; }
.me:hover { background: var(--surface-2); text-decoration: none; }
.me-name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.me-role { font-size: 12.5px; color: var(--muted); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13.5px;
  background: var(--purple-soft); color: var(--purple-ink); letter-spacing: .02em;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -7px; }
.avatars .avatar:first-child { margin-left: 0; }

.main { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar .crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; font-weight: 600; min-width: 0; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs a:hover { color: var(--text); }
.topbar-logo { display: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent;
  color: var(--text-2); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .badge-dot {
  position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--purple); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg);
}
.page { max-width: 1440px; margin: 0 auto; padding: 8px 32px 48px; }
.page.narrow { max-width: 860px; }
.page.medium { max-width: 1120px; }

.footer { padding: 22px 32px 30px; color: var(--muted); font-size: 13px; display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; max-width: 1440px; margin: 0 auto; }
.footer .ver { font-variant-numeric: tabular-nums; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); font-weight: 600; }

.bottombar { display: none; }

/* Tablet: ikonsáv feliratokkal */
@media (max-width: 1099px) and (min-width: 768px) {
  .sidebar { width: var(--rail); padding: 16px 8px; align-items: center; }
  .brand { padding: 4px 0 18px; justify-content: center; }
  .brand-logo img { height: 18px; }
  .brand-sub, .nav-sep, .me > div, .sidebar-foot .theme-btn { display: none; }
  .nav { width: 100%; }
  .nav a { flex-direction: column; height: auto; padding: 10px 2px 8px; gap: 4px; font-size: 11.5px; text-align: center; border-radius: 16px; line-height: 1.15; }
  .nav a.active::before { left: -8px; }
  .nav .count { position: absolute; top: 4px; right: 10px; margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
  .nav .lbl-long { display: none; }
  .nav .lbl-short { display: block; }
  .sidebar-foot { padding: 10px 0 0; justify-content: center; border: 0; }
  .main { margin-left: var(--rail); }
  .topbar, .page, .footer { padding-left: 24px; padding-right: 24px; }
}

/* Mobil: felső sáv logóval + alsó navigáció */
@media (max-width: 767px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 0 8px 0 16px; height: calc(var(--topbar) - 6px + var(--safe-t)); padding-top: var(--safe-t); }
  .topbar .crumbs { display: none; }
  .topbar-logo { display: block; padding: 6px; margin-left: -6px; }
  .topbar-logo img { height: 21px; width: auto; }
  .page { padding: 4px 16px calc(var(--bottombar) + 28px + var(--safe-b)); }
  .footer { padding: 0 16px calc(var(--bottombar) + 24px + var(--safe-b)); margin-top: calc(-1 * (var(--bottombar) + 8px)); }
  .bottombar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--bottombar) + var(--safe-b)); padding: 6px 6px var(--safe-b);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
    border-top: 1px solid var(--border);
  }
  .bottombar a, .bottombar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font: inherit;
    color: var(--muted); font-size: 11.5px; font-weight: 600; border-radius: 16px; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .bottombar .ico { width: 56px; height: 30px; border-radius: 99px; display: grid; place-items: center; transition: background .2s; }
  .bottombar .active { color: var(--purple-ink); }
  .bottombar .active .ico { background: var(--purple-soft); }
  .bottombar .count { position: absolute; top: 0; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) { .only-mobile { display: none !important; } }
@media (min-width: 1100px) { .only-tablet-down { display: none !important; } }

/* ---------- Oldalfejléc ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding: 14px 0 26px; }
.page-head > .grow { flex: 1 1 320px; min-width: 0; }
.page-head h1 { margin-top: 6px; }
.page-head .lead { margin: 8px 0 0; color: var(--text-2); max-width: 62ch; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .page-head { padding: 8px 0 18px; align-items: flex-start; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* ---------- Gombok ---------- */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: 99px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 8px 20px -10px rgba(120, 69, 152, .7); }
.btn-primary:hover { background: var(--purple-hover); border-color: var(--purple-hover); }
.btn-dark { background: var(--graphite); border-color: var(--graphite); color: #fff; }
:root[data-theme='dark'] .btn-dark { background: #fff; color: var(--graphite); border-color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft { background: var(--purple-soft); border-color: transparent; color: var(--purple-ink); }
.btn-soft:hover { background: var(--purple-line); }
.btn-danger { background: var(--surface); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
@media (max-width: 767px) { .btn { --h: 48px; } .btn-sm { --h: 40px; } .btn-lg { --h: 56px; } }

/* ---------- Kártyák, rácsok ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.flat { box-shadow: none; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-width: 0; }
.card-head h2, .card-head h3 { flex: 1; min-width: 0; }
.card-head .link { font-size: 14px; font-weight: 600; white-space: nowrap; }
.card + .card { margin-top: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.section-title h2 { font-size: 19px; }
.section-title .count-pill { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 1px 9px; border-radius: 99px; }
.section-title .link { margin-left: auto; font-weight: 600; font-size: 14px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 1099px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } .card { padding: 18px; border-radius: 18px; } }

.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* ---------- Címkék, pöttyök ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--c, var(--purple)); }
.dot.lg { width: 12px; height: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); max-width: 100%;
}
.chip .dot { width: 7px; height: 7px; background: currentColor; }
.chip.sm { height: 24px; padding: 0 9px; font-size: 12.5px; }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-purple { background: var(--purple-soft); color: var(--purple-ink); }
.tone-muted { background: var(--surface-2); color: var(--muted); }
.tone-neutral { background: var(--surface-2); color: var(--text-2); }
.chip.outline { background: transparent; border: 1px solid var(--border-strong); }
.type-chip { background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 82%, var(--text)); }
.type-chip .dot { background: var(--c); }
.plat { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: 99px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); }
.plat .i { width: 15px; height: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Űrlapok ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field + .field, .field + .fields, .fields + .field, .fields + .fields { margin-top: 16px; }
.field > label, .label { font-size: 14px; font-weight: 700; color: var(--text); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: -2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .fields, .fields.three { grid-template-columns: minmax(0, 1fr); } }
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 48px; padding: 0 15px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 110px; padding: 12px 15px; line-height: 1.5; resize: vertical; }
.select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868a92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 18%, transparent); }
.input[type='datetime-local'], .input[type='date'], .input[type='time'] { padding-right: 10px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input-sm, .select.input-sm { height: 40px; font-size: 15px; border-radius: 12px; }

.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-weight: 600; padding: 4px 0; line-height: 1.35; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.6px solid var(--border-strong); background: var(--surface); flex: none; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.check input:checked { background: var(--purple); border-color: var(--purple); }
.check input:checked::after { content: ''; width: 11px; height: 6px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type='radio'] { border-radius: 50%; }
.check input[type='radio']:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check small { display: block; font-weight: 400; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .15s; color: var(--text-2); background: var(--surface); }
.pick input:checked + span { background: var(--purple-soft); border-color: var(--purple); color: var(--purple-ink); }
.pick input:focus-visible + span { outline: 2.5px solid var(--purple); outline-offset: 2px; }
.pick .i { width: 17px; height: 17px; }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .form-actions { position: sticky; bottom: calc(var(--bottombar) + var(--safe-b) + 8px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 22px -16px 0; padding: 12px 16px; }
  .form-actions .btn { flex: 1; }
}

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 15px; line-height: 1.45; }
.alert .i { margin-top: 1px; }
.alert.tone-warn { border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.tone-danger { border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.tone-info { border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.alert.tone-purple { border: 1px solid var(--purple-line); }
.alert b { color: inherit; }
.alert .grow > :last-child { margin-bottom: 0; }

/* ---------- Szegmentált vezérlő (nézetek, szűrők) ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 99px; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--text-2); white-space: nowrap; cursor: pointer; text-decoration: none !important; }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.seg .n { font-size: 12px; font-weight: 700; color: #fff; background: var(--purple); border-radius: 99px; padding: 0 6px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; }
.seg-scroll { margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }

/* ---------- Feladat-sor (kör alakú pipa a logó gyűrűjéből) ---------- */
.tasklist { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--border); min-width: 0; }
.tasklist > .task:first-child { border-top: 0; }
.task-check { margin-top: 1px; flex: none; }
.ring {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer;
  color: transparent; transition: all .18s; padding: 0; -webkit-tap-highlight-color: transparent;
}
.ring:hover { border-color: var(--purple); color: var(--purple-line); }
.ring .i { width: 16px; height: 16px; stroke-width: 2.6; }
.is-done .ring, .ring.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.ring[disabled] { cursor: default; opacity: .55; }
@media (max-width: 767px) { .ring { width: 32px; height: 32px; } .task { padding: 14px 2px; } }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; line-height: 1.35; color: var(--text); display: block; overflow-wrap: anywhere; }
a.task-title:hover { color: var(--purple-ink); text-decoration: none; }
.task.is-done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.task-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.task-meta .i { width: 15px; height: 15px; }
.task-due { font-weight: 600; color: var(--text-2); }
.task.is-overdue .task-due { color: var(--danger); }
.task-side { display: flex; align-items: center; gap: 8px; flex: none; }
.tlabel { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; color: var(--muted); min-width: 40px; text-align: right; }

/* ---------- Esemény-kártya ---------- */
.ev-card {
  position: relative; display: flex; gap: 16px; align-items: stretch; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0;
}
.ev-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 45%, var(--border)); box-shadow: var(--shadow); }
.ev-date { width: 58px; flex: none; text-align: center; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); padding-right: 14px; }
.ev-date .d { font-size: 40px; font-weight: 200; line-height: .95; letter-spacing: -.03em; color: var(--text); }
.ev-date .m { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin-top: 3px; }
.ev-date .w { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-title { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ev-meta .i { width: 15px; height: 15px; }
.ev-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.ev-card.cancelled { opacity: .6; }
.ev-card.cancelled .ev-title { text-decoration: line-through; }

.progress { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; flex: 1; min-width: 60px; }
.progress > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--purple); }
.progress.ok > i { background: var(--ok); }
.progress-label { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Félévsáv: W1–W12 pöttyökkel ---------- */
.weekstrip { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 6px; }
.wk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 9px; border-radius: 14px; color: var(--muted); text-decoration: none !important; min-width: 0; transition: background .15s; }
.wk:hover { background: var(--surface-2); }
.wk .no { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.wk .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; min-height: 8px; }
.wk .dots .dot { width: 7px; height: 7px; }
.wk.past { opacity: .55; }
.wk.current { background: var(--purple); color: #fff; box-shadow: 0 10px 24px -12px rgba(120, 69, 152, .9); }
.wk.current .dot { box-shadow: 0 0 0 1.5px #fff; }
.wk.holiday::after { content: ''; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.wk.extra { opacity: .45; }
@media (max-width: 767px) {
  .weekstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; gap: 4px; }
  .weekstrip::-webkit-scrollbar { display: none; }
  .wk { min-width: 46px; scroll-snap-align: center; }
}

/* ---------- Irányítópult ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 18px 0 26px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); margin-top: 6px; }
.hero h1 .thin { color: var(--purple); font-weight: 400; }
.hero .lead { color: var(--text-2); margin-top: 8px; font-size: 16.5px; }
.bignum { text-align: right; line-height: 1; }
.bignum .n { font-size: clamp(56px, 8vw, 92px); font-weight: 200; letter-spacing: -.05em; color: var(--purple-ink); }
.bignum .n small { font-size: .4em; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.bignum .l { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 767px) { .hero { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0 18px; gap: 12px; } .bignum .n { font-size: 52px; } }

.dash { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1099px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); min-width: 0; color: inherit; display: block; }
a.stat:hover { text-decoration: none; border-color: var(--purple-line); }
.stat .n { font-size: 34px; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.stat .l { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.stat.danger .n { color: var(--danger); }
.stat.purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.stat.purple .l { color: rgba(255, 255, 255, .78); }
@media (max-width: 767px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat .n { font-size: 30px; } }

/* ---------- Üres állapot ---------- */
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty .circle { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); color: var(--purple-ink); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }

/* ---------- Jóváhagyási lánc (stepper) ---------- */
.chain { display: flex; align-items: flex-start; gap: 0; margin: 4px 0; }
.chain .st { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; min-width: 0; gap: 7px; }
.chain .st::before { content: ''; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--border-strong); border-radius: 2px; }
.chain .st:first-child::before { display: none; }
.chain .st.done::before, .chain .st.current::before { background: var(--purple); }
.chain .c { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; color: transparent; z-index: 1; transition: all .2s; }
.chain .c .i { width: 15px; height: 15px; stroke-width: 2.6; }
.chain .st.done .c { background: var(--purple); border-color: var(--purple); color: #fff; }
.chain .st.current .c { border-color: var(--purple); box-shadow: 0 0 0 5px var(--purple-soft); }
.chain .st.current .c::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); animation: pulse 1.8s ease-in-out infinite; }
.chain .st.rejected .c { background: var(--danger); border-color: var(--danger); color: #fff; }
.chain .st.rejected::before { background: var(--purple); }
.chain .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.2; padding: 0 2px; }
.chain .st.done .lbl, .chain .st.current .lbl { color: var(--text); }
.chain .st.rejected .lbl { color: var(--danger); }
.chain.mini .c { width: 14px; height: 14px; border-width: 1.6px; }
.chain.mini .c .i, .chain.mini .lbl { display: none; }
.chain.mini .st::before { top: 6px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 1.6px; }
.chain.mini .st.current .c::after { width: 5px; height: 5px; }
.chain.mini .st.current .c { box-shadow: 0 0 0 3px var(--purple-soft); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.65); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .chain .st.current .c::after { animation: none; } }
@media (max-width: 480px) { .chain .lbl { font-size: 11px; padding: 0 1px; hyphens: manual; overflow-wrap: normal; } }

/* ---------- Anyagkártyák ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mat { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; color: inherit; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.mat:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--border-strong); }
.mat-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.mat-thumb video, .mat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mat-thumb .kind { position: absolute; left: 10px; top: 10px; }
.mat-thumb .ver { position: absolute; right: 10px; top: 10px; background: rgba(34, 37, 39, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.mat-thumb .play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--graphite); display: grid; place-items: center; position: absolute; box-shadow: var(--shadow); }
.mat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mat-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mat-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.mat-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--border); color: inherit; min-width: 0; }
.mat-row:first-child { border-top: 0; }
.mat-row:hover { text-decoration: none; }
.mat-row .mini-thumb { width: 44px; height: 56px; border-radius: 10px; background: var(--surface-2); flex: none; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.mat-row .mini-thumb video, .mat-row .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Anyag oldala: 9:16 előnézet + döntés */
.mat-layout { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.preview { position: sticky; top: calc(var(--topbar) + 12px); }
.player { position: relative; border-radius: 24px; overflow: hidden; background: #111315; aspect-ratio: 9 / 16; max-height: calc(100vh - 150px); margin: 0 auto; display: grid; place-items: center; box-shadow: var(--shadow); }
.player video, .player img { width: 100%; height: 100%; object-fit: contain; background: #111315; }
.player.landscape { aspect-ratio: auto; }
.player .expand { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.player iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.linkbox { aspect-ratio: auto; min-height: 240px; padding: 30px; text-align: center; color: #fff; background: radial-gradient(circle at 30% 20%, #3a2b47, #17191b 70%); }
.linkbox .big { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); margin: 0 auto 14px; }
@media (max-width: 1099px) { .mat-layout { grid-template-columns: minmax(0, 1fr); } .preview { position: static; } .player { max-height: 72vh; max-width: 420px; } }

.decision {
  border-radius: var(--r-lg); padding: 20px; background: var(--purple-soft); border: 1px solid var(--purple-line);
}
.decision h3 { margin-bottom: 4px; }
.decision .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
@media (max-width: 767px) {
  /* Egykezes jóváhagyás: a döntés gombjai a hüvelykujj alatt */
  .decision-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottombar) + var(--safe-b)); z-index: 35; padding: 10px 14px 12px; border-radius: 0; border: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .3); }
  .decision-bar .btns { margin-top: 0; }
  .decision-bar .btn { --h: 56px; font-size: 16.5px; }
  .decision-bar .q { font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; margin-bottom: 8px; }
  .has-decision-bar .page { padding-bottom: calc(var(--bottombar) + 120px + var(--safe-b)); }
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 8px 0; min-width: 0; }
.timeline .tdot { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; z-index: 1; color: var(--muted); }
.timeline .tdot .i { width: 14px; height: 14px; stroke-width: 2.2; }
.timeline .tdot.ok { border-color: var(--ok); color: var(--ok); }
.timeline .tdot.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.timeline .tdot.purple { border-color: var(--purple); background: var(--purple); color: #fff; }
.timeline .tbody { min-width: 0; flex: 1; padding-top: 3px; }
.timeline .ttext { font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.timeline .ttime { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.quote { margin-top: 6px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; border-left: 3px solid var(--danger); overflow-wrap: anywhere; }

.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.versions a { height: 32px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-weight: 700; font-size: 13.5px; border: 1px solid var(--border-strong); color: var(--text-2); }
.versions a.on { background: var(--graphite); color: #fff; border-color: var(--graphite); }
:root[data-theme='dark'] .versions a.on { background: #fff; color: var(--graphite); }
.versions a:hover { text-decoration: none; border-color: var(--purple); }

/* ---------- Esemény oldala ---------- */
.ev-hero { position: relative; border-radius: var(--r-xl); padding: 28px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; margin: 8px 0 22px; }
.ev-hero::after { content: ''; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 44px solid color-mix(in srgb, var(--c) 10%, transparent); pointer-events: none; }
.ev-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; }
.ev-hero h1 { margin: 10px 0 12px; font-size: clamp(28px, 3.6vw, 40px); }
.ev-hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-weight: 600; }
.ev-hero .facts span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.countdown { text-align: right; }
.countdown .n { font-size: clamp(54px, 7vw, 84px); font-weight: 200; line-height: .9; letter-spacing: -.04em; color: color-mix(in srgb, var(--c) 85%, var(--text)); white-space: nowrap; }
.countdown .l { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.ev-progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
@media (max-width: 767px) {
  .ev-hero { padding: 20px; border-radius: 22px; margin-top: 0; }
  .ev-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .countdown { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .countdown .n { font-size: 44px; }
  .ev-hero .facts { flex-direction: column; gap: 6px; }
}

.ev-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ev-layout .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ev-layout .col > .card + .card { margin-top: 0; }
@media (min-width: 1500px) { .ev-layout.three { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .85fr); } }
@media (max-width: 1099px) { .ev-layout, .ev-layout.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1099px) {
  [data-tabs] [data-panel] { display: none; }
  [data-tabs] [data-panel].on { display: flex; }
}
.tabbar { position: sticky; top: calc(var(--topbar) - 6px + var(--safe-t)); z-index: 15; margin: 0 -16px 14px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 1100px) { .tabbar { display: none; } }
@media (min-width: 768px) and (max-width: 1099px) { .tabbar { top: var(--topbar); margin: 0 -24px 14px; padding: 8px 24px; } }

.staff { display: grid; gap: 4px; }
.staff-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-width: 0; }
.staff-row .role { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.staff-row .name { font-weight: 700; line-height: 1.25; }
.staff-row.missing .name { color: var(--muted); font-weight: 600; font-style: italic; }

.dept-block + .dept-block { margin-top: 22px; }
.dept-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.dept-head h3 { flex: 1; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.dept-head .dot { --c: var(--dc); }

/* ---------- Naptár ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-toolbar .grow { flex: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.semgrid { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.semgrid-head, .semgrid-row { display: grid; grid-template-columns: 84px repeat(7, minmax(0, 1fr)); }
.semgrid-head { background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.semgrid-head > div { padding: 10px 12px; }
.semgrid-row { border-top: 1px solid var(--border); min-height: 74px; }
.semgrid-row.current { background: color-mix(in srgb, var(--purple) 4%, var(--surface)); }
.semgrid-row.current .wkcell { color: var(--purple-ink); }
.semgrid-row.current .wkcell::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--purple); }
.semgrid-row.past { opacity: .62; }
.wkcell { position: relative; padding: 10px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.wkcell .no { font-size: 22px; font-weight: 200; line-height: 1; letter-spacing: -.02em; }
.wkcell .rng { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.daycell { position: relative; padding: 6px; border-left: 1px solid var(--border); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.daycell:nth-child(2) { border-left: 0; }
.daycell .dn { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; display: flex; align-items: center; gap: 4px; }
.daycell.weekend { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.daycell.today .dn { color: #fff; background: var(--purple); border-radius: 99px; padding: 1px 8px; align-self: flex-start; }
.daycell.holiday { background: repeating-linear-gradient(-45deg, var(--warn-soft), var(--warn-soft) 6px, transparent 6px, transparent 12px); }
.daycell .hol { font-size: 11px; font-weight: 700; color: var(--warn); padding: 0 4px; line-height: 1.2; }
.daycell .add { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity .15s; }
.daycell:hover .add { opacity: 1; }
.daycell .add:hover { background: var(--purple-soft); color: var(--purple-ink); text-decoration: none; }
.evchip {
  display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--text);
  background: color-mix(in srgb, var(--c) 13%, var(--surface)); border-left: 3px solid var(--c); min-width: 0; overflow: hidden;
}
.evchip:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.evchip .ttl { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.evchip .tm { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.evchip.cancelled { opacity: .5; text-decoration: line-through; }
.evchip .warn { color: var(--danger); }

@media (max-width: 1099px) {
  .semgrid-head, .semgrid-row { grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
  .wkcell .rng { display: none; }
  .evchip { font-size: 12px; padding: 5px 6px; }
  .evchip .tm { display: none; }
}
/* Mobil: a heti rács hetenkénti listává alakul */
@media (max-width: 767px) {
  .semgrid { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .semgrid-head { display: none; }
  .semgrid-row { display: block; border: 0; min-height: 0; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; }
  .semgrid-row.current { border-color: var(--purple); }
  .semgrid-row.past { opacity: .7; }
  .semgrid-row.empty-week { padding: 10px 14px; background: transparent; border-style: dashed; }
  .wkcell { border: 0; padding: 0 0 6px; flex-direction: row; align-items: baseline; gap: 10px; }
  .wkcell .rng { display: inline; }
  .semgrid-row.current .wkcell::before { display: none; }
  .daycell { display: none; border: 0; padding: 0; }
  .daycell.has-events, .daycell.holiday { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 6px 0; background: none; }
  .daycell .dn { width: 46px; flex: none; padding: 7px 0 0; font-size: 12.5px; }
  .daycell.today .dn { padding: 3px 8px; margin-top: 4px; width: auto; }
  .daycell .evs { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .daycell .add { display: none; }
  .evchip { font-size: 14.5px; padding: 9px 12px; }
  .evchip .tm { display: block; font-size: 12.5px; }
}

.monthgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.monthgrid .hd { padding: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); }
.monthgrid .mc { min-height: 116px; padding: 6px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.monthgrid .mc:nth-child(7n + 1) { border-left: 0; }
.monthgrid .mc.other { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.monthgrid .mc.other .dn { opacity: .45; }
.monthgrid .mc .dn { font-size: 13px; font-weight: 700; color: var(--text-2); padding: 2px 6px; align-self: flex-start; border-radius: 99px; }
.monthgrid .mc.today .dn { background: var(--purple); color: #fff; }
.monthgrid .mc.holiday { background: repeating-linear-gradient(-45deg, var(--warn-soft), var(--warn-soft) 6px, transparent 6px, transparent 12px); }
.monthgrid .bars { display: none; }
@media (max-width: 767px) {
  .monthgrid { border-radius: 18px; }
  .monthgrid .hd { padding: 8px 0; text-align: center; font-size: 11px; letter-spacing: .02em; }
  .monthgrid .mc { min-height: 54px; padding: 4px 2px; align-items: center; }
  .monthgrid .mc .evchip, .monthgrid .mc .hol { display: none; }
  .monthgrid .bars { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
  .monthgrid .bars .dot { width: 7px; height: 7px; }
}

/* ---------- Táblázat → kártyák mobilon ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--surface-2); white-space: nowrap; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; min-width: 0; }
table.data tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
table.data tr.is-overdue td.due { color: var(--danger); font-weight: 700; }
table.data tr.is-done td { color: var(--muted); }
table.data td .title { font-weight: 600; color: var(--text); }
table.data td.shrink, table.data th.shrink { width: 1%; white-space: nowrap; }
@media (max-width: 899px) {
  .table-wrap { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 16px 12px 60px; margin-bottom: 10px; }
  table.data tr.no-check { padding-left: 16px; }
  table.data td { border: 0; padding: 2px 0; font-size: 14px; color: var(--text-2); }
  table.data td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-weight: 600; }
  table.data td.cell-check { position: absolute; left: 14px; top: 14px; width: auto; padding: 0; }
  table.data td.cell-title { font-size: 15.5px; padding-bottom: 4px; }
  table.data td.cell-title::before { display: none; }
  table.data td.cell-actions { padding-top: 8px; }
  table.data td.cell-actions::before { display: none; }
  table.data tr:hover td { background: none; }
}

/* ---------- Dialógus / alsó lap (sheet) ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--surface); color: var(--text); border-radius: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-shadow: var(--shadow-lg); }
dialog.sheet::backdrop { background: rgba(20, 22, 24, .48); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: pop .18s ease-out; }
.sheet-inner { padding: 24px; overflow-y: auto; max-height: calc(100dvh - 48px); }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.sheet-head h2 { flex: 1; font-size: 20px; }
.sheet-head .icon-btn { margin: -10px -10px 0 0; }
.sheet-grip { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 767px) {
  dialog.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  dialog.sheet[open] { animation: slideup .24s cubic-bezier(.2, .9, .3, 1); }
  .sheet-inner { padding: 10px 18px calc(18px + var(--safe-b)); max-height: 92dvh; }
  .sheet-grip { display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--border-strong); margin: 0 auto 12px; }
}
@keyframes slideup { from { transform: translateY(100%); } }

.menu-list { display: flex; flex-direction: column; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 16px; color: var(--text); border-top: 1px solid var(--border); text-align: left; cursor: pointer; width: 100%; }
.menu-list > :first-child { border-top: 0; }
.menu-list a:hover, .menu-list button:hover { text-decoration: none; color: var(--purple-ink); }
.menu-list .i { color: var(--muted); }
.menu-list .count { margin-left: auto; }

/* Értesítés-lebegő (PC) */
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 50; }
.popover.open { display: block; animation: pop .15s ease-out; }
.popover-head { display: flex; align-items: center; padding: 10px 12px 8px; }
.popover-head b { flex: 1; }
.notif { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; color: inherit; min-width: 0; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif .ndot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); flex: none; margin-top: 7px; }
.notif.read .ndot { background: transparent; }
.notif .nt { font-weight: 700; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.notif.read .nt { font-weight: 600; color: var(--text-2); }
.notif .nb { font-size: 13.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.notif .ntime { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Toast */
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 14px; border-radius: 16px; background: var(--graphite); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; max-width: 100%; }
:root[data-theme='dark'] .toast { background: #f4f3f6; color: var(--graphite); }
.toast .tdot { width: 22px; height: 22px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; flex: none; color: #fff; }
.toast.error .tdot { background: var(--danger); }
.toast .tdot .i { width: 14px; height: 14px; stroke-width: 2.6; }
.toast a { color: inherit; text-decoration: underline; }
@media (max-width: 767px) { .toasts { bottom: calc(var(--bottombar) + 14px + var(--safe-b)); } .has-decision-bar .toasts { bottom: calc(var(--bottombar) + 110px + var(--safe-b)); } }

/* Lightbox: teljes képernyős 9:16 előnézet */
.lightbox { position: fixed; inset: 0; z-index: 200; background: #000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox video, .lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox .close { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; backdrop-filter: blur(8px); }

/* Feltöltés */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 34px 18px; border-radius: var(--r-lg); border: 2px dashed var(--border-strong); background: var(--surface-2); color: var(--text-2); cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .big { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--purple-ink); box-shadow: var(--shadow-sm); }
.dropzone b { color: var(--text); font-size: 16px; }
.dropzone .fname { font-weight: 700; color: var(--purple-ink); overflow-wrap: anywhere; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.upbar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 14px; display: none; }
.upbar.on { display: block; }
.upbar i { display: block; height: 100%; width: 0; background: var(--purple); border-radius: 99px; transition: width .2s; }

/* ---------- Belépés ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-art { position: relative; background: var(--graphite); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-art .logo { position: relative; z-index: 1; padding: 14px; margin: -14px; align-self: flex-start; }
.auth-art .logo img { height: 46px; width: auto; }
.auth-art h2 { position: relative; z-index: 1; font-size: clamp(34px, 4vw, 54px); font-weight: 200; line-height: 1.05; letter-spacing: -.02em; max-width: 12ch; }
.auth-art h2 b { font-weight: 700; color: #fff; }
.auth-art .ring1, .auth-art .ring2, .auth-art .dot1 { position: absolute; border-radius: 50%; }
.auth-art .ring1 { width: 520px; height: 520px; right: -170px; top: 8%; border: 90px solid rgba(255, 255, 255, .05); }
.auth-art .ring2 { width: 190px; height: 190px; right: 210px; top: 2%; background: rgba(255, 255, 255, .04); }
.auth-art .dot1 { width: 120px; height: 120px; right: 90px; bottom: 16%; background: var(--purple); box-shadow: 0 30px 80px -10px rgba(120, 69, 152, .8); }
.auth-art .foot { position: relative; z-index: 1; color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 32px; margin: 8px 0 6px; }
.auth-box .lead { color: var(--text-2); margin-bottom: 26px; }
.auth-mobile-logo { display: none; }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ms-logo { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.ms-logo i { width: 9px; height: 9px; display: block; }
@media (max-width: 899px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-form { align-items: flex-start; padding: calc(40px + var(--safe-t)) 22px 40px; background: var(--bg); }
  .auth-mobile-logo { display: block; padding: 10px; margin: -10px 0 26px -10px; }
  .auth-mobile-logo img { height: 34px; width: auto; }
}

/* ---------- Egyéb ---------- */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; background: var(--surface-2); padding: 10px 12px; border-radius: 12px; overflow-wrap: anywhere; border: 1px solid var(--border); }
.copyrow { display: flex; gap: 8px; align-items: stretch; }
.copyrow .input { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 42px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.install-hint { display: none; }
.ios .install-hint.ios-only, .android .install-hint.android-only { display: flex; }
.standalone .install-hint { display: none !important; }
.color-input { width: 48px; height: 48px; padding: 4px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.day-col { min-width: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
.plan-day { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; min-height: 160px; min-width: 0; }
.plan-day.today { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.plan-day .pd-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.plan-day .pd-head .d { font-size: 30px; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.plan-day .pd-head .w { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post { display: block; padding: 10px; border-radius: 14px; background: var(--surface-2); color: inherit; border-left: 3px solid var(--c, var(--purple)); min-width: 0; }
.post + .post { margin-top: 8px; }
.post:hover { text-decoration: none; background: var(--surface-3); }
.post .pt { font-weight: 700; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.post .pe { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; overflow-wrap: anywhere; }
.post.is-done { opacity: .6; }
.post.is-done .pt { text-decoration: line-through; }
@media (max-width: 1279px) { .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } .plan-day { min-height: 0; } .plan-day.empty-day { padding: 10px 12px; opacity: .7; } .plan-day.empty-day .pd-head { margin: 0; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .select { width: auto; min-width: 150px; max-width: 240px; height: 40px; font-size: 14.5px; border-radius: 99px; padding-left: 16px; }
@media (max-width: 767px) { .filters .select { flex: 1 1 calc(50% - 10px); max-width: none; min-width: 0; } }
.tpl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--border); }
.tpl-item:first-child { border-top: 0; }
.tpl-item .t { font-size: 22px; font-weight: 200; letter-spacing: -.02em; text-align: center; color: var(--purple-ink); font-variant-numeric: tabular-nums; }
.inline-form { display: inline; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
details.more summary { cursor: pointer; font-weight: 700; color: var(--purple-ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary .i { transform: rotate(180deg); }
.err-page { text-align: center; padding: 80px 16px; }
.err-page .bigcircle { width: 120px; height: 120px; border-radius: 50%; border: 26px solid var(--purple-soft); margin: 0 auto 26px; position: relative; }
.err-page .bigcircle::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); top: -40px; right: -34px; }
