/* TemizStok yönetim paneli – bağımlılıksız, sade, mobil uyumlu */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #64748b;
  --line: #e3e8ee;
  --line-strong: #cbd4de;
  --primary: #0f9d8f;
  --primary-dark: #0b7d72;
  --primary-soft: #e3f5f2;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --sidebar: #142033;
  --sidebar-text: #c7d2e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sidebar-w: 240px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 650; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #eef2f6; padding: .1em .35em; border-radius: 4px; }
pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: #0f172a; color: #e2e8f0; padding: .9rem 1rem; border-radius: var(--radius); overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.nowrap { white-space: nowrap; }
.flex { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.right { margin-left: auto; }
.inline-form { display: inline; margin: 0; }

/* ---- Yerleşim ---- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .75rem; }
.brand-link { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-link:hover { text-decoration: none; }
.brand-link small { display: block; font-weight: 400; font-size: .72rem; color: var(--sidebar-text); margin-top: .15rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem; flex: none;
}
.nav { display: flex; flex-direction: column; padding: .25rem .6rem; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: 8px; color: var(--sidebar-text); font-weight: 500;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item svg { flex: none; opacity: .9; }
.nav-item .dot { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding: .6rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-user { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; }
.sidebar-user .muted { color: var(--sidebar-text); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-weight: 700; font-size: .85rem;
}
.nav-close { display: none; color: #fff; }
.backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 40; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-size: 1.15rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.nav-open { display: none; }
.content { padding: 1.5rem; max-width: 1200px; width: 100%; flex: 1; }
.page-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h2 { margin-bottom: .2rem; }
.page-head p { margin: 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---- Kart ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.card-head h3 { margin: 0; }
.card.compact { padding: .85rem 1rem; }
.grid { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.grid .card { margin-bottom: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: .2rem; color: inherit; }
.stat:hover { text-decoration: none; border-color: var(--line-strong); }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.stat-value-sm { font-size: 1.15rem; }
.details summary { cursor: pointer; font-weight: 600; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .75rem 0 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item .truncate { flex: 1; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.quick { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: #fafbfc; }
.quick:hover { text-decoration: none; border-color: var(--primary); background: var(--primary-soft); }

/* ---- Düğmeler ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .95rem; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: #f1f4f7; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline-danger { color: var(--danger); border-color: #f5b5b5; background: #fff; }
.btn-outline-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #f1f4f7; }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.3rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-pulse { box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.icon-btn { background: transparent; border: 0; padding: .35rem; border-radius: 8px; cursor: pointer; color: inherit; display: inline-flex; font-size: 1.4rem; line-height: 1; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.btn-group { display: inline-flex; gap: .4rem; flex-wrap: wrap; }

/* ---- Rozet, nokta ---- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.4; background: #eef2f6; color: #334155; white-space: nowrap; vertical-align: middle;
}
.badge-success { background: var(--success-soft); color: #15803d; }
.badge-danger { background: var(--danger-soft); color: #b91c1c; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-muted { background: #eef2f6; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot-light { background: #fff; }
.dot-success { background: var(--success); }
.dot-danger { background: var(--danger); }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .12); vertical-align: middle; background: #999; }
.swatch-sm { width: 14px; height: 14px; margin-right: 6px; }
.logo-img { max-height: 80px; }
.build-log { white-space: pre-wrap; overflow: auto; max-height: 420px; margin: .75rem 0 0; }

/* ---- Uyarı kutuları ---- */
.alert {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem;
  background: var(--info-soft); border-color: #bfdbfe; color: #1e3a8a;
}
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.alert-info { background: var(--info-soft); border-color: #bfdbfe; color: #1e3a8a; }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #14532d; }
.alert-warn, .alert-warning { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #7f1d1d; }
.alert-slim { padding: .5rem .85rem; font-size: .9rem; }
.alert-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .7; padding: 0 .2rem; }
.alert-close:hover { opacity: 1; }
.alert.fade { opacity: 0; transition: opacity .4s; }

/* ---- Tablo ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .6rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfc; white-space: nowrap; }
.table tbody tr:hover { background: #f8fafc; }
.table-compact th, .table-compact td { padding: .45rem .5rem; }
.table .actions, .table td.actions { white-space: nowrap; text-align: right; }
.table .thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; display: block; }
.table tr.passive td { opacity: .55; }
.table .drag-handle { cursor: grab; color: var(--muted); }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---- Form ---- */
.form { display: block; }
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.field .hint, .hint { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.field.required label::after { content: " *"; color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], input[type="search"], input[type="color"],
select, textarea {
  width: 100%; padding: .5rem .7rem; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; transition: border-color .12s, box-shadow .12s;
}
input[type="color"] { padding: .15rem; height: 38px; width: 60px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.code, textarea.html { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; min-height: 220px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 157, 143, .18); }
input[disabled], select[disabled], textarea[disabled] { background: #f1f4f7; color: var(--muted); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); vertical-align: middle; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.check input { margin: 0; }
input[type="file"] { font: inherit; font-size: .9rem; }
.input-group { display: flex; align-items: stretch; }
.input-group > input { border-radius: 8px 0 0 8px; }
.input-group > .addon { display: flex; align-items: center; padding: 0 .7rem; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 8px 8px 0; background: #f1f4f7; color: var(--muted); font-size: .9rem; }
.input-group > input + .addon { border-left: 0; }
.input-group > .addon:first-child { border-left: 1px solid var(--line-strong); border-right: 0; border-radius: 8px 0 0 8px; }
.input-group > .addon:first-child + input { border-radius: 0 8px 8px 0; }
.input-group > .btn { border-radius: 0 8px 8px 0; border-left: 0; flex: none; }
/* Yönerge kartları (Ayarlar → SEO ve bağlantılar) */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.guide-card { border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; background: #fafbfc; font-size: .84rem; display: flex; flex-direction: column; gap: .3rem; }
.guide-card h4 { margin: 0; font-size: .88rem; }
.guide-card p { margin: 0; color: var(--muted); }
.guide-card code { overflow-wrap: anywhere; }
.guide-card a { margin-top: auto; font-weight: 600; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.actions .right { margin-left: auto; }
.form-foot { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; position: sticky; bottom: 0; background: var(--surface); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem 0; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 .4rem; font-size: .9rem; }
.img-preview { width: 160px; height: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
.img-preview-sm { width: 80px; height: 80px; }
.media { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.toolbar { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .35rem; }
.toolbar .btn { padding: .2rem .5rem; font-size: .78rem; }

/* ---- SSS satırları / tekrarlanan satırlar ---- */
.faq-list, .repeat-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.faq-row, .repeat-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; }
.faq-row .field, .repeat-row .field { margin-bottom: .5rem; grid-column: 1; }
.faq-row .faq-remove, .repeat-row .repeat-remove { grid-column: 2; grid-row: 1; }
.faq-row textarea { min-height: 80px; }

/* ---- Sekmeler ---- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tab, .tabs a, .tabs button {
  padding: .55rem .9rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tab:hover, .tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tab.active, .tabs .active, .tab[aria-selected="true"] { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-panel[hidden] { display: none; }

/* ---- Durum / yayın ---- */
.status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.status .spinner { width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.log { font-size: .85rem; }
.log-line { display: grid; grid-template-columns: auto auto 1fr; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.log-line:first-child { border-top: 0; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 40%; background: var(--primary); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* ---- Giriş / kurulum ---- */
body.auth { background: linear-gradient(160deg, #142033 0%, #1d3a4a 60%, #0f9d8f 140%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 420px; padding: 1.75rem 1.75rem 1.5rem; }
.auth-card h1 { font-size: 1.35rem; margin-top: .25rem; }
.auth-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem; line-height: 1.2; }
.auth-flash { width: 100%; max-width: 420px; }

/* ---- Yardımcılar ---- */
.hide-sm { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60; background: #0f172a; color: #fff;
  padding: .7rem 1rem; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: .9rem; max-width: min(90vw, 360px);
}

/* ---- Mobil ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50; height: 100vh;
    transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0, 0, 0, .3);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-close { display: inline-flex; }
  .nav-open { display: inline-flex; }
  .topbar { padding: .55rem .9rem; }
  .content { padding: 1rem .9rem; }
  .page-foot { padding: .75rem .9rem; }
  .hide-sm { display: none; }
  .grid-2, .grid-3, .grid-4, .row, .row-3 { grid-template-columns: minmax(0, 1fr); }
  .stat-value { font-size: 1.5rem; }
  .card { padding: 1rem; }
  .faq-row, .repeat-row { grid-template-columns: 1fr; }
  .faq-row .faq-remove, .repeat-row .repeat-remove { grid-column: 1; grid-row: auto; justify-self: end; }
  .form-foot { position: static; }
  .table th, .table td { padding: .5rem .45rem; }
  .btn-lg { width: 100%; }
}
@media (max-width: 420px) {
  .topbar-actions .btn { padding: .45rem .6rem; font-size: .82rem; }
  .page-actions .btn { flex: 1; }
}
@media print {
  .sidebar, .topbar, .page-foot { display: none !important; }
  .content { padding: 0; }
}

/* ---- Diğer görünümlerin kullandığı takma sınıflar ---- */
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.form-row .hint, .form-row small.muted { display: block; margin-top: .3rem; }
.form-row-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1rem; }
.form-row-inline > div { min-width: 0; }
.form-row-inline > label { margin: 0; align-self: center; }
.form-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.form-actions .right { margin-left: auto; }
.inline { display: inline; margin: 0; }
.inline .btn { vertical-align: middle; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; background: #eef2f6; color: #334155; white-space: nowrap; vertical-align: middle; }
.tag-success { background: var(--success-soft); color: #15803d; }
.tag-warning, .tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: #b91c1c; }
.tag-info { background: var(--info-soft); color: var(--info); }
.tag-primary { background: var(--primary-soft); color: var(--primary-dark); }
.tag-muted { background: #eef2f6; color: var(--muted); }
.btn-link { border-color: transparent; background: transparent; color: var(--primary-dark); font-weight: 600; }
.btn-link:hover { background: var(--primary-soft); text-decoration: none; }
.grid-2:has(> .side) { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
.grid-2 > .side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.side > .card { margin-bottom: 0; }
.card-danger { border-color: #fecaca; background: #fff7f7; }
.card-danger h2, .card-danger h3 { color: #991b1b; }
.card h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.thumb-empty { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 6px; border: 1px dashed var(--line-strong); color: var(--muted); background: #fafbfc; }
.cell-img { width: 56px; }
.order-cell { white-space: nowrap; }
.order-cell .inline { margin-left: .35rem; }
.filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; min-width: 140px; }
.sub-list { display: flex; flex-direction: column; gap: .5rem; }
.sub-item { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; background: #fafbfc; }
.sub-item summary { cursor: pointer; font-weight: 600; }
.sub-item[open] { background: #fff; }
.sub-item .form-row:last-of-type { margin-bottom: .5rem; }
div.img-preview { width: auto; height: auto; min-height: 96px; padding: .75rem; display: flex; align-items: center; justify-content: center; background: #fff; }
div.img-preview img { max-height: 160px; width: auto; }
.logo-preview { background: repeating-conic-gradient(#f1f4f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.tabs .is-active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.faq-rows { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.faq-rows .faq-row { display: block; margin-bottom: 0; }
.faq-row-blank { border-style: dashed; background: #fff; }
.faq-row .form-actions { margin-top: .25rem; justify-content: flex-end; }
@media (max-width: 900px) {
  .grid-2:has(> .side) { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Blog ---- */
.check-list { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.check-list .check { font-weight: 500; }
.md-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: #fff; margin-top: .5rem; max-height: 520px; overflow: auto; line-height: 1.6; }
.md-preview h2 { font-size: 1.15rem; margin-top: 1.1rem; }
.md-preview h3 { font-size: 1rem; margin-top: .9rem; }
.md-preview table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .5rem 0 1rem; }
.md-preview th, .md-preview td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; }
.md-preview blockquote { margin: .75rem 0; padding: .25rem .9rem; border-left: 3px solid var(--primary); color: var(--muted); }
.md-preview img { max-width: 100%; height: auto; }
.md-preview .table-wrap { overflow-x: auto; }
.cover-preview-box img { max-height: 180px; width: auto; max-width: 100%; }
select[multiple] { min-height: 180px; }
#blog-form textarea.code { min-height: 420px; }

/* Marka işareti: site logosunun SVG sürümü (harf yerine) */
.brand-mark-logo { background: none !important; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark-logo svg { display: block; border-radius: 8px; }
