/* HUVAP Ügyvitel - az alkalmazás (huvap.com/app) arculatával */
:root {
  --header-bg: #182036; --header-line: #2a3350; --header-muted: #97a1ba;
  --bg: #f4f5f7; --surface: #ffffff; --border: #e6e9ee; --border-strong: #d5dae3;
  --text: #172033; --muted: #5b6b80; --accent: #2f6fed; --accent-soft: #ebf1fb;
  --brand: #e2452c; --orange: #f0932b; --green: #22a06b; --purple: #8e44ad; --red: #d93a2b;
  --warm: #f08a24; --cyan: #19b7c9; --ink: #0d1726;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --sidebar-w: 208px; --sidebar-w-collapsed: 62px; --header-h: 56px;
}
[data-theme="dark"] {
  --header-bg: #10162a; --header-line: #222c46;
  --bg: #0d1220; --surface: #151d31; --border: #26304a; --border-strong: #33405f;
  --text: #e7ecf5; --muted: #9aa8bf; --accent: #5b8def; --accent-soft: #1c2a48;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg);
}
h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* --- gombok, mezők --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 600 14px Inter, sans-serif;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #2559c4; }
.btn-warm { background: var(--warm); border-color: var(--warm); color: #1b1005; width: 100%; padding: 11px 16px; font-size: 15px; }
.btn-warm:hover { background: #ffa140; }
.btn-danger-ghost { color: var(--red); border-color: transparent; background: transparent; }
.btn-danger-ghost:hover { background: rgba(217, 58, 43, .1); }
input[type=text], input[type=search], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit;
}
textarea { resize: vertical; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form-row { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer;
  border-radius: 8px; border: 1px solid var(--header-line); background: transparent; color: #fff; font-size: 16px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* --- fejléc --- */
.app-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: var(--header-bg); color: #fff; border-bottom: 1px solid var(--header-line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand-sub {
  font: 600 12px "Space Grotesk", sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--warm); padding-left: 12px; border-left: 1px solid var(--header-line);
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--cyan)); font: 700 12px "Space Grotesk", sans-serif;
}
.header-name { font-weight: 600; font-size: 14px; }
.btn-signout {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--header-line);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 13.5px;
}
.btn-signout:hover { background: rgba(255, 255, 255, .08); }
.menu-btn { display: none; }

/* --- oldalsáv --- */
.sidebar {
  position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--sidebar-w); z-index: 20;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--header-bg); color: #fff; border-right: 1px solid var(--header-line);
  transition: width .2s;
}
.nav-section { padding: 18px 18px 6px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--header-muted); }
.nav-item {
  display: flex; align-items: center; gap: 12px; margin: 2px 10px; padding: 9px 10px;
  border-radius: 8px; text-decoration: none; color: #d6dcec; font-weight: 500;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.is-active { background: var(--accent); color: #fff; }
.session-box { padding: 14px 16px; border-top: 1px solid var(--header-line); font-size: 12px; color: var(--header-muted); }
.session-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.session-time { font-variant-numeric: tabular-nums; color: #fff; }
.session-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.session-bar i { display: block; height: 100%; width: 100%; background: var(--green); transition: width 1s linear; }
.session-version { display: block; margin-top: 10px; color: var(--header-muted); text-decoration: none; }
.session-version:hover { color: #fff; }
.nav-backdrop { display: none; }

/* --- fő tartalom --- */
.app-main { margin: var(--header-h) 0 0 var(--sidebar-w); min-height: calc(100vh - var(--header-h)); }

/* --- hero --- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink) url("/img/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 23, 38, .96) 0%, rgba(13, 23, 38, .82) 50%, rgba(13, 23, 38, .35) 100%);
}
.hero-inner { position: relative; padding: 44px 32px 36px; max-width: 1180px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px; font-weight: 600; color: var(--cyan); }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 10px 0 8px; }
.hero h1 em, .login-copy h1 em { font-style: normal; color: var(--warm); }
.lead { font-size: 17px; max-width: 560px; color: rgba(255, 255, 255, .82); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; max-width: 880px; }
.stat {
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
}
.stat b { display: block; font: 700 30px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.stat.is-warn b { color: #ffb46b; }
.stat.is-hot b { color: #ff8b7b; }

/* --- oldal --- */
.page { padding: 26px 32px 60px; max-width: 1380px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 26px; }
.page-sub { margin: 4px 0 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; min-width: 170px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--text); padding: 8px 14px; font: 600 13.5px Inter, sans-serif; cursor: pointer; }
.seg button.is-active { background: var(--accent); color: #fff; }

/* --- lista --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; }
table.tasks { width: 100%; border-collapse: collapse; min-width: 820px; }
.tasks th { text-align: left; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tasks td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tasks tbody tr { cursor: pointer; }
.tasks tbody tr:hover td { background: var(--accent-soft); }
.tasks tbody tr:last-child td { border-bottom: 0; }
.tasks tr.is-late td { background: rgba(217, 58, 43, .07); }
.tasks tr.is-done td { opacity: .5; }
.tasks tr.is-done:hover td { opacity: .85; }
.tasks tr.is-done .t-title { text-decoration: line-through; color: var(--muted); }
.tasks tr.is-done td:first-child { box-shadow: inset 4px 0 0 var(--green); opacity: .85; }
.done-check { color: var(--green); vertical-align: -3px; margin-right: 6px; }
.kcard.is-done { opacity: .55; border-left: 4px solid var(--green); }
.kcard.is-done:hover { opacity: .9; }
.kcard.is-done .t-title { text-decoration: line-through; }
@media (max-width: 700px) { .tasks tr.is-done td { opacity: 1; } .tasks tr.is-done { opacity: .55; border-left: 4px solid var(--green); } .tasks tr.is-done td:first-child { box-shadow: none; } }
.t-no { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-title { font-weight: 600; }
.t-sub { font-size: 12.5px; color: var(--muted); }
.who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.who .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 10px "Space Grotesk", sans-serif; color: #fff; background: var(--accent); }
.who .dot.p-attila { background: var(--warm); color: #1b1005; }
.who .dot.p-peter { background: #3a5277; }
.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.date.late { color: var(--red); font-weight: 700; }
.date.soon { color: #b85d07; font-weight: 600; }

/* --- jelvények --- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #e8edf5; color: #34435c; }
[data-theme="dark"] .badge { background: #222c46; color: #cfd8ea; }
.s-folyamatban { background: #dbe8ff; color: #1d4fb8; }
.s-ellenorzes { background: #efe1f7; color: #6f2f8d; }
.s-felfuggesztve { background: #fdeedd; color: #a65606; }
.s-kesz { background: #d9f2e6; color: #167a50; }
.s-torolve { background: #f6dcd8; color: #a3281b; }
[data-theme="dark"] .s-folyamatban { background: #1c3566; color: #a9c6ff; }
[data-theme="dark"] .s-ellenorzes { background: #3b2548; color: #dcb5ef; }
[data-theme="dark"] .s-felfuggesztve { background: #4a3315; color: #ffc98a; }
[data-theme="dark"] .s-kesz { background: #14402e; color: #8fe0b9; }
[data-theme="dark"] .s-torolve { background: #4a1f1a; color: #ffb0a6; }
.p-surgos { background: #f6dcd8; color: #a3281b; }
.p-magas { background: #fdeedd; color: #a65606; }
.p-alacsony { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.pdca { font-size: 12px; color: var(--muted); }

/* --- tábla (kanban) --- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 140px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.col-head span.n { color: var(--muted); font-weight: 600; font-size: 13px; }
.col-body { padding: 10px; display: grid; gap: 10px; min-height: 80px; }
.col.is-over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.kcard { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; cursor: grab; }
.kcard:hover { border-color: var(--accent); }
.kcard.is-late { border-left: 4px solid var(--red); }
.kcard .t-title { margin-bottom: 6px; }
.kcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* --- modal --- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 26, .55); display: grid; place-items: center; padding: 20px; }
.modal { width: min(680px, 100%); max-height: calc(100vh - 40px); display: flex; background: var(--surface); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.modal form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 20px; }
.modal-head .icon-btn { color: var(--text); border-color: var(--border); }
.modal-head .icon-btn:hover { background: var(--accent-soft); }
.modal-body { padding: 18px 20px 6px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.spacer { flex: 1; }
.form-error { margin-bottom: 14px; padding: 9px 12px; border-radius: 8px; background: #fbe4e1; color: #8d2216; font-weight: 600; }
.history { margin: 6px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.history h4 { font-size: 15px; margin-bottom: 10px; }
.log { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; margin-bottom: 12px; }
.log-item { font-size: 13px; padding: 7px 10px; border-radius: 8px; background: var(--bg); }
.log-item.is-comment { background: var(--accent-soft); }
.log-item small { display: block; color: var(--muted); font-size: 11.5px; }
.comment-row { display: flex; gap: 8px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.toast.is-error { background: #a3281b; }

/* --- belépő oldal --- */
.adm-login { background: var(--ink); color: #fff; min-height: 100vh; }
.login-hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.2fr 420px; gap: 60px; align-items: center;
  padding: 40px max(24px, 6vw); position: relative;
  background: var(--ink) url("/img/hero.jpg") center/cover no-repeat;
}
.login-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 23, 38, .96) 0%, rgba(13, 23, 38, .8) 55%, rgba(13, 23, 38, .45) 100%); }
.login-copy, .login-card { position: relative; }
.login-logo img { height: 34px; width: auto; display: block; margin-bottom: 40px; }
.login-copy h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 12px 0 16px; max-width: 640px; }
.login-card { background: var(--surface); color: var(--text); border-radius: 18px; padding: 30px 30px 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.login-card h2 { font-size: 24px; margin-bottom: 18px; }
.login-card label { margin-top: 14px; }
.login-card .btn { margin-top: 20px; }
.alert { padding: 9px 12px; border-radius: 8px; background: #fbe4e1; color: #8d2216; font-weight: 600; margin-bottom: 6px; }
.login-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 6px; }
.back-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* --- keskeny kijelző, összecsukott menü --- */
html.nav-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
html.nav-collapsed .app-main { margin-left: var(--sidebar-w-collapsed); }
html.nav-collapsed .nav-label, html.nav-collapsed .nav-section, html.nav-collapsed .session-box { display: none; }
html.nav-collapsed .nav-item { justify-content: center; }
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .login-hero { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .app-main, html.nav-collapsed .app-main { margin-left: 0; }
  .sidebar, html.nav-collapsed .sidebar { transform: translateX(-100%); width: var(--sidebar-w); transition: transform .2s; }
  html.nav-collapsed .nav-label, html.nav-collapsed .nav-section, html.nav-collapsed .session-box { display: revert; }
  html.nav-collapsed .nav-item { justify-content: flex-start; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(8, 14, 26, .5); }
  .header-name, .brand-sub { display: none; }
  .hero-inner { padding: 30px 18px 26px; }
  .page { padding: 20px 16px 50px; }
  .grid2 { grid-template-columns: 1fr; }
}
/* --- dashboard --- */
.hero-slim .hero-inner { padding: 34px 32px 30px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile {
  position: relative; display: block; padding: 18px 18px 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile b { display: block; margin-top: 10px; font: 700 34px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.tile > span:last-child { color: var(--muted); font-size: 13.5px; }
.tile-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tile.is-warn .tile-ic { background: #fdeedd; color: #b85d07; }
.tile.is-warn b { color: #b85d07; }
.tile.is-hot .tile-ic { background: #fbe4e1; color: var(--red); }
.tile.is-hot b { color: var(--red); }
[data-theme="dark"] .tile.is-warn .tile-ic { background: #4a3315; color: #ffc98a; }
[data-theme="dark"] .tile.is-warn b { color: #ffc98a; }
[data-theme="dark"] .tile.is-hot .tile-ic { background: #4a1f1a; color: #ffb0a6; }
[data-theme="dark"] .tile.is-hot b { color: #ffb0a6; }
.panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 28px; }
.panel { padding: 16px 18px; min-width: 0; }
.panel h3 { font-size: 17px; margin-bottom: 10px; }
.panel-wide { grid-column: 1 / -1; }
.plist { display: grid; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--border); text-decoration: none; min-width: 0; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--accent-soft); }
.pmain { min-width: 0; }
.pmain b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pmain small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .t-sub { text-align: right; white-space: nowrap; }
.wrow { padding: 8px 0; }
.wtop { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.wtop b.late { color: var(--red); }
.wbar { height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; }
.wbar i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.section-title { font-size: 18px; margin-bottom: 12px; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.soon-card { display: flex; gap: 12px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.soon-card b { color: var(--text); }
.soon-card .soon-tag { font-size: 8px; padding: 1px 5px; }
.soon-card .tile-ic { width: 36px; height: 36px; }
.soon-card .tile-ic svg { width: 20px; height: 20px; }
.soon-card p { margin: 3px 0 0; font-size: 13px; }
.soon-tag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(240, 138, 36, .18); color: #b85d07; margin-left: 4px; vertical-align: middle; }
.sidebar nav { overflow-x: hidden; }
.nav-item svg { flex: none; width: 18px; height: 18px; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.is-soon { opacity: .6; cursor: default; }
.nav-item.is-soon:hover { background: transparent; color: #d6dcec; }
.nav-item.is-soon .soon-tag {
  flex: none; margin: 0 0 0 auto; padding: 1px 4px; font-size: 7.5px; line-height: 1.4;
  letter-spacing: .5px; color: #ffb46b; background: rgba(240, 138, 36, .16);
}
.date.late, .late { color: var(--red); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .panels { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-slim .hero-inner { padding: 22px 16px 20px; }
  .tiles { gap: 8px; }
  .tile { padding: 12px; }
  .tile b { font-size: 24px; margin-top: 6px; }
  .tile > span:last-child { font-size: 12px; line-height: 1.25; display: block; }
  .tile-ic { width: 32px; height: 32px; border-radius: 9px; }
  .tile-ic svg { width: 17px; height: 17px; }
}
html.nav-collapsed .nav-item.is-soon .soon-tag { display: none; }
.sidebar nav { overflow-y: auto; }
.sidebar-close { display: none; }
html, body { max-width: 100%; overflow-x: hidden; }
.app-main, .page, .view { min-width: 0; }

@media (max-width: 860px) {
  .sidebar-close {
    display: block; width: calc(100% - 20px); margin: 10px 10px 0; padding: 10px; text-align: left;
    background: rgba(255, 255, 255, .08); color: #fff; border: 0; border-radius: 8px; font: 600 14px Inter, sans-serif; cursor: pointer;
  }
  .sidebar { box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
}
@media (max-width: 700px) {
  .hero-inner { padding: 22px 16px 20px; }
  .hero h1 { font-size: 26px; margin: 6px 0 4px; }
  .hero .lead { font-size: 14.5px; }
  .stats { gap: 8px; margin-top: 16px; }
  .stat { padding: 9px 11px; border-radius: 10px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; line-height: 1.25; display: block; }
  .page-head h2 { font-size: 22px; }
  .page-head .btn { width: 100%; }
  .filters select, .filters .seg { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .filters .seg button { flex: 1; }
  .filters input[type=search] { flex-basis: 100%; }

  /* lista: soronként egy kártya, nincs oldalra görgetés */
  .table-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  table.tasks, .tasks tbody, .tasks tr, .tasks td { display: block; min-width: 0; width: 100%; }
  .tasks thead { display: none; }
  .tasks tbody { display: grid; gap: 10px; }
  .tasks tr { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .tasks td { padding: 0; border: 0; }
  .tasks tr.is-late { border-left: 4px solid var(--red); }
  .tasks tr.is-late td, .tasks tbody tr:hover td { background: transparent; }
  .tasks td.t-no { grid-column: 2; grid-row: 1; text-align: right; }
  .tasks td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .tasks td:nth-child(3) { grid-column: 1; }
  .tasks td:nth-child(4) { grid-column: 2; text-align: right; }
  .tasks td:nth-child(5) { display: none; }
  .tasks td:nth-child(6) { grid-column: 1 / -1; font-size: 13px; }
  .tasks td:nth-child(6)::before { content: "Határidő: "; color: var(--muted); }

  .board { grid-auto-columns: 82%; }
  .modal-wrap { padding: 0; align-items: end; }
  .modal { max-height: 94vh; border-radius: 14px 14px 0 0; }
  .modal-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
