/* Mapo — Mariposas Tour operasyon paneli
   Vurgu rengi (--accent) role göre <body> üzerinde ayarlanır. */
:root {
  --accent: #27306B;
  --ink: #15201C; --muted: #5F6B66; --faint: #8C9692;
  --line: #E1E6E3; --line-strong: #CBD3CF;
  --sheet: #FFFFFF;
  --canvas: color-mix(in srgb, var(--accent) 7%, #F1F3F2);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-mid: color-mix(in srgb, var(--accent) 22%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 82%, #000);
  --ok: #0B7A53; --ok-soft: #E3F4EC; --warn: #9A5B00; --warn-soft: #FBEFD9;
  --bad: #B3261E; --bad-soft: #FBE9E7; --info: #1B62C9; --info-soft: #E6EEFB;
  --display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --side: 252px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--body); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.ic { flex: none; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- İskelet ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px 14px; overflow-y: auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 10px 18px; }
.brand-logo { display: block; width: 100%; max-width: 196px; height: auto; mix-blend-mode: multiply; }
.brand-sub { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.top-icon { display: none; }
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.login-brand b { display: block; font: 600 20px/1.1 var(--display); color: #fff; }
.login-brand span span { font-size: 13px; color: rgba(255,255,255,.65); }
.login-logo { display: block; width: 240px; max-width: 100%; height: auto; margin-bottom: 26px; }
.brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand b { font: 600 19px/1 var(--display); letter-spacing: -.02em; display: block; }
.brand span { font-size: 12px; color: var(--muted); }
.nav-title { font-size: 12px; color: var(--faint); padding: 14px 12px 5px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: #34403B; font-weight: 500; position: relative; }
.nav a:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.nav a.on { background: var(--sheet); color: var(--accent-deep); box-shadow: 0 1px 0 var(--line); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav a .count { margin-left: auto; font-size: 12px; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; line-height: 19px; }
.me { margin-top: auto; padding-top: 14px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--accent); color: #fff; }
.me-card .avatar { background: rgba(255,255,255,.18); color: #fff; }
.me-card b { display: block; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card span { font-size: 12.5px; opacity: .85; }
.me-card > div { min-width: 0; flex: 1; }
.me-card button { background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.me-card button:hover { opacity: 1; background: rgba(255,255,255,.15); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--accent-soft); color: var(--accent-deep); flex: none; }

.main { background: var(--sheet); margin: 10px 10px 10px 0; border-radius: 18px; min-width: 0; border: 1px solid var(--line); }
.top { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 20; border-radius: 18px 18px 0 0; }
.top .crumb { font-weight: 500; color: var(--muted); margin-right: auto; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.top .crumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.top .crumb a:hover { color: var(--ink); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--canvas); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 16px; text-align: center; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 13px; font-weight: 500; }
.lang a { padding: 6px 9px; color: var(--muted); } .lang a.on { background: var(--canvas); color: var(--ink); }
.page { padding: 26px 28px 60px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.menu-btn, .tabbar, .scrim { display: none; }

/* ---------- Daraltılabilir menü (masaüstü) ---------- */
.shell { transition: grid-template-columns .22s ease; }
.side-btn { margin-left: -8px; color: var(--muted); }
.side-btn:hover { color: var(--ink); }
@media (min-width: 861px) {
  .side-mini { --side: 76px; }
  .side-mini .side { padding: 18px 10px 12px; overflow-x: hidden; }
  .side-mini .brand { align-items: center; padding: 2px 0 14px; }
  .side-mini .brand-logo, .side-mini .brand-sub { display: none; }
  .side-mini .brand::before { content: ""; width: 36px; height: 36px; background: url(/assets/brand/icon-64.png) center / contain no-repeat; }
  .side-mini .nav-title { font-size: 0; padding: 10px 0 6px; margin: 0 14px; border-top: 1px solid var(--line); }
  .side-mini .nav > .nav-title:first-child { border-top: 0; }
  .side-mini .nav a { justify-content: center; padding: 10px 0; }
  .side-mini .nav a > span { display: none; }
  .side-mini .nav a.on::before { left: -10px; }
  .side-mini .nav a:hover::after, .side-mini .nav a:focus-visible::after { content: attr(data-tip); position: fixed; left: 72px; margin-top: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; z-index: 80; pointer-events: none; box-shadow: 0 6px 20px -8px rgba(0,0,0,.4); }
  .side-mini .me-card { flex-direction: column; padding: 8px 0; gap: 4px; }
  .side-mini .me-card > a:not(.avatar) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shell { transition: none; } }

/* ---------- Bildirim açılır kutusu ---------- */
.pop { position: absolute; right: 0; top: 46px; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(21,32,28,.25); display: none; overflow: hidden; z-index: 30; }
.pop.open { display: block; }
.pop header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.pop a.item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pop a.item:hover { background: var(--canvas); }
.pop a.item.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.pop a.item b { font-weight: 500; display: block; } .pop a.item span { font-size: 12.5px; color: var(--muted); }
.pop footer a { display: block; text-align: center; padding: 10px; font-weight: 500; color: var(--accent-deep); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-deep); cursor: pointer; font-weight: 500; }
.link-btn:hover, a.link:hover { text-decoration: underline; }
a.link { color: var(--accent-deep); font-weight: 500; }

/* ---------- Düğmeler ve form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 14.5px var(--body); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, #fff); } .btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, #fff); } .btn.ok:hover { background: var(--ok-soft); border-color: var(--ok); }
.btn.sm { height: 31px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.btn.wide { width: 100%; height: 44px; font-size: 15.5px; }
form.inline { display: inline; }
.form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; }
.f { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.s3 { grid-column: span 3; } .f.s4 { grid-column: span 4; } .f.s8 { grid-column: span 8; } .f.s12 { grid-column: span 12; } .f.s2 { grid-column: span 2; }
.f > label, .f > .lbl { font-size: 13.5px; font-weight: 500; color: #34403B; }
.f .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: 15px var(--body); color: var(--ink); min-width: 0; }
textarea { height: auto; padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
input[type=file] { font: 14px var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check span { font-weight: 500; } .check small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.err { color: var(--bad); font-size: 13px; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.section { border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.section > h2 { margin-bottom: 4px; } .section > h2 + p { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.section > h2:only-of-type + .form, .section > h2 + .form, .section > h2 + .table-wrap { margin-top: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Filtre satırı ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 240px; max-width: 380px; }
.search .ic { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.search input { padding-left: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: #34403B; background: #fff; white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip i { font-style: normal; font-size: 12px; opacity: .65; }
.months { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.months a { padding: 9px 4px 8px; text-align: center; font-size: 13.5px; font-weight: 500; border-right: 1px solid var(--line); color: var(--muted); }
.months a:last-child { border-right: 0; }
.months a b { display: block; font: 600 17px var(--display); color: var(--ink); }
.months a.zero b { color: var(--line-strong); }
.months a:hover { background: var(--canvas); }
.months a.on { background: var(--accent); color: #fff; } .months a.on b { color: #fff; }

/* ---------- Tablo ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: #FAFBFA; white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #FAFBFA; }
.t .r { text-align: right; }
.t td b { font-weight: 600; } .t td small { display: block; color: var(--muted); font-size: 13px; }
.t td.act { text-align: right; white-space: nowrap; }
.t td.act .btn + .btn, .t td.act form + form, .t td.act .btn + form, .t td.act form + .btn { margin-left: 4px; }
.code { font-family: var(--display); font-weight: 600; color: var(--accent-deep); letter-spacing: -.01em; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 600 17px var(--display); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); } .b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); } .b-info { background: var(--info-soft); color: var(--info); }
.b-mute { background: #EEF1EF; color: var(--muted); }

/* ---------- Mesajlar ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: #075C3F; } .flash.bad { background: var(--bad-soft); color: #8C1D17; } .flash.warn { background: var(--warn-soft); color: #6F4200; }
.flash ul { margin: 0; padding-left: 18px; font-weight: 400; }

/* ---------- Panel (ana sayfa) ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hello h1 { font-size: 34px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.strip a { padding: 16px 18px; border-right: 1px solid var(--line); display: block; }
.strip a:last-child { border-right: 0; } .strip a:hover { background: var(--canvas); }
.strip b { display: block; font: 600 30px/1.1 var(--display); letter-spacing: -.02em; }
.strip span { font-size: 13.5px; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.todo a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.todo a:last-child { border-bottom: 0; padding-bottom: 0; } .todo a:first-child { padding-top: 0; }
.todo a .ic:first-child { color: var(--accent); } .todo a .ic:last-child { margin-left: auto; color: var(--faint); }
.todo a:hover { color: var(--accent-deep); }
.feed a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed a:last-child { border-bottom: 0; padding-bottom: 0; } .feed a:first-child { padding-top: 0; }
.feed b { font-weight: 500; display: block; } .feed span { font-size: 12.5px; color: var(--muted); }
.bal-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bal-row:last-child { border-bottom: 0; }
.bal-row b { font: 600 16px var(--display); }

/* Zaman çizelgesi: önümüzdeki 3 hafta */
.tl { --days: 21; overflow-x: auto; }
.tl-grid { display: grid; grid-template-columns: 150px repeat(var(--days), minmax(30px, 1fr)); min-width: 780px; row-gap: 6px; align-items: center; }
.tl-day { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tl-day b { display: block; font: 600 14px var(--display); color: var(--ink); }
.tl-day.today b { color: #fff; background: var(--accent); border-radius: 7px; width: 26px; margin: 0 auto; }
.tl-day.wk { color: var(--faint); }
.tl-name { font-size: 13.5px; padding-right: 10px; line-height: 1.25; }
.tl-name b { font-family: var(--display); color: var(--accent-deep); display: block; } .tl-name span { color: var(--muted); font-size: 12.5px; }
.tl-bar { height: 34px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-mid); color: var(--accent-deep); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; padding: 0 9px; overflow: hidden; white-space: nowrap; }
.tl-bar.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-bar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dashed; }
.tl-bar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dashed; }
.tl-bar:hover { filter: brightness(.96); }

/* ---------- Detay sayfaları ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.facts > div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt, .facts .k { font-size: 13px; color: var(--muted); } .facts .v { font-weight: 600; font-size: 16px; margin-top: 2px; } .facts .v small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.pre { white-space: pre-line; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.list-check { list-style: none; margin: 0; padding: 0; } .list-check li { padding: 5px 0 5px 24px; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.list-check.no li::before { width: 10px; height: 0; border-left: 0; border-bottom: 2px solid var(--faint); transform: none; top: 16px; }
.offer { border: 1px solid var(--accent-mid); background: var(--accent-soft); border-radius: 16px; padding: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.offer .price { font: 600 40px/1 var(--display); letter-spacing: -.03em; color: var(--accent-deep); } .offer .price small { font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; }
.days { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.days li { padding: 9px 0 9px 44px; position: relative; border-bottom: 1px solid var(--line); counter-increment: d; }
.days li:last-child { border-bottom: 0; }
.days li::before { content: counter(d); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font: 600 13px/28px var(--display); text-align: center; }

/* ---------- Diyalog ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(21,32,28,.45); color: var(--ink); }
dialog::backdrop { background: rgba(21,32,28,.45); }
dialog header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
dialog .body { padding: 18px 22px 22px; }
dialog.narrow { width: min(440px, calc(100vw - 24px)); }

/* ---------- Yetki tablosu ---------- */
.perm { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perm-row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.perm-row:last-child { border-bottom: 0; }
.perm-row > div:first-child { padding: 14px 16px; font-weight: 600; background: #FAFBFA; border-right: 1px solid var(--line); }
.perm-row > div:last-child { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { cursor: pointer; } .swatch input { position: absolute; opacity: 0; }
.swatch span { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; font-size: 14px; }
.swatch span::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--c); }
.swatch input:checked + span { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }

/* ---------- Giriş ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; }
.login-art { background: #0B2A3A; color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1, .login-art p, .login-art .route { z-index: 1; }
.login-art h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; max-width: 12ch; position: relative; }
.login-art p { color: rgba(255,255,255,.72); max-width: 36ch; margin-top: 16px; position: relative; font-size: 16px; }
.login-art .brand b { color: #fff; } .login-art .brand span { color: rgba(255,255,255,.6); } .login-art .brand .brand-mark { background: #fff; color: #15201C; }
.wings { position: absolute; right: -9%; bottom: -8%; height: 66%; width: auto; color: #00AEEF; transform: rotate(-8deg); transform-origin: 60% 80%;
  animation: flutter 1.6s cubic-bezier(.2,.7,.2,1) both; }
.wings-echo { right: 30%; bottom: 52%; height: 30%; color: #fff; opacity: .07; transform: rotate(18deg); animation-delay: .15s; }
@keyframes flutter { from { opacity: 0; transform: translateY(24px) rotate(-14deg) scale(.96); } }
.wings-echo { animation-name: flutter-echo; } @keyframes flutter-echo { from { opacity: 0; transform: rotate(26deg) scale(.9); } }
.route { display: flex; gap: 0; flex-wrap: wrap; position: relative; font-size: 13.5px; color: rgba(255,255,255,.75); }
.route span { padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; margin: 0 8px 8px 0; }
.login-form { display: grid; place-items: center; padding: 32px 24px; }
.login-form form { width: min(380px, 100%); }
.login-form h2 { font-size: 28px; margin-bottom: 6px; }
.login-form .f { margin-top: 16px; }
.login-form .lang { width: max-content; margin-bottom: 36px; }

/* ---------- Mobil ---------- */
@media (max-width: 1020px) {
  .cols, .split { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip a { border-bottom: 1px solid var(--line); }
  .strip a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 15.5px; }
  .shell { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); background: var(--canvas); z-index: 60; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 30px 0 60px -30px rgba(0,0,0,.4); }
  body.nav-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(21,32,28,.45); z-index: 55; }
  body.nav-open .scrim { display: block; }
  .main { margin: 0; border-radius: 0; border: 0; min-height: 100dvh; }
  .top { padding: 10px 14px; border-radius: 0; }
  .menu-btn { display: grid; }
  .side-btn { display: none; }
  .top-icon { display: block; line-height: 0; }
  .page { padding: 18px 14px 96px; }
  h1, .hello h1 { font-size: 25px; }
  .lang { display: none; }
  .top .crumb > a, .top .crumb > .ic { display: none; }
  .section .table-wrap.cards .t tr { background: #FAFBFA; }
  .pop { position: fixed; left: 10px; right: 10px; top: 60px; width: auto; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font: 500 11.5px var(--body); color: var(--muted); background: none; border: 0; min-width: 0; }
  .tabbar a span, .tabbar button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .tabbar a.on { color: var(--accent-deep); }
  .f, .f.s3, .f.s4, .f.s8, .f.s2 { grid-column: span 12; }
  .f.half { grid-column: span 6; }
  .section { padding: 16px; border-radius: 14px; }
  .form-foot { flex-direction: column-reverse; } .form-foot .btn { width: 100%; height: 44px; }
  .months { grid-template-columns: repeat(13, 62px); overflow-x: auto; }
  .perm-row { grid-template-columns: 1fr; } .perm-row > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .offer .price { font-size: 32px; }
  .login { grid-template-columns: 1fr; } .login-art { padding: 26px 22px 30px; min-height: 250px; } .wings { height: 120%; right: -4%; bottom: -30%; opacity: .5; } .wings-echo { display: none; } .route { display: none; }
  /* Tablolar kartlara dönüşür */
  .table-wrap.cards { border: 0; border-radius: 0; overflow: visible; }
  .cards .t thead { display: none; }
  .cards .t, .cards .t tbody, .cards .t tr, .cards .t td { display: block; width: 100%; }
  .cards .t tr { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  .cards .t td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .cards .t td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  .cards .t td.lead { display: block; text-align: left; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .cards .t td.lead::before, .cards .t td.act::before { display: none; }
  .cards .t td.act { justify-content: flex-end; padding-top: 10px; flex-wrap: wrap; }
  .cards .t td small { text-align: right; } .cards .t td.lead small { text-align: left; }
  .cards .t tbody tr:hover td { background: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .side, .top, .tabbar, .actions, .btn { display: none !important; } .main { border: 0; margin: 0; } body { background: #fff; } }

/* ---------- Angora ---------- */
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 22px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 10px 14px 11px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--accent-deep); border-bottom-color: var(--accent); }
.t.wide { font-size: 13.5px; }
.t.wide td, .t.wide th { padding: 10px 10px; }
.t.wide td { white-space: nowrap; }
.t tfoot td { background: #FAFBFA; font-weight: 600; border-top: 1px solid var(--line-strong); }
.doc { display: inline-flex; align-items: center; gap: 6px; max-width: 190px; }
.doc a.badge { gap: 4px; }
.doc .name { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; }
.pill-num { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 12.5px; }
.note-bar { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: #5C3A00; margin-bottom: 18px; font-size: 14px; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; height: 230px; padding-top: 24px; }
.bars .m { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .b { width: 42%; max-width: 26px; border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bars .b.total { background: var(--accent); } .bars .b.paid { background: var(--ok); }
.bars .m > span { font-size: 12px; color: var(--muted); }
.bars .m.on > span { color: var(--ink); font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fuel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; margin-bottom: 18px; }
.fuel .big { font: 600 32px/1.1 var(--display); letter-spacing: -.02em; }
.cons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cons .f { grid-column: auto; }
.months.m12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.price-cell b { display: block; } .price-cell small { color: var(--muted); font-size: 12px; }
@media (max-width: 860px) {
  .fuel { grid-template-columns: 1fr; } .cons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cons .f { grid-column: auto; }
  .bars { height: 170px; gap: 4px; } .bars .m > span { font-size: 10.5px; }
  .t.wide td { white-space: normal; }
  .months.m12 { grid-template-columns: repeat(12, 56px); }
  .strip b { font-size: 24px; }
}

/* ---------- Mail tasarımları ---------- */
.mail-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-split > .section { margin: 0; }
.mail-preview { position: sticky; top: 84px; }
.pv-frame { border: 1px solid var(--line); border-radius: 14px; background: #EEF3F6; display: flex; justify-content: center; overflow: hidden; }
.pv-frame iframe { width: 100%; height: 900px; border: 0; background: #EEF3F6; flex: none; }
.designs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.design { cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.design input { position: absolute; opacity: 0; }
.design b { font-weight: 600; font-size: 14px; } .design small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.thumb { display: flex; flex-direction: column; gap: 4px; height: 92px; padding: 0 10px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 4px; }
.design input:checked + .thumb { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.design input:focus-visible + .thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.thumb i { display: block; border-radius: 3px; background: #DCE3E8; height: 5px; flex: none; }
.thumb { height: 116px; }
.thumb .bar { height: 3px; margin: 0 -10px 3px; background: linear-gradient(90deg, #00AEEF 25%, #E6007E 25% 50%, #FFC20E 50% 75%, #00A651 75%); border-radius: 0; }
.thumb .hero { height: 18px; margin: 0 -10px; background: #0B2A3A; border-radius: 0; }
.thumb .tiles { display: flex; gap: 4px; height: 9px; background: none; } .thumb .tiles i { flex: 1; height: 9px; background: #EEF3F6; border: 1px solid #DCE3E8; }
.thumb .foot { height: 8px; margin: auto -10px -10px; background: #0B2A3A; border-radius: 0; }
.thumb .logo { width: 38%; height: 7px; background: #1F2A33; }
.thumb .box { height: 16px; background: #E8F6FD; border: 1px solid #B9E3F7; }
.t-payment .box { background: #FFF6E5; border-color: #F3D9A4; }
.thumb .l.s { width: 60%; }
.thumb .btn { width: 36%; height: 9px; background: #0077B6; border-radius: 99px; }
.t-offer .btn { margin: 0 auto; }
.t-notice .logo { width: 28%; }
@media (max-width: 1180px) { .mail-split { grid-template-columns: minmax(0, 1fr); } .mail-preview { position: static; } }
@media (max-width: 860px) { .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-frame iframe { height: 560px; } }

/* ---------- İşlem geçmişi ---------- */
.audit td { vertical-align: top; }
.audit .fin { margin-left: 6px; vertical-align: 1px; }
.audit .nowrap { white-space: nowrap; }
.diff { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13.5px; margin: 0; }
.diff dt { color: var(--muted); }
.diff dd { margin: 0; overflow-wrap: anywhere; }
.diff s { color: var(--muted); text-decoration-color: rgba(0, 0, 0, .35); }
.diff ins { text-decoration: none; font-weight: 600; color: var(--ink); }
.audit-filters label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.audit-filters label.inline input { width: auto; }
@media (max-width: 860px) { .diff { grid-template-columns: 1fr; gap: 0 0; } .diff dd { margin-bottom: 6px; } }
.audit .who { font-weight: 600; }
