:root {
  --bg: #eef4f0;
  --surface: #ffffff;
  --ink: #12201a;
  --muted: #4a5f54;
  --line: #d2ddd6;
  --brand: #0d5f44;
  --brand-dark: #084530;
  --brand-soft: #1a7a58;
  --accent: #b45309;
  --ok: #166534;
  --bad: #991b1b;
  --warn: #92400e;
  --shadow: 0 10px 28px rgba(18, 32, 26, 0.06);
  --radius: 10px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --text: 1.0625rem;
  --lead: 1.12rem;
  --small: 0.94rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 95, 68, 0.07), transparent 42%),
    linear-gradient(180deg, #eaf3ee 0%, var(--bg) 45%, #e7efea 100%);
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); }

.container { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  font-size: 1.08rem;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.3;
}
.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.nav { display: flex; gap: 0.35rem 1rem; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: var(--small);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { color: var(--brand-dark); text-decoration: underline; }
.nav-toggle { display: none; }
.nav-logout { display: inline; margin: 0; }

main { padding: 1.5rem 0 3rem; }
main.main-landing { padding: 0; }

h1, h2, h3 {
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0 0 0.65rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.55rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.45rem; }
p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }

.hero {
  background: linear-gradient(145deg, #0d5f44 0%, #147a56 58%, #1f8f66 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 2px);
  padding: 1.55rem 1.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.35rem;
}
.hero h1 { margin: 0 0 0.55rem; color: #fff; font-size: clamp(1.35rem, 2.3vw, 1.7rem); }
.hero p { margin: 0; color: rgba(255,255,255,0.95); max-width: 46rem; font-size: var(--lead); line-height: 1.6; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.grid > * { min-width: 0; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }

@media (max-width: 860px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  min-width: 0;
}
.card h2, .card h3 { margin-top: 0; }
.card > .muted { margin-bottom: 0.9rem; }

.stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat .label { color: var(--muted); font-size: var(--small); font-weight: 600; line-height: 1.4; }
.stat .value { font-size: 1.55rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-pass { background: #e7f6ec; color: var(--ok); }
.badge-fail { background: #fde8e8; color: var(--bad); }
.badge-warn { background: #fff1db; color: var(--warn); }
.badge-unknown { background: #eef1f4; color: #334155; }
.badge-extra { background: #eef1f4; color: #475569; }
tr.is-excluded td {
  color: #c5cec9;
  background: #f6f7f7;
}
tr.is-excluded .badge {
  opacity: 0.4;
  filter: grayscale(0.55);
}
tr.is-excluded .dkd-ex-check {
  color: #a8b3ad;
}
.dkd-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}
.dkd-row-actions form { margin: 0; }
.dkd-ex-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.dkd-ex-check input {
  margin: 0;
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--brand);
}

.alert {
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  border: 1px solid transparent;
  line-height: 1.55;
  font-size: var(--text);
}
.alert-success { background: #e7f6ec; border-color: #b7e4c7; color: #14532d; }
.alert-error { background: #fde8e8; border-color: #f0b4b4; color: #7f1d1d; }
.alert-warn { background: #fff7ed; border-color: #fdba74; color: #9a3412; }

.setup-card {
  width: 100%;
  min-height: 44rem;
  box-sizing: border-box;
}
.setup-steps {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  gap: 0;
}
.setup-steps li {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.setup-steps .is-done { z-index: 2; }
.setup-steps .is-current { z-index: 3; }
.setup-steps a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 2.55rem;
  padding: 0.38rem 1.35rem 0.38rem 1.55rem;
  background: #e4eee8;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 13px 50%);
  margin-left: -8px;
}
.setup-steps li:first-child a {
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
  margin-left: 0;
  padding-left: 0.85rem;
  border-radius: 8px 0 0 8px;
}
.setup-steps li:last-child a {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 13px 50%);
  padding-right: 0.85rem;
  border-radius: 0 8px 8px 0;
}
.setup-steps a:hover {
  text-decoration: none;
  filter: brightness(0.96);
}
.setup-steps .is-done a {
  background: #c5ddd0;
  color: var(--brand-dark);
}
.setup-steps .is-current a {
  background: var(--brand);
  color: #fff;
  font-weight: 750;
}
.setup-steps .is-current a:hover { filter: brightness(1.06); }
.setup-steps-num { font-weight: 750; }
.setup-steps-label { min-width: 0; }
@media (max-width: 860px) {
  .setup-card { min-height: 0; }
  .setup-steps {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .setup-steps li {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 7.5rem;
  }
  .setup-steps a,
  .setup-steps li:first-child a,
  .setup-steps li:last-child a {
    clip-path: none;
    margin-left: 0;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    min-height: 2.75rem;
  }
}
.setup-skip { display: inline; }
.setup-device-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.device-add-panel {
  background: #f6faf7;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem 0.7rem;
  margin: 0 0 1rem;
}
.device-add-panel h3 { margin: 0 0 0.15rem; }
.device-add-hint { margin: 0 0 0.45rem; font-size: var(--small); }
.device-list-heading { margin: 0 0 0.65rem; }
.device-type-groups {
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f0;
  min-inline-size: 0;
}
.device-type-groups > legend {
  padding: 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.device-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.device-table-head,
.device-table-row {
  display: grid;
  grid-template-columns: 1.7rem 17.4rem minmax(7.5rem, 1.2fr) minmax(8rem, 1.1fr) 4.6rem 5.4rem;
  gap: 0.3rem 0.4rem;
  align-items: center;
  min-width: 42rem;
  padding: 0.28rem 0.5rem;
}
.device-table-head {
  background: #e8efe9;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
}
.device-table-head-actions { min-height: 0; }
.device-table-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.device-table-row {
  position: relative;
  border-top: 1px solid var(--line);
  background: #fff;
}
.device-table-row .form-group {
  margin: 0;
  min-width: 0;
}
.device-table input[type="text"],
.device-table select {
  padding: 0.38rem 0.5rem;
  border-radius: 7px;
  font-size: 0.9rem;
}
.device-table select {
  white-space: nowrap;
}
.device-type-group {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ikk-device-groups {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  padding: 0.45rem 0.65rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f0;
  min-inline-size: 0;
}
.ikk-device-groups > legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.ikk-device-group {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6faf7;
}
.ikk-device-group-title {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.ikk-device-group-names {
  margin: 0;
  font-size: 0.95rem;
}
.ikk-device-group select {
  display: block;
  margin-top: 0.3rem;
  max-width: 100%;
}
.device-item-add { border: 0; padding: 0; margin: 0; background: transparent; }
.device-form { margin: 0; }
.device-fields-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: flex-end;
}
.device-fields-actions .btn {
  padding: 0.38rem 0.65rem;
}
.device-fields-actions .btn-icon {
  min-width: 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
}
.device-fields-actions .btn-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.device-delete { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dkd-program-hint { margin: 0 0 0.8rem; }
.dkd-program-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 1.1rem;
  row-gap: 0.5rem;
  margin: 0.15rem 0 0.2rem;
}
.dkd-program-item {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}
.dkd-program-item input {
  margin: 0;
  flex: 0 0 auto;
}
.dkd-program-other {
  grid-column: span 2;
  cursor: text;
}
.dkd-program-other input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font-weight: 550;
  padding: 0.28rem 0.5rem;
}
@media (max-width: 860px) {
  .dkd-program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 36rem) {
  .dkd-program-grid {
    grid-template-columns: 1fr;
  }
  .dkd-program-other {
    grid-column: auto;
  }
}

.form-group { margin-bottom: 1rem; }
label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: var(--small);
  color: var(--ink);
}
.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
}
.password-field input {
  flex: 1;
  padding-right: 4.5rem;
}
.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}
.password-toggle:hover {
  color: var(--ink);
  background: #eef2f0;
}
.password-toggle[aria-pressed="true"] {
  color: var(--brand-dark);
}
input[type="text"], input[type="email"], input[type="password"], input[type="file"], select, textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  line-height: 1.4;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(13, 95, 68, 0.28);
  outline-offset: 1px;
  border-color: var(--brand);
}
.help { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; line-height: 1.5; }
.report-desc {
  margin-top: 0.65rem !important;
  max-width: 44rem;
  color: rgba(255,255,255,0.92) !important;
  font-size: 1rem !important;
  white-space: pre-wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1.1rem;
  font: inherit;
  font-size: var(--small);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:disabled:hover { background: var(--brand); color: #fff; }
.btn-secondary { background: #e4eee8; color: var(--brand-dark); }
.btn-secondary:hover { background: #d3e4da; color: var(--brand-dark); }
.btn-secondary:disabled:hover { background: #e4eee8; color: var(--brand-dark); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #7f1d1d; color: #fff; }
.btn-row { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.95rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
  overflow: visible;
}
.filter-bar .filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
  flex: 1 1 140px;
  position: relative;
}
.filter-bar .filter-field-grow { flex: 2 1 200px; }
.filter-bar label,
.filter-bar .filter-field-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}
.filter-bar input[type="text"],
.filter-bar input[type="search"],
.filter-bar select,
.filter-bar .filter-multi-toggle {
  font: inherit;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.filter-multi {
  position: relative;
}
.filter-multi-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 2.15rem;
  min-width: 0;
}
.filter-multi-toggle-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-multi-toggle::after {
  content: "▾";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.filter-chips {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.16rem 0.38rem 0.16rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
.filter-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-chip-x {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.72;
}
.filter-chip:hover .filter-chip-x {
  opacity: 1;
}
.filter-chip--test { color: #0d5f44; background: #dceee6; border-color: #8fbfa8; }
.filter-chip--test:hover { background: #c9e4d6; border-color: #0d5f44; }
.filter-chip--cihaz { color: #1d4f91; background: #e2ebf8; border-color: #9ab4de; }
.filter-chip--cihaz:hover { background: #d0def3; border-color: #1d4f91; }
.filter-chip--cevrim { color: #9a5410; background: #f8ead3; border-color: #e0b97a; }
.filter-chip--cevrim:hover { background: #f3ddb8; border-color: #9a5410; }
.filter-chip--program { color: #5c3a8f; background: #eee6f8; border-color: #c3a9e0; }
.filter-chip--program:hover { background: #e3d4f3; border-color: #5c3a8f; }
.filter-chip--status { color: #8a2430; background: #f8e3e6; border-color: #e0a8b0; }
.filter-chip--status:hover { background: #f1cfd4; border-color: #8a2430; }
.filter-chip--filename { color: #3d4a55; background: #e8ecef; border-color: #b7c2cc; }
.filter-chip--filename:hover { background: #dce2e7; border-color: #3d4a55; }
.filter-chip--year { color: #0e6b75; background: #dceef0; border-color: #8fc5cc; }
.filter-chip--year:hover { background: #c6e4e8; border-color: #0e6b75; }
.filter-chip--format { color: #3730a3; background: #e4e7fb; border-color: #a5ade8; }
.filter-chip--format:hover { background: #d3d8f7; border-color: #3730a3; }
.filter-chip--period { color: #3f6212; background: #e8f2d4; border-color: #b4cc86; }
.filter-chip--period:hover { background: #d9e9b8; border-color: #3f6212; }
.filter-chip--user { color: #7c2d12; background: #f6e4d6; border-color: #e0b496; }
.filter-chip--user:hover { background: #efd4c0; border-color: #7c2d12; }
.filter-chip--month { color: #0f766e; background: #d7f3ee; border-color: #86cfc6; }
.filter-chip--month:hover { background: #c0ebe4; border-color: #0f766e; }
.filter-chip--level { color: #9d174d; background: #fce4f0; border-color: #e8a8c6; }
.filter-chip--level:hover { background: #f6d0e4; border-color: #9d174d; }
.filter-chip--other { color: var(--brand-dark); background: #eef6f1; border-color: var(--line); }
.filter-chip--other:hover { background: #dceee4; border-color: var(--brand); }
.filter-multi-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(320px, 90vw);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
}
.filter-multi-q {
  width: 100%;
  margin-bottom: 0.35rem;
}
.filter-multi-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.28rem 0.15rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
}
.filter-multi-item input {
  margin-top: 0.2rem;
}
.filter-multi-item.is-unavailable {
  display: none;
}
.filter-multi-empty {
  margin: 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.filter-bar .filter-check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-width: auto;
  padding-bottom: 0.35rem;
}
.filter-bar .filter-check label {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 550;
  cursor: pointer;
}
.dkd-file-device {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.dkd-file-device select,
.dkd-file-device input[type="text"] {
  min-width: 8.5rem;
  max-width: 12rem;
  font-size: 0.85rem;
}
.filter-bar .filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;
  padding-bottom: 0.1rem;
}
.filter-bar .filter-count {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.filter-empty {
  margin: 0.35rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}
.mode-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}
.mode-tab:hover { color: var(--ink); background: #eef5f1; }
.mode-tab.is-active {
  color: var(--brand-dark);
  background: #e4eee8;
  border-color: #c5d9cc;
}
.mode-panel h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.impersonation-banner {
  background: #3d2a12;
  color: #fff8eb;
  border-bottom: 1px solid #8a6230;
  font-size: 0.9rem;
}
.impersonation-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0;
}
.impersonation-banner .muted { color: #e8d4b0; }
.impersonation-banner .btn {
  background: #fff8eb;
  color: #3d2a12;
  border-color: #c9a66b;
}
.saved-maps-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.saved-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e8f2ec;
  color: var(--brand-dark);
  border: 1px solid #c5d9cc;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.5rem;
}
.saved-toast { font-weight: 650; }
.file-drop-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: var(--small);
  color: var(--ink);
}
.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 12.5rem;
  font-weight: 400;
  padding: 1.6rem 1.35rem;
  border: 2px dashed #9bb8a8;
  border-radius: 14px;
  background: #f3faf6;
  cursor: pointer;
  text-align: center;
  color: var(--brand-dark);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--brand);
  background: #e7f5ee;
}
.file-drop.is-dragover {
  border-color: var(--brand);
  background: #d9f0e3;
  box-shadow: inset 0 0 0 3px rgba(13, 95, 68, 0.12);
}
.file-drop-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap;
}
.file-drop-icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--brand);
  margin-bottom: 0.15rem;
}
.file-drop-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.file-drop-title {
  font-weight: 750;
  font-size: 1.08rem;
  line-height: 1.3;
}
.file-drop-hint {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 28rem;
}
.file-drop-compact {
  min-height: 10rem;
}
.file-queue {
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  padding: 0.55rem 0.7rem;
}
.file-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.file-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: 12.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.file-queue-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}
.file-queue-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.file-queue-size {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.file-queue-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.1rem 0.25rem;
}
.file-queue-remove:hover,
.file-queue-remove:focus {
  color: var(--bad);
}
.file-queue-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}
.file-read-progress {
  margin-top: 0.55rem;
}
.file-read-progress-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-read-progress-track {
  height: 0.55rem;
  border-radius: 999px;
  background: #dce8e2;
  overflow: hidden;
  border: 1px solid var(--line);
}
.file-read-progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: inherit;
  transition: width 0.18s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .file-read-progress-fill { transition: none; }
}
.dkd-archive-hint {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  background: #f7faf8;
  color: var(--ink);
}
.dkd-archive-hint.is-ready {
  border-color: #b7d4c2;
  background: #eef7f1;
  color: var(--brand-dark);
}
.dkd-archive-hint.is-empty {
  border-color: #e2c48a;
  background: #fff8eb;
  color: #6a4e12;
}
.detect-status {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: #f7faf8;
  color: var(--ink);
  max-height: 8.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detect-status.detect-ok {
  border-color: #b7d4c2;
  background: #eef7f1;
  color: var(--brand-dark);
}
.detect-status.detect-need {
  border-color: #e2c48a;
  background: #fff8eb;
  color: #6a4e12;
}
.btn-tiny {
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
}
.map-box {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
}
.map-title { font-weight: 700; margin: 0 0 0.65rem; font-size: 0.92rem; }
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}
.map-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
}
.map-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.map-grid select { font-weight: 500; color: var(--ink); }
.map-grid input.const-input {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink);
}
.map-sample { max-height: 160px; overflow: auto; font-size: 0.78rem; }
.map-sample th { text-transform: none; letter-spacing: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--small);
  line-height: 1.45;
}
th, td {
  padding: 0.72rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
td { color: var(--ink); }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.35rem;
}
.dkd-matrix-wrap {
  max-width: 100%;
}
.dkd-matrix-block + .dkd-matrix-block {
  margin-top: 1.15rem;
}
.dkd-matrix-program {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.dkd-matrix {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: calc(11rem + 2.35rem * var(--dkd-cycles, 1));
}
.dkd-matrix th,
.dkd-matrix td {
  vertical-align: middle;
}
.dkd-matrix .col-test,
.dkd-matrix .col-cihaz {
  position: sticky;
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dkd-matrix thead .col-test,
.dkd-matrix thead .col-cihaz {
  z-index: 3;
}
.dkd-matrix .col-test {
  left: 0;
  width: 6.5rem;
  font-weight: 650;
  background: #eef5f1;
}
.dkd-matrix .col-cihaz {
  left: 6.5rem;
  width: 5.5rem;
  background: #fff;
}
.dkd-matrix thead .col-test { background: #dceee6; }
.dkd-matrix thead .col-cihaz { background: #f3f7f5; }
.dkd-matrix .col-cycle {
  text-align: center;
  width: auto;
  min-width: 0;
  padding: 0.38rem 0.12rem;
}
.dkd-matrix thead .col-cycle {
  height: 6.6rem;
  vertical-align: bottom;
  white-space: nowrap;
}
.dkd-matrix thead .col-cycle span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.dkd-mark {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}
.dkd-matrix .dkd-mark {
  font-size: 1.75rem;
}
.dkd-mark-pass { color: var(--ok); }
.dkd-mark-fail { color: var(--bad); }
.dkd-mark-worst {
  color: #854d0e;
  background: #facc15;
  border-radius: 4px;
  min-width: 0.95rem;
  padding: 0 0.16rem;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
}
.dkd-matrix td.col-cycle {
  position: relative;
}
.dkd-matrix td.col-cycle.is-worst {
  background: #fef08a;
}
.dkd-matrix td.col-cycle.is-worst.is-excluded {
  background: #f6f7f7;
}
.dkd-matrix .dkd-mark-worst {
  position: absolute;
  top: 0.08rem;
  right: 0.08rem;
  min-width: 0.85rem;
  padding: 0 0.18rem;
  font-size: 0.78rem;
  border-radius: 999px;
  line-height: 1.15;
  box-shadow: 0 0 0 1px rgba(133, 77, 14, 0.18);
}
.dkd-mark-warn { color: var(--warn); }
.dkd-mark-unknown,
.dkd-mark-extra { color: #64748b; font-size: 1rem; font-weight: 700; }
.dkd-matrix .dkd-mark-unknown,
.dkd-matrix .dkd-mark-extra { font-size: 1.5rem; }
.dkd-matrix td.col-cycle.is-excluded {
  background: #f6f7f7;
}
.dkd-matrix td.col-cycle.is-excluded .dkd-mark {
  opacity: 0.4;
  filter: grayscale(0.55);
}
.dkd-matrix td.col-cycle[data-tip-olcum] {
  cursor: pointer;
  user-select: none;
}
#tbl-dkd-year tr[data-filter-row] {
  cursor: pointer;
  scroll-margin-top: 5.5rem;
}
#tbl-dkd-year tr[data-filter-row] .dkd-row-actions {
  cursor: default;
}
#tbl-dkd-year tr.dkd-row-flash td {
  background: #e7f6ec;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.dkd-matrix td.col-cycle {
  scroll-margin-top: 5.5rem;
}
.dkd-matrix td.col-cycle.dkd-cell-flash {
  box-shadow: inset 0 0 0 2px var(--brand);
  background: #e7f6ec;
}
.dkd-matrix td.col-cycle.is-worst.dkd-cell-flash {
  background: #fef08a;
}
.dkd-matrix-tip {
  position: fixed;
  z-index: 40;
  min-width: 11.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.dkd-matrix-tip table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.dkd-matrix-tip th,
.dkd-matrix-tip td {
  padding: 0.12rem 0.25rem;
  font-size: 0.82rem;
  border: 0;
  text-align: left;
  white-space: nowrap;
}
.dkd-matrix-tip th {
  color: var(--muted);
  font-weight: 650;
  padding-right: 0.7rem;
}
.dkd-matrix-tip td {
  font-weight: 700;
  text-align: right;
}
.dkd-matrix-tip-worst {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 750;
  color: #854d0e;
}
.guide-hint {
  min-width: 12.5rem;
  max-width: 18rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.guide-hint-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
}
.guide-hint-row + .guide-hint-row {
  margin-top: 0.2rem;
}
.guide-hint-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.report-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.report-mini-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.report-mini-list li:last-child { border-bottom: none; }

.auth-wrap {
  max-width: 440px;
  margin: 2rem auto;
}
.auth-panel { max-width: none; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.3rem;
  border-radius: 10px;
  background: #e8f0eb;
}
.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: var(--small);
}
.auth-tab:hover {
  color: var(--brand-dark);
  text-decoration: none;
  background: rgba(255,255,255,0.55);
}
.auth-tab.is-active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 3px rgba(18, 32, 26, 0.08);
}
.auth-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.auth-lead { margin: 0 0 1rem; }
.auth-switch { margin-top: 1rem; margin-bottom: 0; }
.muted { color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  background: #f4f8f6;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.footer-copy { max-width: 36rem; }
.footer-lead {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.footer-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.footer-source {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #c9dbd1;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.footer-source:hover {
  border-color: var(--brand);
  background: #f3faf6;
  transform: translateY(-2px);
  text-decoration: none;
}
.footer-source-label {
  color: var(--brand-dark);
  font-weight: 750;
  font-size: 0.98rem;
}
.footer-source-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-sources { grid-template-columns: 1fr; }
}
.site-footer p { margin: 0 0 0.65rem; }
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.source-links a { text-underline-offset: 0.18em; }
.source-links-compact { margin-top: 0.35rem; font-size: 0.88rem; }
.source-links-landing {
  margin-top: 1.15rem;
}
.source-links-landing a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}
.source-links-landing a:hover { color: #fff; }

/* Yeşil hero içindeki linkler — beyaz, yüksek kontrast */
.hero .source-links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.65);
}
.hero .source-links a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.source-bar {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
}
.source-bar-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.source-links-bar {
  margin: 0;
  gap: 0.55rem;
}
.source-links-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: #e8f3ed;
  color: var(--brand-dark);
  text-decoration: none;
  border: 1px solid #c5dccf;
  font-weight: 700;
  font-size: 0.9rem;
}
.source-links-bar a:hover {
  background: #d7ebe1;
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* —— Landing —— */
.page-landing {
  background: #e8f0eb;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page-landing main.main-landing {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.page-landing .site-footer {
  flex: 0 0 auto;
  background: #e8f0eb;
  border-top: 1px solid rgba(13, 95, 68, 0.12);
  padding: 0.85rem 0 1rem;
}
.page-landing .footer-inner {
  gap: 0.85rem 1.25rem;
  align-items: center;
}
.page-landing .footer-lead {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.page-landing .footer-source {
  padding: 0.55rem 0.7rem;
}
.page-landing .footer-source-label { font-size: 0.9rem; }
.page-landing .footer-source-hint { font-size: 0.75rem; }
.page-landing .footer-sources { gap: 0.5rem; }

.site-header-landing {
  background: transparent;
  border-bottom: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.site-header-landing .brand,
.site-header-landing .nav a {
  color: rgba(255,255,255,0.92);
}
.site-header-landing .brand:hover,
.site-header-landing .nav a:hover {
  color: #fff;
}
.site-header-landing .brand-mark {
  filter: brightness(0) invert(1);
}

.landing {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.landing-hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(6, 40, 28, 0.35), transparent 50%),
    linear-gradient(155deg, #0a4a35 0%, #0d5f44 42%, #1a7a58 100%);
  padding: 4.75rem clamp(1.25rem, 3vw, 2rem) 1.5rem;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.landing-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.landing-copy {
  max-width: 34rem;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  animation: landing-rise 0.7s ease both;
}
.landing-mark {
  width: clamp(2.2rem, 3.5vw, 2.85rem);
  height: auto;
  display: block;
  flex-shrink: 0;
}
.landing-tagline {
  margin: 0 0 0.85rem;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  animation: landing-rise 0.7s ease 0.08s both;
}
.landing-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 600;
  max-width: 22ch;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
  animation: landing-rise 0.7s ease 0.16s both;
}
.landing-lead {
  margin: 0;
  color: rgba(255,255,255,0.88);
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
  animation: landing-rise 0.7s ease 0.24s both;
}
.landing-cta {
  margin-top: 1.15rem;
  gap: 0.65rem;
  animation: landing-rise 0.7s ease 0.32s both;
}
.landing-cta .btn {
  min-width: 8rem;
  padding: 0.7rem 1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.landing-cta .btn:hover {
  transform: translateY(-2px);
}
.landing-cta .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #fff;
}
.landing-cta .btn-primary:hover { background: #eef5f1; color: var(--brand-dark); }
.landing-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.landing-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

.landing-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: landing-fade 1s ease 0.2s both;
}
.landing-visual img {
  width: min(58%, 220px);
  height: auto;
  opacity: 0.2;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
}

.landing-next {
  flex: 0 0 auto;
  background: #e8f0eb;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(13, 95, 68, 0.08);
}
.landing-next-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
.landing-next-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.landing-links-plain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.landing-links-plain a {
  color: var(--brand-dark);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.landing-links-plain a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 860px) {
  .page-landing {
    height: auto;
    max-height: none;
    overflow: auto;
  }
  .landing-hero {
    min-height: auto;
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }
  .landing-hero-inner {
    grid-template-columns: 1fr;
  }
  .landing-visual {
    order: -1;
  }
  .landing-visual img {
    width: min(38%, 120px);
    opacity: 0.28;
    margin-bottom: 0.35rem;
  }
  .landing-hero h1 { max-width: none; }
  .landing-next-inner { flex-direction: column; align-items: flex-start; }
  .page-landing .footer-inner { align-items: start; }
}

.landing-nav {
  display: none;
}
.landing-links { margin-top: 0.15rem; }
.landing-links .card h2 { font-size: 1.12rem; }
.landing-links .card p { min-height: 3.2em; }

.guide { display: flex; flex-direction: column; gap: 1.1rem; }
.guide-toc ol { margin: 0.45rem 0 0; padding-left: 1.25rem; }
.guide-toc li { margin: 0.35rem 0; line-height: 1.5; }
.guide-section h2 { margin-top: 0; }
.guide-section h3 { margin-top: 1.2rem; font-size: 1.02rem; }
.guide-steps { padding-left: 1.25rem; }
.guide-steps li { margin: 0.55rem 0; line-height: 1.55; }
.guide code,
code {
  background: #e6f0ea;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: #123528;
}
.guide details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.guide details:first-of-type { border-top: none; }
.guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.45;
}
.guide details p { margin: 0.55rem 0 0; color: var(--muted); line-height: 1.6; }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(280px, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.auth-layout .auth-wrap { margin: 0; max-width: none; }
.benefits { margin-top: 0; }
.benefits h3 { margin-top: 0; }
.benefits-list {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}
.benefits-list li { margin: 0.7rem 0; line-height: 1.55; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
}

/* —— Mobil —— */
.nav-toggle {
  appearance: none;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: #e8f0eb; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.site-header-landing .nav-toggle { color: #fff; }
.site-header-landing .nav-toggle:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 860px) {
  .container { width: min(1080px, calc(100% - 1.25rem)); }
  body { overflow-x: clip; padding-bottom: env(safe-area-inset-bottom, 0); }
  .site-header {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.65rem 0;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.15rem 0 0.5rem;
  }
  .nav-open .nav { display: flex; }
  .nav a,
  .nav .nav-user {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:hover { text-decoration: none; background: #eef5f1; }
  .nav-logout {
    display: block;
    margin-top: 0.65rem;
  }
  .nav-logout .btn {
    width: 100%;
    min-height: 2.75rem;
  }
  .page-landing.nav-open .site-header-landing {
    position: sticky;
    background: #0a4a35;
    z-index: 20;
  }
  .site-header-landing .nav a,
  .site-header-landing .nav .nav-user {
    border-bottom-color: rgba(255,255,255,0.16);
  }
  .site-header-landing .nav a:hover { background: rgba(255,255,255,0.1); }

  main { padding: 1.1rem 0 2.25rem; }
  .hero { padding: 1.15rem 1.05rem; margin-bottom: 1rem; }
  .card { padding: 1.05rem 1rem; }
  .btn {
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
  }
  .btn-tiny { min-height: 2.15rem; }
  .btn-row .btn,
  .btn-row .setup-skip .btn {
    flex: 1 1 10rem;
  }
  .mode-tabs { gap: 0.35rem; }
  .mode-tab {
    flex: 1 1 8rem;
    min-height: 2.75rem;
    text-align: center;
  }
  .filter-bar { padding: 0.65rem 0.7rem; }
  .filter-bar .filter-field,
  .filter-bar .filter-field-grow {
    min-width: 0;
    flex: 1 1 100%;
  }
  .filter-bar .filter-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .filter-bar .filter-actions .btn { flex: 1 1 auto; }
  .filter-multi-panel { max-width: calc(100vw - 2rem); }
  .file-drop {
    min-height: 8.75rem;
    padding: 1.15rem 1rem;
  }
  .file-drop-compact { min-height: 7.5rem; }
  .file-drop-title { font-size: 1rem; }
  .dkd-file-device select,
  .dkd-file-device input[type="text"] {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }
  .map-grid { grid-template-columns: 1fr; }
  .table-wrap,
  .dkd-matrix-wrap {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
  }
  th, td { padding: 0.55rem 0.4rem; word-break: break-word; }
  .dkd-matrix .col-test { width: 5.1rem; }
  .dkd-matrix .col-cihaz { left: 5.1rem; width: 4.4rem; }
  .dkd-matrix-tip {
    max-width: calc(100vw - 1.25rem);
    min-width: 0;
  }
  .guide-hint { max-width: none; }
  .report-actions { align-items: stretch; }
  .report-mini-list li { flex-direction: column; gap: 0.4rem; }
  .auth-wrap { margin: 0.75rem auto; width: 100%; }
  .landing-cta { flex-direction: column; align-items: stretch; }
  .landing-cta .btn { width: 100%; min-width: 0; }
  .landing-next-inner { width: 100%; }
  .source-links-bar { flex-wrap: wrap; }
  .source-links-bar a { flex: 1 1 auto; justify-content: center; }
  .impersonation-banner-inner { padding: 0.45rem 0; }
  .device-table { overflow-x: visible; }
  .device-table-head { display: none; }
  .device-table-head,
  .device-table-row {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    padding: 0.65rem 0.6rem;
    gap: 0.45rem 0.5rem;
  }
  .device-table-row { align-items: start; }
  .device-table-num {
    grid-column: 1 / -1;
    text-align: left;
  }
  .device-table-row .form-group { grid-column: 1 / -1; }
  .device-table-row .device-fields-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 0.15rem;
  }
  .device-table-row .form-group label.visually-hidden {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0.25rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 0.78rem;
  }
  .device-table input[type="text"],
  .device-table select {
    font-size: 1rem;
    padding: 0.62rem 0.65rem;
  }
  .device-fields-actions .btn-icon {
    min-width: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  .device-add-panel .device-fields-actions .btn:not(.btn-icon) {
    width: 100%;
  }
}

@media (max-width: 36rem) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn,
  .btn-row .setup-skip,
  .btn-row .setup-skip .btn {
    width: 100%;
    flex: 1 1 auto;
  }
  .device-table-head,
  .device-table-row {
    grid-template-columns: 1fr;
  }
  .footer-source { padding: 0.75rem 0.8rem; }
  .stat .value { font-size: 1.35rem; }
  .dkd-program-other { grid-column: auto; }
}
