/* ==========================================================================
   ZedTech İş Takip - Tema "Lagün"
   Ferah, açık zemin + derin lagün yeşili kenar menü.
   Yazı: Bricolage Grotesque (başlıklar), Manrope (metin ve rakamlar)
   ========================================================================== */

:root {
  /* Zemin ve yüzey */
  --paper: #F3F7F6;
  --surface: #FFFFFF;
  --surface-2: #F8FBFA;

  /* Metin */
  --ink: #15292D;
  --ink-2: #4B5F64;
  --ink-3: #7C8D91;

  /* Çizgiler */
  --line: #E1E9E7;
  --line-strong: #CCD8D5;

  /* Marka: lagün */
  --lagoon: #0A8F7F;
  --lagoon-600: #07786B;
  --lagoon-700: #065F55;
  --lagoon-50: #E6F6F2;
  --lagoon-100: #C8EBE2;

  /* Kenar menü: lagün gecesi */
  --night: #0E3337;
  --night-2: #16444A;
  --night-ink: #CFE3E0;
  --night-ink-2: #8FB0AC;
  --mint: #7DE3CA;

  /* Durum renkleri */
  --sun: #E89A23;
  --sun-50: #FDF3E2;
  --sun-ink: #8A560A;
  --coral: #DD5148;
  --coral-50: #FCEBE9;
  --coral-ink: #A3302A;
  --iris: #5A57D1;
  --iris-50: #EEEDFC;
  --iris-ink: #3F3CA8;

  /* Ölçüler */
  --radius-s: 8px;
  --radius: 10px;
  --radius-l: 14px;
  --sidebar-w: 252px;
  --topbar-h: 64px;
  --shadow-pop: 0 12px 32px -12px rgba(14, 51, 55, .28), 0 2px 6px rgba(14, 51, 55, .06);

  --font-head: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lagoon-600); text-decoration: none; }
a:hover { color: var(--lagoon-700); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; border-radius: 4px; }

/* ---------- Uygulama iskeleti ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--night);
  color: var(--night-ink);
  padding: 20px 14px 14px;
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 10px 22px;
  color: #fff;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--mint); color: var(--night);
  font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1;
}
.brand-name { font-family: var(--font-head); font-weight: 650; font-size: 17px; line-height: 1.1; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--night-ink-2); letter-spacing: 0; margin-top: 3px; }

.nav-group { font-size: 12px; font-weight: 600; color: var(--night-ink-2); padding: 14px 12px 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius);
  color: var(--night-ink); font-weight: 550; font-size: 14.5px;
}
.nav-link .ic { color: var(--night-ink-2); }
.nav-link:hover { background: var(--night-2); color: #fff; text-decoration: none; }
.nav-link:hover .ic { color: #fff; }
.nav-link.is-active { background: var(--night-2); color: #fff; }
.nav-link.is-active .ic { color: var(--mint); }
.nav-link.is-active::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px;
  width: 4px; border-radius: 0 4px 4px 0; background: var(--mint);
}

.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 8px; }
.me-name { font-weight: 600; color: #fff; font-size: 14px; line-height: 1.2; }
.me-role { font-size: 12px; color: var(--night-ink-2); }
.me-actions { display: flex; gap: 6px; padding: 6px 4px 0; }
.me-actions a, .me-actions button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px; border-radius: var(--radius-s); border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: var(--night-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.me-actions a:hover, .me-actions button:hover { background: var(--night-2); color: #fff; text-decoration: none; }
.me-actions form { flex: 1; display: flex; }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lagoon-100); color: var(--lagoon-700);
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.sidebar .avatar { background: var(--mint); color: var(--night); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 247, 246, .9);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.topbar-date { color: var(--ink-2); font-size: 14px; }
.topbar-spacer { flex: 1; }
.topbar .menu-toggle { display: none; }

.content { padding: 30px 32px 56px; max-width: 1240px; width: 100%; }

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.page-head .lede { color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.back-link .ic { width: 16px; height: 16px; }

/* ---------- Panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.panel-head p { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.panel-body { padding: 22px; }
.panel-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); border-radius: 0 0 var(--radius-l) var(--radius-l); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 > .panel + .panel { margin-top: 0; }
.stack { display: grid; gap: 20px; }
.stack > .panel + .panel { margin-top: 0; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 14px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--lagoon); color: #fff; }
.btn-primary:hover { background: var(--lagoon-600); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--coral-ink); border-color: #F0C9C5; }
.btn-danger:hover { background: var(--coral-50); color: var(--coral-ink); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: var(--radius-s); }
.btn-icon { width: 34px; min-height: 34px; padding: 0; border-radius: var(--radius-s); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Formlar ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: span 2; }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field-label { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.field .req { color: var(--coral); margin-left: 2px; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5F64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px var(--lagoon-100); }
.input[readonly], .input:disabled, .select:disabled { background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .reveal {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 34px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; border-radius: var(--radius-s);
  display: grid; place-items: center;
}
.input-wrap .reveal:hover { color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lagoon); }

/* Filtre çubuğu */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.filters .field { gap: 5px; }
.filters .field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.filters .input, .filters .select { min-height: 38px; font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
.filters .grow { flex: 1 1 220px; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 17px; height: 17px; }
.search .input { padding-left: 36px; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; font-weight: 650; font-size: 12.5px; color: var(--ink-2);
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFDFC; }
.table .right { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.cell-main { font-weight: 650; color: var(--ink); }
.cell-sub { font-size: 13px; color: var(--ink-3); }
.person { display: flex; align-items: center; gap: 12px; }
.person .avatar { width: 34px; height: 34px; font-size: 12.5px; }
a.row-link { color: inherit; }
a.row-link:hover { color: var(--lagoon-700); }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; line-height: 1.5; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge-ok    { background: var(--lagoon-50); color: var(--lagoon-700); border-color: var(--lagoon-100); }
.badge-warn  { background: var(--sun-50); color: var(--sun-ink); border-color: #F6DDB0; }
.badge-bad   { background: var(--coral-50); color: var(--coral-ink); border-color: #F3CDC9; }
.badge-iris  { background: var(--iris-50); color: var(--iris-ink); border-color: #D9D8F6; }

/* ---------- Uyarılar ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px 13px 16px; margin-bottom: 20px;
  border-radius: var(--radius); border: 1px solid;
  font-size: 14.5px;
}
.alert .ic { margin-top: 2px; }
.alert-body { flex: 1; }
.alert-close { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 2px; border-radius: 6px; display: grid; place-items: center; }
.alert-close:hover { opacity: 1; }
.alert-close .ic { margin: 0; width: 16px; height: 16px; }
.alert-success { background: var(--lagoon-50); border-color: var(--lagoon-100); color: var(--lagoon-700); }
.alert-error   { background: var(--coral-50); border-color: #F3CDC9; color: var(--coral-ink); }
.alert-warning { background: var(--sun-50); border-color: #F6DDB0; color: var(--sun-ink); }
.alert-info    { background: var(--iris-50); border-color: #D9D8F6; color: var(--iris-ink); }

/* ---------- Boş durum ---------- */
.empty { padding: 48px 22px; text-align: center; color: var(--ink-2); }
.empty .ic { width: 30px; height: 30px; color: var(--ink-3); margin-bottom: 10px; }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-info { font-size: 13.5px; color: var(--ink-2); }
.pager-links { display: flex; gap: 4px; }
.pager-btn {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 13.5px;
}
.pager-btn:hover { border-color: var(--ink-3); text-decoration: none; color: var(--ink); }
.pager-btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-btn .ic { width: 16px; height: 16px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; padding: 6px; background: #E8EFED; border-radius: 12px; width: fit-content; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--ink-2); }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14,51,55,.1); }

/* ---------- Panel (dashboard) ---------- */
.hello { margin-bottom: 26px; }
.hello h1 { font-size: 38px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.hello p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.stat { padding: 20px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat-label .ic { width: 16px; height: 16px; color: var(--lagoon); }
.stat-value { font-family: var(--font-head); font-size: 34px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-note { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.stat-value.is-bad { color: var(--coral-ink); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--lagoon-50); color: var(--lagoon-700); }
.feed-dot .ic { width: 16px; height: 16px; }
.feed-dot.is-bad { background: var(--coral-50); color: var(--coral-ink); }
.feed-dot.is-warn { background: var(--sun-50); color: var(--sun-ink); }
.feed-text { font-size: 14.5px; }
.feed-text strong { font-weight: 650; }
.feed-meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Yetki matrisi ---------- */
.matrix-group { padding: 6px 22px 10px; }
.matrix-group + .matrix-group { border-top: 1px solid var(--line); }
.matrix-group h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 14px 0 6px; }
.matrix-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.matrix-row + .matrix-row { border-top: 1px dashed var(--line); }
.matrix-name { font-weight: 650; }
.matrix-desc { font-size: 13px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #EAF0EE; flex: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 6px 13px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14,51,55,.12); }
.seg input:checked + label.lvl-edit { background: var(--lagoon); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--lagoon); outline-offset: 1px; }
.seg input:disabled + label { cursor: not-allowed; opacity: .55; }

/* ---------- Onay penceresi ---------- */
dialog.confirm {
  border: 0; border-radius: var(--radius-l); padding: 0; width: min(420px, calc(100vw - 32px));
  box-shadow: var(--shadow-pop); color: var(--ink);
}
dialog.confirm::backdrop { background: rgba(14, 51, 55, .38); }
.confirm-body { padding: 22px 22px 8px; }
.confirm-body h2 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
.confirm-body p { color: var(--ink-2); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 22px; }

/* ---------- Giriş ekranı ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-side {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side .brand { padding: 0; }
.auth-side h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 650; letter-spacing: -.035em; line-height: 1.04; max-width: 13ch; }
.auth-side p { color: var(--night-ink-2); margin-top: 16px; font-size: 16px; max-width: 40ch; }
.auth-lines { position: absolute; right: -60px; bottom: -40px; width: 420px; height: 420px; opacity: .5; pointer-events: none; }
.auth-foot { font-size: 13px; color: var(--night-ink-2); position: relative; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.auth-card .lede { color: var(--ink-2); margin: 6px 0 26px; }
.auth-card form { display: grid; gap: 18px; }
.auth-card .btn { width: 100%; min-height: 46px; font-size: 15px; }

/* ---------- Hata sayfaları ---------- */
.oops { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.oops-code { font-family: var(--font-head); font-size: 88px; font-weight: 700; letter-spacing: -.05em; color: var(--lagoon); line-height: 1; }
.oops h1 { font-size: 24px; margin: 12px 0 8px; }
.oops p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 22px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 50;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(14,51,55,.35); z-index: 40; }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 22px 16px 48px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; min-height: auto; }
  .auth-side h1 { font-size: 32px; margin-top: 28px; }
  .auth-lines, .auth-foot { display: none; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .page-head h1 { font-size: 25px; }
  .hello h1 { font-size: 29px; }
  .topbar-date { display: none; }
  .table .hide-sm { display: none; }
  .matrix-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .feed li { grid-template-columns: auto 1fr; }
  .feed-meta { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Form bölümleri ---------- */
.form-section + .form-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section-title { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 40px; }
.input-suffix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; font-size: 14px; pointer-events: none; }
.seg-inline { display: inline-flex; justify-self: start; width: fit-content; padding: 3px; border-radius: 10px; background: #EAF0EE; flex-wrap: wrap; }
.seg-inline input { position: absolute; opacity: 0; pointer-events: none; }
.seg-inline label { padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.seg-inline input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14,51,55,.12); }
.seg-inline input:focus-visible + label { outline: 2px solid var(--lagoon); outline-offset: 1px; }
.seg-inline input:disabled + label { cursor: not-allowed; opacity: .6; }
