/* ==========================================================================
   Roua · Rezervări — panoul proprietarului
   Gândit întâi pentru telefon; pe laptop navigația trece într-o coloană.
   ========================================================================== */

:root {
  /* paleta din logo-ul Roua */
  --bg: #f8f1eb;
  --surface: #fdf9f6;
  --surface-2: #f0e4da;
  --ink: #263943;
  --ink-2: #5b6d76;
  --line: rgba(38, 57, 67, .11);
  --line-strong: rgba(38, 57, 67, .24);
  --accent: #4d6c7b;
  --on-accent: #fdf9f6;
  --logo: #93b0bc;
  --ok: #3b7357;
  --danger: #a23c2f;
  --muted: #8a979d;
  --shadow: 0 18px 50px -18px rgba(38, 57, 67, .35);

  --f-display: "Libre Caslon Display", "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --f-serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --f-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-water: cubic-bezier(.34, 1.4, .64, 1);

  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --tabs-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18252d;
    --surface: #1f2e37;
    --surface-2: #283a45;
    --ink: #f5e8df;
    --ink-2: #b0b6b6;
    --line: rgba(245, 232, 223, .09);
    --line-strong: rgba(245, 232, 223, .2);
    --accent: #93b0bc;
    --on-accent: #18252d;
    --logo: #93b0bc;
    --ok: #9fd0b1;
    --danger: #f2a08f;
    --muted: #7d8b92;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.display {
  font-family: var(--f-display);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   Butoane și câmpuri
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  font-size: .98rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease-water);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--danger { background: var(--danger); color: var(--bg); }
.btn--quiet { color: var(--ink-2); padding-inline: .6rem; }
.btn--quiet:hover { color: var(--ink); }
.btn--sm { min-height: 38px; padding: .4rem .9rem; font-size: .9rem; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

.label { display: block; margin-bottom: .35rem; font-size: .85rem; color: var(--ink-2); }
.opt { color: var(--muted); }
.field {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .6rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field[aria-invalid="true"] { border-color: var(--danger); }
.field--area { min-height: 84px; resize: vertical; line-height: 1.45; }
select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.err { color: var(--danger); font-size: .85rem; margin-top: .3rem; }
.err:empty { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  font-size: .78rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Starea ca o picătură
   -------------------------------------------------------------------------- */

.drop { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.drop--new { color: var(--accent); }
.drop--confirmed { color: var(--ok); fill: currentColor; }
.drop--declined { color: var(--danger); }
.drop--cancelled { color: var(--muted); stroke-dasharray: 2.5 2.5; }

.status { font-size: .8rem; font-weight: 500; white-space: nowrap; }
.status--new { color: var(--accent); }
.status--confirmed { color: var(--ok); }
.status--declined { color: var(--danger); }
.status--cancelled { color: var(--muted); }

/* --------------------------------------------------------------------------
   Conectarea
   -------------------------------------------------------------------------- */

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--top) + 24px) 20px calc(var(--bottom) + 24px);
}
.gate__card { width: min(100%, 380px); display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.gate__logo { width: 190px; aspect-ratio: 1068.5 / 693.9; height: auto; color: var(--logo); margin-bottom: .4rem; }
.gate__title {
  font-family: var(--f-display);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -.01em;
}
.gate__text { color: var(--ink-2); max-width: 30ch; }
.gate__form { width: 100%; display: grid; gap: .9rem; margin-top: .6rem; text-align: left; }
.gate__msg { font-size: .92rem; color: var(--ink-2); text-align: center; }
.gate__msg:empty { display: none; }
.gate__forgot {
  justify-self: center;
  padding: .5rem .75rem;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gate__forgot:hover { color: var(--ink); }

/* cerere nouă: fereastra care apare peste panou, cu sunet */
.alert {
  width: min(calc(100% - 32px), 380px);
  margin: auto;
  padding: 2rem 1.6rem 1.6rem;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}
.alert[open] { display: grid; gap: .6rem; justify-items: center; animation: alert-in .5s var(--ease-water); }
.alert::backdrop { background: rgba(24, 37, 45, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.alert__logo { width: 92px; aspect-ratio: 1068.5 / 693.9; height: auto; color: var(--logo); margin-bottom: .2rem; }
.alert__kicker { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.alert__title { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.alert__text { color: var(--ink-2); max-width: 30ch; }
.alert__actions { display: grid; gap: .6rem; width: 100%; margin-top: .8rem; }
@keyframes alert-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .alert[open] { animation: none; } }
.gate__demo { font-size: .85rem; color: var(--muted); max-width: 32ch; }

/* --------------------------------------------------------------------------
   Scheletul: bară, conținut, file
   -------------------------------------------------------------------------- */

.shell { min-height: 100dvh; }

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: calc(var(--top) + 8px) 12px 8px 16px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.brand__logo { height: 34px; aspect-ratio: 1068.5 / 693.9; width: auto; color: var(--logo); align-self: center; }
.brand__sub { font-size: .9rem; color: var(--ink-2); }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: .3rem; }

.main {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--tabs-h) + var(--bottom) + 96px);
}

.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 8px calc(var(--bottom) + 4px);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 0 6px;
  border-radius: 14px;
  font-size: .75rem;
  color: var(--ink-2);
  transition: color .2s;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tab[aria-current="page"] svg { color: var(--accent); }
.tab__badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 7px);
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabs-h) + var(--bottom) + 16px);
  z-index: 31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 58px; height: 58px;
  border: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease-water);
}
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; }
.fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "bar bar" "tabs main";
  }
  .bar { grid-area: bar; padding: 12px 24px; }
  .tabs {
    grid-area: tabs;
    position: sticky;
    top: 69px;
    align-self: start;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 24px 16px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
  }
  .tab {
    grid-template-columns: 24px 1fr auto;
    justify-items: start;
    align-items: center;
    gap: .75rem;
    min-height: 46px;
    padding: 0 12px;
    font-size: .98rem;
  }
  .tab[aria-current="page"] { background: var(--surface-2); }
  .tab__badge { position: static; justify-self: end; }
  .main { grid-area: main; padding: 32px 32px 64px; margin: 0; }
  .fab {
    left: 16px;
    right: auto;
    bottom: 24px;
    width: 200px;
    height: 52px;
    border-radius: 16px;
    font-weight: 500;
  }
  .fab svg { width: 22px; height: 22px; }
  .fab__label { position: static; width: auto; height: auto; clip: auto; }
}

/* --------------------------------------------------------------------------
   Agenda
   -------------------------------------------------------------------------- */

.hello { display: grid; gap: .3rem; margin: 8px 0 22px; }
.hello__greet { color: var(--ink-2); }
.hello__day {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -.01em;
}

.brief {
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 4.2vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.brief b { font-weight: 700; }
.brief button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.day-group { margin-top: 22px; }
.day-group__head {
  position: sticky;
  top: calc(var(--top) + 61px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 0 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.day-group__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.day-group__sum { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.clash {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-top: 10px;
  padding: .6rem .8rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: .88rem;
}

@media (min-width: 960px) {
  .day-group__head { top: 69px; }
}

/* rândul unei rezervări */
.list { display: grid; }
.row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: start;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  transition: background-color .2s;
}
.row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.row .drop { margin-top: 3px; }
.row__main { display: grid; gap: 2px; min-width: 0; }
.row__name { font-size: 1.05rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__what { color: var(--ink-2); font-size: .92rem; }
.row__side { display: grid; justify-items: end; gap: 4px; }
.row__when { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.row-item { position: relative; }
.row-item.has-quick .row { padding-right: 112px; }
.row__quick { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.row__quick:active { transform: translateY(-50%) scale(.97); }

.empty {
  display: grid;
  gap: .9rem;
  justify-items: start;
  padding: 28px 0;
  color: var(--ink-2);
}
.empty__title {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  color: var(--ink);
}

.view__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 6.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 8px 0 18px;
}

/* --------------------------------------------------------------------------
   Cereri: filtre și căutare
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px 12px;
  padding: 2px 16px 4px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 38px;
  padding: .35rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: .9rem;
  color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__n { font-variant-numeric: tabular-nums; opacity: .75; }

.search { position: relative; margin-bottom: 6px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .field { padding-left: 2.6rem; border-radius: 999px; }

@media (min-width: 960px) {
  .filters { margin-inline: 0; padding-inline: 0; }
}

/* --------------------------------------------------------------------------
   Calendar
   -------------------------------------------------------------------------- */

.cal__head { display: flex; align-items: center; gap: .5rem; margin: 8px 0 14px; }
.cal__month {
  flex: 1;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { padding: 4px 0 8px; text-align: center; font-size: .78rem; color: var(--muted); }
.day {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 4px;
  aspect-ratio: 1 / 1.08;
  min-height: 46px;
  padding: 6px 2px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s;
}
.day:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.day__n { font-size: .95rem; line-height: 1; }
.day__dots { display: flex; gap: 1px; align-items: center; }
.day__dots .drop { width: 11px; height: 11px; stroke-width: 2.2; }
.day.is-out { color: var(--muted); opacity: .55; }
.day.is-today .day__n {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.day[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); }
@media (min-width: 600px) {
  .day { aspect-ratio: auto; height: 64px; }
}
.day.is-past:not(.is-today) .day__n { color: var(--ink-2); }

.cal__day { margin-top: 22px; }
.cal__day-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.cal__day-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Foile (dialogurile): de jos pe telefon, din dreapta pe laptop
   -------------------------------------------------------------------------- */

.sheet {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .42s var(--ease); }
.sheet::backdrop { background: rgba(8, 14, 16, .38); animation: fade .3s ease; }
.sheet--short {
  height: auto;
  max-height: 92dvh;
  margin-top: auto;
  border-radius: 22px 22px 0 0;
}
.sheet__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: calc(var(--top) + 8px) 12px 8px;
  border-bottom: 1px solid var(--line);
}
.sheet--short .sheet__head { padding-top: 12px; }
.sheet__title {
  flex: 1;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.25rem;
  padding-left: 4px;
}
.sheet--short .sheet__title { padding-left: 8px; }
.sheet__meta { flex: 1; min-width: 0; font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 28px; }
.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 12px 16px calc(var(--bottom) + 12px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheet__foot .btn { flex: 1 1 auto; }
.sheet--short .sheet__body { padding-bottom: calc(var(--bottom) + 24px); }

@media (min-width: 720px) {
  .sheet:not(.sheet--short) {
    width: 480px;
    margin: 0 0 0 auto;
    box-shadow: var(--shadow);
    animation-name: sheet-left;
  }
  .sheet--short {
    width: 440px;
    margin: auto;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
}

@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-left { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* detaliile */
.d-top { display: grid; gap: .5rem; margin-bottom: 18px; }
.d-name {
  font-family: var(--f-display);
  font-size: clamp(2rem, 8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.d-state { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }

.d-facts { display: grid; margin: 4px 0 18px; border-top: 1px solid var(--line-strong); }
.d-facts > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: .75rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.d-facts dt { color: var(--ink-2); font-size: .92rem; }
.d-facts dd { margin: 0; overflow-wrap: anywhere; }
.d-facts small { display: block; color: var(--ink-2); font-size: .85rem; margin-top: 2px; }

.d-contact { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2px 0 20px; }

.d-quote {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.d-note { display: grid; gap: .35rem; }
.d-note__saved { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.d-danger { margin-top: 22px; }
.d-danger .btn { color: var(--danger); padding-inline: 0; }

/* editorul */
.editor { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.editor__body { display: grid; gap: 18px; align-content: start; }
.seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: .5rem 1rem; border-radius: 999px; text-align: center; font-size: .95rem; transition: background-color .2s; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.cell { min-width: 0; }
.cell--wide { grid-column: 1 / -1; }

/* setările */
.settings { display: grid; gap: 18px; }
.set-group { display: grid; gap: .6rem; }
.set-group__title { font-size: .85rem; color: var(--ink-2); }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.set-row p { font-size: .92rem; color: var(--ink-2); }
.set-row strong { display: block; color: var(--ink); font-weight: 600; }
.set-actions { display: grid; gap: .5rem; }
.set-actions .btn { justify-content: flex-start; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color .25s; pointer-events: none; }
.switch span::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease-water);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.confirm__text {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 8px 4px 20px;
}
.confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* --------------------------------------------------------------------------
   Notificări în aplicație
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabs-h) + var(--bottom) + 86px);
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(calc(100% - 24px), 440px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toast-in .45s var(--ease-water);
}
.toast span { flex: 1; font-size: .93rem; }
.toast button {
  flex: none;
  padding: .45rem .8rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  color: var(--bg);
  font-weight: 600;
  font-size: .88rem;
}
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

@media (min-width: 960px) {
  .toasts { left: auto; right: 24px; bottom: 24px; transform: none; }
}

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