
/* Düzen: üstte ekran seçici (önizleme çubuğu), altında seçilen ekran. Ana renk deniz yeşili, vurgu güneş sarısı. */
:root {
  /* DKA kimliği: logodaki mor (ana), sulu boya turkuaz (ikincil), yaprak yeşili (küçük vurgu). */
  --bg: #f6f7fb; --surface: #ffffff; --ink: #1c1f3a; --muted: #5b6178; --line: #e2e4ee;
  --brand: #5a2d82; --brand-ink: #ffffff; --brand-soft: #efe7f6; --sun: #f2b33d; --sun-ink: #3d2a00;
  --teal: #17807a; --teal-soft: #e2f3f1; --leaf: #4e9a3a;
  --ok: #17803d; --ok-soft: #dcf3e3; --watch: #a15c00; --watch-soft: #fbebc8; --refer: #b3261e; --refer-soft: #fbdcd9;
  --bar: #d6d8e6;
  --display: "Lexend", "Trebuchet MS", sans-serif; --body: "Nunito Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14152a; --surface: #1c1e36; --ink: #ecedf7; --muted: #a3a7c2; --line: #2e3150;
  --brand: #c4a3e8; --brand-ink: #1c1035; --brand-soft: #2c2347; --sun: #f2b33d; --sun-ink: #3d2a00;
  --teal: #5cc8bf; --teal-soft: #173533; --leaf: #8cc976;
  --ok: #5fd08a; --ok-soft: #14301f; --watch: #f0b85a; --watch-soft: #3a2c10; --refer: #ff8a80; --refer-soft: #3d1a17;
  --bar: #343756; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #14152a; --surface: #1c1e36; --ink: #ecedf7; --muted: #a3a7c2; --line: #2e3150;
  --brand: #c4a3e8; --brand-ink: #1c1035; --brand-soft: #2c2347; --sun: #f2b33d; --sun-ink: #3d2a00;
  --teal: #5cc8bf; --teal-soft: #173533; --leaf: #8cc976;
  --ok: #5fd08a; --ok-soft: #14301f; --watch: #f0b85a; --watch-soft: #3a2c10; --refer: #ff8a80; --refer-soft: #3d1a17;
  --bar: #343756; color-scheme: dark; }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px; margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); } h2 { font-size: 1.6rem; } h3 { font-size: 1.15rem; }
p { margin: 0; } a { color: var(--brand); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); } .btn.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.watch { background: var(--watch-soft); color: var(--watch); } .pill.refer { background: var(--refer-soft); color: var(--refer); }
.pill.soon { background: var(--sun); color: var(--sun-ink); }
.muted { color: var(--muted); }
label { display: grid; gap: 4px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], select {
  min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); width: 100%; }
.form { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); }
.screen { padding-top: 24px; }

/* ana sayfa */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px 24px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font-style: normal; font-size: 1rem; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-block: 16px 40px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-block: 16px 24px; max-width: 34em; }
.notify { display: flex; gap: 8px; flex-wrap: wrap; } .notify input { flex: 1 1 220px; }
.stairs { display: flex; align-items: flex-end; gap: 4px; height: 220px; } .stairs span { flex: 1; background: var(--brand); border-radius: 6px 6px 2px 2px; opacity: .9; }
.stairs span:nth-child(3n) { background: var(--sun); }
.scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 8px 32px; counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .chip { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.notice { background: var(--surface); border-left: 5px solid var(--sun); padding: 16px 20px; border-radius: 4px 12px 12px 4px; margin-top: 24px; }
footer { margin-top: 40px; font-size: .9rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

/* form ekranları */
.narrow { max-width: 520px; margin: 0 auto; display: grid; gap: 16px; }
.kids { display: grid; gap: 10px; } .kid { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* test */
.progress { height: 10px; border-radius: 99px; background: var(--bar); overflow: hidden; } .progress b { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s; }
.q { font-family: var(--display); font-size: clamp(1.4rem, 4.5vw, 1.9rem); line-height: 1.25; margin-block: 14px 8px; }
.answers { display: grid; gap: 10px; margin-top: 20px; }
.ans { text-align: left; display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.ans:hover { border-color: var(--brand); } .ans small { font-weight: 400; color: var(--muted); font-size: .85rem; } .hints-off .ans small { display: none; }
.ans.unsure { border-style: dashed; font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* sonuç */
.res-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.dom { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); }
.track { position: relative; height: 16px; background: var(--bar); border-radius: 99px; }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--brand); } .fill.watch { background: var(--watch); } .fill.refer { background: var(--refer); }
.mark { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--ink); border-radius: 2px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--brand); vertical-align: -1px; margin-right: 6px; }
.legend i.m { width: 3px; height: 14px; background: var(--ink); border-radius: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* admin */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.side { display: grid; gap: 4px; position: sticky; top: 64px; } .side button { text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; }
.side button[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .stat b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; } .stat span { color: var(--muted); font-size: .9rem; }
.tablebox { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .95rem; } th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; border-top: 0; font-variant-numeric: tabular-nums; } td.num { font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 12px; } .filters button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.filters button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.matrix { display: grid; grid-template-columns: 130px repeat(18, minmax(26px, 1fr)); gap: 3px; font-size: .75rem; min-width: 760px; }
.matrix div { padding: 6px 0; text-align: center; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.matrix .h { background: transparent; color: var(--muted); font-weight: 600; } .matrix .d { text-align: left; background: transparent; color: var(--ink); padding-left: 0; font-size: .85rem; }
.matrix .low { background: var(--watch-soft); color: var(--watch); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 16px; }

@media (max-width: 760px) {
  .hero, .grid2 { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; } .side { grid-auto-flow: column; overflow-x: auto; position: static; } .side button { white-space: nowrap; }
  .dom { grid-template-columns: 1fr auto; } .dom .track { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .progress b { transition: none; } }

/* uygulama kabuğu */
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a:not(.btn), .nav .linkbtn { text-decoration: none; font-weight: 600; color: var(--ink); padding: 6px 10px; border-radius: 8px; }
.nav a:not(.btn):hover, .nav .linkbtn:hover { background: var(--brand-soft); }
.linkbtn { background: transparent; border: 0; cursor: pointer; }
.logo { text-decoration: none; color: var(--ink); }
.flash { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 16px; font-weight: 600; margin-bottom: 16px; }
.errors { background: var(--refer-soft); color: var(--refer); border-radius: 12px; padding: 10px 16px; margin-bottom: 4px; }
.errors ul { margin: 0; padding-left: 18px; }
.field-error { color: var(--refer); font-size: .9rem; font-weight: 400; }
.page-title { margin-bottom: 16px; }
.kid .actions { margin: 0; }
.inline { display: inline; }
.ans { width: 100%; font-family: inherit; color: var(--ink); }
.ans.selected { border-color: var(--brand); background: var(--brand-soft); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.pager a, .pager span { padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.pager .active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .disabled { opacity: .45; }
.filters a { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; text-decoration: none; color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { display: flex; gap: 8px; } .search input { max-width: 260px; }
.matrix a { display: block; text-decoration: none; padding: 6px 0; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-weight: 700; text-align: center; }
.matrix a.low { background: var(--watch-soft); color: var(--watch); } .matrix a.zero { background: var(--refer-soft); color: var(--refer); }
.matrix a:hover { outline: 2px solid var(--brand); }
.item-row { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-block: 14px; }
.item-row textarea, .form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; background: var(--surface); color: var(--ink); min-height: 64px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.flag { color: var(--refer); font-weight: 700; }
.diverge { position: relative; height: 18px; background: var(--bar); border-radius: 99px; }
.diverge .mid { position: absolute; top: -5px; bottom: -5px; left: 50%; width: 3px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); }
.diverge .bar { position: absolute; top: 3px; bottom: 3px; border-radius: 99px; background: var(--brand); }
.diverge .bar.watch { background: var(--watch); } .diverge .bar.refer { background: var(--refer); } .diverge .bar.ahead { background: var(--ok); }
.axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.dom { grid-template-columns: 150px 1fr 190px; } .dom small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 760px) { .dom { grid-template-columns: 1fr; } .dom .diverge { order: 2; } }
.side a { text-align: left; text-decoration: none; color: var(--ink); border-radius: 10px; padding: 10px 12px; font-weight: 600; display: block; }
.side a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.side a:not([aria-current="true"]):hover { background: var(--brand-soft); }
.topbar { padding-block: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.matrix a.high { background: #e8def8; color: #4a2c8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .matrix a.high { background: #2d2347; color: #cdb9ff; } }
:root[data-theme="dark"] .matrix a.high { background: #2d2347; color: #cdb9ff; }

/* test maddesi/madde bankası sayfalarında caydırıcı koruma */
.wm { position: fixed; inset: 0; pointer-events: none; z-index: 50; background-repeat: repeat; }
body.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protect input, body.protect textarea, body.protect select { -webkit-user-select: text; user-select: text; }
@media print { body.protect { display: none !important; } }
.legal-note { flex-basis: 100%; font-size: .8rem; }
/* yönetim paneli: telefon */
@media (max-width: 760px) {
  .side { gap: 6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .side a { white-space: nowrap; padding: 8px 12px; background: var(--brand-soft); }
  .tablebox { overflow-x: auto; }
  .tablebox table { min-width: 560px; }
  .filters label { flex: 1 1 140px; }
}
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.trend { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.compare td.up { color: var(--ok, #15803d); font-weight: 700; } .compare td.down { color: var(--refer); font-weight: 700; }

/* ana sayfa */
.home { display: grid; gap: 72px; }
.h-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 8px; }
.h-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 600; }
.h-hero .lead { font-size: 1.15rem; color: var(--muted); margin-block: 18px 26px; max-width: 32em; }
.h-hero .who { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px 28px 28px 6px; padding: 22px 22px 16px; box-shadow: 0 18px 40px -24px rgba(90, 45, 130, .45); }
.profile-card .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.profile-card .ph small { color: var(--muted); }
.h-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 22em; }
.h-sec > p.sub { color: var(--muted); margin-top: 8px; max-width: 40em; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; counter-reset: h; }
.how li { list-style: none; padding-top: 14px; border-top: 3px solid var(--teal); position: relative; }
.how-ic { position: absolute; top: 16px; right: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.how li:nth-child(2) .how-ic { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.how-ic svg { width: 26px; height: 26px; }
.how li::before { counter-increment: h; content: counter(h); font-family: var(--display); font-weight: 600; color: var(--teal); font-size: 1.6rem; display: block; margin-bottom: 4px; }
.how { padding: 0; margin-bottom: 0; } .how p { color: var(--muted); margin-top: 6px; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.aud { border-radius: 24px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.aud.parent { background: var(--teal-soft); } .aud.expert { background: var(--brand-soft); }
.aud ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.aud .btn { justify-self: start; }
.aud.parent .btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.modes > div { padding: 22px; } .modes > div + div { border-left: 1px solid var(--line); }
.modes b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; } .modes .t { color: var(--teal); font-weight: 700; display: block; margin: 2px 0 8px; }
.modes p { color: var(--muted); }
.domains7 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.domains7 span { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; background: var(--surface); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.about { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.about img { width: 96px; height: 96px; border-radius: 50%; }
.demo { background: var(--brand); color: var(--brand-ink); border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.demo h2 { color: inherit; } .demo p { opacity: .85; margin-top: 6px; }
.demo .btn { background: #fff; color: #5a2d82; border-color: #fff; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; } .faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin-top: 8px; max-width: 44em; }
@media (max-width: 820px) {
  .h-hero, .audience, .demo, .about { grid-template-columns: 1fr; }
  .how, .modes { grid-template-columns: 1fr; } .modes > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .home { gap: 52px; }
}

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 24px 14px; max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.plan.featured { border: 2px solid var(--brand); }
.plan > b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.plan .price { font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--brand); } .plan .price small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--muted); }
.plan .btn { justify-self: start; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

.plans { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ana sayfa fotoğrafları */
.hero-visual { position: relative; }
.hero-visual.has-photo { padding-bottom: 190px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%; border-radius: 32px 32px 32px 8px; display: block; }
.hero-visual.has-photo .profile-card { position: absolute; left: -36px; bottom: 0; width: min(300px, 70%); padding: 12px 12px 8px; }
.hero-visual.has-photo .profile-card svg { max-height: 170px; }
.aud-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; }
.about.with-photo { grid-template-columns: minmax(200px, 320px) 1fr; }
.about img.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
@media (max-width: 820px) {
  .hero-visual.has-photo { padding-bottom: 0; }
  .hero-visual.has-photo .profile-card { position: relative; left: auto; margin: -48px 12px 0; width: auto; }
  .about.with-photo { grid-template-columns: 1fr; }
}
.support-note { border-left-color: var(--teal); }

/* Hızlı Artikülasyon Taraması */
.art { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.art-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.art-progress { height: 8px; border-radius: 999px; background: var(--bar); overflow: hidden; }
.art-progress i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .25s; }
.art-count { font-size: .9rem; margin-top: -4px; }
.art-stage { display: grid; gap: 12px; text-align: center; }
.art-badge { display: inline-flex; justify-self: center; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.art-badge b { font-family: var(--display); font-size: 1.2rem; }
.art-img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.art-img img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.art-word { font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em; min-height: 1.6em; }
.art-word .tgt { color: var(--refer); text-decoration: underline; text-underline-offset: 4px; }
.art-word.hidden { visibility: hidden; }
.art-hide { justify-self: center; color: var(--muted); font-size: .85rem; text-decoration: underline; margin-top: -8px; }
.art-q { font-weight: 700; }
.art-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.art-ok, .art-no { flex: 1 1 140px; min-height: 64px; border-radius: 14px; border: 2px solid; font-size: 1.2rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.art-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.art-no { background: var(--refer-soft); color: var(--refer); border-color: var(--refer); }
.art-ok span, .art-no span { font-size: 1.4rem; }
#step-said label { justify-items: center; font-size: 1.05rem; }
.art-said-row { display: inline-flex; align-items: center; gap: 6px; font-size: 1.6rem; color: var(--muted); }
.art-said-row input { width: 180px; text-align: center; font-size: 1.3rem; min-height: 52px; border: 2px solid var(--brand); border-radius: 12px; background: var(--surface); color: var(--ink); }
.art-help { font-size: .88rem; max-width: 30em; margin: 4px auto 0; }
.art-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.art-foot .linkbtn { color: var(--muted); text-decoration: underline; }
.art-keys { font-size: .8rem; text-align: center; }
.art-done { text-align: center; }
.art-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } .art-modes legend { font-weight: 700; margin-bottom: 4px; }
.art-sounds summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.art-sounds .chip { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 700; }
.art-sounds .chip input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.chip.on { text-decoration: none; }
.art-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.art-stats div { background: var(--teal-soft); border-radius: 12px; padding: 10px 16px; display: grid; }
.art-stats b { font-family: var(--display); font-size: 1.5rem; color: var(--teal); } .art-stats span { font-size: .85rem; color: var(--muted); }
.art-work { margin-top: 16px; }
.art-grid td, .art-grid th { vertical-align: top; }
.art-grid th[scope=row] { font-family: var(--display); font-size: 1.2rem; }
.art-items { list-style: none; padding: 0; margin: 6px 0 0; font-size: .9rem; }
.art-items li { white-space: nowrap; } .art-items li.no { color: var(--refer); } .art-items small { color: var(--muted); }
.art-items .art-sent-no { color: var(--refer); }
.art-legend { display: inline-block; width: 1.1em; text-align: center; font-weight: 800; } .art-legend.ok { color: var(--ok); } .art-legend.no { color: var(--refer); }
.art-note { font-size: .9rem; }
.art-del { text-align: right; } .art-del .linkbtn { color: var(--muted); text-decoration: underline; }
@media print { .art-result .btn, .art-del, header.top, footer { display: none !important; } .art-result .card { border: 0; padding: 8px 0; } }
.art [hidden] { display: none !important; }
.art .btn:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.inv-domains { display: grid; gap: 10px; margin-top: 8px; }
.inv-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 230px; gap: 12px; align-items: center; }
.inv-bar { height: 12px; background: var(--bar); border-radius: 999px; overflow: hidden; }
.inv-fill { display: block; height: 100%; background: var(--muted); border-radius: 999px; }
.inv-fill.ok { background: var(--ok, #2f8f5b); } .inv-fill.watch { background: var(--watch, #d39b1c); } .inv-fill.refer { background: var(--refer, #c0392b); }
@media (max-width: 640px) { .inv-row { grid-template-columns: 1fr auto; } .inv-bar { grid-column: 1 / -1; grid-row: 2; } }

/* Çocuklarım / Danışanlarım paneli */
.panel { display: grid; gap: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.panel-head p { margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-head .pill { text-decoration: none; }
.add-form { max-width: 640px; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: var(--ink); }
.stat b { font-family: var(--display); font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
.stat.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.stat:hover { border-color: var(--brand); }
.list-card { padding: 0; overflow: hidden; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list-tools input { flex: 1 1 240px; max-width: 360px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 12px; font: inherit; background: var(--surface); color: var(--ink); }
.kid-table { display: grid; }
.kid-row { display: grid; grid-template-columns: 1.4fr .9fr 1.6fr 1.4fr 230px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kid-row:last-of-type { border-bottom: 0; }
.kid-row.head { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding-block: 8px; background: color-mix(in srgb, var(--bar) 35%, transparent); }
.kid-row .k-act { display: flex; gap: 8px; justify-content: flex-end; }
.kid-row .pill { text-decoration: none; white-space: nowrap; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: .92rem; }
.empty { text-align: center; padding: 32px 20px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .add-grid { grid-template-columns: 1fr; }
  .kid-row.head { display: none; }
  .kid-row { grid-template-columns: 1fr auto; grid-template-areas: "name age" "last res" "act act"; row-gap: 6px; }
  .k-name { grid-area: name; } .k-age { grid-area: age; text-align: right; color: var(--muted); } .k-last { grid-area: last; font-size: .9rem; } .k-res { grid-area: res; text-align: right; } .k-act { grid-area: act; justify-content: flex-start !important; }
}
.linkbtn.del { color: var(--refer); text-decoration: underline; padding: 0 0 0 8px; background: none; border: 0; cursor: pointer; font: inherit; }
.danger-zone { display: flex; justify-content: flex-end; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .92rem; padding: 4px 2px; }

/* Çocuk dosyası: test seçimi */
.test-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.test-tile { text-align: left; display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.test-tile b { font-family: var(--display); font-size: 1.05rem; color: var(--brand); }
.test-tile small { color: var(--muted); line-height: 1.4; }
.test-tile .tile-meta { font-size: .82rem; color: var(--teal); font-weight: 700; }
.test-tile:hover:not(:disabled) { border-color: var(--brand); }
.test-tile.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.test-tile:disabled { opacity: .55; cursor: not-allowed; }
.test-tile:disabled .tile-meta { color: var(--muted); }
.test-panel.form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.resume { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--watch-soft); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
@media (max-width: 760px) { .test-pick { grid-template-columns: 1fr; } }

/* Panel: test başlatma kareleri */
.test-squares { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.test-square { aspect-ratio: 1 / 1; max-height: 230px; width: 100%; display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; padding: 16px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.test-square:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.test-square.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.test-square:disabled { opacity: .5; cursor: not-allowed; }
.test-square .sq-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); } .test-square .sq-ic svg { width: 28px; height: 28px; }
.test-square[data-test=disleksi] .sq-ic { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.test-square b { font-family: var(--display); font-size: 1.05rem; color: var(--brand); }
.test-square small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.test-square .tile-meta { font-size: .8rem; font-weight: 700; color: var(--teal); }
.start-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who-opt { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.who-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.who-opt.off { opacity: .45; cursor: not-allowed; }
.who-opt .who-no { display: none; } .who-opt.off .who-no { display: inline; }
.who-new b { color: var(--brand); }
.new-box { display: grid; gap: 10px; max-width: 640px; }
.opts { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } .opts legend { font-weight: 700; margin-bottom: 4px; }
@media (max-width: 760px) { .test-squares { grid-template-columns: 1fr; } .test-square { aspect-ratio: auto; } }

/* Mobil: tablolar sayfayı genişletmesin, kendi kutusunda kaysın */
.stack > *, .admin > *, .panel > *, .narrow > * { min-width: 0; }
.tablebox { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .side { grid-auto-flow: row; display: flex; flex-wrap: wrap; overflow: visible; }
  .side a { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .res-head { flex-wrap: wrap; gap: 10px; }
  .row { flex-wrap: wrap; }
  .card { padding: 16px; }
}
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; font-weight: 600; } }
@media (max-width: 640px) {
  .tablebox table.stackable { min-width: 0 !important; }
  .tablebox table.stackable thead { display: none; }
  .tablebox table.stackable tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; }
  .tablebox table.stackable td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 4px 2px; white-space: normal; text-align: right; }
  .tablebox table.stackable td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: 0 0 auto; }
  .tablebox table.stackable td:not([data-label]), .tablebox table.stackable td[data-label=""] { justify-content: flex-end; }
  .tablebox table.stackable td[data-label=""]::before { content: none; }
}
.dom-pick { display: grid; gap: 8px; margin-top: 6px; }
.dom-pick .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dom-pick .chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .9rem; }
.dom-pick .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.dom-pick .chip input { accent-color: var(--brand); margin: 0; }

.test-square[data-test=akademik] .sq-ic { background: color-mix(in srgb, var(--sun, #e6a400) 18%, transparent); color: #9a6a00; }
.member-more { margin-top: 6px; } .member-more summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.member-more[open] { display: grid; gap: 6px; padding-top: 6px; }
.mini-form { display: flex; gap: 6px; flex-wrap: wrap; } .mini-form input { min-height: 34px; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.btn.danger { background: var(--refer); border-color: var(--refer); color: #fff; }
.home-tests { margin-top: 24px; }
.home-tests .test-square { cursor: default; aspect-ratio: auto; max-height: none; min-height: 210px; }
.home-tests .test-square:hover { transform: none; border-color: var(--line); }
/* Öneri bankası */
.sug-domain { font-size: 1rem; margin-top: 18px; }
.sug-list { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.sug-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.sug-item { font-weight: 600; }
.sug-ans { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.sug-ans.no { background: color-mix(in srgb, var(--refer) 14%, transparent); color: var(--refer); }
.sug-ans.sometimes { background: color-mix(in srgb, var(--watch) 16%, transparent); color: var(--watch); }
.sug-short { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--teal); background: color-mix(in srgb, var(--teal) 7%, transparent); border-radius: 0 8px 8px 0; }
.sug-tip { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.sug-more { margin-top: 6px; } .sug-more summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: .9rem; }
.sug-dl { margin: 8px 0 0; } .sug-dl dt { font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: 8px; } .sug-dl dd { margin: 2px 0 0; }
