/* Layout: tek sütun, üstte hedef biçim, altta dosya kartları. Veri alanları mono, kontroller sans. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --fg: #16202a;
  --muted: #5b6b79;
  --line: #d6dde4;
  --accent: #0b5d66;
  --accent-fg: #ffffff;
  --accent-soft: #dcedee;
  --ok: #1d6b3a;
  --warn: #8a5a00;
  --warn-soft: #f8eccf;
  --code-bg: #e9eef2;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f161c; --surface: #16202a; --fg: #e6edf3; --muted: #93a4b3; --line: #2a3945;
    --accent: #5fc0c9; --accent-fg: #082a2e; --accent-soft: #173238; --ok: #6fcf8f;
    --warn: #e4b45a; --warn-soft: #33290f; --code-bg: #0c1218; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f161c; --surface: #16202a; --fg: #e6edf3; --muted: #93a4b3; --line: #2a3945;
  --accent: #5fc0c9; --accent-fg: #082a2e; --accent-soft: #173238; --ok: #6fcf8f;
  --warn: #e4b45a; --warn-soft: #33290f; --code-bg: #0c1218; color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 48px;
}
.wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
p { margin: 0; }
.lead { color: var(--muted); max-width: 65ch; margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; min-width: 0; }
.scroll { overflow-x: auto; }
pre.code, .mono { font-family: var(--font-data); font-size: 13px; }
pre.code { margin: 0; background: var(--code-bg); padding: 12px; border-radius: 4px; white-space: pre; overflow-x: auto; }
.tag { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  border: 1.5px dashed var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 28px 16px; cursor: pointer;
}
.drop.over { background: var(--surface); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop strong { font-weight: 600; }
.drop span { color: var(--muted); font-size: 13px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
button {
  font: inherit; font-weight: 500; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  padding: 8px 14px; cursor: pointer;
}
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.card-head .name { font-weight: 600; word-break: break-all; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
label.f select, label.f input[type=number] {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 7px 8px; min-width: 0; width: 100%;
}
label.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.summary { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.summary b { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .skip { color: var(--warn); }
table { border-collapse: collapse; width: 100%; font-family: var(--font-data); font-size: 12.5px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-ui); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.neg { color: var(--warn); }
td.desc { white-space: normal; min-width: 200px; max-width: 420px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note { font-size: 13px; color: var(--muted); }
.warnbox { background: var(--warn-soft); color: var(--warn); padding: 8px 10px; border-radius: 4px; font-size: 13px; }
details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
details pre { margin: 6px 0 0; }
.status { font-size: 13px; color: var(--ok); }
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .12s; } }
[hidden] { display: none !important; }
