/* Pushlan arayüzü · kurumsal kimlikten türetilmiştir */
:root {
  --ink: #14161a;
  --paper: #f6f5f1;
  --paper-2: #efede7;
  --paper-3: #faf9f6;
  --white: #ffffff;
  --night: #2a2d33;
  --line: #e3e1da;
  --line-strong: #d3d0c7;
  --muted: #5b5f68;
  --text-2: #3f434b;
  --on-dark: #d5d7dc;
  --on-dark-2: #9da1a9;
  --signal: #ff5a1f;
  --signal-dark: #c23f0d;
  --signal-tint: #fff1ea;
  --signal-ring: #ffe3d6;
  --success: #1f7a4d;
  --warning: #a15c00;
  --error: #c21f3a;
  --radius-control: 10px;
  --radius-item: 12px;
  --radius-card: 16px;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--signal-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--muted); }
.display { font-family: var(--font-display); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kabuk */
.shell { display: flex; min-height: 100vh; }
.rail { width: 72px; flex-shrink: 0; background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0; position: sticky; top: 0; height: 100vh; }
.rail-sep { width: 32px; height: 1px; background: rgba(246,245,241,.14); margin: 8px 0; }
.ws-tile { position: relative; width: 44px; height: 44px; border-radius: var(--radius-item); background: var(--night); color: var(--paper); display: flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.ws-tile:hover { color: var(--paper); background: #3a3e46; }
.ws-tile.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--paper); }
.ws-tile.is-add { background: transparent; border: 1.5px dashed var(--muted); color: var(--on-dark-2); }
.rail-avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-decoration: none; }
.rail-avatar.is-active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--signal); }
.rail-grow { flex-grow: 1; }

.dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 6px; background: var(--signal); box-shadow: 0 0 0 3px var(--dot-ring, var(--white)); }
.dot.sm { top: -3px; right: -3px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--dot-ring, var(--paper)); }
.rail .dot { --dot-ring: var(--ink); }

.sidebar { width: 256px; flex-shrink: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-head { padding: 0 8px 20px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-control); color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-item:hover { background: var(--paper-2); color: var(--ink); }
.nav-item.is-active { background: var(--ink); color: var(--paper); font-weight: 600; }
.nav-item.is-active .ch-tile { background: var(--paper); box-shadow: none; }
.nav-item.is-active .dot { --dot-ring: var(--ink); }
.nav-item.is-muted { color: var(--muted); }
.nav-item .grow { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.sm { min-height: 40px; font-size: 14px; color: var(--text-2); }
.nav-item.sm.is-active { color: var(--paper); }
.nav-section { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px 6px 12px; }
.nav-section a:first-child { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--signal); color: var(--ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.count-plain { font-size: 13px; color: var(--muted); }
.nav-item.is-active .count-plain { color: var(--on-dark); }

.main { flex-grow: 1; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.page-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.toolbar-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; }
.toolbar .chips { flex: 1; min-width: 0; }
.toolbar-end { margin-left: auto; flex-shrink: 0; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters .select { width: auto; min-height: 40px; font-size: 14px; }
.show-sm-inline { display: none; }
.page-eyebrow { font-size: 14px; color: var(--muted); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Kanal başlığı */
.channel-head { display: flex; align-items: center; gap: 18px; }
.ch-tile { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-item); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.ch-tile.sm { width: 28px; height: 28px; border-radius: 8px; }
.ch-tile.lg { width: 64px; height: 64px; border-radius: 18px; }
.ch-tile.lg .dot { top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 8px; box-shadow: 0 0 0 4px var(--paper); }
.ch-tile.is-read { background: var(--paper); box-shadow: none; color: var(--muted); }
.ch-tile.is-muted { background: var(--paper-2); box-shadow: none; color: var(--muted); }

/* Kartlar */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.card.pad { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.card.list { padding: 8px; }
.card.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card.dark .muted { color: var(--on-dark-2); }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 8px; }
.card.dashed { background: var(--paper); border-style: dashed; border-color: var(--line-strong); }
.divider { height: 1px; background: var(--line); margin: 0 16px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.grid-side.wide { grid-template-columns: minmax(0, 1fr) 440px; }
.grid-side.narrow { grid-template-columns: minmax(0, 1fr) 320px; }
.grid-side.steps-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack.tight { gap: 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.row .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 15px; font-weight: 600; }
.row-sub { font-size: 13px; color: var(--muted); }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-control); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #262a31; color: var(--paper); }
.btn-signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn-signal:hover { background: #ff6d38; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--error); border-color: var(--error); background: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--signal-dark); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 14px; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }

/* Çipler, rozetler, sekmeler */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: 14px; text-decoration: none; }
.chip:hover { color: var(--ink); background: var(--paper-3); }
.chip.is-active { background: var(--ink); color: var(--paper); box-shadow: none; font-weight: 600; }
.card.dark .chip { background: transparent; color: var(--on-dark-2); box-shadow: none; }
.card.dark .chip.is-active { background: var(--paper); color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.badge.ok { color: var(--success); }
.badge.warn { color: var(--warning); }
.badge.err { color: var(--error); }
.badge.hot { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.badge.plain { color: var(--muted); border-color: var(--line); background: var(--paper); font-weight: 500; }
.badge.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-item); background: var(--paper-2); align-self: flex-start; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 9px; font-size: 14px; color: var(--text-2); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 600; color: var(--ink); }

/* Formlar */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--white); font-size: 15px; width: 100%; }
.textarea { padding: 10px 14px; min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border: 1.5px solid var(--ink); box-shadow: 0 0 0 4px var(--signal-ring); }
.input-icon { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--white); color: var(--muted); }
.input-icon input { border: 0; outline: 0; flex-grow: 1; min-width: 0; background: transparent; color: var(--ink); font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.error { font-size: 13px; color: var(--error); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Bildirim satırları */
.day-head { margin: 0; padding: 12px 16px 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.event-row { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius-item); color: var(--ink); text-decoration: none; }
.event-row:hover { background: var(--paper-3); color: var(--ink); }
.event-row.is-selected { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.event-row.is-selected .dot { --dot-ring: var(--paper); }
.event-row .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.event-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.event-title { font-size: 16px; color: var(--text-2); }
.event-title.is-unread { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.event-body { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.detail { overflow: hidden; display: flex; flex-direction: column; position: sticky; top: 24px; }
.detail-hero { background: var(--ink); color: var(--paper); padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.detail-hero h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.detail-text { font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.big-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.big-num small { font-weight: 500; color: var(--muted); font-size: 19px; }
.ack-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-item); background: var(--paper); }
.avatar { width: 34px; height: 34px; border-radius: 17px; background: var(--paper-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.avatar.ink { background: var(--ink); color: var(--paper); }
.avatar.lg { width: 48px; height: 48px; border-radius: 24px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.avatar.pending { background: var(--white); border: 1px dashed var(--on-dark-2); color: var(--muted); }
.avatars { display: flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--white); }
.avatars .avatar + .avatar { margin-left: -4px; }

/* Zaman akışı */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.day-sep { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.day-sep::before, .day-sep::after { content: ''; flex-grow: 1; height: 1px; background: var(--line); }
.tl-card { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.tl-card.is-unread { border: 1.5px solid var(--ink); }
.tl-card h3 { font-size: 17px; font-weight: 500; }
.tl-card.is-unread h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.tl-card p { font-size: 15px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.tl-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* Tablo */
.table-card { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 14px 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tr.group td { background: var(--paper-3); font-family: var(--font-display); font-weight: 700; padding-top: 8px; padding-bottom: 8px; }
.table tbody tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }
.bar { display: inline-block; width: 36px; height: 5px; border-radius: 3px; background: var(--paper-2); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.bar > span { display: block; height: 5px; background: var(--ink); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Kod ve anahtar */
.code { background: #1c2230; color: #e6e7ea; border-radius: var(--radius-item); padding: 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; white-space: pre; overflow-x: auto; }
.code .hl { color: #ff8a5c; }
.secret { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-item); background: var(--signal-tint); border: 1px solid var(--signal-ring); }
.secret code { flex-grow: 1; font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.key-tile { width: 36px; height: 36px; border-radius: var(--radius-control); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Bildirim şeridi */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-item); background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.flash.ok::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--success); flex-shrink: 0; }
.flash.err { border-color: var(--error); color: var(--error); }
.live-pill { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; text-decoration: none; z-index: 40; border: 0; cursor: pointer; }
.live-pill.is-visible { display: inline-flex; }
.live-pill::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--signal); }

/* Pencere */
dialog.modal { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 28px; background: var(--white); color: var(--ink); }
dialog.modal::backdrop { background: rgba(20, 22, 26, .45); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; }

/* Anahtar düğmesi */
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--line-strong); transition: background .15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--white); transition: left .15s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { left: 23px; background: var(--paper); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.day-pick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.day-pick label { position: relative; }
.day-pick input { position: absolute; opacity: 0; }
.day-pick span { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); cursor: pointer; }
.day-pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.day-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.option-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.option-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option span { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-item); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.option input:checked + span { border: 1.5px solid var(--ink); background: var(--paper); }
.option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-item); background: var(--paper-2); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.seg input:checked + span { background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 600; color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Misafir sayfaları */
.guest { display: flex; min-height: 100vh; }
.guest-brand { width: 52%; background: var(--ink); color: var(--paper); padding: 56px 72px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.guest-brand h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5.2vw, 76px); line-height: .98; letter-spacing: -.045em; }
.guest-brand p { font-size: 18px; line-height: 1.55; color: var(--on-dark); max-width: 520px; margin-top: 24px; }
.guest-form { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.guest-form form, .guest-form .panel { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo span { font-family: var(--font-display); font-weight: 700; letter-spacing: -.045em; }
.signal { color: var(--signal); }

/* İlk kurulum */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; gap: 14px; padding: 12px 0; }
.step.is-current { padding: 12px 14px; margin: 0 -14px; border-radius: var(--radius-item); background: var(--white); border: 1px solid var(--line); }
.step-dot { width: 32px; height: 32px; flex-shrink: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; }
.step-dot.done { background: var(--ink); color: var(--paper); }
.step-dot.now { box-shadow: inset 0 0 0 2px var(--ink); position: relative; }
.step-dot.todo { border: 1.5px solid var(--line-strong); color: var(--muted); }
.waiting { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1px dashed var(--line-strong); }
.pulse { position: relative; width: 14px; height: 14px; border-radius: 7px; background: var(--signal); }
.pulse::before { content: ''; position: absolute; inset: -6px; border-radius: 13px; background: var(--signal-ring); z-index: -1; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } }

.pagination { display: flex; gap: 8px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty strong { font-family: var(--font-display); font-size: 22px; color: var(--ink); }

@media (max-width: 1180px) {
  .grid-side, .grid-side.wide, .grid-side.narrow, .grid-side.steps-layout, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
}
/* Mobil: üst çubuk, soldan açılan çekmece, alt gezinme */
.mobile-bar, .bottom-nav, .nav-backdrop, .mobile-close, .mobile-back { display: none; }

@media (max-width: 860px) {
  body { font-size: 15px; }
  .shell { display: block; min-height: 100vh; }

  .mobile-bar { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 12px 0 6px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .mobile-menu { width: 44px; height: 44px; color: var(--ink); }
  .mobile-ws { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 6px 0 2px; border: 0; background: transparent; cursor: pointer; }
  .mobile-ws-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .rail, .sidebar { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(20, 22, 26, .45); z-index: 50; }
  body.nav-open .rail { display: flex; position: fixed; left: 0; top: 0; bottom: 0; height: 100%; z-index: 51; }
  body.nav-open .sidebar { display: flex; position: fixed; left: 72px; top: 0; bottom: 0; height: 100%; width: min(300px, calc(100vw - 72px)); background: var(--paper); z-index: 51; padding: 16px 12px 24px; }
  .sidebar .mobile-close { display: inline-flex; align-self: flex-end; width: 40px; height: 40px; margin-bottom: 4px; }

  .main { padding: 12px 12px calc(88px + env(safe-area-inset-bottom)); gap: 12px; }
  .page-head { gap: 10px; }
  .page-title { font-size: 22px; }
  .page-sub { display: none; }
  .toolbar { gap: 8px; min-height: 40px; }
  .toolbar-title { display: none; }
  .toolbar .chips { margin: 0; padding: 0; }
  .toolbar-end .btn { min-height: 36px; padding: 0 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
  .filters .select { flex: 0 0 auto !important; min-height: 36px; padding: 0 10px; }
  .show-sm-inline { display: inline; }
  .hide-sm { display: none; }
  .actions { width: 100%; }
  .actions .input-icon { min-width: 0 !important; width: 100%; }
  .actions .select { flex: 1 1 140px; }
  .channel-head { gap: 10px; }
  .channel-head .page-title { font-size: 20px !important; }
  .tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: 3px; }
  .tab { white-space: nowrap; min-height: 32px; padding: 0 12px; font-size: 13px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px; scrollbar-width: none; gap: 6px; }
  .chip { white-space: nowrap; min-height: 34px; padding: 0 12px; font-size: 13px; }

  .card.pad { padding: 16px; }
  .card.list { padding: 4px; border-radius: 14px; }
  .day-head { padding: 10px 12px 4px; font-size: 14px; }
  .event-row { padding: 10px; gap: 10px; }
  .event-row .ch-tile { width: 36px; height: 36px; border-radius: 10px; }
  .event-title.is-unread { font-size: 16px; }
  .event-title { font-size: 15px; }
  .event-body { font-size: 13px; }
  .event-row > .badge { display: none; }
  .event-body { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .grid-side.has-selection > .detail { order: -1; }
  .grid-side.wide:not(.has-selection) > .detail { display: none; }
  .grid-side.has-selection > .card.list { display: none; }
  .channel-aside { display: none; }
  .detail-hero { padding: 20px; }
  .detail-hero h2 { font-size: 26px; }
  .detail-body { padding: 20px; }
  .mobile-back { display: inline-flex !important; }

  .tl-card { padding: 16px; }
  .table th, .table td { padding: 10px 8px; }
  .table th:first-child, .table td:first-child { padding-left: 14px; }
  .table th:last-child, .table td:last-child { padding-right: 14px; }
  .table .hide-sm { display: none; }
  .table-foot { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .code { font-size: 12px; padding: 14px; }
  .secret { flex-wrap: wrap; }
  .row { padding: 12px; flex-wrap: wrap; }
  dialog.modal { padding: 20px; }

  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 12px; }
  .bottom-nav a.is-active { color: var(--ink); font-weight: 600; }
  .bn-icon { position: relative; width: 60px; height: 32px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
  .bottom-nav a.is-active .bn-icon { background: var(--ink); color: var(--paper); }
  .bn-count { position: absolute; top: -4px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--signal); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--white); }
  .live-pill { bottom: calc(84px + env(safe-area-inset-bottom)); }

  .guest { flex-direction: column; }
  .guest-brand { width: 100%; padding: 32px 24px 36px; gap: 28px; }
  .guest-brand h1 { font-size: 40px; }
  .guest-brand p { font-size: 16px; margin-top: 14px; }
  .guest-form { padding: 28px 20px 40px; align-items: flex-start; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .table-wrap { overflow-x: auto; }
  .steps { display: none; }
}
