/* MY DİL Online — temel tasarım sistemi
   Marka: MY DİL kırmızısı + mürekkep siyahı, kâğıt zemin, Playfair Display + Inter */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/inter-latin-400-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/inter-latin-ext-400-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/inter-latin-500-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/inter-latin-ext-500-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/inter-latin-600-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/inter-latin-ext-600-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/inter-latin-700-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/inter-latin-ext-700-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/inter-latin-800-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/inter-latin-ext-800-normal.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: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/playfair-display-latin-600-normal.woff2?v=2) 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: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/playfair-display-latin-ext-600-normal.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: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/playfair-display-latin-700-normal.woff2?v=2) 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: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/playfair-display-latin-ext-700-normal.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: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/playfair-display-latin-800-normal.woff2?v=2) 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: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/playfair-display-latin-ext-800-normal.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; }

:root {
  --ink: #101113;
  --ink-2: #2c2e33;
  --muted: #646872;
  --muted-2: #8c9099;
  --line: #e5e3df;
  --line-soft: #efedea;
  --paper: #ffffff;
  --canvas: #f5f4f1;
  --soft: #f3f2ee;
  --panel: #ffffff;
  --studio: #111215;
  --studio-2: #1b1c21;
  --studio-3: #26272e;
  --studio-line: rgba(255,255,255,.09);
  --red: #d80f1f;
  --red-dark: #a90b17;
  --red-tint: #fdecee;
  --ok: #157548;
  --ok-tint: #e7f3ec;
  --warn: #9a5800;
  --warn-tint: #fbf1de;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(16,17,19,.04), 0 8px 24px rgba(16,17,19,.05);
  --sh-2: 0 24px 60px rgba(16,17,19,.14);
  --sh-studio: 0 40px 90px rgba(16,17,19,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-feature-settings: "lnum" 1; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; font-weight: 700; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { font-size: 12.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(216,15,31,.16); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.tr { text-align: right; }
.hide-sm { }
.show-sm { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 10px; }
.mt-m { margin-top: 22px; }
.mt-l { margin-top: 40px; }
.label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.65; }

/* ---------- Butonlar ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn:hover { background: #26272c; border-color: #26272c; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: #c20c1b; border-color: #c20c1b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(16,17,19,.22); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(16,17,19,.03); }
.btn-soft { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.btn-soft:hover { background: #ebe9e4; border-color: #ebe9e4; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: rgba(216,15,31,.35); }
.btn-danger:hover { background: var(--red-tint); border-color: rgba(216,15,31,.5); }
.btn-white:hover { background: #f1f0ed; border-color: #f1f0ed; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; gap: 7px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; }
.link { color: var(--red); font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-muted { color: var(--muted); font-weight: 600; }
.link-muted:hover { color: var(--ink); }

/* ---------- Form ---------- */
.f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; align-content: start; }
.f-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f-label em { font-style: normal; color: var(--muted-2); font-weight: 500; }
.f input, .f select, .f textarea, .input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink); font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.f textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.f input:focus, .f select:focus, .f textarea:focus, .input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(16,17,19,.06); }
.f input[type=color] { padding: 4px; height: 46px; }
.f-hint { font-size: 12.5px; color: var(--muted); }
.f-err { font-size: 12.5px; color: var(--red); font-weight: 600; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--red); }
.sel { position: relative; display: block; }
.sel select { appearance: none; padding-right: 40px; cursor: pointer; }
.sel .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.check input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--red); }
.check a { color: var(--red); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--soft); }
.seg { display: inline-flex; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--soft); gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg .is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16,17,19,.08); }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-err { background: var(--red-tint); color: var(--red-dark); }
.badge-info { background: #eeeef0; color: var(--ink-2); }
.badge-mute { background: var(--soft); color: var(--muted); }
.badge-live { background: var(--red); color: #fff; }
.lamp { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: lamp 1.6s ease-out infinite; }
.badge-live .lamp { background: #fff; }
@keyframes lamp { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Kur rozeti: kur kodu + kur rengi */
.lv { display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px 3px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.lv b { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--lv, var(--red)); color: #fff; font: 700 12px/1 var(--sans); letter-spacing: .02em; }
.lv:not(:has(span)) { padding-right: 4px; }
.lv-none { padding: 4px 10px; color: var(--muted); }

/* ---------- Avatar ---------- */
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; font-weight: 700; color: #fff; background: var(--ink); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-sm { width: 30px; height: 30px; font-size: 11.5px; }
.av-md { width: 40px; height: 40px; font-size: 14px; }
.av-lg { width: 64px; height: 64px; font-size: 21px; }
.av-xl { width: 96px; height: 96px; font-size: 30px; }
.av-t0 { background: #101113; }
.av-t1 { background: #a90b17; }
.av-t2 { background: #3a3c42; }
.av-t3 { background: #6b1520; }
.av-t4 { background: #5a5d66; }

/* ---------- Paneller ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2, .panel-head h3 { font: 700 16px/1.3 var(--sans); letter-spacing: 0; }
.panel-head .muted { font-size: 13px; }
.panel-body { padding: 20px 22px; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.panel + .panel { margin-top: 18px; }

/* ---------- Tablo ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfbf9; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fdfcfa; }
.tbl .t-strong { font-weight: 600; color: var(--ink); }
.tbl .t-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tbl .t-act { text-align: right; white-space: nowrap; }
.tbl-compact td, .tbl-compact th { padding: 9px 12px; }

/* ---------- Bildirim kutuları ---------- */
.flash-stack { position: fixed; z-index: 90; top: 86px; right: 20px; width: min(420px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.shell .flash-stack { top: 20px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; border: 1px solid; }
.flash .ic { margin-top: 1px; }
.flash-ok { background: var(--ok-tint); border-color: #cfe7d9; color: #0f5534; }
.flash-err { background: var(--red-tint); border-color: #f6cfd2; color: #8c0a15; }
.flash-info { background: #f3f1ee; border-color: var(--line); color: var(--ink-2); }
.flash-warn { background: var(--warn-tint); border-color: #f1dfbd; color: #6e4000; }
.flash-close { margin-left: auto; border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; padding: 0; }
.notice { padding: 14px 16px; border-radius: var(--r-md); background: var(--soft); color: var(--ink-2); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.notice-red { background: var(--red-tint); color: #7b0912; }

/* ---------- Boş durum ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 44px 22px; color: var(--muted); }
.empty .ic { color: var(--red); margin-bottom: 4px; }
.empty strong { color: var(--ink); font-size: 16px; }
.empty p { max-width: 420px; margin: 0 0 8px; font-size: 14px; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: #fff; }
.pager a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-gap { padding: 8px 4px; color: var(--muted); }

/* ---------- Diyalog ---------- */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 90px rgba(16,17,19,.3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(16,17,19,.45); backdrop-filter: blur(3px); }
.modal-body { padding: 26px; }
.modal-body h3 { font: 700 20px/1.3 var(--serif); margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 26px 22px; }

/* ---------- İlerleme ---------- */
.bar { height: 8px; border-radius: 999px; background: #efebe5; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ink), var(--red)); }
.steps-bar { display: grid; grid-auto-flow: column; gap: 4px; }
.steps-bar i { height: 6px; border-radius: 999px; background: #ece7e1; }
.steps-bar i.on { background: var(--red); }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 11px 4px; margin-right: 18px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-color: var(--red); }

/* ---------- Anahtar/değer ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.copy-field { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fcfbf9; font: 500 13px/1.4 var(--sans); }
.copy-field code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-grid !important; }
  .panel-pad { padding: 18px; }
  .panel-head, .panel-body { padding-left: 16px; padding-right: 16px; }
}

.tbl .tr { text-align: right; }
input[type=file] { font: 500 13px/1.4 var(--sans); color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); font: 600 13px/1 var(--sans); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--ink-2); }

/* ---------- Yayın ışığı, bildirim balonu, kanal çipi ---------- */
.tally { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.tally::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(216,15,31,.45); animation: tally 2.2s var(--ease-out) infinite; }
@keyframes tally { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--studio); color: #fff; box-shadow: var(--sh-2); font-size: 14px; line-height: 1.5; animation: toastIn .35s var(--ease-out); }
.toast .ic { margin-top: 1px; color: #6ee7a8; }
.toast.is-err .ic { color: #ff8a93; }
.toast-close { margin-left: auto; border: 0; background: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chan { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chan i { width: 10px; height: 10px; border-radius: 3px; background: var(--lv, var(--ink)); }
.chan:hover { border-color: var(--ink-2); }
.chan.is-active, .chan[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Koyu yüzey üstünde ikincil düğme */
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-on-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }

/* Bildirimler: sağ üstte, başarı mesajları kendiliğinden kapanır */
.flash-stack .flash { position: relative; overflow: hidden; pointer-events: auto; padding: 14px 14px 14px 16px; border-color: var(--line); background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(16,17,19,.16); animation: toastIn .38s var(--ease-out) both; }
.flash-stack .flash::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted-2); }
.flash-stack .flash-ok::before { background: var(--ok); }
.flash-stack .flash-err::before { background: var(--red); }
.flash-stack .flash-warn::before { background: var(--warn); }
.flash-stack .flash-ok .ic:first-child { color: var(--ok); }
.flash-stack .flash-err .ic:first-child { color: var(--red); }
.flash-stack .flash-warn .ic:first-child { color: var(--warn); }
.flash-stack .flash-info .ic:first-child { color: var(--ink-2); }
.flash-stack .flash-close { opacity: .45; }
.flash-stack .flash-close:hover { opacity: 1; }
.flash-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ok); opacity: .35; transform-origin: left center; animation: flashTimer 8s linear forwards; }
.flash:hover .flash-timer, .flash:focus-within .flash-timer { animation-play-state: paused; }
.flash.is-leaving { animation: toastOut .24s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
@keyframes flashTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 760px) { .flash-stack, .shell .flash-stack { top: 74px; left: 12px; right: 12px; width: auto; } }

/* Sayfalar arası akıcı geçiş (destekleyen tarayıcılarda) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .2s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }
.sh { view-transition-name: site-header; }
.ah { view-transition-name: panel-header; }
.side { view-transition-name: panel-side; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .flash-timer { display: none; }
}

/* Haftalık ritim: grup ders günleri (site, ödeme, paneller ortak) */
.rhythm { display: inline-grid; grid-template-columns: repeat(7, 22px); gap: 3px; vertical-align: middle; }
.rhythm i { display: grid; place-items: center; height: 22px; border-radius: 6px; background: var(--soft); color: var(--muted-2); font: 600 9.5px/1 var(--sans); font-style: normal; letter-spacing: .01em; }
.rhythm i.on { background: var(--lv, var(--ink)); color: #fff; }
