:root {
  --atko-navy: #0F2742;
  --atko-turquoise: #0F9FA7;
  --atko-amber: #F0A43A;
  --atko-card: #EAF8F8;
  --atko-muted: #5F6F80;
  --atko-white: #FFFFFF;
  --atko-asli-soft: #FFF1D8;
  --atko-asli-text: #8A5400;
  --atko-tali-soft: #DDF5F5;
  --atko-tali-text: #087C83;
}

.atko {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 0;
  box-sizing: border-box;
  color: var(--atko-navy);
}
.atko * { box-sizing: border-box; }

.atko__head { margin-bottom: 28px; }

.atko__section-title,
.atko__result-title {
  margin: 0;
  font-weight: 700;
  color: var(--atko-white);
  letter-spacing: 0;
  text-transform: none;
}

.atko__section-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.atko__lead {
  margin: 0;
  max-width: 900px;
  color: var(--atko-white);
  font-size: 18px;
  line-height: 1.6;
}

.atko__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.atko__grid > *,
.atko__party,
.atko__dropdown,
.atko__dropdown-toggle,
.atko__dropdown-label {
  min-width: 0;
}

.atko__party {
  padding: 24px;
  border: 1px solid #D7E1E8;
  border-radius: 12px;
  background: var(--atko-card);
}

.atko__party h3 {
  margin: 0 0 20px;
  font-size: 25px;
  line-height: 1.25;
  color: var(--atko-navy);
}

.atko__label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--atko-navy);
}
.atko__label span { font-weight: 400; color: var(--atko-muted); }
.atko__label--secondary { margin-top: 20px; }

.atko__search {
  width: 100%;
  min-height: 52px;
  margin: 0 0 10px;
  padding: 11px 14px;
  border: 1px solid var(--atko-turquoise);
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--atko-navy);
  font: inherit;
}

.atko__search:focus {
  outline: 2px solid rgba(15, 159, 167, .22);
  outline-offset: 1px;
  border-color: var(--atko-turquoise);
}

.atko__dropdown {
  position: relative;
  width: 100%;
  margin: 0 0 10px;
}

.atko__dropdown-toggle {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--atko-turquoise);
  border-radius: 7px;
  background: #FFFFFF !important;
  color: var(--atko-navy) !important;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.atko__dropdown-toggle:hover,
.atko__dropdown-toggle:focus,
.atko__dropdown-toggle:focus-visible,
.atko__dropdown.is-open .atko__dropdown-toggle {
  background: #FFFFFF !important;
  color: var(--atko-navy) !important;
  border-color: var(--atko-turquoise) !important;
}

.atko__dropdown-toggle:focus-visible,
.atko__dropdown.is-open .atko__dropdown-toggle {
  outline: 2px solid rgba(15, 159, 167, .22);
  outline-offset: 1px;
}

.atko__dropdown-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--atko-navy) !important;
}

.atko__dropdown-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.atko__dropdown.is-open .atko__dropdown-arrow {
  transform: rotate(180deg);
}

.atko__dropdown-menu {
  position: absolute;
  z-index: 100;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: min(360px, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--atko-turquoise);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 39, 66, .15);
}

.atko__dropdown-menu[hidden] {
  display: none !important;
}

.atko__dropdown-option {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #E1E8ED;
  background: #FFFFFF !important;
  color: var(--atko-navy) !important;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.atko__dropdown-option:last-of-type {
  border-bottom: 0;
}

.atko__dropdown-option:hover,
.atko__dropdown-option:focus,
.atko__dropdown-option:focus-visible {
  background: var(--atko-card) !important;
  color: var(--atko-navy) !important;
  outline: none;
}

.atko__dropdown-option--utility {
  font-weight: 700;
}

.atko__dropdown-empty {
  padding: 12px;
  color: var(--atko-muted);
  font-size: 14px;
  line-height: 1.4;
}

.atko__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.atko__button {
  width: 300px;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  line-height: 1.5em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.atko__button--primary {
  border: 1px solid var(--atko-white);
  background: var(--atko-turquoise);
  color: var(--atko-white);
}

.atko__button--ghost {
  border: 1px solid var(--atko-turquoise);
  background: var(--atko-white);
  color: var(--atko-navy);
}

.atko__button--primary:hover,
.atko__button--primary:focus-visible,
.atko__button--ghost:hover,
.atko__button--ghost:focus-visible {
  border-color: var(--atko-navy);
  background: var(--atko-navy);
  color: var(--atko-white);
}

.atko__result {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--atko-turquoise);
}
.atko__result[hidden] { display: none !important; }

.atko__result-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.atko__score-grid,
.atko__selected-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.atko__score,
.atko__selected-grid > div {
  padding: 24px;
  border: 1px solid #D7E1E8;
  border-radius: 12px;
  background: var(--atko-card);
}

.atko__score-label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--atko-navy);
}

.atko__score-value {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1;
  color: var(--atko-navy);
}

.atko__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #DDE6EF;
}
.atko__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width .3s ease;
}
.atko__bar-fill--a { background: var(--atko-turquoise); }
.atko__bar-fill--b { background: var(--atko-amber); }

.atko__selected-grid { margin-top: 24px; }

.atko__selected-grid h4 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--atko-navy);
}

.atko__summary {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atko__summary li { display: grid; gap: 8px; }

.atko__summary strong {
  font-size: 15px;
  line-height: 1.5;
  color: var(--atko-navy);
}

.atko__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.atko__badge--asli {
  background: var(--atko-asli-soft);
  color: var(--atko-asli-text);
}

.atko__badge--tali {
  background: var(--atko-tali-soft);
  color: var(--atko-tali-text);
}

.atko__empty { margin: 0; color: var(--atko-muted); }

@media (max-width: 767px) {
  .atko { padding: 20px 0; }

  .atko__grid,
  .atko__score-grid,
  .atko__selected-grid {
    grid-template-columns: 1fr;
  }

  .atko__party,
  .atko__score,
  .atko__selected-grid > div {
    padding: 20px;
  }

  .atko__actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .atko__button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .atko__dropdown-toggle {
    font-size: 15.5px;
    min-height: 52px;
    max-width: 100%;
    overflow: hidden;
  }

  .atko__dropdown-label {
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 100%;
    transform: none !important;
  }

  .atko__dropdown-menu {
    max-height: 52vh;
  }

  .atko__dropdown-option {
    padding: 9px 11px;
    font-size: 15px;
    line-height: 1.32;
  }

  .atko__actions {
    align-items: center;
    justify-content: center;
  }

  .atko__button {
    margin-left: auto;
    margin-right: auto;
  }

}

/* v1.3.4 — Değer Kaybı aracıyla birebir kart/başlık ölçü sistemi */
.atko{padding:0;overflow:hidden}
.atko__input-shell{border-radius:12px;overflow:hidden}
.atko__head{margin:0;padding:28px 30px;border-radius:12px 12px 0 0;background:var(--atko-turquoise);color:#fff}
.atko__section-title{margin:0;color:#fff;font-size:clamp(22px,2.5vw,30px);font-weight:800;line-height:1.25}
.atko__lead{margin:20px 0 0;max-width:none;color:#fff;font-size:16px;line-height:1.55}
.atko__input-body{padding:24px;border:1px solid var(--atko-turquoise);border-top:0;border-radius:0 0 12px 12px;background:#fff}
.atko__party{padding:22px;border:1px solid var(--atko-turquoise);border-radius:12px;background:var(--atko-card)}
.atko__party h3{margin:0 0 18px;font-size:19px}
.atko__label{margin:0 0 8px;color:#667085;font-size:14px;font-weight:500;line-height:1.4}
.atko__label span{color:#667085;font-weight:500}
.atko__label--secondary{margin-top:20px}
.atko__search,.atko__dropdown-toggle{min-height:48px;border-radius:8px;font-size:15px;font-weight:500}
.atko__actions{justify-content:center;gap:14px;margin-top:24px}
.atko__button{min-height:48px;border-radius:8px;font-size:16px}

.atko__result{margin-top:22px;padding:0;border:1px solid var(--atko-turquoise);border-radius:12px;background:var(--atko-card);overflow:hidden}
.atko__result-head{padding:22px 26px;background:var(--atko-turquoise)}
.atko__result-title{margin:0;color:#fff;font-size:clamp(22px,2.5vw,30px);font-weight:800;line-height:1.25}
.atko__result-body{padding:22px}
.atko__score,.atko__selected-grid>div{padding:20px;border:1px solid var(--atko-turquoise);border-radius:12px;background:#fff}
.atko__selected-grid{margin-top:22px}

@media(max-width:600px){
  .atko__head{padding:22px 18px}
  .atko__input-body{padding:16px}
  .atko__party{padding:18px}
  .atko__label{font-size:14px;font-weight:500;color:#667085}
  .atko__result-head{padding:22px 18px}
  .atko__result-body{padding:16px}
  .atko__score,.atko__selected-grid>div{padding:18px}
}
