:root {
  --bg: #f6f2ef;
  --card: #fff;
  --ink: #2e2a2a;
  --muted: #827878;
  --line: #ece4df;
  --rose: #c48b8b;
  --rose-d: #a96f6f;
  --side: #2e2a2a;
  --ok: #1f7a4d;
  --err: #b3352d;
  --warn: #b7791f;
  --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 "Jost", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; }
a { color: inherit; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; margin: 0 0 .3em; line-height: 1.15; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
.muted { color: var(--muted); margin: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* Kenar menü */
.side { width: 240px; flex: none; background: var(--side); color: #e9dfdb; display: flex; flex-direction: column; padding: 26px 16px; position: sticky; top: 0; height: 100vh; }
.side-logo { font: 600 1.6rem/1.1 "Cormorant Garamond", serif; color: #fff; text-decoration: none; padding: 0 10px 26px; display: block; }
.side-logo small { display: block; font: 500 .66rem "Jost", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin-top: 6px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; transition: background .2s; }
.side-nav a:hover { background: rgba(255,255,255,.07); }
.side-nav a.is-active { background: var(--rose); color: #fff; }
.side-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill { margin-left: auto; background: #fff; color: var(--rose-d); font-size: .72rem; padding: 1px 8px; border-radius: 99px; }
.side-out { margin-top: auto; padding: 10px 12px; font-size: .9rem; opacity: .7; text-decoration: none; }
.side-out:hover { opacity: 1; }

.main { flex: 1; min-width: 0; padding: 30px clamp(16px, 3vw, 40px) 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(60,30,30,.18); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; }
.alert-ok { background: #e7f4ec; color: var(--ok); }
.alert-err { background: #fbeae8; color: var(--err); }

/* Butonlar */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: 500 .92rem "Jost", sans-serif; text-decoration: none; cursor: pointer; background: none; color: var(--ink); transition: background .2s, border-color .2s; white-space: nowrap; }
.b:disabled { opacity: .5; cursor: default; }
.b-primary { background: var(--rose); color: #fff; }
.b-primary:hover:not(:disabled) { background: var(--rose-d); }
.b-ghost { border-color: var(--line); background: #fff; }
.b-ghost:hover { border-color: var(--rose); }
.b-danger-ghost { color: var(--err); border-color: #f1d3d0; background: #fff; }
.b-danger-ghost:hover { background: #fbeae8; }
.b-warn { background: var(--warn); color: #fff; }
.b-sm { min-height: 34px; padding: 0 12px; font-size: .84rem; }
.b-block { width: 100%; }
.ib { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.ib:disabled { opacity: .35; cursor: default; }

/* Form alanları */
.f { display: grid; gap: 5px; font-size: .84rem; font-weight: 500; margin-bottom: 14px; }
.f input, .f select, .f textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: 400 16px "Jost", sans-serif; color: var(--ink); background: #fcfaf9; }
.f input[type=color] { padding: 4px; height: 44px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
.f small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.span2 { grid-column: 1 / -1; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--rose); }
.remain { align-self: end; color: var(--ok); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Özet kutuları */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--r); padding: 16px 18px; display: grid; text-decoration: none; border-left: 4px solid var(--rose); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.stat b { font: 600 2rem/1 "Cormorant Garamond", serif; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat-link:hover { background: #fdf7f5; }

/* Takvim */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; cursor: pointer; user-select: none; background: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c, var(--muted)); }
.chip input:checked + i { background: var(--c, var(--muted)); }
.chip:has(input:focus-visible) { outline: 2px solid var(--rose); }
.chip:has(input:not(:checked)) { opacity: .55; }
.chip-off { font-style: italic; }
.chip-plain i { border-radius: 3px; }

.fc { --fc-border-color: var(--line); --fc-today-bg-color: #fdf3f0; --fc-button-bg-color: #fff; --fc-button-border-color: var(--line); --fc-button-text-color: var(--ink); --fc-button-hover-bg-color: #faf1ee; --fc-button-hover-border-color: var(--rose); --fc-button-active-bg-color: var(--rose); --fc-button-active-border-color: var(--rose); --fc-event-border-color: transparent; font-size: .9rem; }
.fc .fc-toolbar-title { font: 600 1.6rem "Cormorant Garamond", serif; text-transform: capitalize; }
.fc .fc-button { font-weight: 500; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-button-active { color: #fff !important; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { text-decoration: none; color: var(--ink); }
.fc .fc-daygrid-day { cursor: pointer; }
.fc .fc-daygrid-day:hover { background: #fdf8f6; }
.fc-event { cursor: pointer; padding: 1px 3px; }
.fc-daygrid-event { white-space: normal; }
.ev { padding: 2px 4px; line-height: 1.25; overflow: hidden; }
.ev b { display: block; font-weight: 600; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev small { display: block; font-size: .7rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc .st-opsiyon { opacity: .85; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 6px, transparent 6px 12px) !important; }
.fc .st-iptal { opacity: .45; text-decoration: line-through; }
.fc .st-tamamlandi { opacity: .7; }
.fc .fc-list-event { cursor: pointer; }
.fc .fc-list-day-cushion { background: #faf6f4; }
.ev-meta { color: var(--muted); font-weight: 400; margin-left: 4px; }

.upcoming h2 { font-size: 1.35rem; }
.upcoming ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.upcoming button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--c); background: #fff; border-radius: 8px; padding: 10px; cursor: pointer; font: inherit; color: inherit; }
.upcoming button:hover { background: #fdf8f6; }
.up-date { display: grid; text-align: center; min-width: 42px; font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.up-date b { font: 600 1.5rem/1 "Cormorant Garamond", serif; color: var(--ink); }
.up-txt { display: grid; min-width: 0; }
.up-txt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-txt small { color: var(--muted); }

.badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; font-style: normal; vertical-align: middle; justify-self: start; }
.badge-yeni { background: #fbeae8; color: var(--err); }
.badge-okundu { background: #eee; color: #555; }
.badge-donusturuldu { background: #e7f4ec; color: var(--ok); }
.badge-opsiyon { background: #fbf0d9; color: var(--warn); }

/* Modal */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); color: var(--ink); }
.modal::backdrop { background: rgba(30,20,20,.45); }
.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.x { width: 38px; height: 38px; border: 0; background: #f4eeeb; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.modal-body { padding: 18px 22px 4px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.spacer { flex: 1; }
.conflict { flex: 1 1 100%; background: #fbf0d9; color: #6b4a10; padding: 12px 14px; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.conflict p { margin: 0; flex: 1 1 260px; font-size: .92rem; }
.conflict .b { flex: none; }
.form-err { flex: 1 1 100%; margin: 0; color: var(--err); font-weight: 500; background: #fbeae8; padding: 10px 14px; border-radius: 8px; }
/* Etkinlik detay penceresi */
.modal-detail { width: min(560px, calc(100vw - 24px)); border-top: 6px solid var(--c, var(--rose)); }
.detail-wrap { display: flex; flex-direction: column; max-height: calc(100vh - 30px); }
.dt-head { align-items: flex-start; }
.dt-head h2 { font-size: 1.8rem; margin: 2px 0 0; }
.dt-meta { margin: 0; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.dt-when { background: #fcf8f6; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.dt-date { font: 600 1.35rem "Cormorant Garamond", serif; text-transform: capitalize; }
.dt-time { font-weight: 500; margin-top: 2px; }
.dt-time em { font-style: normal; font-weight: 500; font-size: .78rem; background: var(--rose); color: #fff; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.dt-list { margin: 0; display: grid; gap: 0; }
.dt-list div { display: grid; grid-template-columns: 110px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dt-list dt { color: var(--muted); font-size: .88rem; }
.dt-list dd { margin: 0; font-weight: 500; }
.dt-notes { margin-top: 14px; }
.dt-notes h3 { font: 600 .78rem "Jost", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.dt-notes p { margin: 0; white-space: pre-wrap; background: #faf6f4; padding: 10px 12px; border-radius: 8px; }
.dt-stamp { font-size: .78rem; margin: 14px 0 6px; }
@media (max-width: 760px) {
  .modal.modal-detail { height: auto; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .detail-wrap { max-height: 92dvh; }
  .modal-detail .modal-foot .b { flex: 1 1 40%; }
}
/* Takvim gününe hızlı ekleme düğmesi */
.fc .day-add { position: absolute; left: 4px; top: 4px; z-index: 3; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--rose); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.fc .fc-daygrid-day:hover .day-add, .fc .day-add:focus-visible { opacity: 1; }
@media (hover: none) { .fc .day-add { opacity: .85; width: 22px; height: 22px; font-size: .95rem; } }

/* Salonlar */
.venue-layout, .settings-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vlist { list-style: none; padding: 0; margin: 0; }
.vlist li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vlist li:last-child { border-bottom: 0; }
.vlist li.is-off .vinfo { opacity: .55; }
.vdot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.vinfo { flex: 1; min-width: 180px; display: grid; }
.vinfo small { color: var(--muted); }
.vact { display: flex; gap: 6px; flex-wrap: wrap; }
.vact form { margin: 0; }
.vprev { max-height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; width: 100%; }

/* Talepler */
.tabs { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 10px; }
.tabs a { padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .9rem; }
.tabs a.is-active { background: var(--rose); color: #fff; }
.inq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.inq { border-top: 4px solid var(--line); display: flex; flex-direction: column; }
.inq-yeni { border-top-color: var(--rose); }
.inq-donusturuldu { border-top-color: var(--ok); }
.inq header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.inq header strong { font-size: 1.1rem; margin-right: 6px; }
.inq time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.inq dl { margin: 0; display: grid; gap: 6px; }
.inq dl div { display: grid; grid-template-columns: 110px 1fr; }
.inq dt { color: var(--muted); font-size: .85rem; }
.inq dd { margin: 0; }
.warn { color: var(--err); font-size: .8rem; }
.inq-msg { background: #faf6f4; padding: 10px 12px; border-radius: 8px; margin: 12px 0 0; font-size: .92rem; }
.inq footer { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.inq footer form { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* Giriş */
.login-page { align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #f5ebe6, #f9f5f2); }
.login { background: #fff; padding: 36px 32px; border-radius: 16px; width: 100%; max-width: 400px; box-shadow: 0 30px 60px -30px rgba(90,50,50,.35); }
.login h1 { font-size: 1.9rem; }
.login .muted { margin-bottom: 16px; }
.login-brand { font: 500 .72rem "Jost", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin: 0 0 8px; }
.login .b { margin-top: 6px; }
.login-back { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: .9rem; text-decoration: none; }

/* ============ Mobil ============ */
@media (max-width: 1100px) {
  .cal-layout, .venue-layout, .settings-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { display: block; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .side { position: fixed; inset: auto 0 0; height: auto; width: 100%; padding: 0 0 env(safe-area-inset-bottom); flex-direction: row; z-index: 50; box-shadow: 0 -6px 20px rgba(0,0,0,.15); }
  .side-logo, .side-out { display: none; }
  .side-nav { display: flex; width: 100%; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-sep { display: none; }
  .side-nav a { flex: 1 0 68px; flex-direction: column; gap: 2px; padding: 9px 2px; border-radius: 0; font-size: .64rem; position: relative; min-height: 60px; justify-content: center; text-align: center; }
  .pill { position: absolute; top: 4px; right: calc(50% - 22px); margin: 0; }
  .main { padding: 18px 12px 30px; }
  h1 { font-size: 1.7rem; }
  .page-head { align-items: flex-start; }
  .page-head > .b { width: 100%; }
  .card { padding: 16px; }
  .stats { gap: 10px; }
  .stat b { font-size: 1.7rem; }
  .grid2 { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .chip { flex: none; }
  .fc .fc-toolbar { gap: 8px; }
  .fc .fc-toolbar-title { font-size: 1.3rem; }
  .fc .fc-daygrid-event { font-size: .72rem; }
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .modal form { max-height: 100dvh; height: 100%; }
  .modal-body { flex: 1; }
  .modal-foot .b { flex: 1; }
  .modal-foot .spacer { display: none; }
  .inq-list { grid-template-columns: 1fr; }
  .inq dl div { grid-template-columns: 96px 1fr; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs a { flex: none; }
  .vact { width: 100%; }
}

/* ---------- Galeri ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 14px; }
.upl h2 { margin-bottom: 14px; }
.drop { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed #e2d3cc; border-radius: var(--r); background: #fcf8f6; text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { border-color: var(--rose); background: #fbf0ec; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--rose); outline-offset: 2px; }
.drop svg { width: 38px; height: 38px; fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop span { color: var(--muted); font-size: .88rem; }
.upl-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.upl-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #faf6f4; border-radius: 8px; font-size: .88rem; }
.upl-list .un { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl-list .us { flex: none; color: var(--muted); }
.upl-list li.ok .us { color: var(--ok); font-weight: 600; }
.upl-list li.err .us { color: var(--err); font-weight: 600; }
.gal-head { margin: 26px 0 14px; align-items: center; }
.small { font-size: .85rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gcard { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.gthumb { display: block; aspect-ratio: 4/3; background: #f1ebe8; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gbody { padding: 10px; display: grid; gap: 6px; }
.gbody input, .gbody select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: 400 15px "Jost", sans-serif; background: #fcfaf9; color: var(--ink); }
.gbody input:focus, .gbody select:focus { outline: none; border-color: var(--rose); }
.gact { display: flex; align-items: center; gap: 6px; }
.g-saved { flex: 1; font-size: .78rem; color: var(--ok); }

/* ---------- Müşteriler ---------- */
.filters-bar { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: end; margin-bottom: 16px; padding-bottom: 6px; }
.filters-bar .f { flex: 1 1 150px; }
.filters-bar .f-grow { flex: 2 1 220px; }
.f-btns { display: flex; flex-direction: row; gap: 8px; flex: 0 0 auto !important; }
.stat-warn { border-left-color: var(--warn); }
.table-card { padding: 0; overflow-x: auto; }
.tbl { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fcf9f7; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #fdf8f6; }
.tbl tr.is-past td { color: var(--muted); }
.tbl td small { display: block; color: var(--muted); font-size: .8rem; }
.tbl strong { font-weight: 600; }
.tbl .num { text-align: right; white-space: nowrap; }
.t-date { text-decoration: none; display: block; white-space: nowrap; }
.t-date b { font-weight: 600; }
.vtag { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
.vtag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.due { color: var(--err); font-weight: 600; }
.paid { color: var(--ok); font-weight: 600; }
.badge-st-kesin { background: #e7f4ec; color: var(--ok); }
.badge-st-opsiyon { background: #fbf0d9; color: var(--warn); }
.badge-st-tamamlandi { background: #eee; color: #555; }
.badge-st-iptal { background: #fbeae8; color: var(--err); }

@media (max-width: 1100px) {
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gbody { padding: 8px; }
  .page-head .row-end { width: 100%; }
  .page-head .row-end .b { flex: 1; }
  .filters-bar .f { flex: 1 1 calc(50% - 12px); }
  .filters-bar .f-grow { flex-basis: 100%; }
  .f-btns { flex: 1 1 100% !important; }
  .f-btns .b { flex: 1; }
  /* Tablo telefonda kartlara dönüşür */
  .table-card { background: none; box-shadow: none; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; min-width: 0; }
  .tbl tr { background: #fff; border-radius: var(--r); margin-bottom: 10px; padding: 8px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
  .tbl td { border: 0; padding: 6px 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px; text-align: left !important; }
  .tbl td::before { content: attr(data-l); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
}

/* ---------- İçerik düzenleyici ---------- */
.side-sep { display: block; height: 1px; background: rgba(255,255,255,.1); margin: 10px 12px; }
.f-label { font-weight: 500; }
.tabs-wide { flex-wrap: wrap; margin-bottom: 18px; }
.page-desc { margin: 0 0 14px; }
.cgroup { margin-bottom: 16px; }
.cgroup h2 { font-size: 1.4rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.content-form .f textarea { resize: vertical; }
.cnt { color: var(--muted); font-size: .76rem; font-weight: 400; }
.cnt.over { color: var(--err); font-weight: 600; }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; background: rgba(246,242,239,.96); backdrop-filter: blur(6px); padding: 12px 0; margin-top: 6px; border-top: 1px solid var(--line); }
.save-bar .b-primary { min-width: 160px; }
.sub-h { font-size: 1.2rem; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.vthumb { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.sys { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.sys li { display: grid; grid-template-columns: 130px 1fr; }
.sys span { color: var(--muted); }

/* Tekrarlanan satırlar */
.repeater { margin-bottom: 14px; }
.rep-rows { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 10px; counter-reset: rep; }
.rep-row { display: flex; gap: 10px; background: #fcfaf9; border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px 2px 40px; position: relative; }
.rep-row::before { counter-increment: rep; content: counter(rep); position: absolute; left: 12px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--rose); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.rep-fields { flex: 1; min-width: 0; }
.rep-tools { display: flex; flex-direction: column; gap: 6px; }
.rep-tools .rep-del { color: var(--err); }
.rep-row .f input, .rep-row .f textarea, .rep-row .f select { background: #fff; }

/* Görsel alanı */
.img-field { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.img-prev { width: 150px; aspect-ratio: 4/3; flex: none; border-radius: 8px; overflow: hidden; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px; border: 1px solid var(--line); display: grid; place-items: center; }
.img-prev img { width: 100%; height: 100%; object-fit: contain; }
.img-prev span { font-size: .78rem; color: var(--muted); background: #fff; padding: 2px 8px; border-radius: 4px; }
.img-ctrl { flex: 1; min-width: 0; display: grid; gap: 8px; }
.img-ctrl .img-path { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: 400 14px "Jost", sans-serif; background: #fcfaf9; color: var(--ink); }
.img-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.img-up { cursor: pointer; }
.img-st { font-size: .8rem; color: var(--muted); }
.img-st.ok { color: var(--ok); }
.img-st.err { color: var(--err); }
.f + small, .img-field + small { display: block; margin: -8px 0 14px; color: var(--muted); font-size: .78rem; }

/* ---------- Kurulum ---------- */
.install { background: #fff; padding: 34px 32px; border-radius: 16px; width: 100%; max-width: 680px; box-shadow: 0 30px 60px -30px rgba(90,50,50,.35); margin: 30px auto; }
.install h1 { font-size: 2.2rem; }
.install fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 4px; margin: 0 0 18px; }
.install legend { font: 600 1.25rem "Cormorant Garamond", serif; padding: 0 6px; }
.install .small { font-size: .82rem; }
.reqs { margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.reqs summary { cursor: pointer; font-weight: 600; }
.reqs ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.reqs li small { display: block; color: var(--muted); margin-left: 22px; font-size: .78rem; }
.reqs li.ok b { color: var(--ok); }
.reqs li.bad b { color: var(--err); }
.reqs li.warn b { color: var(--warn); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.seg label { flex: 1 1 200px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--rose); background: #fdf6f4; }
.seg small { color: var(--muted); font-weight: 400; }
.seg input { accent-color: var(--rose); }
.next-steps { padding-left: 1.2em; display: grid; gap: 8px; margin: 18px 0 24px; }
.code { width: 100%; font: 13px/1.5 Consolas, monospace; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #faf7f5; }
.login-page { min-height: 100vh; }

@media (max-width: 760px) {
  .img-field { flex-direction: column; }
  .img-prev { width: 100%; max-width: 260px; }
  .rep-row { padding: 36px 10px 2px 10px; flex-direction: column; }
  .rep-row::before { top: 10px; left: 10px; }
  .rep-tools { flex-direction: row; position: absolute; top: 6px; right: 8px; }
  .rep-tools .ib { width: 30px; height: 30px; }
  .save-bar { bottom: calc(60px + env(safe-area-inset-bottom)); padding: 10px 0; }
  .save-bar .b-primary { flex: 1; }
  .install { padding: 24px 18px; margin: 0; border-radius: 0; }
  .tabs-wide { flex-wrap: nowrap; overflow-x: auto; }
}
/* @lisans:basla */
.mono { font: 13px/1.5 ui-monospace, Consolas, monospace !important; }
.mt-sm { margin-top: 12px; }
/* @lisans:bitir */
