/* ==========================================================================
   Ohana Pult — családi dashboard
   Mobil-first SPA, Tomi designja (Ohana Pult): krémszín, meleg barna, terrakotta.
   A tokenek forrása: deliverables/dashboard-2026-11-04/PLAN.md + a design
   prototípusok (ohana-pult/screens/*.dc.html) + README (Design tokens).
   ========================================================================== */

:root {
  /* === Tomi design tokenjei (pontos értékek) === */
  --bg: #F3EBE1;              /* háttér */
  --card: #FBF7F0;            /* kártya */
  --border: #E4D9CB;          /* border */
  --text: #241C17;            /* szöveg */
  --muted: #5A4C43;           /* halvány szöveg */
  --accent: #9E4A2C;          /* terrakotta accent */
  --accent-hover: #843D25;    /* accent hover (design) */
  --dark: #3B2E26;            /* sötét panel */
  --dark-soft: #4A3A31;       /* sötét panel hover */
  --paid-bg: #DCEBDD;         /* Paid háttér */
  --paid-fg: #22502A;         /* Paid szöveg */
  --awaiting-bg: #F6E3C8;     /* Awaiting transfer háttér */
  --awaiting-fg: #7A4A0E;     /* Awaiting transfer szöveg */
  --surface: #FFFDF8;         /* kártyán belüli fehér (input/gomb szöveg) */
  --neutral-tint: #EEEAE2;    /* semleges chip/háttér */
  --warm-tint: #EBCFC2;       /* terrakotta tint */
  --warm-bar: #C98E7B;        /* sötét panel második bar */
  --sand: #E9DFD2;
  --input-border: #CDBFAE;

  /* --- kompatibilitási aliasok a meglévő osztályokhoz --- */
  --cream: var(--bg);
  --cream-deep: #EDE2D4;
  --card-soft: #F7F0E7;
  --brown: var(--text);
  --brown-soft: var(--dark-soft);
  --terracotta: var(--accent);
  --terracotta-soft: var(--accent-hover);
  --terracotta-tint: var(--warm-tint);
  --line: var(--border);
  --muted-soft: #8A7868;
  --green: var(--paid-fg);
  --green-tint: var(--paid-bg);
  --amber: var(--awaiting-fg);
  --amber-tint: var(--awaiting-bg);
  --danger: #A03A32;
  --white: var(--surface);

  /* --- forma / tipográfia --- */
  --radius-xl: 24px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(36, 28, 23, .05), 0 12px 28px -24px rgba(36, 28, 23, .30);
  --shadow-float: 0 12px 30px -16px rgba(36, 28, 23, .28);
  --shadow-tabbar: 0 -12px 30px -24px rgba(36, 28, 23, .35);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: 20px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-optical-sizing: auto; }
ul, ol { padding: 0; list-style: none; }
button, input, a { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--terracotta); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 8px;
}

::selection { background: var(--terracotta-tint); }

/* ---------- shell ---------- */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-top: var(--safe-t);
  background:
    radial-gradient(120% 55% at 50% -10%, #FAF4EB 0%, rgba(250, 244, 235, 0) 62%),
    var(--cream);
}

@media (min-width: 560px) {
  body {
    background:
      radial-gradient(90% 60% at 50% 0%, #EDE2D4 0%, rgba(237, 226, 212, 0) 70%),
      var(--cream-deep);
  }
  .app-shell {
    margin: 24px auto;
    min-height: calc(100dvh - 48px);
    border-radius: 38px;
    box-shadow: 0 30px 70px -40px rgba(36, 28, 23, .5), 0 0 0 1px rgba(36, 28, 23, .05);
    overflow: hidden;
  }
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--cream);
}
.skip-link:focus { top: 12px; }

.screen {
  padding: 22px var(--pad) calc(var(--tabbar-h) + 34px + var(--safe-b));
  animation: view-in .26s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- tipográfia ---------- */
.brandline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

/* design-fallback korrekciók (az app.js :where() szabályait a styles.css váltja fel):
   a globális `a`/`button` reset különben felülírja a színeket. */
.round-add {
  background: var(--accent);
  color: var(--white);
}
.round-add:hover { background: var(--accent-hover); }
.round-add:active { transform: scale(.96); }
a.b-item { color: var(--text); }
a.b-item--free { color: var(--muted); }
a.todo-card { color: var(--text); }
a.todo-card.is-hot { color: var(--white); }

/* app header logó (a fejlécek elejére kerül az index.html apró scriptjével) */
.pult-head, .guests-head { align-items: center; }
.pult-head > .brand-mark, .guests-head > .brand-mark { width: 34px; height: 34px; border-radius: 9px; }

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
  border-radius: 8px;
}

.brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
}
.brand { margin-right: auto; }
.brand sup { font-size: 8px; letter-spacing: 0; }

.view-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.view-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.01em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 4px 12px;
}
.section-head .eyebrow { margin-top: 2px; }

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
}

/* ---------- kártyák ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.card + .card { margin-top: 14px; }

.card-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  padding: 22px;
}

/* ---------- belépés ---------- */
.view-login {
  min-height: calc(100dvh - var(--safe-t) - var(--safe-b));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 6px 40px;
  text-align: center;
  position: relative;
}
.view-login .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  pointer-events: none;
}
.view-login .blob-1 { width: 230px; height: 230px; top: -60px; right: -90px; background: var(--terracotta-tint); }
.view-login .blob-2 { width: 170px; height: 170px; bottom: 40px; left: -80px; background: var(--sand); opacity: .38; }

.login-inner { position: relative; z-index: 1; }

.login-logo {
  width: 132px;
  height: 114px;
  margin: 0 auto 14px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.login-brand {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
  text-transform: none;
  line-height: 1.1;
}

.login-brand sup {
  font-size: 20px;
  vertical-align: super;
  letter-spacing: 0;
  line-height: 0;
}

.login-title {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin: 6px auto 10px;
  max-width: 320px;
}

.login-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
  margin: 0 auto 26px;
}

.login-foot {
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 13px;
}

.login-help {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.login-help a { font-weight: 600; }

/* ---------- gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform .12s ease, background-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 28px -16px rgba(158, 74, 44, .45);
}
.btn-primary:hover { background: var(--terracotta-soft); }

.btn-dark { background: var(--dark); color: var(--cream); }
.btn-dark:hover { background: var(--dark-soft); }

.btn-ghost {
  background: var(--card-soft);
  border-color: var(--line);
  color: var(--brown);
}
.btn-ghost:hover { background: var(--cream-deep); }

.btn-xl { min-height: 56px; font-size: 17px; padding: 16px 22px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 14px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--radius-pill);
  color: var(--brown);
  font-weight: 600;
}
.icon-btn:hover { background: var(--card-soft); }

/* ---------- alsó menü ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 480px;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(251, 247, 240, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-tabbar);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .16s ease, background-color .16s ease;
}
.tab svg { width: 23px; height: 23px; }
.tab:hover { color: var(--brown); }
.tab[aria-current="page"] { color: var(--terracotta); }
.tab[aria-current="page"] svg { stroke-width: 2.1; }
.tab[aria-current="page"] .tab-label { font-weight: 700; }

/* ---------- Pult – Ma ---------- */
.hero-card { margin-top: 18px; }

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243, 235, 225, .62);
}
.hero-month {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin-top: 4px;
  color: var(--cream);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(243, 235, 225, .1);
  color: rgba(243, 235, 225, .9);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-badge .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paid-bg);
}

.hero-metric { margin-top: 22px; }
.hero-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.hero-metric-label { font-size: 13px; color: rgba(243, 235, 225, .68); }
.hero-metric-value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--cream);
}
.hero-metric-value small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(243, 235, 225, .55);
  margin-left: 2px;
}

.bar {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(243, 235, 225, .14);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--cream);
  transition: width .5s ease;
}
.bar-fill--warm { background: var(--warm-bar); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 235, 225, .14);
}
.hero-mini .value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
}
.hero-mini .label {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(243, 235, 225, .6);
}

/* heti csík */
.week-card { margin-top: 14px; }
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 14px;
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 2px 12px;
  border-radius: var(--radius-md);
}
.week-day.is-today {
  background: var(--terracotta-tint);
}
.week-day-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.week-day.is-today .week-day-name { color: var(--terracotta); }
.week-day-num {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.week-dots { display: flex; gap: 3px; height: 7px; align-items: center; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
.dot.on { background: var(--terracotta); }
.week-day.is-today .dot.on { background: var(--terracotta); }

/* gyorslinkek */
.quicklinks { display: grid; gap: 10px; margin-top: 14px; }
.quicklink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--brown);
}
.quicklink:active { transform: scale(.99); }
.quicklink-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--terracotta-tint);
  color: var(--terracotta);
  flex: none;
}
.quicklink-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.quicklink-title { font-weight: 600; font-size: 15.5px; }
.quicklink-sub { color: var(--muted); font-size: 13px; margin-top: 1px; }
.quicklink .chev { color: var(--muted-soft); }

/* ---------- kereső / chipek ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0 16px;
  min-height: 50px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-size: 16px;
  min-height: 48px;
}
.search input::placeholder { color: var(--muted-soft); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--terracotta-soft); box-shadow: 0 0 0 3px var(--terracotta-tint); }

.chips {
  display: flex;
  gap: 8px;
  margin: 16px -2px 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chip.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--cream);
}
.chip.is-active .chip-count { background: rgba(243, 235, 225, .18); color: var(--cream); }

/* ---------- vendéglista ---------- */
.guest-list { display: grid; gap: 12px; margin-top: 16px; }

.guest-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  cursor: pointer;
  transition: transform .12s ease, border-color .16s ease;
}
.guest-card:active { transform: scale(.995); }
.guest-card:hover { border-color: var(--sand); }

.guest-top { display: flex; align-items: center; gap: 13px; }

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 16px;
  background: var(--terracotta-tint);
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.avatar--b { background: var(--green-tint); color: var(--green); }
.avatar--c { background: var(--amber-tint); color: var(--amber); }
.avatar--d { background: var(--cream-deep); color: var(--brown-soft); }
.avatar--lg { width: 76px; height: 76px; border-radius: 24px; font-size: 27px; }

.guest-main { flex: 1; min-width: 0; }
.guest-name { font-weight: 650; font-size: 16.5px; letter-spacing: -.01em; }
.guest-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guest-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-soft); flex: none; }
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-soft);
}
.source-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta-soft); }

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.stage-pill--todo { background: var(--cream-deep); color: var(--brown-soft); }
.stage-pill--recall { background: var(--amber-tint); color: var(--amber); }
.stage-pill--quote { background: var(--neutral-tint); color: var(--muted); }
.stage-pill--hesitate { background: var(--terracotta-tint); color: var(--terracotta); }
.stage-pill--booked { background: var(--green-tint); color: var(--green); }

.guest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.btn-mini {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brown-soft);
}
.btn-mini:hover { background: var(--cream-deep); }
.btn-mini--dark { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.btn-mini--dark:hover { background: var(--dark-soft); }

.empty-state {
  margin-top: 26px;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px dashed var(--sand);
  border-radius: var(--radius-lg);
}
.empty-state .empty-icon { margin: 0 auto 12px; color: var(--muted-soft); }
.empty-state strong { display: block; color: var(--brown); font-size: 16px; margin-bottom: 4px; }

/* ---------- vendég adatlap ---------- */
.backbar { display: flex; align-items: center; gap: 8px; margin: -6px 0 6px -6px; }

.detail-hero { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.detail-hero h1 {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
}
.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  box-shadow: var(--shadow-card);
}
.stat-box .stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.stat-box .stat-value {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: -.01em;
}
.stat-box .stat-value small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); }
.stat-label .stat-medal { float: right; font-size: 15px; line-height: 1; }
.stat-medal { font-size: 18px; }
.stat-hint { margin-top: 2px; font-size: 11.5px; color: var(--muted-soft); }
.card-hint { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted-soft); }

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}
.action-btn:hover { background: var(--card-soft); }
a.action-btn { color: var(--brown); }
.action-btn.is-disabled { opacity: .42; pointer-events: none; }
.action-btn .action-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--terracotta-tint);
  color: var(--terracotta);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* stage track */
.stage-track { display: grid; gap: 2px; }
.stage-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: var(--muted);
}
.stage-step + .stage-step { border-top: 1px solid var(--card-soft); }
.stage-dot {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--sand);
  background: var(--card);
}
.stage-step.is-done { color: var(--brown-soft); }
.stage-step.is-done .stage-dot { background: var(--sand); border-color: var(--sand); }
.stage-step.is-current { color: var(--brown); font-weight: 650; }
.stage-step.is-current .stage-dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-tint);
}
.stage-step .stage-num { font-size: 12px; color: var(--muted-soft); width: 14px; }

/* requested / bookings rows */
.row-list { display: grid; }
.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.row-item + .row-item { border-top: 1px solid var(--card-soft); }
.row-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--cream-deep);
  color: var(--brown-soft);
}
.row-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 15px; }
.row-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.row-side { text-align: right; flex: none; }
.row-side .price { font-weight: 650; font-size: 15px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}
.badge--booked { background: var(--green-tint); color: var(--green); }
.badge--inquiry { background: var(--amber-tint); color: var(--amber); }
.badge--muted { background: var(--cream-deep); color: var(--muted); }

.note-text {
  color: var(--brown-soft);
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.note-empty { color: var(--muted-soft); font-size: 14px; font-style: italic; }

.detail-cta { margin-top: 16px; }
.detail-cta-note {
  margin-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* ---------- foglalások ---------- */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
}
.segmented button {
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.segmented button[aria-selected="true"] {
  background: var(--card);
  color: var(--brown);
  box-shadow: 0 2px 8px -4px rgba(36, 28, 23, .3);
}

.cal-card { margin-top: 14px; padding: 16px 14px 14px; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 10px;
}
.cal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.cal-head-actions { display: flex; align-items: center; gap: 2px; }
.cal-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--brown-soft);
}
.cal-nav:hover { background: var(--card-soft); }
.cal-today-btn {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-soft);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin: 4px 0 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-height: 52px;
  padding: 7px 0 5px;
  border-radius: 13px;
  color: var(--brown);
  font-size: 14px;
  transition: background-color .14s ease;
}
.cal-day:hover { background: var(--card-soft); }
.cal-day.is-muted { color: var(--muted-soft); opacity: .45; }
.cal-day.is-today .cal-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--cream);
  font-weight: 700;
}
.cal-day.is-selected { background: var(--terracotta-tint); }
.cal-day.is-selected.is-today .cal-num { background: var(--terracotta); }
.cal-num { font-family: var(--font-display); font-size: 15px; line-height: 1.2; min-height: 26px; display: grid; place-items: center; }
.cal-marks { display: flex; gap: 2.5px; align-items: center; min-height: 7px; }
.mark-dot { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--terracotta); }
.mark-whole { width: 14px; height: 3.5px; border-radius: 2px; background: var(--terracotta); }
.mark-inquiry { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--amber); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--card-soft);
  font-size: 11.5px;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .mark-dot, .legend .mark-inquiry, .legend .mark-whole { flex: none; }

.day-card { margin-top: 14px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.day-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.day-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.day-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--terracotta-tint);
  color: var(--terracotta);
  font-size: 11.5px;
  font-weight: 700;
}

.slot-list { display: grid; margin-top: 8px; }
.slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.slot-row + .slot-row { border-top: 1px solid var(--card-soft); }
.slot-main { flex: 1; min-width: 0; }
.slot-label { font-weight: 600; font-size: 15px; }
.slot-time { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.slot-title { font-size: 13px; color: var(--terracotta); font-weight: 600; margin-top: 3px; }
.slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.slot-pill--booked { background: var(--terracotta-tint); color: var(--terracotta); }
.slot-pill--free { background: var(--green-tint); color: var(--green); }
.slot-pill--unavailable { background: var(--cream-deep); color: var(--muted); }
.slot-price { font-size: 12px; color: var(--muted); margin-top: 2px; }

.bookings-list { margin-top: 14px; display: grid; gap: 10px; }
.list-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 5px 15px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.list-row + .list-row { border-top: 1px solid var(--card-soft); }
.list-date {
  flex: none;
  width: 52px;
  text-align: center;
  padding: 6px 0;
  border-radius: 11px;
  background: var(--cream-deep);
}
.list-date .d { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1; }
.list-date .m { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 15px; }
.list-sub { color: var(--muted); font-size: 13px; margin-top: 1px; }
.list-side { flex: none; text-align: right; }
.list-price { font-weight: 650; font-size: 14.5px; }

/* ---------- takarítás ---------- */
.task-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.task-list { display: grid; gap: 12px; margin-top: 16px; }
.task-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: opacity .2s ease;
}
.task-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--sand);
  background: var(--card);
  color: transparent;
}
.task-card.is-done { opacity: .55; }
.task-card.is-done .task-check { background: var(--green); border-color: var(--green); color: var(--cream); }
.task-card.is-done .task-name { text-decoration: line-through; }
.task-main { flex: 1; min-width: 0; }
.task-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.task-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.task-due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.task-due.is-today { color: var(--terracotta); font-weight: 600; }
.task-overdue {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--terracotta-tint);
  color: var(--terracotta);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.btn-done {
  flex: none;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--cream);
  font-size: 14px;
  font-weight: 650;
}
.btn-done:hover { background: var(--dark-soft); }
.btn-done:disabled { opacity: .6; }
.task-done-label { font-size: 13px; color: var(--green); font-weight: 700; }

/* ---------- közös jelzők ---------- */
.badge-mock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: help;
}
.badge-mock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.skeleton { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: var(--sand);
  margin-bottom: 10px;
}
.skeleton-card {
  height: 90px;
  border-radius: var(--radius-lg);
  background: var(--sand);
  margin-bottom: 12px;
}
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-75 { width: 75%; }

.loading-wrap { padding-top: 8px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 18px + var(--safe-b));
  transform: translate(-50%, 16px);
  z-index: 60;
  max-width: min(92vw, 420px);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--success { background: var(--green); }
.toast--warn { background: var(--amber); color: var(--brown); }

.noscript {
  margin: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

/* ---------- apró képernyők ---------- */
@media (max-width: 360px) {
  :root { --pad: 16px; }
  .view-title { font-size: 30px; }
  .hero-month { font-size: 23px; }
  .login-title { font-size: 28px; }
  .cal-day { min-height: 47px; }
}

/* ---------- Fidelity-fix (2026-11-04): vendégadatlap összeg + foglalás sorok ---------- */
.sum-grid { grid-template-columns: 1.4fr 0.85fr 0.8fr 1.05fr; }
.sum-value { font-size: clamp(12.5px, 3.6vw, 14px); }
.list-main .list-sub,
.list-main .list-title { display: block; }
.list-main .list-sub { margin-top: 0; }

/* ---------- Fidelity-fix #2 (2026-11-04): Vendégek 4 tab + Kanban mobilon ---------- */
/* A .segmented alapból 2 oszlopos (Foglalások Naptár/Lista); a Vendégek 4 tabja
   egy sorban, kompakt méretekkel jelenjen meg. */
.segmented--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  margin-top: 12px;
}
.segmented--4 button {
  min-height: 40px;
  padding: 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
@media (max-width: 370px) {
  .segmented--4 button { font-size: 12.5px; }
}
/* Kanban: mobilon függőleges szakaszlista, hogy egyetlen oszlop se csússzon ki;
   szélesebb kijelzőn marad a vízszintes kártyás nézet. */
.kanban {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  padding: 0;
}
.kanban-col { width: 100%; }
@media (min-width: 960px) {
  .kanban { flex-direction: row; overflow-x: auto; padding: 0 0 10px; }
  .kanban-col { width: 270px; flex: none; }
}

/* ---------- Fidelity-fix #3 (2026-11-04): chipek tördelése mobilon ---------- */
/* A chipek eddig vízszintesen görgethetők voltak (a harmadik kilógott);
   mobilon inkább tördeljenek, hogy minden szűrő látszódjon. */
.chips {
  flex-wrap: wrap;
  overflow-x: visible;
  margin-top: 12px;
}
.chip { flex: 0 0 auto; }

/* ==========================================================================
   DESKTOP (≥960px) — reszponzív shell + bal oldalsáv + grid-kontraktus
   A checklist-hu által az app.js-ben használt class-kontraktus:
     .d-page, .d-page--ma|--vendeg|--vendeg-detail|--foglalasok|--takaritas
     .d-grid, .d-grid--2, .d-grid--split
     .d-col, .d-col--wide, .d-col--narrow
   Mobil alatt (≤959px) ezek a szabályok NEM lépnek életbe: marad az egyoszlopos
   mobil design. A shell/oldalsáv is csak ≥960px-en változik.
   ========================================================================== */

/* Tablet (640–959px): a mobil egyoszlopos elrendezés marad, szélesebb kerettel. */
@media (min-width: 640px) and (max-width: 959.98px) {
  .app-shell { max-width: 620px; }
  .screen { padding-left: 28px; padding-right: 28px; }
  .view-title { font-size: 36px; }
}

@media (min-width: 960px) {
  :root {
    --sidebar-w: 248px;
    --tabbar-h: 0px;
    --pad: 36px;
  }

  html, body { background: var(--bg); overflow-x: hidden; }

  /* ---- shell: bal margó az oldalsávnak, tartalom max 1200px ---- */
  .app-shell {
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0 0 0 var(--sidebar-w);
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  /* Login: nincs oldalsáv → nincs bal margó, a kártya középen */
  body:has(#tabbar[hidden]) .app-shell { padding-left: 0; }

  .screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 36px calc(40px + var(--safe-b));
  }
  #screen > section { width: 100%; }
  /* Egyoszlopos (régi DOM) nézetek ne nyúljanak szét 1200px-ig */
  #screen > section:not(:has(.d-grid)):not(:has(.cal-card)):not(.view-login) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- bal oldalsáv: a #tabbar fix bal menüvé alakul ---- */
  .tabbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: none;
    width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 22px 14px 18px;
    background: var(--card);
    border-top: 0;
    border-right: 1px solid var(--border);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 50;
  }
  .tabbar::before {
    content: "Ohana\2076";
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0 6px 20px;
    padding-left: 46px;
    background: url("./assets/ohana-logo.png") left center / 36px 31px no-repeat;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
  }
  .tabbar::after {
    content: "Családi pult";
    margin-top: auto;
    padding: 14px 8px 2px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--muted);
  }
  .tab svg { width: 21px; height: 21px; }
  .tab:hover { background: var(--card-soft); color: var(--text); }
  .tab[aria-current="page"] {
    background: var(--warm-tint);
    color: var(--accent);
  }
  .tab[aria-current="page"] .tab-label { font-weight: 800; }
  .tab[aria-current="page"] svg { stroke-width: 2.1; }

  /* A bal oldalsávban már ott a brand/logo: a tartalom fejlécében ne legyen
     második (duplikált) logó; a brandline eyebrow-szöveget is elrejtjük, a
     "Minta adatok" badge marad. */
  .view-head .brand-mark,
  .guests-head .brand-mark,
  .brandline .brand-mark { display: none; }
  .brandline .brand { display: none; }
  .brandline { justify-content: flex-end; }

  /* toast jobb alsó sarokban (ne a sidebar alatt jelenjen meg) */
  .toast {
    left: auto;
    right: 30px;
    bottom: 26px;
    transform: translateY(16px);
    max-width: 360px;
  }
  .toast.is-visible { transform: none; }

  /* ---- grid-kontraktus (checklist-hu DOM) ---- */
  .d-page { width: 100%; max-width: 1200px; margin: 0 auto; }
  .d-grid { display: grid; gap: 18px; align-items: start; }
  .d-grid--2 { grid-template-columns: 1fr 1fr; }
  .d-grid--split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .d-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
  .d-grid--split > .d-col--narrow { position: sticky; top: 24px; align-self: start; }

  /* ---- login desktop: középre igazított kártya ---- */
  .view-login {
    max-width: 460px;
    margin: 0 auto;
    min-height: calc(100dvh - 70px);
    padding: 24px 0 40px;
  }
  .view-login .login-inner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 42px 34px 34px;
    box-shadow: var(--shadow-card);
  }
  .login-brand { font-size: 38px; }

  /* ---- tipográfia desktopon ---- */
  .view-title { font-size: 38px; }
  .guests-head h1 { font-size: 34px; }
  h2.section-title { font-size: 24px; }
  .day-title { font-size: 22px; }
  .cal-day { min-height: 62px; }
  .cal-num { min-height: 30px; font-size: 16px; }

  /* ---- Foglalások: naptár + napnézet egymás mellett ----
     (Amíg a régi DOM él: a section közvetlen .cal-card + .day-card/.card gyerekei.
      Amint a checklist-hu d-grid--split wrapper-e megérkezik, az veszi át.) */
  #screen > section:has(> .cal-card):not(:has(.d-grid)) {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  #screen > section:has(> .cal-card):not(:has(.d-grid)) > :not(.cal-card):not(.day-card):not(.card) {
    grid-column: 1 / -1;
  }
  #screen > section:has(> .cal-card):not(:has(.d-grid)) > .cal-card {
    grid-column: 1;
    grid-row: 3;
  }
  #screen > section:has(> .cal-card):not(:has(.d-grid)) > .day-card,
  #screen > section:has(> .cal-card):not(:has(.d-grid)) > .card:not(.cal-card) {
    grid-column: 2;
    grid-row: 3;
    position: sticky;
    top: 24px;
  }
  /* új DOM-ban is sticky a napnézet/kártya a keskeny oszlopban */
  .d-col--narrow .day-card,
  .d-col--narrow .card { position: sticky; top: 24px; }
}

/* ---------- Fidelity-fix #4 (2026-11-04): desktop Kanban minden oszlopa látszódjon ---------- */
/* Desktopon a fix 250px-es oszlopok vízszintesen túllógtak; helyette rugalmas
   grid: 1440-en 5 oszlop egy sorban, 1024-en 3+2 tördeléssel, görgetés nélkül. */
@media (min-width: 960px) {
  .kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    overflow: visible;
    padding: 0;
  }
  .kanban-col { width: auto; }
}

/* ---------- Fidelity-fix #5 (2026-11-04): levegő a Pult fejléc és a kártya között ---------- */
@media (min-width: 960px) {
  .d-page--ma .view-head { margin-bottom: 34px; }
  .d-page--ma .d-col { gap: 22px; }
}
