:root {
  --green: #2f7d4f;
  --green-dark: #1d5434;
  --green-soft: #e7f2ea;
  --accent: #d9822b;
  --ink: #1b2a1f;
  --muted: #5f6f64;
  --line: #dfe6e0;
  --bg: #f6f8f4;
  --card: #ffffff;
  --danger: #b23a2b;
  --danger-soft: #fbe9e6;
  --radius: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--green-dark); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.25rem; margin: 0 0 0.6em; }
h3 { font-size: 1.05rem; margin: 1em 0 0.4em; }
code { background: var(--green-soft); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.9em; word-break: break-all; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small, small { font-size: 0.85rem; }
.center { text-align: center; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; color: #33443a; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 600; color: var(--green); margin: 0; }

.draft-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 0.82rem; padding: 6px 16px; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font-size: 1.7rem; }
.brand strong { display: block; line-height: 1.1; }
.brand small { color: var(--muted); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site-nav a, .site-nav .link { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.site-nav a.active, .site-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.site-nav form { margin: 0; }
.link { background: none; border: 0; cursor: pointer; font: inherit; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 0.85rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h1, .card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid, .card + .grid { margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 20px; border-radius: 12px; border: 2px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.secondary { background: transparent; color: var(--green-dark); }
.btn.secondary:hover { background: var(--green-soft); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.lg { min-height: 56px; font-size: 1.1rem; padding: 12px 28px; }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: 0.85rem; }
.btn.block { width: 100%; }
.btn[hidden] { display: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.actions.vertical { flex-direction: column; }

.alert { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.ok { background: var(--green-soft); color: var(--green-dark); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.notice { background: var(--green-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.notice p { margin: 4px 0 0; }
.error { color: var(--danger); margin: 6px 0 0; font-size: 0.9rem; }

/* Formlar */
.field { display: block; margin: 0 0 16px; font-weight: 600; }
.field small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select { display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 10px 12px; font: inherit; font-weight: 400; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--green); }
.has-error input:not([type=radio]):not([type=checkbox]), .has-error select { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--green); }

.form-shell { max-width: 640px; margin: 0 auto; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; display: none; }
.progress-bar { height: 100%; width: 0; background: var(--green); transition: width 0.3s; }
.js .progress { display: block; }
.step-label { margin: 8px 0 16px; font-size: 0.9rem; min-height: 1.4em; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.js .step { display: none; }
.js .step.active { display: block; }
.question { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.question:last-child { border-bottom: 0; }
.question.has-error legend { color: var(--danger); }
.qno { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: 0.8rem; margin-right: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { flex: 1 1 auto; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.scale .choice span { min-width: 52px; }
.scale-legend { display: flex; justify-content: space-between; font-size: 0.8rem; margin: 4px 0 0; }
.form-nav { display: none; gap: 10px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 16px 0 12px; }
.js .form-nav { display: flex; }
.form-nav .btn { flex: 1; }
.evidence { margin-bottom: 8px; }
.evidence[hidden], .evidence-group[hidden] { display: none; }
.thumb { max-width: 160px; border-radius: 8px; margin-top: 6px; display: block; }
.thumb[hidden] { display: none; }
.checklist { padding-left: 1.2em; }
.checklist li { margin: 4px 0; }

/* Karne */
.badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.badges.center { justify-content: center; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--cat); color: var(--cat-ink); font-weight: 700; font-size: 0.85rem; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--cat-ink) 25%, transparent); }
.badge.lg { font-size: 1rem; padding: 6px 16px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); font-size: 0.8rem; font-weight: 600; }
.tag.warn { background: var(--danger-soft); color: var(--danger); }
.ok-tag { background: var(--green); color: #fff; }
.karne-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.karne-head h1 { margin-bottom: 0.2em; }
.score-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--cat) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex: none; }
.score-ring > span { width: 104px; height: 104px; border-radius: 50%; background: var(--card); display: grid; place-content: center; text-align: center; }
.score-ring strong { font-size: 2.4rem; line-height: 1; }
.score-ring small { color: var(--muted); }
.score-ring.big { margin: 16px auto; width: 160px; height: 160px; }
.score-ring.big > span { width: 128px; height: 128px; }
.up { color: var(--green-dark); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }

.area-bars { list-style: none; padding: 0; margin: 0 0 12px; }
.area-bars li { display: grid; grid-template-columns: 9.5em 1fr 6.5em; gap: 10px; align-items: center; padding: 6px 0; }
.area-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--muted); }
.meter { display: block; height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.meter.inline { display: inline-block; width: 80px; vertical-align: middle; height: 8px; }
.steps { padding-left: 1.3em; }
.steps li { margin: 10px 0; }
.steps li { display: list-item; }
.steps li > span:first-child { display: inline; }
.gain { display: inline-block; margin-left: 6px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; border-radius: 6px; padding: 0 6px; font-size: 0.85rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin-bottom: 12px; }
.stats strong { display: block; font-size: 1.8rem; color: var(--green-dark); }
.stats span { color: var(--muted); font-size: 0.85rem; }
.inline-list { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.inline-list li { background: var(--green-soft); border-radius: 10px; padding: 6px 12px; text-align: center; }
.inline-list small { display: block; color: var(--muted); }
.incentives { list-style: none; padding: 0; margin: 0; }
.incentives li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.incentives li > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.incentives small { color: var(--muted); }
.incentives p { margin: 6px 0; }
.welcome { border: 2px solid var(--green); }
.pin { font-size: 2.4rem; font-weight: 800; letter-spacing: 0.3em; color: var(--green-dark); margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.pin-inline { letter-spacing: 0.2em; font-size: 1.2rem; }
.counter { margin-top: 16px; color: var(--muted); }
.settings .btn { margin-top: 8px; }

.chart { display: block; overflow: visible; }
.chart .axis { font-size: 11px; fill: var(--muted); }
.chart .val { font-size: 11px; fill: var(--ink); font-weight: 600; }

.hero { padding: 24px 0 12px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: 18em; }
.how .card { position: relative; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.legend { width: 100%; border-collapse: collapse; }
.legend td, .legend th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }

.filters, .inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input, .inline-form input, .inline-form select { width: auto; flex: 1 1 180px; margin: 0; }
.directory { list-style: none; padding: 0; margin: 0; }
.directory .card { padding: 0; margin-bottom: 10px; }
.directory a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; flex-wrap: wrap; }
.directory small { display: block; color: var(--muted); }
.dir-right { display: flex; align-items: center; gap: 8px; }
.score-chip { font-weight: 800; font-size: 1.1rem; }

/* Yönetim */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; border-left: 5px solid var(--line); }
.kpi.good { border-left-color: var(--green); }
.kpi.warn { border-left-color: var(--accent); }
.kpi span { display: block; color: var(--muted); font-size: 0.85rem; }
.kpi strong { display: block; font-size: 1.6rem; margin: 2px 0; }
.kpi small { color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--green-soft); font-weight: 600; white-space: nowrap; }
.table tr.inactive { opacity: 0.5; }
.plain { list-style: none; padding: 0; }
.plain li { padding: 4px 0; }
.evidence-list { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.evidence-list figure { margin: 0; width: 160px; }
.evidence-list img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.evidence-list figcaption { font-size: 0.8rem; color: var(--muted); }
.audit.uygun { border-left: 5px solid var(--green); }
.audit.yanlis { border-left: 5px solid var(--danger); }
details summary { cursor: pointer; color: var(--green-dark); font-weight: 600; margin: 8px 0; }
.prose h2 { margin-top: 1.2em; }
.report h2 { margin-top: 1.4em; border-bottom: 2px solid var(--green-soft); padding-bottom: 4px; }

/* Sticker ve berat */
.print-actions { text-align: center; padding: 16px; }
.sticker { position: relative; width: 10cm; height: 10cm; margin: 0 auto; border-radius: 1.2cm; background: var(--cat); color: var(--cat-ink); padding: 0.6cm; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(0,0,0,.15); print-color-adjust: exact; -webkit-print-color-adjust: exact; overflow: hidden; }
.sticker-top { display: flex; align-items: center; gap: 0.25cm; }
.sticker-top .leaf { font-size: 0.9cm; }
.sticker-top strong { display: block; font-size: 0.55cm; letter-spacing: 0.08em; line-height: 1; }
.sticker-top small { font-size: 0.32cm; letter-spacing: 0.3em; }
.sticker-cat { font-size: 0.85cm; font-weight: 900; letter-spacing: 0.12em; }
.sticker-qr { background: #fff; padding: 0.2cm; border-radius: 0.3cm; width: 4.2cm; height: 4.2cm; }
.sticker-qr svg { width: 100%; height: 100%; display: block; }
.sticker-foot { display: flex; flex-direction: column; align-items: center; font-size: 0.32cm; font-weight: 600; gap: 0.05cm; }
.sticker-foot code { background: rgba(255,255,255,.6); color: var(--cat-ink); font-size: 0.3cm; }
.print-draft { position: absolute; bottom: 0.9cm; right: -1.6cm; transform: rotate(-35deg); background: #b23a2b; color: #fff; font-size: 0.26cm; font-weight: 700; padding: 0.08cm 1.6cm; letter-spacing: 0.08em; }
.berat { position: relative; width: 27.7cm; min-height: 19cm; margin: 0 auto; background: #fffdf7; border: 0.5cm solid var(--cat); outline: 2px solid var(--cat-ink); outline-offset: -0.8cm; padding: 1.6cm 2cm; text-align: center; overflow: hidden; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.berat-kicker { letter-spacing: 0.2em; font-size: 0.85rem; color: var(--muted); }
.berat h1 { font-size: 2.2rem; color: var(--cat-ink); font-family: Georgia, 'Times New Roman', serif; margin: 0.4em 0; }
.berat-name { font-size: 1.9rem; font-weight: 700; margin: 0.6em 0 0.2em; font-family: Georgia, serif; }
.berat-text { max-width: 36em; margin: 1.2em auto; font-size: 1.05rem; }
.signatures { display: flex; justify-content: space-around; margin-top: 2cm; gap: 1cm; }
.signatures div { flex: 1; font-size: 0.85rem; }
.signatures span { display: block; border-top: 1px solid var(--ink); margin-bottom: 6px; }
.berat .print-draft { top: 1.4cm; bottom: auto; transform: rotate(35deg); right: -2.2cm; font-size: 0.35cm; padding: 0.1cm 2.4cm; }

@media (max-width: 560px) {
  .area-bars li { grid-template-columns: 1fr 5.5em; }
  .area-bars .meter { grid-column: 1 / -1; grid-row: 2; }
  .karne-head { flex-direction: column-reverse; align-items: flex-start; }
  .berat { width: 100%; padding: 1cm; }
  .site-nav { width: 100%; }
}

@media print {
  .no-print, .site-header, .site-footer, .draft-banner { display: none !important; }
  body { background: #fff; }
  main.wrap { padding: 0; max-width: none; }
  .sticker { box-shadow: none; margin-top: 1cm; }
  .berat { page-break-inside: avoid; }
  .card, .kpi, .table-wrap { break-inside: avoid; }
  @page { margin: 1cm; }
}

input[type=file] { display: block; margin-top: 6px; font: inherit; font-weight: 400; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; padding: 8px 14px; margin-right: 10px; border: 2px solid var(--green); border-radius: 10px; background: #fff; color: var(--green-dark); cursor: pointer; }
