@import url("brand-tokens.css");
/* ==========================================================================
   İşte Büyüyelim Tasarım Sistemi — theme.css (değerlerin tek kaynağı)
   Kaynak: docs/iste_buyuyelim_tasarim.md §2 (jetonlar), Welvo §7 (bileşen gövdeleri).
   K5: bu dosya Faz 0'da bir kez üretildi ve donduruldu. Uygulamaya özgü her şey
   static/css/crm.css'e yazılır; buradaki bir ölçü gerekirse orada ezilir.
   Not: yorumlarda yıldız ve eğik çizgi yan yana yazılmaz (Welvo §10 tuzak 7).
   ========================================================================== */

/* 1. Yerel yazı tipleri (S-4): Inter + Source Serif 4, latin + latin-ext */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "Inter"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-italic.woff2") format("woff2-variations");
  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: "Inter"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-italic.woff2") format("woff2-variations");
  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: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  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: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2-variations");
  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: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
  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;
}

/* 2. Jetonlar — açık tema (her jeton burada vardır; koyu blok yalnız ezer) */
:root {
  color-scheme: light;
  --bg: #EEF1F7;
  --bg-paper: #F7F8FC;
  --surface: #FFFFFF;
  --surface-alt: #E3E8F2;
  --surface-glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .85);
  --bg-fade: linear-gradient(180deg, var(--bg) 0%, #C6CCDD 70%, #8FA0C4 100%);
  --panel: var(--bg-paper);
  --input-bg: var(--bg);
  --text: #1B2447;
  --muted: rgba(27, 36, 71, .62);
  --border: rgba(27, 36, 71, .10);
  --border-strong: rgba(27, 36, 71, .18);
  --divider: rgba(27, 36, 71, .10);
  --hover: rgba(27, 36, 71, .04);
  --active-tint: rgba(43, 58, 103, .09);
  --scrollbar: rgba(27, 36, 71, .14);
  --scrollbar-hover: rgba(27, 36, 71, .24);
  --spin-border: rgba(27, 36, 71, .14);
  --ortu: rgba(15, 20, 36, .45);

  --accent: #2B3A67;
  --accent-strong: #1F2B52;
  --accent-text: #1B2447;
  --accent-rgb: 43, 58, 103;
  --accent-fill: var(--accent);
  --accent-fill-strong: var(--accent-strong);
  --on-accent: #FFFFFF;
  --on-accent-soft: rgba(255, 255, 255, .16);
  --on-accent-muted: rgba(255, 255, 255, .72);

  --accent-2: #3E4A6B;
  --accent-2-strong: #1B2447;
  --accent-2-text: #2A3453;

  --tag-accent-bg: #E3E8F4;     --tag-accent-text: #1F2B52;
  --tag-accent-2-bg: #E6E9F0;   --tag-accent-2-text: #3E4A6B;
  --tag-neutral-bg: #E9ECF2;    --tag-neutral-text: #4B5470;
  --tag-wait-bg: #EDEFF5;       --tag-wait-text: #4F5876;

  --danger: #B3261E;  --danger-bg: #FBEAE8;  --danger-border: #E3B1AD;
  --green: #2A7230;   --green-bg: #E7F2E8;   --green-border: #A8D0AA;
  --warn: #8A5A00;    --warn-bg: #FBF3DF;    --warn-border: #E3C88A;
  --uyari-serit-bg: #EBDFE0;

  /* uyumluluk takma adları (yeni kodda kullanma) */
  --blue: var(--accent); --blue-dark: var(--accent-strong); --blue-light: var(--tag-accent-bg); --blue-sel: #DCE3F3;
  --error: var(--danger); --danger-text: var(--danger); --ok: var(--green); --success: var(--green);
  --text-muted: var(--muted); --hover-tint: var(--hover);

  --shadow-sm: 0 1px 2px rgba(27, 36, 71, .06);
  --shadow-md: 0 4px 14px rgba(27, 36, 71, .08);
  --shadow-lg: 0 12px 32px rgba(27, 36, 71, .12);
  --shadow-xl: 0 28px 80px rgba(27, 36, 71, .20);
  --accent-shadow: 0 6px 18px rgba(var(--accent-rgb), .30);
  --accent-shadow-strong: 0 8px 24px rgba(var(--accent-rgb), .38);
  --focus-ring: rgba(var(--accent-rgb), .14);
  --focus-ring-strong: rgba(var(--accent-rgb), .24);

  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-heading: var(--font-display);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --kontrol: 40px;
  --kontrol-sik: 30px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glass-blur: saturate(160%) blur(14px);
  --ortu-blur: blur(8px) saturate(1.2);

  --ust-cubuk: 56px;
  --menu-genislik: 244px;
  --menu-dar: 64px;
  --alt-gezinti: 64px;
  --fab: 64px;
}

/* 3. Koyu tema (ayrı palet; yalnız ezer) */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1424;
  --bg-paper: #151B30;
  --surface: #1C2340;
  --surface-alt: #262F52;
  --surface-glass: rgba(28, 35, 64, .72);
  --glass-border: rgba(232, 236, 247, .10);
  --bg-fade: linear-gradient(180deg, var(--bg) 0%, #1A2243 70%, #2A3566 100%);
  --input-bg: #151B30;
  --text: #E8ECF7;
  --muted: rgba(232, 236, 247, .60);
  --border: rgba(232, 236, 247, .12);
  --border-strong: rgba(232, 236, 247, .20);
  --divider: rgba(232, 236, 247, .12);
  --hover: rgba(232, 236, 247, .06);
  --active-tint: rgba(143, 166, 224, .12);
  --scrollbar: rgba(232, 236, 247, .16);
  --scrollbar-hover: rgba(232, 236, 247, .26);
  --spin-border: rgba(232, 236, 247, .16);
  --ortu: rgba(0, 0, 0, .55);

  --accent: #8FA6E0;
  --accent-strong: #B4C4F0;
  --accent-text: #D5DEF7;
  --accent-rgb: 143, 166, 224;
  --accent-fill: #3A4C8A;
  --accent-fill-strong: #4A5FA6;

  --accent-2: #A9B6D6;
  --accent-2-strong: #D3DAEA;
  --accent-2-text: #E3E8F5;

  --tag-accent-bg: #232C52;     --tag-accent-text: #C9D4F2;
  --tag-accent-2-bg: #2A3250;   --tag-accent-2-text: #D3DAEA;
  --tag-neutral-bg: #2B3250;    --tag-neutral-text: #D8DEEE;
  --tag-wait-bg: #252C4A;       --tag-wait-text: #D0D7EA;

  --danger: #F2A6A0;  --danger-bg: #3A1F22;  --danger-border: #7A3A3A;
  --green: #7CC98A;   --green-bg: #1B2E1F;   --green-border: #3D6B45;
  --warn: #E0A940;    --warn-bg: #3A2F14;    --warn-border: #7A5F23;
  --uyari-serit-bg: #3A2A32;
  --blue-sel: #2C3760;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  --shadow-xl: 0 28px 80px rgba(0, 0, 0, .6);
}

/* 4. Taban */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 13px; line-height: 1.5; font-weight: 400;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -.02em; }
h1 { font-size: 22px; font-weight: 700; font-family: var(--font-display); }
h2 { font-size: 21px; font-weight: 600; font-family: var(--font-display); }
h3 { font-size: 18px; font-weight: 600; font-family: var(--font-display); }
h4 { font-size: 15px; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 8px; }
input, select, textarea, button { font: inherit; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(var(--accent-rgb), .18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: var(--radius-pill); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); background-clip: padding-box; }
.ph-duotone { vertical-align: -0.125em; }
.vurgu-serif { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--accent-text); }

/* 5. Ortak keyframe'ler (yeniden tanımlanmaz) */
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes unreadPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .35); } 50% { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0); } }
@keyframes sp { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 6. Bileşenler (Welvo §7 gövdeleri, İşte Büyüyelim dili: hap düğme, sans yazı) */
.btn {
  border: 1.5px solid var(--divider); background: var(--surface); color: var(--text);
  border-radius: var(--radius-pill); padding: 8px 18px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  font-family: var(--font-body); font-weight: 500; letter-spacing: .01em;
  transition: all .2s var(--ease);
}
.btn:hover { background: var(--surface-alt); border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--surface); border-color: var(--divider); box-shadow: none; }
.btn .ph-duotone { font-size: 15px; }
.btn.primary, .btn-primary {
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-strong));
  border-color: transparent; color: var(--on-accent); box-shadow: var(--accent-shadow);
}
.btn.primary:hover, .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-strong));
  border-color: transparent; color: var(--on-accent); box-shadow: var(--accent-shadow-strong); transform: translateY(-1px);
}
.btn.primary:active { transform: translateY(0) scale(.97); }
.btn.secondary, .btn-secondary { border-color: var(--divider); background: var(--surface); color: var(--text); }
.btn.ghost, .btn-ghost {
  color: var(--accent); border-color: transparent; background: transparent;
  padding: 6px 10px; font-size: 12.5px;
}
.btn.ghost:hover { background: var(--hover); border-color: transparent; box-shadow: none; color: var(--accent); }
.btn.danger { color: var(--danger); border-color: var(--danger-border); background: var(--surface); }
.btn.danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn.icon-only, .btn-icon { padding: 0; width: 36px; height: 36px; justify-content: center; border-radius: 50%; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-mini {
  border: 1px solid var(--divider); background: var(--surface-alt); color: var(--text);
  border-radius: var(--radius-pill); padding: 1px 10px; font-size: 10.5px;
  line-height: 1.5; font-family: inherit; cursor: pointer; transition: all .15s var(--ease);
}
.btn-mini:hover { background: var(--hover); border-color: var(--accent); color: var(--accent); }

.field > label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; color: var(--muted); }
.input {
  width: 100%; min-height: 38px; padding: 9px 14px; font: inherit; font-size: 13px;
  color: var(--text); caret-color: var(--accent); background: var(--input-bg);
  border: 1.5px solid var(--divider); border-radius: var(--radius-md);
  transition: all .2s var(--ease);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .06); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); outline: none; }
textarea.input { min-height: 72px; resize: vertical; line-height: 1.5; }
.hint { font-size: 11px; color: var(--muted); }
.error { color: var(--danger); font-size: 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500;
  letter-spacing: .01em; padding: 3px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  font-family: var(--font-body);
}
.tag-accent   { background: var(--tag-accent-bg);   color: var(--tag-accent-text); }
.tag-accent-2 { background: var(--tag-accent-2-bg); color: var(--tag-accent-2-text); }
.tag-neutral  { background: var(--tag-neutral-bg);  color: var(--tag-neutral-text); }
.tag-wait     { background: var(--tag-wait-bg);     color: var(--tag-wait-text); }
.tag-outline  { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.tag-success  { background: var(--green-bg);  color: var(--green); }
.tag-warning  { background: var(--warn-bg);   color: var(--warn); }
.tag-error    { background: var(--danger-bg); color: var(--danger); }
.badge { background: var(--tag-accent-bg); color: var(--tag-accent-text); }
.count-chip { background: var(--surface-alt); color: var(--muted); padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-variant-numeric: tabular-nums; }
.count-chip:empty { display: none; }
.unread-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--accent-fill); color: var(--on-accent); font-size: 10.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.unread-badge:empty { display: none; }

.seg {
  display: inline-flex; overflow: hidden; background: var(--surface-alt);
  border: 1.5px solid var(--divider); border-radius: var(--radius-pill);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  font-size: 12.5px; font-weight: 500; cursor: pointer; background: transparent;
  color: var(--text); border: none; font-family: inherit; transition: all .2s var(--ease);
}
.seg-opt + .seg-opt { border-left: 1px solid var(--divider); }
.seg-opt.active { background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-strong)); color: var(--on-accent); }
.seg-opt:not(.active):hover { background: var(--hover); }

.card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: var(--radius-lg); background: var(--surface-alt);
  border: 1.5px solid var(--divider);
}
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.card-body { margin: 0; font-size: 13px; color: var(--muted); }

.dialog-backdrop, .modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ortu); backdrop-filter: var(--ortu-blur); -webkit-backdrop-filter: var(--ortu-blur);
  display: grid; place-items: center; padding: 16px;
  animation: fadeIn .15s ease;
}
.dialog, .modal {
  width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 18px; padding: 28px;
  border-radius: var(--radius-xl); background: var(--surface); color: var(--text);
  border: 1px solid var(--divider); box-shadow: var(--shadow-xl);
  max-height: 92vh; overflow-y: auto;
  animation: scaleIn .2s var(--ease-bounce);
}
.modal { width: min(480px, 100%); }
.dialog.wide, .modal.wide { width: min(720px, 100%); }
.dialog-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--text); }
.dialog-body { font-size: 13px; line-height: 1.6; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; flex-wrap: wrap; }

.ctx-menu {
  position: fixed; z-index: 300; min-width: 220px; padding: 4px;
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: riseIn .1s ease-out;
}
.ctx-item {
  display: block; width: 100%; text-align: left; padding: 8px 12px; font-size: 12.5px;
  background: transparent; border: none; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text); white-space: nowrap; transition: all .15s var(--ease); text-decoration: none;
}
.ctx-item:hover { background: var(--hover); transform: translateX(2px); text-decoration: none; color: var(--text); }
.ctx-item:active { transform: scale(.98) translateX(2px); }
.ctx-item.danger { color: var(--danger); }
.ctx-item.danger:hover { background: var(--danger-bg); }
.ctx-item.icon { display: flex; align-items: center; gap: 10px; }
.ctx-item.icon .ph-duotone { flex-shrink: 0; color: var(--accent); font-size: 15px; }
.ctx-divider { height: 1px; background: var(--divider); margin: 4px 6px; }

[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); right: 0;
  width: max-content; max-width: 240px; padding: 7px 11px;
  border: 1px solid var(--divider); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  font-size: 11.5px; line-height: 1.4; text-align: left; white-space: normal; font-weight: 400;
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; }

.empty {
  padding: 56px 20px; text-align: center; color: var(--muted); font-size: 13px;
  line-height: 1.6; display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: fadeIn .4s ease;
}
.empty .empty-ico {
  width: 76px; height: 76px; border-radius: 50%; font-size: 34px; color: var(--accent);
  background: linear-gradient(135deg, var(--surface), var(--surface-alt));
  border: 2px solid var(--divider); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  animation: floatY 3s ease-in-out infinite;
}
.empty .empty-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }

.progress-bar { height: 6px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-alt); position: relative; }
.progress-fill {
  height: 100%; border-radius: var(--radius-pill); position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width .8s var(--ease);
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  background-size: 200% 100%; animation: shimmer 2s infinite;
}
.spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid var(--spin-border); border-top-color: var(--accent);
  border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-gray { background: var(--muted); } .dot-red { background: var(--danger); }
.dot-green { background: var(--green); } .dot-orange { background: var(--warn); }
.dot-accent, .dot-blue { background: var(--accent); }
.dot-blue.spin-dot { animation: pulse-dot 1.4s ease-in-out infinite; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ib-ink); color: var(--ib-paper);
  padding: 11px 20px; border-radius: var(--radius-md); font-size: 13px;
  z-index: 100; box-shadow: var(--shadow-xl); opacity: 0; transition: opacity .2s;
}
.toast.show { opacity: 1; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--bg-paper); border: 1px solid var(--divider); border-radius: 6px;
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  color: var(--text); box-shadow: var(--shadow-sm);
}

/* 7. Düzen desenleri: kabuk, panel, liste satırı, tema düğmesi */
.app-shell { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.app-header {
  height: var(--ust-cubuk); flex-shrink: 0; position: relative; z-index: 10;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--bg-paper); border-bottom: 1px solid var(--divider);
}
.app-header::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent), transparent);
  opacity: .4; pointer-events: none;
}
.app-main { flex: 1; display: grid; grid-template-columns: 300px 380px 1fr; min-height: 0; }
.panel { background: var(--panel); border-right: 1px solid var(--divider); overflow: hidden; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.panel:last-child { border-right: none; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.panel-title {
  padding: 12px 14px; font-weight: 500; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.app-statusbar {
  height: 28px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  font-size: 11.5px; color: var(--muted); background: var(--bg-paper); border-top: 1px solid var(--divider);
}
.msg-row {
  display: grid; grid-template-columns: 16px 30px 1fr auto; column-gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--divider); cursor: pointer;
  align-items: center; position: relative; overflow: hidden;
  transition: background .2s var(--ease);
}
.msg-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); border-radius: 0 2px 2px 0; transition: width .2s var(--ease);
}
.msg-row:hover { background: var(--hover); }
.msg-row:hover::before { width: 3px; }
.msg-row.active { background: linear-gradient(90deg, var(--tag-accent-bg), transparent); }
.msg-row.active::before { width: 3px; }

#theme-toggle #icon-sun, #theme-toggle #icon-moon { display: none; }
html[data-theme="dark"] #theme-toggle #icon-sun { display: inline; }
html:not([data-theme="dark"]) #theme-toggle #icon-moon { display: inline; }
