/* Klinik Araştırma Platformu · demo prototip
   Tasarım kalıbı: Carbon yaklaşımı (bkz. ../DESIGN.md). Yazı tipi dışında dış bağımlılık yok. */

:root {
  --accent: #0b6e8a; --accent-h: #095a72; --accent-p: #07465a; --accent-t: #e1f1f6; --accent-d: #3ddbd9;
  --ink: #161616; --ink2: #525252; --ink3: #6f6f6f;
  --canvas: #fff; --page: #f4f4f4; --s2: #e0e0e0;
  --hair: #e0e0e0; --hair-strong: #8d8d8d;
  --inv: #161616; --inv2: #262626; --inv-mute: #c6c6c6;
  --ok: #198038; --ok-t: #defbe6; --ok-i: #0e6027;
  --warn: #f1c21b; --warn-t: #fcf4d6; --warn-i: #684e00;
  --err: #da1e28; --err-t: #fff1f1; --err-i: #a2191f;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body { margin: 0; font: 400 14px/20px var(--font); letter-spacing: .16px; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dark :focus-visible, .shell-head :focus-visible, .hero .r :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 0; }
.ic { flex: none; vertical-align: middle; }
.mono, .num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.mute { color: var(--ink3); }
.sec2 { color: var(--ink2); }
.grow { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Kabuk ---------- */
.app { height: 100vh; display: grid; grid-template-rows: auto 48px minmax(0, 1fr); }
.demobar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 40px; padding: 4px 16px; background: #fff; border-bottom: 1px solid var(--hair); font-size: 12px; }
.demobar .dstep { display: flex; align-items: center; gap: 8px; }
.demobar select { height: 28px; border: 0; border-bottom: 1px solid var(--hair-strong); background: var(--page); font: inherit; padding: 0 8px; max-width: 280px; }
.seg { display: inline-flex; border: 1px solid var(--hair-strong); }
.seg button { height: 28px; padding: 0 12px; border: 0; background: #fff; font-size: 12px; }
.seg button + button { border-left: 1px solid var(--hair-strong); }
.seg button.on { background: var(--ink); color: #fff; }
.seg button:not(.on):hover { background: var(--page); }
.shell-head { background: var(--inv); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.shell-head .brand { color: #fff; }
.shell-head .who { font-size: 12px; color: var(--inv-mute); }
.shell-head button { background: none; border: 0; color: var(--inv-mute); height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 8px; }
.shell-head button:hover { background: var(--inv2); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark { width: 24px; height: 24px; background: var(--accent); color: #fff; display: grid; place-content: center; }
/* SPINEX marka: renkli logo açık zeminde, beyaz logo koyu zeminde; yeniden renklendirilmez, gerilmez (DESIGN.md "Marka"). */
.brand .logo { display: block; height: 20px; width: auto; }
.brand .sep { width: 1px; height: 20px; background: var(--hair-strong); }
.shell-head .brand .sep { background: #6f6f6f; }
.hero .byline { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); align-self: stretch; }
.hero .byline img { display: block; height: 18px; width: auto; }
.login .l .logo-lg { display: block; height: 24px; width: auto; align-self: flex-start; margin-bottom: 24px; }
.pub-foot .foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #fff; }
.pub-foot .foot-brand img { display: block; height: 22px; width: auto; }
.print-brand { display: none; }
.shell-body { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 0; }
.sidenav { background: #fff; border-right: 1px solid var(--hair); overflow: auto; padding: 16px 0; }
.sidenav .grp { font-size: 12px; color: var(--ink3); padding: 8px 16px; }
.sidenav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 16px; color: var(--ink2); border-left: 3px solid transparent; text-decoration: none; }
.sidenav a:hover { background: var(--page); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--page); border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
main { overflow: auto; padding: 32px; min-width: 0; }
main:focus { outline: none; }
.wrap { max-width: 1180px; }

/* ---------- Sayfa başlığı ve yerleşim ---------- */
.crumbs { font-size: 12px; color: var(--ink3); margin-bottom: 8px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.pagehead h1 { font-size: 28px; line-height: 36px; font-weight: 400; letter-spacing: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pagehead p { color: var(--ink2); margin-top: 4px; max-width: 72ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.stack.lg { gap: 24px; }
.grid { display: grid; gap: 16px; }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f4 { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.two.wide-r { grid-template-columns: minmax(0, 1fr) 420px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.start { align-items: flex-start; }
.cand { flex-wrap: nowrap; } .cand > .grow { min-width: 0; }
@media (max-width: 560px) { .cand { flex-wrap: wrap; } .cand > .grow { flex: 1 1 calc(100% - 52px); } .cand > .tag { margin-left: 36px; } } /* aday merkez satırı: dar ekranda durum etiketi alt satıra iner */
.invrow { border: 1px solid var(--hair); padding: 12px 16px; gap: 16px; align-items: flex-start; } /* araştırmacı satırı: yanıt listesi ve sponsor tercihi */
.invrow > .select { width: 240px; flex: 0 0 auto; }
.invrow > .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .invrow > .select { width: calc(100% - 36px); margin-left: 36px; } .invrow > .btn { margin-left: 36px; } }

.tile { background: #fff; border: 1px solid var(--hair); padding: 24px; }
.tile.flush { padding: 0; }
.tile.flush > h2 { padding: 24px 24px 0; }
.tile.flush > .sub { padding: 0 24px; }
.tile > h2, .tile h2.h { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.tile .sub { color: var(--ink2); margin: -8px 0 16px; }
.kpi .l { font-size: 12px; color: var(--ink2); letter-spacing: .32px; }
.kpi .v { font-size: 32px; line-height: 40px; font-weight: 300; margin-top: 8px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--ink3); margin-top: 4px; }
dl.kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px 16px; }
dl.kv dt { color: var(--ink3); }
dl.kv dd { font-weight: 600; letter-spacing: 0; }
.hr { border: 0; border-top: 1px solid var(--hair); margin: 16px 0; }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 0; background: var(--accent); color: #fff; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-h); text-decoration: none; }
.btn:active { background: var(--accent-p); }
.btn.alt { background: #393939; }
.btn.alt:hover { background: #4c4c4c; }
.btn.ter { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.ter:hover { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 12px; gap: 8px; }
.btn.ghost:hover { background: var(--accent-t); }
.btn.dng { background: var(--err); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; gap: 12px; }
.btn.block { width: 100%; justify-content: space-between; }
.btn[disabled] { background: var(--s2); color: #8d8d8d; border-color: transparent; cursor: not-allowed; }
.btn.ter[disabled], .btn.ghost[disabled] { background: transparent; border-color: var(--s2); }

/* ---------- Etiket ve bildirim ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12px; line-height: 16px; letter-spacing: .32px; white-space: nowrap; background: var(--s2); color: #393939; font-weight: 400; }
.tag.ok { background: var(--ok-t); color: var(--ok-i); }
.tag.warn { background: var(--warn-t); color: var(--warn-i); }
.tag.err { background: var(--err-t); color: var(--err-i); }
.tag.info { background: var(--accent-t); color: var(--accent-p); }
.tag.ph { background: transparent; border: 1px solid var(--hair-strong); color: var(--ink2); height: 20px; padding: 0 6px; font-size: 11px; border-radius: 10px; }
.note { display: flex; gap: 12px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-t); }
.note.warn { border-color: var(--warn); background: var(--warn-t); }
.note.ok { border-color: var(--ok); background: var(--ok-t); }
.note.err { border-color: var(--err); background: var(--err-t); }
.note .ic { margin-top: 2px; }
.note b { font-weight: 600; }
.note a, .note button.lnk { color: var(--accent-p); font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; }

/* ---------- Tablo ---------- */
.tbl-wrap { background: #fff; border: 1px solid var(--hair); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); background: var(--page); padding: 0 16px; height: 40px; border-bottom: 1px solid var(--hair); white-space: nowrap; letter-spacing: .32px; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--page); }
.tbl .sub { font-size: 12px; color: var(--ink3); margin: 2px 0 0; } /* kutu içindeki tabloda .tile .sub alt boşluğu satırı şişirmesin */
.meta { font-size: 12px; line-height: 16px; color: var(--ink3); font-weight: 400; margin-top: 2px; } /* tablo dışı küçük açıklama satırı (.tile .sub alt başlık içindir) */
.tbl .strong { font-weight: 600; }
.tbl tr.best td { background: var(--accent-t); }
.tbl td.num, .tbl th.num { text-align: right; }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .lab { font-size: 12px; color: var(--ink2); letter-spacing: .32px; }
.input, .select, .textarea { width: 100%; background: var(--page); border: 0; border-bottom: 1px solid var(--hair-strong); border-radius: 0; height: 40px; padding: 0 16px; font: inherit; letter-spacing: .16px; color: var(--ink); }
.textarea { height: auto; min-height: 104px; padding: 11px 16px; resize: vertical; line-height: 20px; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.input[readonly], .textarea[readonly] { background: transparent; border-bottom-color: var(--hair); }
.input:disabled, .select:disabled { background: var(--s2); color: #8d8d8d; }
.field.err .input, .field.err .select, .field.err .textarea { outline: 2px solid var(--err); outline-offset: -2px; }
.errmsg { color: var(--err-i); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.help { font-size: 12px; color: var(--ink3); }
.choice { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.choice input { appearance: none; margin: 2px 0 0; width: 16px; height: 16px; border: 1px solid var(--ink); background: #fff; flex: none; display: grid; place-content: center; }
.choice input[type=radio] { border-radius: 50%; }
.choice input:checked { background: var(--accent); border-color: var(--accent); }
.choice input[type=radio]:checked::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.choice input[type=checkbox]:checked::before { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.choice input:disabled { border-color: #c6c6c6; }
.opt { border: 1px solid var(--hair-strong); padding: 16px; background: #fff; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-t); }
.chip { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; background: var(--page); border: 1px solid var(--hair); }
.chip.dashed { border-style: dashed; color: var(--ink2); }

/* ---------- Adım göstergesi ---------- */
.steps li { position: relative; padding: 0 0 24px 32px; }
.steps li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 2px; width: 1px; background: var(--hair-strong); }
.steps li:last-child::before { display: none; }
.steps .dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border: 1px solid var(--hair-strong); border-radius: 50%; background: #fff; display: grid; place-content: center; }
.steps .done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps .cur .dot { border: 2px solid var(--accent); }
.steps .cur .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.steps .t { font-weight: 600; letter-spacing: 0; }
.steps .pend .t { color: var(--ink3); font-weight: 400; }
.steps .d { color: var(--ink2); }
.steps .pend .d { color: var(--ink3); }
.steps .when { float: right; font-size: 12px; color: var(--ink3); }
.steps .cur .when { color: var(--accent); }

/* ---------- Aralık çubuğu ---------- */
.rbar { display: grid; grid-template-columns: 220px minmax(0, 1fr) 140px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); }
.track { position: relative; height: 16px; background: var(--page); }
.track .fill { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.axis { display: grid; grid-template-columns: 220px minmax(0, 1fr) 140px; gap: 16px; font-size: 12px; color: var(--ink3); }
.axis .a { display: flex; justify-content: space-between; }

/* ---------- Modal ve bildirim ---------- */
.scrim { position: fixed; inset: 0; background: rgba(22, 22, 22, .5); display: grid; place-items: center; z-index: 50; }
.modal { background: #fff; width: min(520px, 92vw); }
.modal .mh { padding: 16px 16px 0; }
.modal .mh h2 { font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: 0; }
.modal .mb { padding: 16px; display: grid; gap: 16px; }
.modal .mf { display: flex; }
.modal .mf .btn { flex: 1; height: 64px; align-items: flex-start; padding-top: 16px; justify-content: space-between; }
.toasts { position: fixed; top: 56px; right: 16px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--inv2); color: #fff; border-left: 3px solid var(--accent-d); padding: 12px 16px; min-width: 280px; max-width: 380px; }
.toast.err { border-color: #ff8389; }
.toast .tt { font-weight: 600; }
.toast .td { color: var(--inv-mute); font-size: 12px; margin-top: 2px; }

/* ---------- Açık sayfalar (karşılama, giriş) ---------- */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.pub-head { height: 48px; display: flex; align-items: center; gap: 24px; padding: 0 24px 0 32px; border-bottom: 1px solid var(--hair); background: #fff; position: sticky; top: 0; z-index: 10; }
.pub-head nav { display: flex; gap: 24px; margin-left: 16px; }
.pub-head nav a { color: var(--ink2); }
.hero { position: relative; min-height: 660px; display: flex; align-items: center; background: #05080d; overflow: hidden; }
.hero .map { position: absolute; inset: 0; background: #05080d; }
.hero .map .inner { position: absolute; inset: 0; }
.hero .map .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .map .globe { position: absolute; pointer-events: none; will-change: transform, opacity; }
.mapctl { position: absolute; left: 16px; bottom: 12px; z-index: 3; }
.mapctl button { background: rgba(22, 22, 22, .65); color: #fff; border: 0; font-size: 12px; line-height: 16px; padding: 2px 8px; }
.mapctl button:hover { background: rgba(22, 22, 22, .85); }
.hero .tiles img { position: absolute; display: block; width: 257px; height: 257px; max-width: none; opacity: 0; transition: opacity .8s; }
.hero .tiles img.in { opacity: 1; }
.hero .tiles { filter: brightness(.84) saturate(1.05); }
.hero .card { position: relative; margin: 64px 0 64px 64px; background: #fff; padding: 40px; width: 480px; max-width: calc(100% - 48px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero .display { font-size: 44px; line-height: 52px; max-width: none; }
.hero .lead { font-size: 18px; line-height: 26px; }
.hero .attr { position: absolute; right: 16px; bottom: 12px; font-size: 11px; line-height: 16px; color: #fff; background: rgba(22, 22, 22, .65); padding: 2px 8px; }
.pin { position: absolute; width: 0; height: 0; opacity: 0; }
.inner.done .pin { animation: pindrop .5s cubic-bezier(.2, .8, .3, 1) both; }
.pin .dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; }
.pin .lbl { position: absolute; top: -12px; white-space: nowrap; background: #fff; color: var(--ink); font-size: 12px; line-height: 16px; padding: 4px 8px; border: 1px solid var(--hair); }
.pin.r .lbl { left: 16px; }
.pin.l .lbl { right: 16px; }
.pin.t .lbl { left: 50%; top: -44px; transform: translateX(-50%); }
@keyframes pindrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.display { font-size: 56px; line-height: 64px; font-weight: 300; letter-spacing: -.5px; max-width: 16ch; text-wrap: balance; }
.pagehead h1, .sec h2 { text-wrap: balance; }
.lead, .intro, .pagehead p { text-wrap: pretty; }
.lead { font-size: 20px; line-height: 28px; color: var(--ink2); max-width: 54ch; letter-spacing: 0; }
.sec { padding: 64px 96px; border-top: 1px solid var(--hair); }
.sec h2 { font-size: 32px; line-height: 40px; font-weight: 300; margin-bottom: 8px; letter-spacing: 0; }
.sec .intro { color: var(--ink2); max-width: 64ch; margin-bottom: 32px; }
.proc .pr { display: grid; grid-template-columns: 48px minmax(0, 1fr) 240px 80px; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--hair); }
.proc .pr:last-child { border-bottom: 1px solid var(--hair); }
.proc .pr b { font-weight: 600; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.principles > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.principles h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0; }
.principles p { color: var(--ink2); }
.pub-foot { background: var(--inv); color: var(--inv-mute); padding: 40px 96px; font-size: 12px; display: grid; gap: 16px; }
.pub-foot .links { display: flex; gap: 24px; }
.pub-foot button { background: none; border: 0; color: #fff; padding: 0; text-decoration: underline; }
.login { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); flex: 1; }
.login .l { background: var(--inv); color: #fff; padding: 96px 64px; display: flex; flex-direction: column; gap: 24px; }
.login .l .lead { color: var(--inv-mute); }
.login .l ul { display: grid; gap: 12px; margin-top: auto; color: var(--inv-mute); }
.login .l li { display: flex; gap: 12px; }
.login .r { padding: 96px 64px; background: var(--page); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.login .r > * { max-width: 640px; }
.rt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; text-align: left; background: #fff; border: 1px solid var(--hair); padding: 20px 16px 20px 24px; width: 100%; align-items: center; }
.rt:hover { background: var(--page); border-color: var(--hair-strong); }
.rt .rn { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.rt .ro { color: var(--accent); font-weight: 600; }
.rt .rd { color: var(--ink2); grid-column: 1; }
.rt .ic { grid-row: 1 / span 3; grid-column: 2; align-self: center; }

/* ---------- Mesajlaşma ---------- */
.mail { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border: 1px solid var(--hair); min-height: 480px; }
.mail .list { border-right: 1px solid var(--hair); align-content: start; display: grid; }
.mail .th { display: grid; gap: 2px; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--hair); border-left: 3px solid transparent; padding: 12px 16px; }
.mail .th:hover { background: var(--page); }
.mail .th[aria-current="true"] { background: var(--page); border-left-color: var(--accent); }
.mail .th .strong { font-weight: 600; }
.mail .th .sub { font-size: 12px; color: var(--ink3); }
.mail .conv { display: flex; flex-direction: column; min-width: 0; }
.mail .ch { padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.mail .msgs { flex: 1; }
.msg { padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.msg.me { background: var(--accent-t); }
.msg .mt { font-size: 12px; margin-bottom: 4px; }
.mail .compose { border-top: 1px solid var(--hair); padding: 16px; display: grid; gap: 12px; }

/* ---------- Sayfa tanıtımı ----------
   driver.js varsayılanlarını (köşe, gölge, Helvetica) Carbon kalıbına çeker. Bkz. DESIGN.md "Sayfa tanıtımı". */
.pagehead .ttl { display: flex; align-items: center; gap: 8px; }
.info-btn { flex: none; width: 32px; height: 32px; display: grid; place-content: center; padding: 0; border: 0; background: transparent; color: var(--accent); }
.info-btn:hover { background: var(--accent-t); }
.tour-btn { gap: 8px; }
.print-only { display: none; }
.driver-popover.tour { border-radius: 0; box-shadow: none; border: 1px solid var(--hair-strong); background: #fff; color: var(--ink); padding: 16px 16px 12px; min-width: 260px; max-width: min(340px, calc(100vw - 32px)); }
.driver-popover.tour, .driver-popover.tour * { font-family: var(--font); letter-spacing: .16px; }
.driver-popover.tour .driver-popover-title { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; padding-right: 32px; }
.driver-popover.tour .driver-popover-description { font-size: 14px; line-height: 20px; color: var(--ink2); }
.driver-popover.tour .driver-popover-title[style*=block] + .driver-popover-description { margin-top: 8px; }
.driver-popover.tour .driver-popover-description b { color: var(--ink); font-weight: 600; }
.driver-popover.tour .driver-popover-close-btn { width: 40px; height: 40px; line-height: 40px; font-size: 20px; color: var(--ink3); }
.driver-popover.tour .driver-popover-close-btn:hover { color: var(--ink); background: var(--page); }
.driver-popover.tour .driver-popover-footer { margin-top: 16px; gap: 12px; }
.driver-popover.tour .driver-popover-progress-text { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.driver-popover.tour .driver-popover-footer button { height: 32px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 0; background: transparent; color: var(--accent); font-size: 12px; line-height: 30px; text-shadow: none; }
.driver-popover.tour .driver-popover-footer button:hover { background: var(--accent-t); }
.driver-popover.tour .driver-popover-footer .driver-popover-next-btn { background: var(--accent); color: #fff; }
.driver-popover.tour .driver-popover-footer .driver-popover-next-btn:hover { background: var(--accent-h); }
.driver-popover.tour .driver-popover-navigation-btns button + button { margin-left: 8px; }
.driver-popover.tour button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.driver-popover.tour .driver-popover-arrow { border-width: 6px; }

@media (max-width: 1180px) {
  .two, .two.wide-r { grid-template-columns: minmax(0, 1fr); }
  .c4, .f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; min-height: 620px; }
  .hero .card { margin: 24px; padding: 24px; width: auto; max-width: none; }
  .sec, .pub-foot { padding-left: 32px; padding-right: 32px; }
  .principles { grid-template-columns: 1fr; }
  .login .l, .login .r { padding: 48px 32px; }
}
@media (max-width: 900px) {
  .app { height: auto; min-height: 100vh; grid-template-rows: auto 48px auto; grid-template-columns: minmax(0, 1fr); }
  .shell-head { gap: 8px; padding: 0 8px 0 16px; }
  .shell-head .who { display: none; }
  .shell-body { grid-template-columns: 1fr; }
  .sidenav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hair); padding: 0; }
  .sidenav .grp { display: none; }
  .sidenav a { flex: none; border-left: 0; border-bottom: 3px solid transparent; }
  .sidenav a[aria-current="page"] { border-bottom-color: var(--accent); }
  main { padding: 16px; }
  .c3, .c2, .c4, .f4 { grid-template-columns: 1fr; }
  .rbar, .axis { grid-template-columns: 1fr; }
  .demobar .seg { max-width: 100%; overflow-x: auto; }
  .pub-head { gap: 12px; padding: 0 16px; }
  .pub-head nav { display: none; }
  .pub-head .brand .sep, .pub-head .brand .pname { display: none; }
  .mail { grid-template-columns: 1fr; }
  .mail .list { border-right: 0; border-bottom: 1px solid var(--hair); }
  .proc .pr { grid-template-columns: 32px minmax(0, 1fr); }
  .proc .pr > :nth-child(n+3) { grid-column: 2; }
  .display { font-size: 40px; line-height: 48px; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) { .hide-xs { display: none; } .tour-btn { padding: 0 8px; } .brand .sep, .brand .pname { display: none; } .pub-head { gap: 8px; } .brand .logo { height: 18px; } }
@media (max-width: 1500px) { .demobar .hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .demobar, .shell-head, .sidenav, .toasts, .actions, .btn, .skip, .info-btn { display: none !important; }
  .print-only { display: block; margin-bottom: 16px; }
  .print-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--ink2); }
  .print-brand img { display: block; height: 20px; width: auto; }
  .app { display: block; height: auto; }
  .shell-body { display: block; }
  main { padding: 0; overflow: visible; }
  body { background: #fff; }
  .tile { break-inside: avoid; }
  /* A4 genişliği duyarlı eşiklerin altında kalır; çıktıda KPI ve aralık çubukları yan yana kalsın. */
  @page { size: A4; margin: 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f4 { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
  .c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rbar, .axis { grid-template-columns: 200px minmax(0, 1fr) 120px; }
}
