/* Arma Portal — İhale radarı, Potansiyel müşteriler and İhale kazananları pages. Own stylesheet (the
   classic tender page at /klasik keeps its style.css).

   References (see reports/Potansiyel müşteri veri kaynakları.md for the research): content over chrome
   (Linear), colour only for meaning (Primer, Atlassian lozenges), one Filter button + removable chips
   (Linear, Attio, Stripe), saved views as tabs (Shopify index filters), non-modal side panel with ↑/↓
   (Notion side peek, Linear peek), header + 5 tabs record view (HubSpot, Attio), Vercel Geist neutrals,
   Carbon "productive" motion. Weights 400/500/600, sentence-case labels, horizontal hairlines only. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --hover: rgba(0, 0, 0, 0.04);
  --pressed: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: #c9c9c9;
  --text: #171717;
  --text-2: #4d4d4d;
  --text-3: #737373;
  --accent: #006bff;
  --accent-hover: #005ff2;
  --accent-text: #005ff2;
  --on-accent: #ffffff;
  --selected: #f0f7ff;
  --neutral-bg: #f2f2f2; --neutral-fg: #4d4d4d;
  --blue-bg: #f0f7ff; --blue-fg: #005ff2;
  --green-bg: #ecfdec; --green-fg: #107d32;
  --amber-bg: #fff6de; --amber-fg: #aa4d00;
  --red-bg: #ffeeef; --red-fg: #d8001b;
  --dot-gray: #8f8f8f; --dot-blue: #006bff; --dot-green: #28a948; --dot-amber: #ffae00; --dot-red: #fc0035;
  --float-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --overlay: rgba(0, 0, 0, 0.4);
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --ease: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-in: cubic-bezier(0, 0, 0.38, 0.9);
  --ease-out: cubic-bezier(0.2, 0, 1, 0.9);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0a; --bg-subtle: #111111; --surface: #161616; --hover: rgba(255, 255, 255, 0.06); --pressed: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.1); --line-strong: #454545; --text: #ededed; --text-2: #a1a1a1; --text-3: #8f8f8f;
    --accent: #006efe; --accent-hover: #47a8ff; --accent-text: #47a8ff; --on-accent: #ffffff; --selected: #06193a;
    --neutral-bg: #1f1f1f; --neutral-fg: #a1a1a1; --blue-bg: #06193a; --blue-fg: #47a8ff; --green-bg: #002608; --green-fg: #00ca50;
    --amber-bg: #2a1700; --amber-fg: #ff9300; --red-bg: #330a11; --red-fg: #ff565f;
    --float-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.5); --overlay: rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a; --bg-subtle: #111111; --surface: #161616; --hover: rgba(255, 255, 255, 0.06); --pressed: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1); --line-strong: #454545; --text: #ededed; --text-2: #a1a1a1; --text-3: #8f8f8f;
  --accent: #006efe; --accent-hover: #47a8ff; --accent-text: #47a8ff; --on-accent: #ffffff; --selected: #06193a;
  --neutral-bg: #1f1f1f; --neutral-fg: #a1a1a1; --blue-bg: #06193a; --blue-fg: #47a8ff; --green-bg: #002608; --green-fg: #00ca50;
  --amber-bg: #2a1700; --amber-fg: #ff9300; --red-bg: #330a11; --red-fg: #ff565f;
  --float-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.5); --overlay: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; font-weight: 600; }
p { font-weight: 400; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.small { font-size: 12px; line-height: 16px; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; justify-self: end; }
.ok { color: var(--green-fg); }
.err { color: var(--red-fg); }
.warn { color: var(--amber-fg); }
code { font: 12px var(--mono); padding: 1px 4px; border-radius: var(--r-xs); background: var(--neutral-bg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity !important; transition-duration: 100ms !important; transform: none !important; }
}

/* ── top bar ────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 30; height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
.nav a { padding: 4px 10px; border-radius: var(--r-sm); color: var(--text-3); font-weight: 500; font-size: 13px; line-height: 20px; transition: background 100ms var(--ease), color 100ms var(--ease); }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--pressed); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot-gray); flex: none; }
.pill.on::before { background: var(--dot-green); }
.pill.busy { color: var(--text); background: var(--neutral-bg); cursor: pointer; }
.pill.busy::before { background: var(--dot-blue); animation: pulse 1.2s var(--ease) infinite; }
.pill .bar { width: 48px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pill .bar span { display: block; height: 100%; background: var(--accent); transition: width 240ms var(--ease); }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ── controls ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background 100ms var(--ease), border-color 100ms var(--ease), color 100ms var(--ease);
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { background: var(--pressed); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn .badge { margin-left: 2px; }
.link { border: 0; background: none; padding: 0; color: var(--accent-text); cursor: pointer; font-size: inherit; font-weight: 500; }
.link:hover { text-decoration: underline; }
.link.quiet { color: var(--text-3); font-weight: 400; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.input, .select {
  height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text); font-size: 14px; min-width: 0; transition: border-color 100ms var(--ease), box-shadow 100ms var(--ease);
}
textarea.input { height: auto; padding: 8px 10px; resize: vertical; line-height: 20px; }
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.select { padding-right: 28px; appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 13px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; }
.search { position: relative; flex: 0 1 300px; min-width: 180px; }
.search .input { width: 100%; padding-left: 32px; padding-right: 32px; font-size: 13px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
kbd { font: 11px/16px var(--mono); padding: 0 5px; border: 1px solid var(--line); border-radius: var(--r-xs); color: var(--text-3); background: var(--bg-subtle); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
label.check input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; }

/* ── page ───────────────────────────────────────────────────────────────── */
.page { max-width: 1320px; margin: 0 auto; padding: 24px 24px 64px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.page-head h1 .count { font-size: 14px; font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kpi-line { margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--text-3); }
.kpi-line button { border: 0; background: none; padding: 0; font: inherit; color: var(--text-2); cursor: pointer; }
.kpi-line button b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-line button:hover { color: var(--accent-text); }
.kpi-line button:hover b { color: var(--accent-text); }
.kpi-line .sep { color: var(--line-strong); }
.actions { display: flex; align-items: center; gap: 8px; }
.notices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.notices:empty { display: none; }
.notice { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-md); font-size: 13px; background: var(--neutral-bg); color: var(--text-2); }
.notice > span { flex: 1; }
.notice.info { background: var(--blue-bg); color: var(--blue-fg); }
.notice.warn { background: var(--amber-bg); color: var(--amber-fg); }
.notice.error { background: var(--red-bg); color: var(--red-fg); }
.notice .btn { height: 26px; }

/* saved views */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 10px; border: 0; background: none; color: var(--text-3); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color 100ms var(--ease); }
.tab:hover { color: var(--text); }
.tab .n { font-size: 12px; font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 1px; background: var(--text); }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.toolbar .spacer { flex: 1; }
.result-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--text-2); overflow: hidden; max-width: 100%;
}
.chip .chip-edit { border: 0; background: none; height: 100%; padding: 0 4px 0 10px; cursor: pointer; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .chip-edit b { font-weight: 500; color: var(--text); }
.chip .chip-x { border: 0; background: none; width: 24px; height: 100%; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1; }
.chip .chip-x:hover, .chip .chip-edit:hover { background: var(--hover); color: var(--text); }
.chip.suggest { border-style: dashed; color: var(--text-3); }
.chip.suggest .chip-edit { padding-right: 10px; }

/* popovers */
.pop-wrap { position: relative; }
.popover {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: min(70vh, 520px); overflow: auto;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--float-shadow); padding: 4px;
  animation: pop-in 150ms var(--ease-in);
}
.popover.right { left: auto; right: 0; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border: 0; background: none; border-radius: var(--r-sm); font-size: 13px; color: var(--text); cursor: pointer; text-align: left; text-decoration: none; white-space: nowrap; }
.menu-item:hover, .menu-item.active { background: var(--hover); text-decoration: none; }
.menu-item .n { margin-left: auto; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-label { padding: 6px 8px 4px; font-size: 12px; color: var(--text-3); }
/* two-step filter: fields on the left, values on the right */
.filter-pop { display: grid; grid-template-columns: 200px 260px; padding: 0; overflow: hidden; max-height: min(70vh, 460px); }
.filter-pop .fields { border-right: 1px solid var(--line); padding: 4px; overflow: auto; }
.filter-pop .values { padding: 4px; overflow: auto; display: flex; flex-direction: column; }
.filter-pop .values .input { height: 28px; margin: 4px 4px 6px; font-size: 13px; }
.opt { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; color: var(--text); }
.opt:hover { background: var(--hover); }
.opt input { margin: 0; accent-color: var(--accent); flex: none; }
.opt .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.opt.zero { color: var(--text-3); }
.values .foot { margin-top: auto; display: flex; justify-content: space-between; padding: 8px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .filter-pop { grid-template-columns: minmax(0, 1fr); } .filter-pop .fields { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; } }

/* ── table ──────────────────────────────────────────────────────────────── */
.table { border-top: 1px solid var(--line); }
.thead, .tr { display: grid; grid-template-columns: var(--cols); align-items: center; column-gap: 12px; padding: 0 12px 0 16px; }
.thead { position: sticky; top: 48px; z-index: 5; height: 32px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text-3); }
.thead button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; white-space: nowrap; }
.thead button:hover, .thead button.on { color: var(--text); }
.tr { min-height: 40px; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--text-2); transition: background 100ms var(--ease); }
.tr:hover { background: var(--hover); }
.tr.active { background: var(--selected); }
.tr:focus-visible { outline-offset: -2px; }
.table.comfy .tr { min-height: 52px; }
.cell { min-width: 0; }
.name { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub2 { font-size: 12px; line-height: 16px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.table:not(.comfy) .sub2 { display: none; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-row { display: flex; justify-content: center; padding: 12px; }
.empty { padding: 64px 24px; text-align: center; color: var(--text-3); }
.empty h3 { font-size: 16px; line-height: 24px; color: var(--text); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.skel { height: 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; left: 16px; top: 14px; height: 12px; width: 40%; border-radius: 6px; background: var(--neutral-bg); }

/* score: number + 5-segment meter, neutral; only the top level uses the accent */
.score { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.score .v { min-width: 22px; text-align: right; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 4px; height: 12px; border-radius: 1px; background: var(--line); }
.meter i.on { background: var(--text-2); }
.score.top .meter i.on { background: var(--accent); }
.score.pre { color: var(--text-3); }
.score.pre .meter i.on { background: var(--line-strong); }
.score.big { font-size: 20px; font-weight: 600; gap: 10px; }
.score.big .meter i { width: 5px; height: 16px; }

/* status: dot + label (9 statuses, 5 tones) */
.status { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.status::before { content: ""; position: absolute; left: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--dot-gray); pointer-events: none; }
.status.blue::before { background: var(--dot-blue); }
.status.green::before { background: var(--dot-green); }
.status.amber::before { background: var(--dot-amber); }
.status.red::before { background: var(--dot-red); }
.status select { height: 26px; padding: 0 20px 0 20px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; font-size: 13px; color: var(--text); cursor: pointer; appearance: none; -webkit-appearance: none; max-width: 100%; text-overflow: ellipsis; transition: background 100ms var(--ease), border-color 100ms var(--ease); }
.status select:hover { background: var(--hover); border-color: var(--line); }

/* badges and tokens */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-xs); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral-fg); vertical-align: 1px; }
.badge.blue, .badge.accent { background: var(--blue-bg); color: var(--blue-fg); }
.badge.green { background: var(--green-bg); color: var(--green-fg); }
.badge.amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge.red { background: var(--red-bg); color: var(--red-fg); }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.tokens { display: flex; gap: 4px; overflow: hidden; }
.token { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--neutral-bg); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.signals { display: inline-flex; gap: 6px; color: var(--text-3); align-items: center; }
.signals svg { display: block; }
/* provenance: quiet but consistent */
.src { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
a.src:hover { color: var(--accent-text); text-decoration: none; }
.ai-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: var(--r-xs); font-size: 11px; font-weight: 500; color: var(--amber-fg); background: var(--amber-bg); white-space: nowrap; vertical-align: 1px; cursor: help; }
.missing { color: var(--text-3); }
.ref { font-size: 11px; font-weight: 500; padding: 0 3px; border-radius: 3px; color: var(--accent-text); background: var(--blue-bg); vertical-align: 1px; margin: 0 1px; }
a.ref:hover { text-decoration: none; }

/* ── side panel (non-modal) ─────────────────────────────────────────────── */
.sheet {
  position: fixed; top: 48px; right: 0; bottom: 0; z-index: 25; width: min(640px, 48vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--float-shadow);
  transform: translateX(24px); opacity: 0; transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
}
.sheet.open { transform: none; opacity: 1; transition: transform 220ms var(--ease-in), opacity 220ms var(--ease-in); }
@media (max-width: 1000px) { .sheet { width: 100vw; } }
.sheet-top { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-top .crumb { flex: 1; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-head { padding: 20px 24px 0; }
.sheet-head h2 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sheet-head .meta { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.props { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 14px; font-size: 13px; }
.prop { display: flex; flex-direction: column; gap: 2px; }
.prop .k { font-size: 12px; color: var(--text-3); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sheet .tabs { padding: 0 16px; margin-top: 16px; position: sticky; top: 0; z-index: 2; background: var(--surface); }
.slim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 24px 0; padding: 8px 12px; border-radius: var(--r-md); font-size: 13px; }
.slim.warn { background: var(--amber-bg); color: var(--amber-fg); }
.slim.info { background: var(--blue-bg); color: var(--blue-fg); }
.slim.good { background: var(--green-bg); color: var(--green-fg); }
.slim.bad { background: var(--red-bg); color: var(--red-fg); }
.slim ul { margin: 2px 0 0; padding-left: 16px; color: var(--text-2); }
.pane { padding: 20px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.sec h3 { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sec h3 .aside { margin-left: auto; font-weight: 400; }
.lead-text { font-size: 14px; line-height: 22px; color: var(--text); }
.next { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-subtle); border: 1px solid var(--line); }
.next .k { font-size: 12px; color: var(--text-3); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.kv dd ul { margin: 0; padding-left: 16px; }
@media (max-width: 640px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .kv dd { margin-bottom: 8px; } }
.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text); }
details.disclose > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::before { content: ""; width: 0; height: 0; border-left: 4px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 100ms var(--ease); }
details.disclose[open] > summary::before { transform: rotate(90deg); }
details.disclose[open] > summary { margin-bottom: 10px; }
.factor { display: grid; grid-template-columns: 170px 96px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.factor:last-child { border-bottom: 0; }
.factor .bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.factor .bar span { display: block; height: 100%; background: var(--text-2); }
.factor .pts { font-size: 12px; color: var(--text-3); }
@media (max-width: 640px) { .factor { grid-template-columns: minmax(0, 1fr) 90px; } .factor .why { grid-column: 1 / -1; } }
.stack > .item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.stack > .item:first-child { padding-top: 0; }
.stack > .item:last-child { border-bottom: 0; }
.item-title { font-size: 13px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.item-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.item-text { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.quote { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--line-strong); font-size: 12px; line-height: 18px; color: var(--text-2); }
.facts-list { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 16px; font-size: 13px; }
.facts-list > div { display: contents; }
.facts-list dt { color: var(--text-3); padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts-list dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.val .x { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 12px; padding: 0 4px; border-radius: var(--r-xs); opacity: 0; transition: opacity 100ms var(--ease); }
.val:hover .x, .val .x:focus-visible { opacity: 1; }
.val .x:hover { color: var(--red-fg); background: var(--red-bg); }
.not-found { font-size: 12px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .input, .form-grid .select { height: 28px; font-size: 13px; }
.composer { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.composer .row-inline .select, .composer .row-inline .input { height: 28px; font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--text-3); font-size: 12px; }
.timeline .kind { font-weight: 500; margin-right: 6px; }
.timeline .sys { color: var(--text-3); }
.year-row { position: sticky; top: 41px; z-index: 1; padding: 6px 0; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-3); border-bottom: 1px solid var(--line); }
.mini-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.mini-stats .v { font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-stats .k { font-size: 12px; color: var(--text-3); }

/* a won tender in the İhale kazananları detail */
.kv.tight { grid-template-columns: 116px minmax(0, 1fr); gap: 3px 12px; margin-top: 8px; font-size: 12px; line-height: 18px; }
.kv.tight dd { color: var(--text-2); }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
@media (max-width: 640px) { .kv.tight { grid-template-columns: minmax(0, 1fr); } .kv.tight dd { margin-bottom: 4px; } }

/* scan progress card (İhale kazananları) */
.scan-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-subtle); margin-bottom: 4px; font-size: 13px; }
.scan-card .grow { flex: 1 1 280px; min-width: 0; }
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 400ms var(--ease); }

/* ── İhale radarı ───────────────────────────────────────────────────────── */
.sub1 { font-size: 12px; line-height: 16px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.sub2.warn { color: var(--amber-fg); }
.name .badge { margin-right: 6px; }
.tr.leaving { opacity: 0; transition: opacity 300ms var(--ease-out); }
.today-card { margin: 0 0 16px; padding: 12px 16px 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-subtle); }
.today-card .head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 8px; }
.today-card .head > div { flex: 1; min-width: 0; }
.today-card h2 { font-size: 14px; line-height: 20px; }
.today-card ul { list-style: none; margin: 0; padding: 0; }
.today-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 6px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.today-item .name, .today-item .sub1 { display: block; }
.today-item:hover .name { color: var(--accent-text); }
.filter-pop .date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 8px; }
.filter-pop .date-range label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); }
.filter-pop .date-range .input { height: 28px; margin: 0; font-size: 13px; }
.pane > .slim { margin: 0; }
.pre-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 20px; color: var(--text-2); max-height: 420px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-subtle); }
.quote mark { background: var(--amber-bg); color: var(--text); border-radius: 2px; padding: 0 1px; }
.winner-box { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-subtle); }
.winner-box > div:first-child { flex: 1 1 240px; min-width: 0; }
.winner-box .who { font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.winner-box .amount { font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
table.rows { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rows td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); overflow-wrap: anywhere; }
table.rows tr:last-child td { border-bottom: 0; }
table.rows td.num { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
table.rows tr.won td { color: var(--text); font-weight: 500; }
.draft { display: flex; flex-direction: column; gap: 6px; }
.draft .label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.recipients { display: flex; flex-direction: column; gap: 8px; }
.recipient { display: grid; grid-template-columns: minmax(0, 1fr) 180px 28px; gap: 8px; align-items: center; }
@media (max-width: 560px) { .recipient { grid-template-columns: minmax(0, 1fr) 28px; } .recipient .select { grid-column: 1; grid-row: 2; } }
.state.muted { color: var(--text-3); }
@media (max-width: 900px) {
  .radar-list .tr .meter { display: none; }
  .radar-list .tr .name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ── dialogs ────────────────────────────────────────────────────────────── */
dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--float-shadow); }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog[open] { animation: pop-in 220ms var(--ease-in); }
dialog::backdrop { background: var(--overlay); }
.dlg { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.dlg-head h2 { font-size: 16px; line-height: 24px; flex: 1; }
.dlg-body { padding: 4px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.dlg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.dlg-foot .state { margin-right: auto; font-size: 12px; }
.settings { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 0; flex: 1; border-top: 1px solid var(--line); }
.settings nav { padding: 8px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.settings nav button { text-align: left; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; font-size: 13px; color: var(--text-2); cursor: pointer; }
.settings nav button:hover { background: var(--hover); color: var(--text); }
.settings nav button[aria-selected="true"] { background: var(--pressed); color: var(--text); font-weight: 500; }
.settings .set-panes { padding: 16px 20px 20px; overflow-y: auto; }
.set-pane { display: flex; flex-direction: column; gap: 12px; }
.set-pane h3 { font-size: 16px; line-height: 24px; }
@media (max-width: 640px) { .settings { grid-template-columns: minmax(0, 1fr); } .settings nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } }
.hint { font-size: 12px; line-height: 18px; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px 16px; }
.row-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.input[data-saat] { width: 96px; font-variant-numeric: tabular-nums; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.steps strong { color: var(--text); font-weight: 500; }
table.usage { border-collapse: collapse; font-size: 13px; }
table.usage th, table.usage td { padding: 4px 16px 4px 0; text-align: left; font-weight: 400; }
table.usage th { color: var(--text-3); font-size: 12px; }
table.usage td.num { text-align: right; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; transform: translate(-50%, 8px); opacity: 0;
  max-width: min(560px, calc(100vw - 32px)); padding: 10px 14px; border-radius: var(--r-md); background: var(--text); color: var(--bg); font-size: 13px; box-shadow: var(--float-shadow);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in); }
.toast.error { background: var(--red-fg); color: #fff; }
.toast button { border: 0; background: none; color: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }

/* ── login page (/giris) ─────────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg-subtle); }
.login-card {
  width: min(360px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--float-shadow);
}
.login-card h1 { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.login-card .input { height: 40px; font-size: 16px; } /* 16px: phones don't zoom into the field */
.login-card .btn { height: 40px; font-size: 14px; }

/* narrow screens */
@media (max-width: 900px) {
  .header { padding: 0 16px; gap: 10px; }
  .header .pill .label { display: none; }
  .page { padding: 16px 16px 56px; }
  .hide-narrow { display: none !important; }
  .thead { display: none; }
  .tr { grid-template-columns: var(--cols-narrow); }
  .tr .wide-only { display: none; }
}
@media (max-width: 560px) { .logo .name { display: none; } .nav a { padding: 4px 8px; } }
