/*
 * W.4b — Refik'in KENDİ panel görünümü (yalnız bağımsız kabuk, app.refik.app).
 * Kaynak: docs/prototip/2026-09-19-w1-satici-web-app.html — renk/yazı/ölçü belirteçleri oradan AYNEN.
 * Gömülü kabuk (Shopify admin) bu dosyayı YÜKLEMEZ; orada Polaris (polaris-1.js) çizer.
 * Yazı tipleri depoda (self): Bricolage Grotesque + IBM Plex Sans, SIL OFL 1.1 — yazitipi/OFL-*.txt.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(yazitipi/bricolage-grotesque-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(yazitipi/bricolage-grotesque-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(yazitipi/ibm-plex-sans-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(yazitipi/ibm-plex-sans-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- belirteçler (prototip :root, birebir) ---------- */
:root {
  --pine: #163A33; --pine-2: #21493F; --cream: #F6F1E7; --orange: #E8793A;
  --bg: #F6F1E7; --surface: #FFFDF8; --surface-2: #EEE7D8; --line: #DCD2BF; --line-strong: #C3B79F;
  --ink: #1B2623; --muted: #56625D; --faint: #7A837E;
  --brand: #163A33; --on-brand: #F6F1E7; --rail: #163A33; --rail-ink: #E9E3D5; --rail-muted: #A9BDB5; --rail-active: #21493F;
  --accent: #E8793A; --accent-ink: #9E4516; --accent-bg: #FBE6D6;
  --ok: #236B44; --ok-bg: #DDEEE2; --warn: #7A5100; --warn-bg: #F6E7C6; --bad: #9C3226; --bad-bg: #F5DEDA;
  --info: #1F4F63; --info-bg: #DDE9EC;
  --logo: #163A33; --focus: #E8793A; --shadow: 0 1px 2px rgba(22, 58, 51, .06), 0 6px 18px rgba(22, 58, 51, .07);
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1A17; --surface: #132521; --surface-2: #1A302B; --line: #28423C; --line-strong: #3A5A52;
    --ink: #ECE6D8; --muted: #A9B6B0; --faint: #879690;
    --brand: #2A5C50; --logo: #ECE6D8; --on-brand: #F6F1E7; --rail: #091411; --rail-ink: #E9E3D5; --rail-muted: #8FA59D;
    --rail-active: #173029;
    --accent-ink: #F4A06C; --accent-bg: #3A2418;
    --ok: #86CFA3; --ok-bg: #16362A; --warn: #E9C06A; --warn-bg: #3A2E12; --bad: #F09A8C; --bad-bg: #3D1C18;
    --info: #95C8D8; --info-bg: #15313A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1A17; --surface: #132521; --surface-2: #1A302B; --line: #28423C; --line-strong: #3A5A52;
  --ink: #ECE6D8; --muted: #A9B6B0; --faint: #879690;
  --brand: #2A5C50; --logo: #ECE6D8; --on-brand: #F6F1E7; --rail: #091411; --rail-ink: #E9E3D5; --rail-muted: #8FA59D;
  --rail-active: #173029;
  --accent-ink: #F4A06C; --accent-bg: #3A2418;
  --ok: #86CFA3; --ok-bg: #16362A; --warn: #E9C06A; --warn-bg: #3A2E12; --bad: #F09A8C; --bad-bg: #3D1C18;
  --info: #95C8D8; --info-bg: #15313A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- kabuk: sol ray + ana alan (prototip .shell/.rail/.main) ---------- */
.rk-kabuk { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
#refik-ust {
  background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: auto;
}
.rk-marka {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: var(--rail-ink);
}
.rk-marka svg { width: 34px; height: 34px; flex: none; }
.rk-marka span { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.rk-magaza { margin: 0 4px 14px; display: grid; gap: 4px; font-size: 13px; min-width: 0; }
.rk-magaza [data-ust="magaza"] { color: var(--rail-ink); font-weight: 500; overflow-wrap: anywhere; }
.rk-magaza [data-ust="magaza"]:empty { display: none; }
.rk-magaza [data-ust="degistir"] {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: var(--r-s);
  background: var(--rail-active); border: 1px solid rgba(233, 227, 213, .2); color: var(--rail-ink);
  text-decoration: none; font-size: 13.5px; justify-self: start;
}
[data-refik-nav] { display: grid; gap: 2px; }
[data-refik-nav] a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-m);
  color: var(--rail-ink); text-decoration: none; font-weight: 500;
}
[data-refik-nav] a:hover { background: rgba(233, 227, 213, .08); }
[data-refik-nav] a[aria-current="page"] { background: var(--rail-active); box-shadow: inset 3px 0 0 var(--orange); }
/* Menü simgeleri: prototip ICON'ları, CSS maskesiyle. Bağlantının METNİ `ortak.js` tarafından çevrilirken
   (textContent) silinmesin diye simge işaretlemede değil ::before'da. */
[data-refik-nav] a::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor; opacity: .9;
  -webkit-mask: var(--rk-ikon) center / 20px 20px no-repeat; mask: var(--rk-ikon) center / 20px 20px no-repeat;
}
[data-refik-nav] a[data-yol="/"], .rk-cekmece a[data-yol="/"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 13h6V4H4zM14 20h6v-9h-6zM4 20h6v-3H4zM14 7h6V4h-6z'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/inbox"], .rk-cekmece a[data-yol="/inbox"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 13l2.5-8h11L20 13v6H4z'/%3E%3Cpath d='M4 13h5l1 2h4l1-2h5'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/insights"], .rk-cekmece a[data-yol="/insights"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/bilgi"], .rk-cekmece a[data-yol="/bilgi"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 4h10l4 4v12H5z'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/ayarlar"], .rk-cekmece a[data-yol="/ayarlar"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/plan"], .rk-cekmece a[data-yol="/plan"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/ekip"], .rk-cekmece a[data-yol="/ekip"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M3 20c.5-3.5 3-5.5 6-5.5s5.5 2 6 5.5'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 010 7M18 14.5c1.8.7 3 2.6 3 5.5'/%3E%3C/svg%3E"); }
[data-refik-nav] a[data-yol="/kurulum"], .rk-cekmece a[data-yol="/kurulum"] { --rk-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 20l2-3h7a3 3 0 003-3V8a3 3 0 00-3-3H9a3 3 0 00-3 3v3'/%3E%3Ccircle cx='6' cy='16' r='1.5' fill='black'/%3E%3C/svg%3E"); }
.rk-ray-alt { margin-top: auto; padding: 12px 0 0; display: grid; gap: 4px; }
.rk-ray-alt s-button { --rk-dugme-renk: var(--rail-ink); --rk-dugme-ustu: rgba(233, 227, 213, .08); }
.rk-ana { min-width: 0; display: flex; flex-direction: column; }
/* W.4d — elle tema düğmesi (prototip .iconbtn, ray renklerinde) ve mobil "Daha fazla" düğmesi. */
.rk-tema {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-m);
  border: 1px solid rgba(233, 227, 213, .2); background: transparent; color: var(--rail-ink); cursor: pointer; margin: 0 4px 6px;
}
.rk-tema:hover { background: rgba(233, 227, 213, .08); }
.rk-tema svg { width: 20px; height: 20px; }
.rk-daha { display: none; }
.rk-cekmece-arka { position: fixed; inset: 0; background: rgba(9, 20, 17, .45); z-index: 30; }
.rk-cekmece {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--surface); color: var(--ink);
  border-radius: 20px 20px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 4px;
  box-shadow: var(--shadow);
}
.rk-cekmece a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--r-m);
  text-decoration: none; font-weight: 500; color: var(--ink);
}
.rk-cekmece a:hover { background: var(--surface-2); }
.rk-cekmece a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.rk-cekmece a::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--rk-ikon) center / 20px 20px no-repeat; mask: var(--rk-ikon) center / 20px 20px no-repeat;
}
.rk-cekmece-kapat {
  min-height: 44px; margin-top: 6px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 500; cursor: pointer;
}

@media (max-width: 860px) {
  .rk-kabuk { grid-template-columns: minmax(0, 1fr); }
  /* Ray → üst çubuk (marka + hesap) ve alt gezinme çubuğu (prototip .topbar/.bottombar). */
  #refik-ust {
    position: sticky; top: 0; z-index: 20; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 4px 12px; padding: 8px 16px;
  }
  .rk-marka { padding: 4px 0; }
  .rk-marka svg { width: 30px; height: 30px; }
  .rk-marka span { font-size: 18px; }
  .rk-magaza { order: 3; flex: 1 1 100%; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .rk-ray-alt { margin: 0 0 0 auto; padding: 0; order: 2; }
  [data-refik-nav] {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column;
    grid-auto-columns: minmax(76px, 1fr); gap: 0; overflow-x: auto; background: var(--rail);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none;
  }
  [data-refik-nav] a {
    flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 0 4px; font-size: 11.5px;
    text-align: center; line-height: 1.2;
  }
  [data-refik-nav] a::before { width: 22px; height: 22px; -webkit-mask-size: 22px 22px; mask-size: 22px 22px; }
  [data-refik-nav] a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
  /* W.4d — prototip .bottombar: 4 bağlantı + "Daha fazla" (kalanlar çekmecede, `panel-varlik/kabuk.js`). */
  [data-refik-nav] { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; }
  [data-refik-nav] a[data-yol]:nth-of-type(n+5) { display: none; }
  .rk-daha {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 0 4px;
    font: inherit; font-size: 11.5px; font-weight: 500; line-height: 1.2; color: var(--rail-ink); background: none; border: 0;
    border-radius: var(--r-m); cursor: pointer;
  }
  .rk-daha[hidden] { display: none; }
  .rk-daha::before {
    content: ""; width: 22px; height: 22px; background: currentColor; opacity: .9;
    -webkit-mask: var(--rk-ikon-daha) center / 22px 22px no-repeat; mask: var(--rk-ikon-daha) center / 22px 22px no-repeat;
  }
  .rk-daha[data-aktif] { background: var(--rail-active); box-shadow: inset 0 -3px 0 var(--orange); }
  .rk-tema { margin: 0; width: 40px; height: 40px; }
  .rk-ray-alt { display: flex; align-items: center; gap: 4px; }
}
.rk-daha { --rk-ikon-daha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='19' cy='12' r='1.8'/%3E%3C/svg%3E"); }

/* ---------- hafif DOM elemanları (s-*) — gölgesiz olanların görünümü ---------- */
s-stack { display: flex; flex-direction: column; gap: var(--rk-gap, 0px); min-width: 0; }
s-stack[direction="inline"] { flex-direction: row; flex-wrap: wrap; }
s-grid { display: grid; gap: var(--rk-gap, 0px); min-width: 0; }
s-box, s-clickable {
  display: block; min-width: 0; padding: var(--rk-padding, 0px); background: var(--rk-zemin, transparent);
  border-radius: var(--rk-kose, 0); border-style: solid; border-width: var(--rk-kenar-kalinlik, 0);
  border-color: var(--rk-kenar-renk, var(--line));
}
s-box[border] { border: var(--rk-kenar); }
s-clickable { cursor: pointer; }
s-clickable:hover { background: var(--surface-2); }
s-clickable[disabled] { cursor: not-allowed; opacity: .55; }
s-clickable[aria-current="true"], s-clickable[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface-2); }
s-button-group { display: inline-flex; flex-wrap: wrap; gap: var(--rk-gap, 8px); }
s-text { display: inline; }
s-text[color="subdued"], s-paragraph[color="subdued"] { color: var(--muted); }
s-text[type="strong"] { font-weight: 600; }
s-text[tone="success"] { color: var(--ok); }
s-text[tone="critical"] { color: var(--bad); }
s-text[tone="warning"], s-text[tone="caution"] { color: var(--warn); }
s-text[tone="subdued"] { color: var(--muted); }
s-stack > s-text, s-grid > s-text, s-section > s-text, s-box > s-text, s-clickable > s-text { display: block; }
s-paragraph { display: block; margin: 0; }
s-heading {
  display: block; font-family: var(--f-display); font-weight: 650; font-size: 17px; line-height: 1.15;
  letter-spacing: -.01em; text-wrap: balance;
}
/* Ölçü kartı (Polaris "Metrics card" = s-clickable içinde başlık) → prototip .metric .v */
s-clickable s-heading, [data-kota-kart] > s-heading, [data-kota-kart] s-stack > s-heading {
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
s-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 500; background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1.6;
  vertical-align: middle; justify-self: start; align-self: center;
}
s-badge[tone="success"] { background: var(--ok-bg); color: var(--ok); }
s-badge[tone="warning"], s-badge[tone="caution"] { background: var(--warn-bg); color: var(--warn); }
s-badge[tone="critical"] { background: var(--bad-bg); color: var(--bad); }
s-badge[tone="info"] { background: var(--info-bg); color: var(--info); }
s-badge[tone="success"]::before, s-badge[tone="critical"]::before, s-badge[tone="warning"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none;
}
s-divider { display: block; height: 1px; background: var(--line); margin: 0; }
s-unordered-list { display: block; margin: 4px 0; padding-left: 20px; }
s-list-item { display: list-item; list-style: disc; }
s-option { display: none; }
s-section, s-banner, s-page { display: block; }
s-spinner { display: inline-flex; }

/* Sayfa: dil seçici başlığın sağında (prototip .pagehead sağ yuvası). */
#refik-dil-secici s-select { min-width: 150px; }
/* Yardım alt bilgisi (S.7) ortalı soluk metin. */
#refik-yardim { font-size: 13px; }
/* Kabuğun üstüne eklenen şeritler (askı/bakım) tam genişlik. */
body > s-banner { margin: 12px 16px 0; }

/* Dar ekranda "rozet | metin | eylem" satırı (Polaris satır kompozisyonu, ör. Home gündemi): eylem alta iner —
   aksi hâlde `auto` sütunlar düğmenin tam genişliğini alıp metni tek kelimelik sütuna sıkıştırıyor (390 px'de ölçüldü). */
@media (max-width: 560px) {
  s-grid[gridtemplatecolumns="auto 1fr auto"] { grid-template-columns: auto minmax(0, 1fr) !important; }
  s-grid[gridtemplatecolumns="auto 1fr auto"] > :nth-child(3) { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- W.4c — bağımsız Genel bakış (prototip .status-live/.metric/.bars/.split/.qlist/.honest) ----------
   Ekran modülü bu işaretlemeyi YALNIZ bağımsız kabukta basıyor (`ana.js` → `bagimsizGenelHtml`). */
.rk-genel { display: grid; gap: 16px; min-width: 0; }
.rk-iki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.rk-iki > s-section { height: 100%; }
.rk-iki > :only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .rk-iki { grid-template-columns: minmax(0, 1fr); } }
.rk-h2 { font-family: var(--f-display); font-weight: 650; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.rk-kart-bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rk-yigin { display: grid; gap: 16px; min-width: 0; }
.rk-kucuk { font-size: 13px; line-height: 1.5; margin: 0; }
.rk-soluk { color: var(--muted); }
.rk-tam > s-button { display: block; }

.rk-durum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.rk-durum .rk-h2 { font-size: 19px; }
.rk-durum-metin { display: grid; gap: 4px; min-width: 0; }
.rk-durum-eylem { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rk-nabiz { width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 5px var(--surface-2); }
.rk-nabiz[data-ton="ok"] { background: var(--ok); box-shadow: 0 0 0 5px var(--ok-bg); }
.rk-nabiz[data-ton="uyari"] { background: var(--warn); box-shadow: 0 0 0 5px var(--warn-bg); }
@media (max-width: 640px) {
  .rk-durum { grid-template-columns: auto minmax(0, 1fr); }
  .rk-durum-eylem { grid-column: 1 / -1; justify-content: flex-start; }
}

.rk-olcu { display: grid; gap: 4px; align-content: start; min-width: 0; }
.rk-deger {
  font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rk-etiket { font-size: 13.5px; color: var(--muted); }
.rk-olculer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rk-olculer-iki { grid-template-columns: repeat(auto-fit, minmax(120px, max-content)); column-gap: 32px; }
@media (max-width: 420px) { .rk-olculer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rk-ilerleme { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rk-ilerleme > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.rk-ilerleme.rk-vurgu > span { background: var(--accent); }

.rk-grafik { display: grid; gap: 6px; min-width: 0; }
.rk-cubuklar {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; align-items: end;
  height: 120px; padding-top: 6px;
}
.rk-cubuklar > span { display: block; min-height: 2px; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .85; }
.rk-cubuklar > span[data-bugun] { background: var(--accent); opacity: 1; }
.rk-cubuk-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.rk-bolme { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.rk-bolme > span { display: block; height: 100%; }
[data-parca="devirsiz"] { background: var(--brand); }
[data-parca="devir"] { background: var(--accent); }
.rk-lejant { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rk-lejant i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.rk-soru-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.rk-soru-liste li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);
}
.rk-soru-liste li:first-child { border-top: 0; padding-top: 0; }
.rk-soru { display: grid; gap: 4px; min-width: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.rk-durust { color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; }
.rk-soru-liste s-button { flex: none; white-space: nowrap; }
/* Etkinlik kutuları (ortak `ozetHtml`, minmax 160px): bağımsız Genel bakış'ta 6'sı tek satıra / mobilde 2 sütuna sığsın. */
.rk-genel > s-section:last-child s-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }

/* ---------- W.4d — ortak ekran yardımcıları (yalnız bağımsız) ---------- */
.rk-sayfa-alt { margin: -8px 0 4px; color: var(--muted); max-width: 70ch; }
.rk-h3 { font-family: var(--f-display); font-weight: 650; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.rk-h4 { font-family: var(--f-display); font-weight: 650; font-size: 15px; line-height: 1.2; margin: 0; }
.rk-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14px; margin: 0; }
.rk-kv dt { color: var(--muted); }
.rk-kv dd { margin: 0; overflow-wrap: anywhere; }
.rk-rozetler { display: flex; gap: 6px; flex-wrap: wrap; }
.rk-sayi { font-size: 12px; margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- W.4d — Gelen kutusu (prototip .inbox/.ib-list/.conv/.th-log/.msg/.ib-side) ---------- */
.rk-inbox {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); min-height: 620px; overflow: hidden;
}
.rk-ib-liste { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.rk-ib-suzgec { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.rk-sekmeler { display: flex; gap: 4px; flex-wrap: wrap; }
.rk-sekme {
  min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: transparent; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.rk-sekme:hover { background: var(--surface-2); }
.rk-sekme[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
#gelen-liste { display: flex; flex-direction: column; min-height: 0; flex: 1; }
#gelen-liste > s-banner, #gelen-liste > s-stack, .rk-kesilme, .rk-bos-liste { margin: 12px 14px 0; }
.rk-bos-liste { margin-bottom: 12px; }
.rk-konusmalar { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; max-height: 70vh; }
.rk-konusma {
  display: grid; gap: 3px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; cursor: pointer; min-height: 44px; font: inherit; color: inherit;
}
.rk-konusma:hover { background: var(--surface-2); }
.rk-konusma[aria-current="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.rk-konusma-ust { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.rk-konusma-baslik { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rk-zaman { font-weight: 400; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.rk-konusma-ozet { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-ib-sag { min-width: 0; display: flex; flex-direction: column; }
.rk-ib-sag > s-stack, .rk-ib-sag > s-banner, .rk-ib-sag > s-spinner { margin: 16px; }
.rk-ib-bos { display: grid; place-items: center; padding: 32px; flex: 1; text-align: center; }
.rk-ib-ic { display: grid; grid-template-columns: minmax(0, 1fr) 260px; flex: 1; min-height: 0; }
.rk-ib-konusma { display: flex; flex-direction: column; min-width: 0; }
.rk-th-bas {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.rk-th-baslik { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rk-th-baslik .rk-h3 { overflow-wrap: anywhere; }
.rk-th-eylem { display: flex; gap: 6px; flex-wrap: wrap; }
.rk-log {
  flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg);
  max-height: 60vh; min-height: 240px;
}
.rk-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.rk-msg-musteri { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.rk-msg-refik { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.rk-msg-temsilci { align-self: flex-start; background: var(--accent-bg); border-bottom-left-radius: 4px; }
.rk-msg-sistem { align-self: center; background: none; color: var(--muted); font-size: 12.5px; text-align: center; padding: 2px; }
.rk-kim { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; font-weight: 500; white-space: normal; }
.rk-msg-musteri .rk-kim, .rk-msg-musteri .rk-zaman { color: inherit; opacity: .85; }
.rk-th-alt { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.rk-th-alt > s-button { justify-self: end; }
.rk-ib-yan { border-left: 1px solid var(--line); padding: 16px; display: grid; gap: 14px; align-content: start; }
.rk-geri {
  display: none; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
@media (max-width: 1180px) {
  .rk-inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .rk-ib-ic { grid-template-columns: minmax(0, 1fr); }
  .rk-ib-yan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .rk-inbox { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rk-ib-liste { border-right: 0; }
  .rk-geri { display: inline-flex; align-items: center; }
  .rk-log { max-height: 60vh; }
  .rk-konusmalar { max-height: none; }
}
/* Prototip .btn.sm — küçük düğme (bileşen gölgesindeki boy/dolgu/yazı değişkenleri). */
.rk-th-eylem s-button, .rk-kucuk-dugme s-button, s-button.rk-kucuk-dugme {
  --rk-dugme-boy: 36px; --rk-dugme-dolgu: 0 12px; --rk-dugme-yazi: 14px;
}

/* ---------- W.4d — İçgörü (prototip .metric/.hbar/table/.qlist) ---------- */
.rk-sayfa-bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rk-sayfa-bas .rk-sayfa-alt { margin: 0; }
.rk-kontroller { min-width: min(100%, 520px); flex: 0 1 560px; }
.rk-olcu-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rk-olcu-kutu {
  display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
}
s-clickable.rk-olcu-kutu:hover { border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.rk-olcu-kutu .rk-deger { font-size: 28px; }
[data-ton="success"] { color: var(--ok); }
[data-ton="critical"] { color: var(--bad); }
[data-ton="soluk"] { color: var(--muted); }
.rk-kv-genis { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
.rk-kv-genis dd { display: grid; gap: 2px; justify-items: end; text-align: right; }
.rk-sure { font-variant-numeric: tabular-nums; font-weight: 500; }
.rk-hbar {
  display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 48px; gap: 12px; align-items: center;
  font-size: 14px; padding: 6px 0;
}
.rk-iz { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.rk-iz > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.rk-hbar-n { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rk-hbar { grid-template-columns: 1fr 48px; } .rk-iz { grid-column: 1 / -1; grid-row: 2; } }
.rk-tablo-kap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.rk-tablo { border-collapse: collapse; width: 100%; font-size: 14px; }
.rk-tablo th, .rk-tablo td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rk-tablo th { font-weight: 500; color: var(--muted); background: var(--surface-2); font-size: 13px; }
.rk-tablo tr:last-child td { border-bottom: 0; }
.rk-tablo td.rk-sag { text-align: right; }
.rk-sayisal { font-variant-numeric: tabular-nums; }
.rk-gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rk-grafik-svg { color: var(--brand); overflow-x: auto; }
.rk-grafik-svg s-text { color: var(--muted); }
[data-icgoru-kart] .rk-soru-liste li { align-items: flex-start; }
.rk-grafik-svg svg { width: 100%; height: auto; max-height: 280px; }

/* ---------- W.4d — Bilgi (prototip .subnav/.chips/.faq, iki panel) ---------- */
.rk-altnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; contain: inline-size; min-width: 0; }
.rk-altnav-oge, .rk-altnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--muted);
  font: inherit; font-weight: 500; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; cursor: pointer;
}
.rk-altnav-oge:hover, .rk-altnav a:hover { color: var(--ink); }
.rk-altnav-oge[aria-current="page"], .rk-altnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.rk-bilgi-ust { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.rk-bilgi-ust .rk-altnav { border-bottom: 0; }
.rk-bilgi-ust > s-button { margin-bottom: 6px; }
.rk-bilgi { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .rk-bilgi { grid-template-columns: minmax(0, 1fr); } }
.rk-cipler { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rk-cip {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink);
}
.rk-cip:hover { border-color: var(--brand); }
.rk-cip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rk-cip[aria-pressed="true"] .rk-sayi { color: inherit; opacity: .85; }
.rk-bilgi-liste { max-height: 64vh; border-top: 1px solid var(--line); margin: 0 -24px -24px; }
.rk-bilgi-liste .rk-konusma { padding: 12px 24px; }
.rk-log-kisa { max-height: none; min-height: 0; border-radius: var(--r-m); border: 1px solid var(--line); }
.rk-satir { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rk-faq-liste { display: grid; }
.rk-faq { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 6px; }
.rk-faq:first-child { border-top: 0; padding-top: 0; }
.rk-faq-bas { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rk-faq-alt { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- W.4d — Plan ve kullanım (prototip .kv/.metric/.progress/.danger-zone) ---------- */
.rk-plan-fiyat { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.rk-madde { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
[data-plan-kart] .rk-kv dd { display: grid; gap: 2px; }
[data-bolum="plan-iptal"] { border-color: var(--bad) !important; }
[data-plan="bagimsiz"] { margin-bottom: 16px; }
[data-plan="bagimsiz"] ~ s-section + s-section { margin-top: 16px; }

/* ---------- W.4d — Ekip (prototip grid2 3fr/2fr + table) ---------- */
.rk-ekip { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.rk-ekip > :only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .rk-ekip { grid-template-columns: minmax(0, 1fr); } }
.rk-alan { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
.rk-alan select, .rk-tablo select {
  min-height: 44px; width: 100%; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 400;
}
.rk-tablo select { min-height: 36px; min-width: 120px; }
.rk-tablo td.rk-sag .rk-satir { justify-content: flex-end; }
.rk-ajans-form { display: grid; gap: 12px; }
.rk-yigin-s { gap: 8px; }
.rk-genel [data-onay-kutusu] {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 12px;
  background: var(--bad-bg); border-radius: var(--r-m); font-size: 14px; text-align: left;
}

/* ---------- W.4d — Yapılandırma (prototip .subnav + paneller) ---------- */
[data-sekme-panel] s-section > s-button { justify-self: start; align-self: flex-start; }
[data-sekme-cubugu].rk-altnav { margin-bottom: 4px; }
/* Seçiciler "1fr auto" satırlarında çökmesin (iç alan artık uzun seçenekle genişlemiyor, bkz. bilesenler.js `.a`). */
s-select { min-width: 140px; }

/* ---------- W.4d — Kurulum (prototip .guide-head/.route/.stop, yatay şerit) ---------- */
#icerik[data-kurulum-kabuk] > s-stack {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s5);
}
.rk-rota-bas { display: grid; gap: 12px; }
.rk-rota { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rk-durak { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.rk-durak::before {
  content: ""; position: absolute; top: 19px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
}
.rk-durak:first-child::before { display: none; }
.rk-durak[data-hal="tamam"]::before, .rk-durak[data-hal="simdi"]::before { background: var(--brand); }
.rk-durak-isaret {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  border: 2px solid var(--line-strong); font-family: var(--f-display); font-weight: 600; color: var(--muted); z-index: 1;
}
.rk-durak[data-hal="tamam"] .rk-durak-isaret { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.rk-durak[data-hal="simdi"] { color: var(--ink); font-weight: 600; }
.rk-durak[data-hal="simdi"] .rk-durak-isaret { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-bg); }
@media (max-width: 560px) {
  /* Dar ekranda yalnız duraklar; şu anki adımın adı hemen altındaki başlıkta. */
  .rk-durak-ad { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #icerik[data-kurulum-kabuk] > s-stack { padding: var(--s4); }
}
