/* Envanter uygulaması: kabuk, liste satırları, sekme çubuğu, takvim, sohbet, çubuk grafikler, diyaloglar. */

body.app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.app-top, .app-view { max-width: 640px; margin: 0 auto; display: block; }
.app-top { position: sticky; top: 0; z-index: 4; padding: 6px 0 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.app-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-title-row h1 { font-size: 1.25rem; overflow-wrap: anywhere; }
.app-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.login-card { max-width: 420px; margin: 8vh auto 0; }
.login-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.muted { color: var(--muted); }

.btn.small { min-height: 40px; padding: 6px 12px; font-size: 0.9rem; }
.btn.icon { min-width: 44px; min-height: 44px; padding: 0; text-align: center; font-size: 1.3rem; }
.btn.block + .btn.block, .btn.block + a.btn.block { margin-top: 8px; }
a.btn.block { display: flex; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.whatsapp { background: #128c4a; border-color: #128c4a; color: #fff; }
.link-button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline; padding: 10px 0 0; min-height: 44px; cursor: pointer; }

.search { margin-bottom: 10px; }
.chips { margin-bottom: 6px; }
.app-view .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.app-view .chips::-webkit-scrollbar { display: none; }
.app-view .chip { flex: 0 0 auto; white-space: nowrap; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chip:focus-visible, .row:focus-visible, .star:focus-visible, .tab:focus-visible, .calendar-day:focus-visible, .bar-line:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.group { margin-bottom: 18px; }
.group-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 0 2px 8px; }
.empty { color: var(--muted); padding: 14px 4px; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 4px 2px 8px; }
.accent { color: var(--accent); font-weight: 700; }

.row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-bottom: 8px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.row.static { cursor: default; }
a.row:hover, button.row:hover { background: var(--card-hover); }
a.row:active, button.row:active { background: var(--card-active); transform: scale(0.995); }
.row-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row-title { font-weight: 700; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.row-trailing { color: var(--muted); font-weight: 700; }
.row-with-action { display: flex; gap: 8px; align-items: stretch; }
.row-with-action .row { flex: 1; min-width: 0; }
.star { min-width: 48px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.star.on { color: #e0a100; }
.app-actions .star { min-height: 40px; margin: 0; }

.kv { margin: 8px 0 0; display: grid; grid-template-columns: minmax(96px, 38%) 1fr; }
.kv dt, .kv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv dt { color: var(--muted); font-size: 0.85rem; align-self: center; }
.kv dd { font-weight: 600; }
.item-card { margin-bottom: 10px; display: grid; gap: 4px; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.leave-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.leave-line .actions { margin-top: 0; }

.log-card { display: block; margin-bottom: 10px; color: var(--text); text-decoration: none; }
.log-line { font-size: 0.93rem; margin-top: 4px; overflow-wrap: anywhere; }
.log-meta { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }

.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); }
.upcoming { display: block; color: var(--text); text-decoration: none; margin-bottom: 12px; border-color: var(--warn-line); background: var(--warn-bg); }
.upcoming-line { font-size: 0.92rem; margin-top: 6px; padding-left: 10px; border-left: 4px solid var(--accent); }
.upcoming-line.urgent, .day-item.urgent { border-left-color: var(--err); }
.day-item { padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--card); border-left: 4px solid var(--line); font-size: 0.95rem; }
.day-item.kind-ups { border-left-color: #2f7de1; }
.day-item.kind-generator { border-left-color: #e0a100; }

.day-item.soon { background: var(--warn-bg); }
.day-item.urgent { background: var(--err-bg); }

.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; font-size: 0.92rem; color: var(--muted); }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }

/* Takvim */
.calendar { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-weekday { text-align: center; font-size: 0.72rem; color: var(--muted); padding: 4px 0; }
.calendar-day { position: relative; min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer; padding: 4px 0 12px; }
.calendar-day:hover { background: var(--card-hover); }
.calendar-day.today { border-color: var(--muted); }
.calendar-day.selected { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.calendar-dots { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.ups { background: #2f7de1; }
.dot.generator { background: #e0a100; }

.calendar-day.selected .dot { outline: 1px solid var(--accent-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 0.82rem; margin: 0 2px 14px; }
.legend .dot { margin-right: -8px; }
.pick-summary { font-weight: 600; margin: 4px 2px; }
.year-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.stat-label { color: var(--muted); font-size: 0.8rem; }
.stat-value { font-size: 1.35rem; }
.bars { display: grid; gap: 4px; }
.bar-line { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 48px; gap: 8px; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; font-size: 0.9rem; border-radius: 8px; }
a.bar-line:hover { background: var(--card-hover); }
.bar-name { overflow-wrap: anywhere; }
.bar-track { background: var(--line); border-radius: 99px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar-count { text-align: right; }
.kv-row { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.kv-row.head { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.more-footer { display: grid; gap: 4px; margin-top: 18px; padding: 0 4px; }

/* Sohbet (kaldırıldı) */
.chat-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 76px; }
.chat-day { align-self: center; color: var(--muted); font-size: 0.78rem; margin: 6px 0 2px; }
.bubble { align-self: flex-start; max-width: 82%; background: var(--surface); border-radius: 18px; padding: 8px 12px; display: grid; gap: 2px; }
.bubble.own { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bubble-name { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-time { font-size: 0.7rem; opacity: 0.7; justify-self: end; }
.chat-composer {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end;
  padding: 8px max(12px, env(safe-area-inset-left)); background: var(--bg); border-top: 1px solid var(--line);
}
.chat-input { flex: 1; min-height: 46px; max-height: 120px; resize: none; border-radius: 22px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 1.02rem; padding: 11px 14px; }
.chat-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.chat-send { min-width: 48px; min-height: 46px; border-radius: 50%; padding: 0; text-align: center; }

/* Sekme çubuğu */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: var(--card); border-top: 1px solid var(--line);
  padding: 4px max(4px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)); z-index: 5;
}
.tab { flex: 1; max-width: 120px; min-height: 56px; display: grid; justify-items: center; align-content: center; gap: 1px; color: var(--muted); text-decoration: none; border-radius: 10px; }
.tab-icon { font-size: 1.25rem; line-height: 1.1; }
.tab-label { font-size: 0.72rem; font-weight: 600; }
.tab.active { color: var(--accent); }

/* Diyalog ve bildirim */
.dialog { color: var(--text); width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; }
.dialog::backdrop { background: rgba(22, 36, 58, 0.45); }
.dialog h2 { font-size: 1.1rem; margin-bottom: 8px; }
.dialog-message { white-space: pre-wrap; color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.dialog-input { width: 100%; min-height: 50px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 1.05rem; }
.dialog-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.dialog .actions { justify-content: flex-end; }
.dialog .actions .btn { flex: 1 1 110px; text-align: center; }
.field textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 1.05rem; resize: vertical; }
.field input[type="date"] { color-scheme: light; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 20;
  max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--ok-text); border: 1px solid var(--ok-text); color: #fff; font-size: 0.95rem; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--err-text); border-color: var(--err-text); color: #fff; }

@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Rozetler */
.badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; background: var(--chip-bg); color: var(--muted); white-space: nowrap; }
.badge.warn, .badge.urgent { background: var(--err-bg); color: var(--err-text); }
.badge.soon { background: var(--warn-bg); color: var(--warn-text); }
.badge.later { background: var(--ok-bg); color: var(--ok-text); }
.badge.past { background: var(--chip-bg); color: var(--muted); text-decoration: line-through; }
.kv dd .badge { font-size: 0.85rem; padding: 4px 10px; }

/* Yapışkan kaydet çubuğu */
.sticky-save {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 8px max(12px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.sticky-save .hint { margin: 0; flex: 1; }
.sticky-save .btn { flex: 0 0 auto; width: auto; min-width: 140px; }

body.has-sticky { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.subtitle { margin: -4px 2px 12px; }
.toast { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.toast-action { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.toast.show { pointer-events: auto; }
.more-footer .btn { margin-bottom: 10px; }

/* Arama satırı ve barkod okuyucu */
.search-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.search-row .search { margin-bottom: 0; flex: 1; min-width: 0; }
.scan-button { flex: 0 0 auto; }

.app-nav { display: flex; align-items: center; gap: 16px; }
.home-link { color: var(--muted); }
.tab-icon { font-size: 1.25rem; }
.page-home { display: flex; justify-content: center; margin: 22px auto 0; max-width: 320px; }

/* Filtreler ve adım adım form */
.filter-chip { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.filter-chip.active { color: var(--accent-ink); }
.active-filters { margin-top: -2px; }
.chip.removable { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sheet h3.group-title { margin-top: 14px; }
.sheet-actions { position: sticky; bottom: -14px; background: var(--card); padding: 10px 0 4px; margin-top: 6px; }
.step-progress { font-weight: 700; margin: 0 2px 6px; }
.app-view .progress { margin: 0 0 16px; max-width: none; }
.wizard-actions .btn { flex: 1 1 120px; text-align: center; min-height: 54px; }

.segmented { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--surface); }
.segment { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.segment.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(22, 36, 58, 0.15); }
.segment:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.chip-select { flex: 0 0 auto; min-height: 40px; max-width: 190px; padding: 6px 28px 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 0.9rem; }
.chip-select.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.chip-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Özet: sunum görselleri */
.dashboard-toolbar { margin: 0 0 14px; }
.dashboard-toolbar .btn { flex: 1 1 200px; text-align: center; }
.chart-card { padding: 10px; margin-bottom: 14px; }
.chart-figure { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.chart-svg { display: block; width: 100%; height: auto; }
.chart-actions { margin-top: 8px; }
.chart-table { margin-top: 8px; font-size: 0.92rem; }
.chart-table summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.chart-table table { width: 100%; border-collapse: collapse; }
.chart-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.chart-table td.num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { body.app:has(.dashboard) .app-view, body.app:has(.dashboard) .app-top { max-width: 1100px; } }

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.app { background: #fff; padding: 0; }
  .app-top, .tabbar, .toast, .dashboard-toolbar, .chart-actions, .chart-table, .no-print, .dashboard > .hint { display: none !important; }
  .app-view { max-width: none; }
  .chart-card { border: 0; box-shadow: none; padding: 0; margin: 0; break-after: page; break-inside: avoid; }
  .chart-figure { border: 0; }
}

.btn.small.primary { border-color: var(--accent); }
.dialog .actions .btn { flex: 1 1 130px; }

.table-link { background: none; border: 0; padding: 6px 0; min-height: 40px; color: var(--accent); font: inherit; font-weight: 600; text-align: left; text-decoration: underline; cursor: pointer; }
.table-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-grid .field { margin-bottom: 8px; }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + .file-label { outline: 3px solid var(--accent); outline-offset: 2px; }
.file-label { display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; margin: 8px 0 14px; min-height: 54px; }
.app-view .stats { margin-top: 10px; }

/* ---------- Yönetim ekranları: kalite raporu, akü planı, iş takibi ---------- */
.quality-group { margin-bottom: 8px; padding: 0; }
.quality-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.quality-group summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.quality-group .num { font-variant-numeric: tabular-nums; color: var(--err-text); }
.quality-group .row { border-radius: 0; border-width: 1px 0 0; }
.quality-group .hint { padding: 8px 14px; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-scroll th, .table-scroll td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table-scroll th { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.table-scroll .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll .total-row td { font-weight: 700; border-top: 2px solid var(--text); border-bottom: 0; }
.task-card { margin-bottom: 8px; display: grid; gap: 6px; }
.task-card.closed { opacity: 0.85; }
.task-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-branch { color: var(--accent); font-weight: 600; text-decoration: none; }
.task-branch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.task-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge.task-battery_replace, .badge.task-ups_fault, .badge.task-generator_fault { background: var(--warn-bg); color: var(--warn-text); }
.dialog label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 6px 0 10px; }
.dialog label.check input { width: 22px; height: 22px; }
.dialog textarea, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); }
@media print { .quality-group, .table-scroll { break-inside: avoid; } }

/* ---------- Listeden seçim ---------- */
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-row input { flex: 1 1 auto; min-width: 0; }
.picker-button { flex: 0 0 56px; min-height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; }
.picker .picker-list { max-height: min(52vh, 420px); overflow-y: auto; margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 12px; }
.picker-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: var(--card-hover); }
.picker-item:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.picker-item.current { background: var(--accent-soft); font-weight: 700; }
.picker-label { overflow-wrap: anywhere; }
.picker-count { flex: 0 0 auto; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.picker .empty { padding: 14px; }

/* ---------- Liste satırı: kod + ad ayrı, yıldız kartın içinde ---------- */
.row-with-action { position: relative; }
.row-with-action .row { flex: 1; min-width: 0; padding-right: 50px; }
.row-with-action .star {
  position: absolute; top: 6px; right: 6px;
  width: 42px; height: 42px; min-width: 0; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 10px; line-height: 1;
}
.row-with-action .star:hover { background: var(--surface); }

.branch-row { align-items: flex-start; }
.branch-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.branch-code {
  flex: 0 0 auto; min-width: 46px;
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.02em; color: var(--accent);
}
.branch-head .row-title { font-size: 0.97rem; line-height: 1.25; overflow-wrap: anywhere; }
.branch-row .row-sub { font-size: 0.85rem; line-height: 1.35; }
.branch-meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-width: 0; }
/* flex-basis 0: özet kendi içerik genişliğini talep etmezse rozet aynı satırda kalır, metin gerekirse kısalır. */
.branch-meta .row-sub { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges.inline { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 5px; flex: 0 1 auto; white-space: nowrap; }
.badges.inline .badge { font-size: 0.68rem; padding: 2px 7px; }
.badge.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }

/* ---------- Sonuç sayısı + sıralama ---------- */
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 8px; }
.count-row .count { margin: 0; }
.sort-select {
  flex: 0 0 auto; max-width: 62%; min-height: 36px; padding: 5px 26px 5px 12px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font: inherit; font-size: 0.84rem;
}
.sort-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.subtle { color: var(--muted); font-weight: 600; background: transparent; }
.btn.subtle:hover { background: var(--card-hover); color: var(--text); }
