/* Tamirka web: V4 görünümü (düz, çizgili, #CD513C vurgu). Açık/koyu sistem ayarına uyar.
 * Masaüstü öncelikli: tanıtım sitesi + kenar çubuklu panel. 960px altında alt sekme çubuğu. */
:root {
  --bg: #F7F7F3; --surface: #FFFFFF; --ink: #1A2022; --secondary: #4C5658; --muted: #818987;
  --line: #DADEDA; --accent: #CD513C; --dark: #242C2D; --on-dark: #FFFFFF; --ok: #396A58; --ok-bg: #E4EEE9;
  --warn-bg: #F6E4DF; --blue: #268CF2; --field: #FFFFFF; --soft: #EEEEE8;
  --pane: #242C2D; --pane-ink: #F1F2EF; --pane-muted: #A9B3B1; --pane-line: #3A4547;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121516; --surface: #1B2022; --ink: #F1F2EF; --secondary: #B5BDBB; --muted: #8A9390;
    --line: #2D3436; --accent: #E0634F; --dark: #F1F2EF; --on-dark: #121516; --ok: #6FB59A; --ok-bg: #1B2A26;
    --warn-bg: #3A2622; --field: #1B2022; --soft: #181D1F;
    --pane: #1B2022; --pane-line: #2D3436; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: var(--on-dark); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#app { outline: none; min-height: 100vh; min-height: 100dvh; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wordmark { font-weight: 840; letter-spacing: -.055em; font-size: 24px; color: var(--ink); text-decoration: none; }
.wordmark i { color: var(--accent); font-style: normal; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.1; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 780; }
h2 { font-size: 22px; font-weight: 760; }
h3 { font-size: 16px; font-weight: 740; }
.lead { color: var(--secondary); max-width: 54ch; margin: 14px 0 0; font-size: 17px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; }
.error { color: var(--accent); font-size: 13px; margin: 0; min-height: 0; }
.okmsg { color: var(--ok); font-size: 13px; margin: 0; }
.error:empty, .okmsg:empty { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.danger { color: var(--accent); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 0; text-decoration: none; }

/* ---------- Tanıtım ---------- */
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right)); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.plain { color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 14px; }
.site-nav a.plain:hover { color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); max-width: 14ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stores a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--dark); color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 13px; }
.mock { justify-self: center; width: 300px; max-width: 100%; border: 1px solid var(--line); border-radius: 36px; background: var(--surface); padding: 22px 20px 20px; box-shadow: 0 30px 60px -30px rgba(26, 32, 34, .35); }
.mock .tag { display: block; text-align: center; margin: 0 0 14px; }
.mock h3 { font-size: 22px; letter-spacing: -.035em; }
.mock .row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mock .row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.mock .row .st { color: var(--ok); font-weight: 700; font-size: 11px; white-space: nowrap; }
.mock .cta { margin-top: 12px; border-left: 3px solid var(--accent); background: var(--soft); padding: 12px; font-weight: 700; font-size: 13px; }
.mock .tick { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); vertical-align: -2px; margin-left: 4px; position: relative; }
.mock .tick::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(40deg); }
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head .lead { font-size: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 28px; }
.pcard h3 { font-size: 20px; margin-bottom: 14px; }
.pcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--secondary); }
.pcard li { padding-left: 18px; position: relative; }
.pcard li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--secondary); }
.cta-band { background: var(--pane); color: var(--pane-ink); border-radius: 16px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 0 0 64px; }
.cta-band h2 { font-size: 30px; max-width: 18ch; }
.cta-band p { margin: 10px 0 0; color: var(--pane-muted); max-width: 46ch; }
.cta-band .btn { border-color: var(--pane-line); color: var(--pane-ink); }
.cta-band .btn.accent { color: #fff; border-color: var(--accent); }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--secondary); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- Giriş / şifre ---------- */
.authpage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100dvh; }
.brandpane { background: var(--pane); color: var(--pane-ink); padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.brandpane .wordmark { color: var(--pane-ink); }
.brandpane h2 { font-size: clamp(28px, 3vw, 40px); max-width: 14ch; line-height: 1.08; }
.brandpane ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; color: var(--pane-muted); max-width: 40ch; }
.brandpane li { padding-left: 22px; position: relative; }
.brandpane li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.brandpane .small { color: var(--pane-muted); font-size: 13px; }
.formpane { display: flex; align-items: center; justify-content: center; padding: 40px max(24px, env(safe-area-inset-left)); }
.formbox { width: 100%; max-width: 400px; }
.formbox h1 { font-size: 34px; margin-top: 8px; }
.formbox .lead { font-size: 15px; }
.formbox .mobile-brand { display: none; }
.back-site { display: inline-block; margin-top: 22px; color: var(--secondary); font-size: 13px; text-decoration: none; }
.form { display: grid; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--secondary); }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); font-weight: 400; font-size: 15px; color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field .hint { font-weight: 400; }
.auth-simple { max-width: 420px; margin: 0 auto; padding: 48px 24px; }

/* ---------- Panel kabuğu ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; gap: 24px; }
.side .wordmark { padding: 0 10px; }
.sidenav { display: grid; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--secondary); text-decoration: none; font-weight: 650; font-size: 14px; }
.sidenav a:hover { background: var(--soft); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 780; }
.sidenav a[aria-current="page"] svg { color: var(--accent); }
.sidenav svg, .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.sidefoot { margin-top: auto; display: grid; gap: 10px; }
.shopcard { border-top: 1px solid var(--line); padding: 16px 10px 0; display: flex; gap: 12px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.shopcard b { display: block; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.shopcard span { color: var(--muted); font-size: 12px; }
.sidefoot button.out { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--secondary); font-weight: 650; font-size: 14px; text-align: left; }
.sidefoot button.out:hover { background: var(--soft); color: var(--ink); }
.sidefoot button.out svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.maincol { min-width: 0; }
.topbar { display: none; }
.content { max-width: 1280px; margin: 0 auto; padding: 36px 40px 64px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(28px, 3vw, 38px); margin-top: 6px; }
.pagehead .tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabbar { display: none; }

.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card-pad { padding: 24px; }
.card h2 { font-size: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* Genel bakış */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { padding: 20px 22px; }
.stat .num { display: block; font-size: 40px; font-weight: 780; letter-spacing: -.05em; line-height: 1; margin-top: 10px; }
.stat .num.accent { color: var(--accent); }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 8px; display: block; }
.ovgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekday { border: 1px solid var(--line); border-radius: 10px; min-height: 148px; padding: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.weekday.today { border-color: var(--accent); }
.weekday .dn { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.weekday .dd { font-size: 20px; font-weight: 780; letter-spacing: -.03em; line-height: 1; }
.weekday.today .dd { color: var(--accent); }
.pill { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--ok); background: var(--soft); border-radius: 4px; padding: 4px 6px; font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.pending { border-left-color: var(--accent); }
.pill.proposed { border-left-color: var(--blue); }
.weekday .none { color: var(--muted); font-size: 11px; margin-top: auto; }

/* Listeler */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.searchbox { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); min-width: 240px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; width: 100%; padding: 14px 18px; border: 0; background: none; text-align: left; }
.row:hover { background: var(--soft); }
.row[aria-current="true"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
.row b { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.row .when { color: var(--secondary); font-size: 13px; }
.row .meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.head { cursor: default; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.row.head:hover { background: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.status { display: inline-block; font-size: 11px; font-weight: 750; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--secondary); white-space: nowrap; }
.status.pending { background: var(--warn-bg); color: var(--accent); }
.status.confirmed, .status.done { background: var(--ok-bg); color: var(--ok); }
.status.proposed { background: rgba(38, 140, 242, .14); color: var(--blue); }
.empty { padding: 28px 18px; color: var(--muted); font-size: 14px; }

/* Ana-detay */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
.split .detail { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.detail { padding: 26px; }
.detail .back { display: none; margin-bottom: 14px; }
.detail h2 { margin: 12px 0 14px; font-size: 26px; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.slot { margin: 16px 0; border-left: 3px solid var(--accent); background: var(--soft); padding: 12px 14px; }
.slot b { font-size: 17px; }
.sched { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sched .full { grid-column: 1 / -1; }
.sched textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); resize: vertical; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.thread-title { margin: 22px 0 10px; }
.thread { display: grid; align-content: start; gap: 8px; max-height: 340px; overflow: auto; padding-right: 4px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; background: var(--soft); display: grid; gap: 3px; font-size: 14px; overflow-wrap: anywhere; }
.msg time { font-size: 11px; color: var(--muted); }
.msg.owner { justify-self: end; background: var(--ok-bg); border-bottom-right-radius: 3px; }
.msg.customer { justify-self: start; border-bottom-left-radius: 3px; }
.compose { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.compose textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); resize: vertical; }
.convo { display: flex; flex-direction: column; min-height: 460px; }
.convo .thread { flex: 1; max-height: none; min-height: 240px; }
.convo-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.convo-head h2 { font-size: 22px; margin: 6px 0 4px; }
.snippet { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.convrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; width: 100%; padding: 14px 18px; border: 0; background: none; text-align: left; }
.convrow:hover, .convrow[aria-current="true"] { background: var(--soft); }
.convrow[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.convrow b { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.convrow time { color: var(--muted); font-size: 12px; }
.convrow .snippet { grid-column: 1 / -1; }

/* Dükkânım */
.shoplayout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.shopform { display: grid; gap: 20px; }
.shopform .card-pad { display: grid; gap: 16px; }
.shopform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shopform fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.shopform legend { padding: 0; font-size: 13px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.readonly { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 8px; font-size: 14px; }
.hours { display: grid; gap: 6px; }
.day { display: grid; grid-template-columns: 110px 120px 120px auto; gap: 10px; align-items: center; }
.day input[type="time"] { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.day.off input[type="time"] { opacity: .4; }
.day .closed { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--secondary); }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 14px 0; background: var(--bg); border-top: 1px solid var(--line); }
.preview { position: sticky; top: 24px; padding: 22px; }
.preview .tag { display: block; margin-bottom: 14px; }
.preview h3 { font-size: 24px; letter-spacing: -.04em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.preview .sub { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.preview .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview .fake { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; font-weight: 700; font-size: 13px; background: var(--dark); color: var(--on-dark); }
.preview .fake.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.preview .quote { margin-top: 10px; border-left: 3px solid var(--accent); background: var(--soft); padding: 12px; font-weight: 700; font-size: 13px; }
.preview .sect { margin-top: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 740; font-size: 14px; }
.preview .kvrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.preview .kvrow span { color: var(--muted); flex: none; }
.preview .kvrow b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.preview .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.preview .tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--soft); }
.preview .about { font-size: 13px; color: var(--secondary); margin-top: 10px; overflow-wrap: anywhere; }
.tick { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(40deg); }
.acct { max-width: 640px; display: grid; gap: 20px; }
.acct .kv > div { grid-template-columns: 160px 1fr; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); background: var(--dark); color: var(--on-dark); padding: 11px 18px; border-radius: 8px; font-weight: 650; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 40; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Orta genişlik ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .detail { position: static; max-height: none; }
  .shoplayout { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; max-width: 420px; }
  .content { padding: 28px 28px 56px; }
}

/* ---------- Telefon ve dar tablet: alt sekme çubuğu ---------- */
@media (max-width: 960px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
  .topbar .shopname { color: var(--muted); font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 20px max(16px, env(safe-area-inset-left)) calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 10.5px; font-weight: 650; text-decoration: none; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 800; }
  .tabbar a[aria-current="page"] svg { color: var(--accent); }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 17px; height: 17px; font-size: 10px; }
  .detail .back { display: block; margin-bottom: 14px; }
  .row.head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .row .when { grid-column: 1; }
  .row .meta { grid-column: 1 / -1; white-space: normal; }
  .row .status { grid-row: 1; grid-column: 2; }
  .searchbox { min-width: 0; width: 100%; }
  .week { grid-template-columns: repeat(7, 130px); overflow-x: auto; padding-bottom: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 36px 0 48px; }
  .cols2, .cols3 { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 32px 24px; }
  .site-nav a.plain { display: none; }
  .authpage { grid-template-columns: minmax(0, 1fr); }
  .brandpane { display: none; }
  .formbox .mobile-brand { display: block; margin-bottom: 28px; }
  .formpane { align-items: flex-start; padding-top: 32px; }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat .num { font-size: 32px; }
  .shopform .two { grid-template-columns: minmax(0, 1fr); }
  .day { grid-template-columns: 1fr 1fr; }
  .day > span { grid-column: 1 / -1; font-weight: 700; }
  .day .closed { grid-column: 1 / -1; }
  .sched { grid-template-columns: minmax(0, 1fr); }
  .kv > div { grid-template-columns: 96px 1fr; }
  .msg { max-width: 92%; }
  .compose { flex-direction: column; align-items: stretch; }
}
