/* Renkler firma logosundan alındı: turkuaz #4198B2, gri #585858 */
:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #e9eff1;
  --text: #2b3236;
  --muted: #5f6b70;
  --border: #d9e2e6;
  --brand-text: #585858;        /* sol üstteki firma adı */
  --primary: #2b7f9a;           /* düğmeler, sekmeler; beyaz yazı okunsun diye logodakinden koyu */
  --primary-text: #ffffff;
  --primary-shadow: rgba(43, 127, 154, .35);
  --danger: #c62828;
  --warn: #b45309;
  --ok: #15803d;
  --me: #dcedf2;
  --overdue-bg: #fde8e8;
  --high-bg: #fff1dc;
  /* Sütun bantları: kırmızı yapılacak, beyaz devam eden, yeşil tamamlanan.
     Açık temada beyaz bant zeminde kaybolmasın diye kenar çizgisi alır. */
  --band-todo: #e5484d;
  --band-doing: #ffffff;
  --band-done: #2fa36b;
  --band-edge: #c9d3d7;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101719;
    --surface: #182124;
    --surface-2: #222d31;
    --text: #e4ecef;
    --muted: #94a5ab;
    --border: #2d3a3f;
    --brand-text: #e4ecef;
    --primary: #5bb4cf;
    --primary-text: #0d1d23;
    --primary-shadow: rgba(0, 0, 0, .45);
    --danger: #ff6b6b;
    --warn: #f0a33a;
    --ok: #4ade80;
    --me: #1d4250;
    --overdue-bg: #4a1f24;
    --high-bg: #48341a;
    --band-edge: transparent;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1 { font-size: 1.4rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); min-height: 1.2em; margin: 0; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- form elemanları ---------- */
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
input, select, textarea {
  font: inherit;
  /* iPhone, 16px'ten küçük yazı alanına dokunulunca ekranı yakınlaştırır; 16px bunu engeller */
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
input[type="checkbox"] { width: auto; min-height: 0; }
label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--text); white-space: nowrap; }

.btn {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-direction: row;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger-ghost { color: var(--danger); }
.btn.small { min-height: 34px; padding: 5px 10px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 1.3rem; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.danger-text { color: var(--danger) !important; }

/* ---------- giriş ---------- */
.center-card {
  max-width: 380px;
  margin: 12vh auto 0;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.center-card form { text-align: left; margin-top: 16px; }
.logo { width: 64px; height: 64px; border-radius: 14px; }

/* ---------- üst bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 650; font-size: 1.05rem; color: var(--brand-text); background: none; border: 0; cursor: pointer; padding: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

/* Uygulama adı "M+": "+" küçük, sağ üstte, M ile aynı renkte (koyu temada beyaz) */
.brand-name { font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand-name .plus {
  font-size: .58em;
  font-weight: 800;
  color: inherit;
  vertical-align: 0;
  position: relative;
  top: -.62em;
  margin-left: .02em;
  line-height: 0;
}
.topbar .brand-name { font-size: 1.45rem; }
.center-card .brand-name { font-size: 2.4rem; color: var(--brand-text); margin: 4px 0 0; }
.company-name { margin: 10px 0 0; font-size: .95rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 12px;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.menu[hidden] { display: none; }
.menu button { font: inherit; text-align: left; background: none; border: 0; color: var(--text); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
.menu-user { padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* İçerik ekranın soluna dayalı durur */
main { padding: 20px 24px 160px; }

/* ---------- liste ---------- */
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input { flex: 2; }
.toolbar select { flex: 1; max-width: 240px; }

.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 12px; }
.tab { flex: 1; font: inherit; font-size: .8rem; white-space: nowrap; border: 0; border-bottom: 4px solid transparent; background: none; color: var(--muted); padding: 8px 4px; border-radius: 8px; cursor: pointer; }
.tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; text-align: center; }
.tab.active .count { background: var(--me); }
.tab-todo { border-bottom-color: var(--band-todo); }
.tab-doing { border-bottom-color: var(--band-doing); box-shadow: inset 0 -1px 0 var(--band-edge); }
.tab-done { border-bottom-color: var(--band-done); }
.tab.active.tab-doing { box-shadow: var(--shadow), inset 0 -1px 0 var(--band-edge); }

.board { display: block; }
.column { display: none; flex-direction: column; gap: 8px; }
.column.active { display: flex; }
.column-title { display: none; }

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.card:hover { border-color: var(--primary); }
.card.prio-high { border-left-color: var(--warn); }
.card.prio-low { border-left-color: var(--border); }
.col-done .card { opacity: .75; }
.col-done .card-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.card-title { font-weight: 600; overflow-wrap: anywhere; }
.card-desc { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; color: var(--text); font-weight: 500; }
.chip-me { background: var(--me); }
.chip-project { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.chip-overdue { background: var(--overdue-bg); color: var(--danger); }
.chip-high { background: var(--high-bg); color: var(--warn); }
.chip-low { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px 0; margin: 0; }

/* Geniş ekranda üç sütun yan yana */
@media (min-width: 900px) {
  .tabs { display: none; }
  .board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  .column { display: flex; background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-height: 200px; }
  .column-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 4px; }
  .column-title .count { background: var(--surface); }
  .column-title .band { flex: 1; height: 8px; margin-left: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--band-edge); }
  .col-todo .band { background: var(--band-todo); box-shadow: none; }
  .col-doing .band { background: var(--band-doing); }
  .col-done .band { background: var(--band-done); box-shadow: none; }
}

.fab {
  position: fixed;
  right: 20px;
  /* Netlify'ın sağ alttaki "Powered by Netlify" yazısının üstünde kalsın */
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 5;
  font: inherit;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 6px 18px var(--primary-shadow);
  cursor: pointer;
}
.fab[hidden] { display: none; }

/* ---------- sayfalar ---------- */
.page { }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.panel .row-item { background: var(--bg); }
.row-actions { display: flex; gap: 6px; }

/* Yönetim > Projeler */
.row-form { display: flex; gap: 8px; margin: 12px 0 16px; }
.row-form input { flex: 1; }
.project-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.project-item .row-item { border: 0; background: transparent; }
.project-item details { padding: 0 12px 10px; }
.project-item summary { cursor: pointer; color: var(--primary); font-size: .9rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.member-grid label.check { white-space: normal; }

/* ---------- pencere ---------- */
dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
dialog::backdrop { background: rgba(10, 15, 25, .5); }
.dialog-body { padding: 18px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-head h2 { margin: 0; }
.dialog-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

.history { border-top: 1px solid var(--border); padding-top: 8px; }
.history summary { cursor: pointer; color: var(--primary); }
.history-list { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.history-item { color: var(--text); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.history-item ul { margin: 4px 0; padding-left: 1.2em; color: var(--muted); }

@media (max-width: 520px) {
  .grid2 { grid-template-columns: 1fr; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar input { grid-column: 1 / -1; }
  .toolbar select { max-width: none; min-width: 0; }
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}

/* ---------- bildirim baloncukları ---------- */
#toast-root { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast { background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); transition: opacity .4s; text-align: center; }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
.toast.hide { opacity: 0; }

/* =====================================================================
   Projeler → proje listesi → satırdan düzenleme
   ===================================================================== */
.topnav { display: flex; gap: 4px; margin-right: auto; margin-left: 16px; }
.topnav button { font: inherit; font-size: .95rem; background: none; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.topnav button:hover { background: var(--surface-2); }
.topnav button.on { color: var(--primary); background: var(--me); font-weight: 600; }

.page-wide { }
/* Listeler ekran genişliği boyunca uzar */
.page-list { }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.project-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-height: 130px;
}
.project-card:hover { border-color: var(--primary); }
.project-add { align-items: center; justify-content: center; color: var(--muted); border-style: dashed; border-top-width: 1px; box-shadow: none; background: transparent; }
.pc-name { font-weight: 700; font-size: 1.05rem; }
.pc-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.dot-todo { background: var(--band-todo); }
.dot-doing { background: var(--band-doing); box-shadow: inset 0 0 0 1px var(--band-edge); }
.dot-done { background: var(--band-done); }
.pc-people { display: flex; align-items: center; gap: 2px; margin-top: auto; }
.pc-people .muted { margin-left: 10px; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; font-size: .72rem; font-weight: 700;
  background: var(--me); color: var(--primary); border: 2px solid var(--surface);
}
.pc-people .avatar { margin-right: -6px; }
.avatar-empty { background: var(--surface-2); color: var(--muted); }

.crumb { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.crumb .link { font-size: .95rem; }
.crumb strong { color: var(--text); font-size: 1.15rem; }

.people-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.person-chip { font: inherit; font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.person-chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.person-chip.on .count { background: rgba(255, 255, 255, .25); color: inherit; }

.list-filters { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px; margin-bottom: 10px; }
.quick-add { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 8px; margin-bottom: 8px; }

.task-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.task-list .empty { padding: 28px 0; }
.task-row { border-top: 1px solid var(--border); }
.task-row:first-child { border-top: 0; }
.task-row.is-open { background: var(--bg); }
.row-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; }
.row-head:hover { background: var(--bg); }
.row-check { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--band-done); cursor: pointer; }
.row-title { font: inherit; color: var(--text); text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rt-text { font-weight: 500; overflow-wrap: anywhere; }
.rt-desc { flex-basis: 100%; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-done .rt-text { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.row-meta { display: flex; align-items: center; gap: 6px; }

.status-pill { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1.5px solid; white-space: nowrap; }
.st-todo { color: var(--band-todo); border-color: var(--band-todo); }
.st-doing { color: var(--text); border-color: var(--band-edge); background: var(--band-doing); }
.st-done { color: var(--band-done); border-color: var(--band-done); }

.row-detail { padding: 4px 12px 14px 42px; display: flex; flex-direction: column; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (prefers-color-scheme: dark) {
  .st-doing { color: #0d1d23; border-color: var(--band-doing); }
}

@media (max-width: 640px) {
  main { padding: 16px 16px 160px; }
  .topbar { flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; margin: 4px 0 0; }
  .topnav button { flex: 1; }
  .quick-add { grid-template-columns: minmax(0, 1fr) auto; }
  .quick-add select { grid-column: 1 / -1; grid-row: 2; }
  .row-head { grid-template-columns: auto minmax(0, 1fr); }
  .row-meta { grid-column: 2; flex-wrap: wrap; }
  .row-detail { padding-left: 12px; }
  .list-filters { grid-template-columns: minmax(0, 1fr) 130px; }
}

/* =====================================================================
   Özet paneli
   - 900px ve üstü: listenin sağında, genişliği ekranla orantılı (230–260px)
   - daha dar (telefon): listenin üstünde, sıkışık kutular; dağılım açılıp kapanır
   ===================================================================== */
.split { display: flex; flex-direction: column; gap: 12px; }
.split-main { min-width: 0; }
.split-side { order: -1; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 18vw, 260px); align-items: start; gap: 20px; }
  .split-side { order: 0; position: sticky; top: 76px; }
  .breakdown-wrap > summary { display: none; }
}

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; container-type: inline-size; }


.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0;
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid transparent; border-radius: 10px; padding: 10px 8px;
}
.stat:hover { border-color: var(--border); }
.stat.on { border-color: var(--primary); background: var(--me); }
.stat-label { font-size: .74rem; color: var(--muted); display: flex; align-items: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-label .dot { flex: none; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }

.progress-line { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.progress { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; background: var(--band-done); border-radius: 4px; }

.breakdown-wrap { margin-top: 10px; }
.breakdown-wrap > summary { cursor: pointer; font-size: .85rem; color: var(--primary); padding: 4px 0; }
.breakdown { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.bd-row {
  display: grid; grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) 40px; align-items: center; gap: 10px;
  font: inherit; font-size: .88rem; color: var(--text); text-align: left;
  background: none; border: 0; border-radius: 8px; padding: 6px; cursor: pointer;
}
.bd-row:hover, .bd-row.on { background: var(--bg); }
.bd-row.on .bd-name { color: var(--primary); font-weight: 600; }
.bd-row.static { cursor: default; }
.bd-row.static:hover { background: none; }
.bd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-bar { display: flex; gap: 2px; height: 14px; }
.bd-bar.empty { background: var(--surface-2); border-radius: 4px; }
.seg { display: block; height: 100%; border-radius: 4px; min-width: 6px; }
.seg-todo { background: var(--band-todo); }
.seg-doing { background: var(--band-doing); box-shadow: inset 0 0 0 1px var(--band-edge); }
.seg-done { background: var(--band-done); }
.bd-pct { font-size: .8rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Telefon: daha sıkışık kutular */
@media (max-width: 899px) {
  .summary { padding: 10px; }
  .stat-tiles { gap: 6px; margin-bottom: 10px; }
  .stat { padding: 8px; gap: 2px; }
  .stat-label { font-size: .72rem; }
  .stat-value { font-size: 1.3rem; }
}
/* Dosyanın sonunda durmalı (üstteki kuralları ezsin). Panel daralınca (orta boy ekranlar) sayı kutuları yan yana sığmaz: alt alta satır olur */
@container (max-width: 360px) {
  .stat-tiles { grid-template-columns: 1fr; gap: 4px; }
  .stat { flex-direction: row; align-items: center; justify-content: space-between; padding: 6px 10px; }
  .stat-value { font-size: 1.15rem; }
}
