:root {
  --paper: #f4f1eb;
  --ink: #171411;
  --muted: #6a645c;
  --rule: #e4ddd2;
  --card: #fffcf7;
  --accent: #c45c26;
  --accent-dark: #9a4318;
  --good: #2d5a3d;
  --bad: #8f2d24;
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  line-height: 1.5;
  font-size: 16px;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}
.page:has(.meydan) {
  max-width: 1720px;
  padding-left: 32px;
  padding-right: 28px;
}
.page:has(.hesap),
.page:has(.kayit),
.page:has(.meydan-form) {
  max-width: 1120px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 12px;
}

h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--muted);
}

a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
nav a:hover { background: var(--card); color: var(--accent-dark); }

.inline { display: inline; }

.linkish {
  background: none;
  border: 0;
  padding: 6px 10px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
}
.linkish:hover { color: var(--ink); background: var(--card); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 12px 0 36px;
}
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--accent-dark);
  margin: 0 0 10px;
  font-weight: 700;
}
.lede { font-size: 1.12rem; max-width: 36rem; color: var(--muted); margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.hero-visual {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 8px;
  min-height: 220px;
}
.hero-visual .chart { border: 0; }

.rules { padding-top: 8px; }
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.rule-grid li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 16px 16px 18px;
  margin: 0;
  counter-increment: step;
  animation: rise 0.5s ease both;
}
.rule-grid li:nth-child(2) { animation-delay: 0.06s; }
.rule-grid li:nth-child(3) { animation-delay: 0.12s; }
.rule-grid li:nth-child(4) { animation-delay: 0.18s; }
.rule-grid li::before {
  content: counter(step);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.narrow { max-width: 28rem; }
.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 24px;
  animation: rise 0.45s ease both;
}
.stack { display: flex; flex-direction: column; gap: 14px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 0.86rem;
}
.check input { margin-top: 3px; accent-color: var(--accent); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select {
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background-color: #fff;
  border-radius: 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236a645c' d='M1 2.2 6 7.2 11 2.2 9.8 1 6 4.8 2.2 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
input::placeholder { color: #b0a89e; }
input:hover, select:hover { border-color: #cfc6b8; }
input:focus, select:focus {
  border-color: var(--accent);
  background-color: #fff;
}
.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-row input { flex: 1; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}
.pills legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.pill {
  position: relative;
  flex-direction: row;
  gap: 0;
  font-weight: 600;
  cursor: pointer;
}
.pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill span {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill input:focus-visible + span { border-color: var(--accent); }
.pill input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 999px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-danger {
  background: var(--bad);
  color: #fff;
}

.flash {
  padding: 10px 14px;
  margin: 0 0 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  animation: rise 0.3s ease both;
  background: var(--card);
  border: 1px solid var(--rule);
}
.flash.ok { background: #e7f0ea; color: var(--good); }
.flash.err { background: #f8e8e6; color: var(--bad); }
.flash.err.is-dialoged { display: none; }

.uyari {
  width: min(22rem, calc(100vw - 32px));
  padding: 20px 20px 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
}
.uyari::backdrop {
  background: rgba(23, 20, 17, 0.4);
}
.uyari h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.uyari p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.uyari form { margin: 0; }
.uyari .btn { width: 100%; }

.muted { color: var(--muted); font-size: 0.92rem; }
.empty { padding: 28px 0; font-size: 1.05rem; color: var(--muted); }

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.list li { border: 0; }
.meydan-kart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.meydan-kart:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.meydan-kart-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}
.meydan-kart-main:hover { color: var(--ink); }
.meydan-kart-main strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.meydan-kart-meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.meydan-kart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rozet {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f3e4d8;
  color: var(--accent-dark);
}
.muted-list .meydan-kart { opacity: 0.8; }

.sekmeler {
  display: flex;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  background: #f4f1eb;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.sekmeler a,
.sekmeler span {
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
}
.sekmeler a:hover { color: var(--ink); }
.sekmeler a.is-on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 20, 17, 0.06);
}
.sekmeler span.is-off {
  opacity: 0.45;
  cursor: not-allowed;
}

.uye-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.uye-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.uye-list strong { display: block; }
.uye-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.meydan { animation: rise 0.45s ease both; }
.meydan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.meydan-head-main { min-width: 0; }
.meydan-head h1 { margin: 0 0 8px; }
.meydan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.meydan-durum,
.meydan-gun,
.meydan-tarih {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.meydan-durum {
  background: #f3e4d8;
  color: var(--accent-dark);
  text-transform: uppercase;
}
.meydan-gun {
  background: var(--ink);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.meydan-tarih {
  background: #ece6dc;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.meydan-head .btn { flex-shrink: 0; margin-top: 4px; }
.meydan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}
.meydan-grid:has(.katilanlar) {
  grid-template-columns: minmax(320px, 372px) minmax(0, 1.5fr) minmax(300px, 340px);
}
.meydan-main { min-width: 0; }

.katilanlar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px 0 10px;
}
.katilanlar h2 {
  margin: 0 0 2px;
  padding: 0 16px 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.profil-yol-legend {
  margin: 0;
  padding: 0 16px 0 10px;
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
}
.profil-yol-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profil-yol-legend svg {
  width: 10px;
  height: 10px;
  display: block;
}

.invite-box {
  border: 1px solid var(--rule);
  padding: 18px;
  margin-bottom: 22px;
  background: var(--card);
  border-radius: 18px;
}
.invite-box h2 { margin-top: 0; }
.invite-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.start-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
}
.start-form h3 { margin: 0; font-size: 1rem; }
.profil-wrap {
  display: grid;
  gap: 0;
}
.profil-cikar {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 8px;
  margin-top: -4px;
}
.profil-cikar .linkish {
  font-size: 0.72rem;
}

.olcum {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
}
.olcum-ask {
  background: color-mix(in srgb, var(--accent) 22%, #fff4e6);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.olcum-done {
  background: color-mix(in srgb, var(--good) 14%, var(--card));
  border-color: color-mix(in srgb, var(--good) 32%, var(--rule));
}
.olcum-done.is-edit {
  background: var(--card);
  border-color: var(--rule);
}
.olcum h2 {
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}
.olcum-ok-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.olcum-ok-head h2 { margin: 0; }
.olcum-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.olcum-vals li {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 6.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.olcum-vals span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.olcum-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.olcum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.tahtalar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 20px;
}
.board-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
  animation: rise 0.45s ease both;
}
.board-fit {
  grid-column: 1 / -1;
}
.board-scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.board-card table {
  width: 100%;
}
.board-fit table {
  min-width: 520px;
}
.board-card th,
.board-card td {
  white-space: nowrap;
  vertical-align: baseline;
}
.board-score {
  font-size: 1.05rem;
  font-weight: 800;
}
.th-with-i,
.th-lab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.th-ico,
.chip-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: inherit;
}
.th-ico .ico,
.chip-ico .ico {
  width: 13px;
  height: 13px;
  display: block;
}
.info-i {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--muted);
  font: 700 0.7rem/1 var(--sans);
  cursor: pointer;
  flex: none;
}
.info-i:hover,
.info-i:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}
#fit-nedir-btn {
  anchor-name: --fit-nedir-btn;
}
.fit-score-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: help;
}
.fit-score-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.fit-pop {
  position: fixed;
  inset: auto;
  margin: 0;
  width: max-content;
  max-width: min(22rem, calc(100vw - 24px));
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-weight: 400;
  box-shadow: 0 16px 40px rgba(23, 20, 17, 0.16);
  text-align: left;
  white-space: normal;
}
.fit-pop-nedir {
  max-width: min(26rem, calc(100vw - 24px));
}
#fit-nedir {
  position-anchor: --fit-nedir-btn;
  top: calc(anchor(bottom) + 8px);
  left: anchor(left);
  right: auto;
  bottom: auto;
  margin: 0;
  position-try-fallbacks: flip-block, flip-inline;
}
.fit-pop[data-top] {
  top: attr(data-top px);
  left: attr(data-left px);
  margin: 0;
}
.fit-pop-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fit-pop-why,
.fit-pop p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.fit-pop ul {
  margin: 0 0 8px;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.4;
}
.fit-pop li + li { margin-top: 4px; }
.fit-pop p:last-child,
.fit-pop .fit-step:last-child { margin-bottom: 0; }
.fit-step {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rule) 45%, var(--card));
}
.fit-step.is-good { background: color-mix(in srgb, var(--good) 12%, var(--card)); }
.fit-step.is-neutral { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.fit-step.is-bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.fit-step.is-miss { background: color-mix(in srgb, var(--muted) 10%, var(--card)); }
.fit-step-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
}
.fit-step-nums,
.fit-step-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}
.board-tag {
  font-size: 0.78rem;
  font-weight: 650;
}
.board-card:nth-child(2) { animation-delay: 0.06s; }
.board-card:nth-child(3) { animation-delay: 0.12s; }
.board-card:nth-child(4) { animation-delay: 0.18s; }
.board-card:nth-child(5) { animation-delay: 0.24s; }
.board-hint {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  margin: -4px 0 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 8px 6px 8px 0;
  border-bottom: 1px solid var(--rule);
}
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { width: 2rem; color: var(--muted); font-weight: 700; }
th:last-child, td:last-child { text-align: right; }
tr.is-lead td:nth-child(2) { font-weight: 800; }
td.is-good, span.is-good { color: var(--good); font-weight: 700; }
td.is-bad, span.is-bad { color: var(--bad); font-weight: 700; }
td.is-neutral, span.is-neutral { color: #c45c26; font-weight: 700; }

.charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 8px 0 24px;
}
.chart-people {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
a.chip {
  text-decoration: none;
  display: inline-block;
}
.gunluk {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}
.ozet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ozet-head h2 { margin: 0; }
.ozet-span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ozet-sure {
  font-weight: 750;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ozet-kartlar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}
.ozet-kart {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 10px;
  --meter: var(--muted);
}
.ozet-kart.is-good { --meter: var(--good); }
.ozet-kart.is-bad { --meter: var(--bad); }
.ozet-kart.is-neutral { --meter: var(--accent); }
.ozet-kart .profil-ico { margin-bottom: 8px; }
.ozet-kicker {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ozet-kart .profil-num { margin: 0; display: block; }
.ozet-kart .profil-delta {
  margin: 4px 0 0;
  display: block;
  font-weight: 500;
}
.ozet-kart .profil-delta:last-child { color: var(--meter, var(--muted)); }
.gun-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.gun-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
}
.gun-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 8px 12px 12px;
  font-size: 0.72rem;
  color: var(--muted);
}
.gun-table th,
.gun-table td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  vertical-align: top;
}
.gun-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.gun-val { font-weight: 650; color: var(--ink); }
.gun-chg {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.gun-chg.is-good { color: var(--good); }
.gun-chg.is-bad { color: var(--bad); }
.gun-chg.is-neutral { color: var(--muted); }
.gun-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7f3ec;
  position: sticky;
  top: 0;
}
.gun-table th:first-child,
.gun-table td:first-child {
  text-align: left;
  width: auto;
  color: var(--ink);
  font-weight: 650;
}
.gun-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.2;
}
.gun-date { font-weight: 650; color: var(--ink); }
.gun-n {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gun-table tbody tr:hover td { background: #faf7f2; }
.gun-table tr.is-first td { color: var(--muted); }
.gun-table .gun-note {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.gun-table tbody tr:last-child td { border-bottom: 0; }
.profiller {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding: 4px 16px 14px 10px;
}
.profiller::-webkit-scrollbar {
  width: 10px;
}
.profiller::-webkit-scrollbar-thumb {
  background: #cfc6b8;
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.profil-kart {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 10px 10px 8px;
}
.profil-kart:hover { border-color: #cfc6b8; }
.profil-kart.is-on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.profil-kart h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}
.profil-kart-hepsi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.profil-hepsi-yazi { min-width: 0; }
.profil-kart-hepsi .profil-meta { margin: 0; }
.profil-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.profil-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.profil-rows {
  display: grid;
  gap: 0;
}
.profil-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  --meter: var(--muted);
  --fill: var(--accent);
}
.profil-row + .profil-row {
  border-top: 1px solid var(--rule);
}
.profil-row.is-good { --meter: var(--good); --fill: var(--good); }
.profil-row.is-bad { --meter: var(--bad); --fill: var(--accent); }
.profil-row.is-neutral { --meter: var(--accent); --fill: var(--accent); }
.profil-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--meter, var(--muted)) 14%, var(--card));
  color: var(--meter, var(--muted));
}
.profil-kart-hepsi .profil-ico {
  --meter: var(--ink);
}
.profil-ico svg,
.profil-ico .ico {
  width: 15px;
  height: 15px;
  display: block;
}
.profil-row-body { min-width: 0; }
.profil-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.profil-num {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--ink);
}
.profil-lab {
  display: block;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1px;
}
.profil-delta,
.profil-tag {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--meter, var(--muted));
  white-space: nowrap;
}
.profil-yol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
  color: var(--muted);
}
.profil-yol-i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.profil-yol-ok {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #cfc6b8;
  min-width: 0.75rem;
}
.profil-yol-hedef {
  color: var(--ink);
  font-weight: 750;
}
.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;
}
.ozet-kart .profil-yol {
  margin-top: 6px;
}
.meter {
  display: block;
  width: 100%;
  height: 6px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #ece6dc;
  accent-color: var(--fill, var(--accent));
  appearance: none;
  -webkit-appearance: none;
}
.meter::-webkit-progress-bar {
  background: #ece6dc;
  border-radius: 99px;
}
.meter::-webkit-progress-value {
  background: var(--fill, var(--accent));
  border-radius: 99px;
}
.meter::-moz-progress-bar {
  background: var(--fill, var(--accent));
  border-radius: 99px;
}
.meter-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lo, 0%);
  width: calc(var(--hi, 0%) - var(--lo, 0%));
  background: color-mix(in srgb, var(--good) 32%, #ece6dc);
  border-radius: inherit;
}
.meter-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--p, 0%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--meter, var(--ink));
  border-radius: 2px;
}
.profil-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.profil-eksik {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--accent);
}
.sex-row {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.sex-row legend {
  font-weight: 650;
  margin-bottom: 6px;
}
.sex-row .check { margin-bottom: 4px; }

.hesap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.hesap-head h1 { margin-bottom: 6px; }
.hesap-head p { margin: 0; }
.blok-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.blok {
  background: #faf7f2;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.blok h2 { margin-bottom: 8px; }
.blok-note { margin: 0 0 14px; font-size: 0.88rem; line-height: 1.45; }
.meydan-sure {
  margin: -4px 0 0;
}
.blok-stack {
  display: grid;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}
.form-grid .span-2,
.form-grid > .check { grid-column: 1 / -1; }
.form-grid .pills { margin: 0; }
.form-grid .pills legend { margin-bottom: 8px; }
@media (max-width: 820px) {
  .blok-grid,
  .form-grid { grid-template-columns: 1fr; }
  .meydan-kart { flex-wrap: wrap; }
  .meydan-kart-actions { width: 100%; justify-content: flex-end; }
  .sekmeler { width: 100%; }
}

.chart-wrap {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 8px 8px 12px;
}
.chart-stage {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chart-pane {
  margin: 0;
  min-width: 0;
}
.chart-pane[hidden] { display: none !important; }
.chart-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 8px 4px;
}
.chart-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 2px;
}
.chart-head figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}
.chart { width: 100%; height: auto; display: block; }
.chart-bg { fill: var(--card); }
.chart-grid { stroke: var(--rule); stroke-width: 1; }
.chart-zero {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.28;
  stroke-dasharray: 4 4;
}
.chart-axis, .chart-legend text {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--sans);
}
.chart-area {
  fill-opacity: 0;
  animation: area-in 0.7s ease forwards;
}
.chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.chart-hit .chart-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.45s ease both;
}
.chart-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 1.8s ease-out infinite;
  opacity: 0.7;
}
.chart-bubble {
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 700;
  fill: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.chart-hit:hover .chart-bubble { opacity: 1; }
.d0, .d0 .chart-dot, .d0 .chart-ring { animation-delay: 0.05s; }
.d1, .d1 .chart-dot, .d1 .chart-ring { animation-delay: 0.18s; }
.d2, .d2 .chart-dot, .d2 .chart-ring { animation-delay: 0.32s; }
.d3, .d3 .chart-dot, .d3 .chart-ring { animation-delay: 0.44s; }
.d4, .d4 .chart-dot, .d4 .chart-ring { animation-delay: 0.56s; }
.d5, .d5 .chart-dot, .d5 .chart-ring { animation-delay: 0.68s; }
.chart-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 17, 0.55);
  z-index: 70;
}
.chart-scrim.is-on { display: block; }
body.chart-full-open { overflow: hidden; }
.chart-stage.is-full {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  padding: 12px 16px 16px;
  background: var(--paper);
  box-shadow: none;
}
.chart-stage.is-full .chart-head,
.chart-stage.is-full .chart-metrics {
  flex: 0 0 auto;
}
.chart-stage.is-full .chart-pane:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.chart-stage.is-full .chart {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}
@media (min-width: 1100px) {
  .gunluk, .chart-stage { grid-column: 1 / -1; }
}
.chart-wrap figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 4px 12px 4px;
}

.duvar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 16px 14px 12px;
}
.duvar-head {
  flex: 0 0 auto;
}
.duvar h2 {
  margin-bottom: 10px;
}
.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.chip:hover { border-color: #cfc6b8; }
.chip.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.duvar-days {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 4px 8px 0;
}
.duvar-gun + .duvar-gun {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.duvar-gun h3 {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.duvar-hafta {
  margin: 16px 0 8px;
  padding: 12px 0 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.duvar-hafta h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.duvar-ozet {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.duvar ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.duvar li {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  column-gap: 10px;
  padding: 8px 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.duvar li + li { border-top: 1px dashed var(--rule); }
.duvar time {
  display: block;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15em;
  color: inherit;
}
.duvar-yazi {
  min-width: 0;
  overflow-wrap: break-word;
}
.duvar strong {
  font-weight: 800;
  color: inherit;
}
.duvar li.is-good { color: var(--good); }
.duvar li.is-bad { color: var(--bad); }
.duvar li.is-neutral { color: #c45c26; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes area-in {
  to { fill-opacity: 0.12; }
}
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes ring {
  0% { transform: scale(0.7); opacity: 0.55; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 1100px) {
  .meydan-grid:has(.katilanlar) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  }
  .katilanlar {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .profiller {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow: visible;
    padding: 0;
    scrollbar-gutter: auto;
  }
}
@media (max-width: 960px) {
  .hero, .rule-grid, .tahtalar, .olcum-grid, .meydan-grid,
  .meydan-grid:has(.katilanlar) { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .duvar {
    position: static;
    max-height: none;
  }
  .duvar-days { max-height: 70vh; }
}

@media (max-width: 800px) {
  .hero, .rule-grid, .tahtalar, .olcum-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-line, .chart-area, .chart-hit .chart-dot, .chart-ring,
  .board-card, .rule-grid li, .meydan, .panel, .hero {
    animation: none;
  }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { fill-opacity: 0.12; }
}
