/* styles.css — sade, okunaklı pano (Jira tarzı masaüstü, sekmeli mobil). Açık tema varsayılan, koyu tema otomatik.
   Tüm renkler :root değişkenlerinden gelir; dış kaynak yok. */
:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --border: #d9dce3;
  --fg: #1a1d24;
  --fg-muted: #5b6270;
  --accent: #1b5fd1;
  --accent-fg: #ffffff;
  --success: #17803f;
  --warn: #8a5c00;
  --danger: #c0271a;
  --lvl-low: #17803f;
  --lvl-mid: #a86a00;
  --lvl-high: #c0271a;
  --ring: #1b5fd1;
  --scrim: rgba(15, 18, 25, 0.5);
  --shadow: 0 1px 2px rgba(15, 18, 25, 0.08);
  --shadow-pop: 0 10px 30px rgba(15, 18, 25, 0.22);
  --radius: 10px;
  --col-w: 300px;
  --tap: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #1a1d23;
    --surface-2: #252932;
    --border: #333844;
    --fg: #eceef2;
    --fg-muted: #a0a7b5;
    --accent: #6ea2ff;
    --accent-fg: #0b1220;
    --success: #4cc27d;
    --warn: #e0b04a;
    --danger: #ff7b6e;
    --lvl-low: #4cc27d;
    --lvl-mid: #e0b04a;
    --lvl-high: #ff7b6e;
    --ring: #8db6ff;
    --scrim: rgba(0, 0, 0, 0.65);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.6);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ düğmeler */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: var(--danger); filter: brightness(1.1); }


.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--fg-muted);
}
.btn-quiet:hover { background: var(--surface-2); color: var(--fg); }
.btn-icon-m { display: none; }
.btn-icon-m[aria-expanded='true'] { background: var(--surface-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }

/* ------------------------------------------------------------ üst alan (mobil tabanlı) */
.app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar { display: none; }
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: grid;
  grid-template-areas: 'brand actions user' 'tools tools tools';
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; }
.brand-m { grid-area: brand; }
.page-title, .view-toggle { display: none; }
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) 4px 4px / 4px 14px no-repeat,
    linear-gradient(var(--success), var(--success)) 9px 4px / 4px 9px no-repeat,
    linear-gradient(var(--fg-muted), var(--fg-muted)) 14px 4px / 4px 5px no-repeat,
    var(--surface-2);
}

.topbar-actions { grid-area: actions; display: flex; gap: 8px; }
.user-box { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.user-box-m { grid-area: user; }
.user-name { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Arama ve süzgeçler: mobilde arama simgesine basınca açılır. */
.toolbar {
  grid-area: tools;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}
.topbar.search-open .toolbar { display: flex; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg-muted);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--ring); }
.search-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-select {
  flex: 1 1 140px;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
}
.filter-select.is-on { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ sekmeler (tek sütun) */
.tabs {
  display: none;
  gap: 4px;
  padding: 6px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
}
.tabs::-webkit-scrollbar { display: none; }
.tab, .nav-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav-item:hover:not([aria-selected='true']), .tab:hover:not([aria-selected='true']) { background: var(--surface-2); }
.tab[aria-selected='true'], .nav-item[aria-selected='true'] { background: var(--accent); color: var(--accent-fg); }
.tab-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg);
  font-size: 0.8125rem;
  text-align: center;
}
.tab[aria-selected='true'] .tab-count,
.nav-item[aria-selected='true'] .tab-count { background: rgba(255, 255, 255, 0.25); color: inherit; }

/* ------------------------------------------------------------ pano (sütunlar yan yana) */
.board {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow-x: auto;
  align-items: stretch;
}
.board:focus { outline: none; }

.column {
  flex: 0 0 var(--col-w);
  width: var(--col-w);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-2);
  border-radius: 14px;
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
}
.column-emoji { font-size: 1.05rem; }
.column-title { font-size: 1rem; flex: 1; min-width: 0; }
.column-count {
  min-width: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.group-toggle {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.column-body {
  flex: 1;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 10px 12px;
  overflow-y: auto;
  border-radius: 0 0 14px 14px;
}
.column-body.is-dropzone-active { outline: 2px dashed var(--accent); outline-offset: -4px; }

.group { display: flex; flex-direction: column; gap: 8px; }
.group + .group { margin-top: 8px; }
.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 0;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.group-count { font-weight: 600; }
.group-cards { display: flex; flex-direction: column; gap: 8px; }
.empty { margin: 8px 4px; color: var(--fg-muted); font-size: 0.9375rem; }

/* ------------------------------------------------------------ tek sütun (mobil ve masaüstü seçeneği) */
.is-single .tabs { display: flex; }
.is-single .board {
  display: block;
  overflow: visible;
  padding: 12px 12px 96px;
}
.is-single .column { display: none; width: 100%; background: transparent; }
.is-single .column.is-active { display: flex; }
.is-single .column-head:not(.has-tool) { display: none; }
.is-single .column-head { justify-content: flex-end; padding: 0 0 8px; }
.is-single .column-head > :not(.group-toggle) { display: none; }
.is-single .group-toggle { min-height: var(--tap); padding: 0 14px; }
.is-single .column-body { overflow: visible; padding: 0; }

/* ------------------------------------------------------------ kart */
.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 4px 14px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.card[data-importance='yüksek'] { border-left-color: var(--lvl-high); }
.card[data-importance='orta'] { border-left-color: var(--lvl-mid); }
.card[data-importance='düşük'] { border-left-color: var(--lvl-low); }
.card:hover { border-color: var(--fg-muted); }
.card.is-dragging { opacity: 0.45; }
.card.is-done .card-text { color: var(--fg-muted); text-decoration: line-through; }

.card-main { flex: 1; min-width: 0; }
.card-text {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.card-edit {
  width: 100%;
  min-height: 72px;
  padding: 8px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
.card-notes { margin: 6px 0 0; padding-left: 18px; color: var(--fg-muted); font-size: 0.875rem; }
.card-note { overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card-meta:empty { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.chip-date { color: var(--fg-muted); background: transparent; padding-left: 0; }
.chip-level[data-level='kolay'], .chip-level[data-level='düşük'] { color: var(--lvl-low); }
.chip-level[data-level='orta'] { color: var(--lvl-mid); }
.chip-level[data-level='zor'], .chip-level[data-level='yüksek'] { color: var(--lvl-high); }
.card-done { display: inline-flex; color: var(--success); }

.card-menu-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin: -8px 0 -8px 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
}
.card-menu-btn:hover { background: var(--surface-2); color: var(--fg); }

/* ------------------------------------------------------------ kart menüsü */
.menu-scrim { display: none; }
.menu {
  position: fixed;
  z-index: 60;
  width: 300px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.menu-task {
  margin: 0 0 6px;
  padding: 0 4px;
  color: var(--fg-muted);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.menu-label {
  margin: 10px 4px 6px;
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.menu-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}
.menu-item:hover, .menu-chip:hover { background: var(--surface-2); }
.menu-item-danger { color: var(--danger); }
.menu-item-close { display: none; justify-content: center; font-weight: 600; }
.menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.menu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.menu-chip[aria-checked='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.menu-chip-new { border-style: dashed; }

/* ------------------------------------------------------------ bildirimler */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  overflow-wrap: anywhere;
}
.toast.is-in { opacity: 1; transform: none; }
.toast[data-tone='error'] { background: var(--danger); color: #fff; }
.toast[data-tone='warn'] { background: var(--warn); color: #fff; }
.toast[data-tone='ok'] { background: var(--success); color: #fff; }

/* ------------------------------------------------------------ iletişim kutuları */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-pop);
}
.modal::backdrop { background: var(--scrim); }
.modal-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.modal-title { font-size: 1.125rem; }
.modal-task {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
.modal-warning { display: flex; gap: 8px; margin: 0; color: var(--warn); font-size: 0.9375rem; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 12px; }
.field-label { font-size: 0.875rem; font-weight: 600; }
.field-hint { color: var(--fg-muted); font-size: 0.8125rem; }
.field-input {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
textarea.field-input { resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }


/* ------------------------------------------------------------ yüzen ekle düğmesi */
.fab { display: none; }

/* ------------------------------------------------------------ masaüstü */
@media (min-width: 900px) {
  .app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .main { min-height: 0; height: 100%; }

  /* Yan çubuk */
  .sidebar {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
    width: 248px;
    padding: 12px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    transition: width 160ms ease;
  }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 8px; }
  .side-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
  .nav-item { width: 100%; }
  .nav-emoji { flex: none; width: 22px; text-align: center; }
  .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .sidebar-foot { padding-top: 8px; border-top: 1px solid var(--border); }
  .sidebar-foot .user-box { width: 100%; }
  .sidebar-foot .user-name { flex: 1; }

  .sidebar-collapsed .sidebar { width: 68px; }
  .sidebar-collapsed .sidebar-head { flex-direction: column; }
  .sidebar-collapsed .brand-name,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .nav-item .tab-count,
  .sidebar-collapsed .sidebar-foot .user-name,
  .sidebar-collapsed .sidebar-foot .user-avatar { display: none; }
  .sidebar-collapsed .nav-item { justify-content: center; padding: 6px 0; }
  .sidebar-collapsed .sidebar-foot .btn { min-width: 0; padding: 4px; font-size: 0.75rem; }

  /* Üst çubuk */
  .chrome { position: static; }
  .topbar {
    grid-template-areas: 'title views actions' 'tools tools tools';
    grid-template-columns: 1fr auto auto;
    gap: 12px 16px;
    padding: 16px 24px 12px;
  }
  .brand-m, .user-box-m { display: none; }
  .page-title { display: block; grid-area: title; font-size: 1.375rem; }
  .view-toggle {
    grid-area: views;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: var(--surface-2);
  }
  .view-btn {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
  }
  .view-btn[aria-pressed='true'] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
  .topbar .btn { min-height: 38px; }
  .toolbar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0; }
  .search { flex: 0 1 300px; min-height: 38px; }
  .search-input { min-height: 34px; font-size: 0.9375rem; }
  .filters { flex-wrap: nowrap; align-items: center; }
  .filter-select { flex: 0 0 auto; min-height: 38px; }

  /* Pano görünümü */
  .board { padding: 16px 24px 24px; overflow-y: hidden; }
  .column-body { min-height: 0; }

  /* Tek sütun görünümü: ortalanmış, geniş */
  .is-single .tabs { width: 100%; max-width: 760px; margin: 0 auto; border-top: 0; }
  .is-single .board { overflow-x: hidden; overflow-y: auto; padding: 20px 24px 40px; }
  .is-single .column { max-width: 760px; margin: 0 auto; }
}

/* ------------------------------------------------------------ mobil */
@media (max-width: 899px) {
  .topbar-actions .btn-label { display: none; }
  .topbar-actions .btn { padding: 8px; }
  .topbar-actions [data-add] { display: none; }
  .btn-icon-m { display: inline-flex; }

  .fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 28px;
    background: var(--accent);
    color: var(--accent-fg);
    font: inherit;
    font-weight: 700;
    box-shadow: var(--shadow-pop);
    cursor: pointer;
  }
  .fab .icon { width: 22px; height: 22px; }
  .toasts { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  /* Kart menüsü ve kutular alttan açılan sayfa olur. */
  .menu-scrim { position: fixed; inset: 0; z-index: 55; background: var(--scrim); }
  body.menu-open .menu-scrim { display: block; }
  .menu {
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    border-width: 1px 0 0;
  }
  .menu-item-close { display: flex; margin-top: 10px; }

  .modal {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    border-width: 1px 0 0;
  }
  .modal-form { padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal-actions .btn { flex: 1; }
  .field-input { font-size: 1rem; }
}

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .menu { animation: sheet-in 180ms ease-out; }
  .modal[open] { animation: sheet-in 180ms ease-out; }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

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