/* Gelişim Paneli — sakin, okunaklı, mobil uyumlu */
:root {
  --bg: #F5F3EE;
  --card: #FFFFFF;
  --ink: #17211C;
  --ink-2: #33403A;
  --muted: #5F6B65;
  --line: #E4E0D6;
  --line-2: #CFCABD;
  --green: #0E6B57;
  --green-ink: #0A5243;
  --green-soft: #DDEFE9;
  --amber: #E8A33D;
  --amber-soft: #FBEBD0;
  --amber-ink: #7A4D07;
  --red: #B3392F; --red-soft: #F8E1DE;
  --blue-soft: #E3ECF8;
  --r: 18px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: clamp(19px, 2.4vw, 22px); }
h3, .h3 { font-size: 17px; font-family: var(--display); font-weight: 700; }
p { margin: 0 0 .9em; }
a { color: var(--green-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 700; font-size: 15.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, transform .08s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { flex: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-ink); border-color: var(--green-ink); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(23,33,28,.06); }
.btn.sm { min-height: 36px; padding: 5px 12px; font-size: 14.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; height: 40px; min-height: 40px; padding: 0; }
.btn.icon.sm { width: 34px; height: 34px; min-height: 34px; }
.danger { color: var(--red) !important; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Form */
label { display: block; font-weight: 700; font-size: 14.5px; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
input[type=file] { font-size: 15px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > .grow { flex: 1 1 200px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.form .btn[type=submit] { margin-top: 20px; }

/* Giriş ve kurulum */
.auth-page { min-height: 100vh; background: var(--ink); background-image: radial-gradient(circle at 85% 0%, rgba(14,107,87,.55), transparent 50%), radial-gradient(circle at 0% 100%, rgba(232,163,61,.25), transparent 45%); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; gap: 16px; }
.auth-card { width: 100%; max-width: 430px; background: var(--card); border-radius: 24px; padding: 30px 26px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { margin-top: 20px; font-size: 30px; }
.alert { background: var(--red-soft); color: var(--red); padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.checks li > span { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.checks .ok > span { background: var(--green-soft); color: var(--green); }
.checks .bad > span { background: var(--red-soft); color: var(--red); }
.checks .warn > span { background: var(--amber-soft); color: var(--amber-ink); }
.checks small { color: var(--muted); }
.auth-card .h3 { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--green); position: relative; flex: none; overflow: hidden; }
.logo-mark::before { content: ''; position: absolute; left: 6px; bottom: 8px; width: 18px; height: 10px; border-left: 3px solid #F5F3EE; border-bottom: 3px solid #F5F3EE; transform: skewY(-35deg); }
.logo-mark::after { content: ''; position: absolute; right: 5px; top: 5px; width: 7px; height: 7px; border-radius: 99px; background: var(--amber); }

/* İskelet: masaüstünde sol menü */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #E9EDE8; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.side .logo { color: #fff; padding: 0 6px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #C9D1CB; text-decoration: none; font-weight: 600; font-size: 15px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a[aria-current=page] { background: rgba(255,255,255,.1); color: #fff; }
.side nav .lbl { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8C978F; margin: 14px 10px 4px; }
.side nav .dot { width: 10px; height: 10px; border-radius: 99px; flex: none; }
.side nav .pct { margin-left: auto; font-size: 12.5px; color: #8C978F; font-variant-numeric: tabular-nums; }
.side-foot { display: flex; flex-direction: column; gap: 12px; padding: 0 6px; }
.side-foot .linkbtn { color: #8C978F; }
.main-wrap { min-width: 0; }
.main { max-width: 1120px; margin: 0 auto; padding: 34px 28px 100px; outline: none; }
.mtop, .btm { display: none; }
@media (max-width: 960px) {
  .shell { display: block; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 30; background: rgba(245,243,238,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .main { padding: 20px 16px calc(120px + env(safe-area-inset-bottom)); }
  .btm { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .btm a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; padding: 6px 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-decoration: none; }
  .btm a .ic { width: 46px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
  .btm a[aria-current=page] { color: var(--ink); }
  .btm a[aria-current=page] .ic { background: var(--green-soft); color: var(--green-ink); }
}
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--amber); color: var(--ink); font-size: 30px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 10px 30px rgba(23,33,28,.25); }
@media (max-width: 960px) { .fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; width: 52px; height: 52px; } }

/* Kartlar ve başlıklar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card.pad-s { padding: 14px 16px; }
.card.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.ink .muted { color: #AEB8B1; }
.card.green { background: var(--green); color: #fff; border-color: var(--green); }
.card.green .muted { color: #CFE7DF; }
.card.soft { background: var(--green-soft); border-color: #C3E2D7; }
.card.amber { background: var(--amber-soft); border-color: #F2D9AC; }
.head { margin-bottom: 22px; }
.head p { color: var(--muted); max-width: 70ch; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 6px; }
.section { margin-top: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2, .sec-head h3 { margin: 0; }
.back { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; font-weight: 700; text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.7; white-space: nowrap; }
.chip.green { background: var(--green-soft); color: var(--green-ink); }
.chip.amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.blue { background: var(--blue-soft); color: #234A7A; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; min-height: 38px; padding: 5px 14px; font-size: 14.5px; border-radius: 10px; font-weight: 700; }
.toggle[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s, transform .12s; }
a.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.notice { background: var(--amber-soft); color: #5B3A04; border-radius: 12px; padding: 11px 15px; font-size: 15px; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }

/* Göstergeler */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 700; }
.kpi b { display: block; font: 700 28px/1.15 var(--display); margin-top: 4px; }
.kpi small { color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.ring { flex: none; }
.areas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.acard { position: relative; overflow: hidden; }
.acard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--green)); }
.acard .top { display: flex; align-items: center; gap: 12px; }
.aicon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--green)); flex: none; }
.acard h3 { margin: 0; font-size: 17px; }
.meta3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.meta3 div { background: var(--bg); border-radius: 10px; padding: 7px 9px; }
.meta3 b { display: block; font: 700 17px/1.2 var(--display); }
.meta3 span { font-size: 12px; color: var(--muted); font-weight: 700; }
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.prow .nm { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.prow .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .v { font: 700 14px var(--display); text-align: right; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.stack-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.stack-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.stack-bars .col { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 7px; overflow: hidden; background: var(--line); min-height: 3px; }
.stack-bars .col i { display: block; width: 100%; }
.stack-bars small { font-size: 12px; color: var(--muted); }
.stack-bars .today small { color: var(--ink); font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Alan sayfası */
.ahead { border-radius: 22px; padding: 24px; color: #fff; background: var(--c, var(--green)); position: relative; overflow: hidden; margin-bottom: 18px; }
.ahead::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 99px; background: rgba(255,255,255,.1); }
.ahead h1 { color: #fff; margin: 4px 0 8px; }
.ahead p { color: rgba(255,255,255,.88); max-width: 72ch; margin: 0; }
.ahead .kicker { color: rgba(255,255,255,.8); }
.ahead .stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.ahead .stats span { background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 13px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; min-height: 44px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.tab[aria-selected=true] { color: var(--ink); border-color: var(--c, var(--green)); }
.module { padding: 0; overflow: hidden; }
.module > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.module > summary::-webkit-details-marker { display: none; }
.module > summary h3 { margin: 0; flex: 1; }
.module > summary .chev { transition: transform .15s; color: var(--muted); }
.module[open] > summary .chev { transform: rotate(90deg); }
.topics { list-style: none; margin: 0; padding: 0 10px 10px; }
.topics li { display: flex; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid var(--line); }
.topics li .tt { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.4; }
.topics li.s2 .tt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(95,107,101,.5); }
.st { width: 32px; height: 32px; border-radius: 99px; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; padding: 0; }
.st.s1 { border-color: var(--amber); background: linear-gradient(90deg, var(--amber) 50%, #fff 50%); }
.st.s2 { border-color: var(--green); background: var(--green); color: #fff; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.seg button { min-height: 38px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 9px; font-weight: 800; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--c, var(--green)); border-color: var(--c, var(--green)); color: #fff; }
.skill { padding: 14px 0; border-top: 1px solid var(--line); }
.skill:first-child { border-top: 0; padding-top: 0; }
.spark { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.spark i { width: 6px; border-radius: 2px; background: var(--c, var(--green)); opacity: .55; }
.spark i:last-child { opacity: 1; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 10px; }
.lvl { font-size: 12px; }
.res { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; }
.res a.t { font-weight: 800; font-size: 16px; text-decoration: none; color: var(--ink); }
.res a.t:hover { text-decoration: underline; }
select.mini { min-height: 36px; padding: 4px 10px; font-size: 14px; width: auto; border-radius: 10px; }
.explain p { font-size: 16.5px; line-height: 1.75; max-width: 72ch; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.opt { justify-content: flex-start; text-align: left; white-space: normal; line-height: 1.4; }
.opt.right { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.opt.wrong { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.qq { padding: 14px 0; border-top: 1px solid var(--line); }
.qq:first-child { border-top: 0; }
ul.clean { margin: 0; padding-left: 20px; }
ul.clean li { margin: 4px 0; }
.answer p { margin: 0 0 .8em; }
.timer { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px; }
.timer b { font: 700 24px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.timer select { min-height: 38px; font-size: 14px; background: #fff; color: var(--ink); margin-top: 8px; }
.tmini { font: 700 15px var(--display); background: var(--amber); color: var(--ink); padding: 4px 10px; border-radius: 99px; text-decoration: none; font-variant-numeric: tabular-nums; }
.spinner { width: 22px; height: 22px; border-radius: 99px; border: 3px solid var(--line); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 24px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 90; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }
@media (max-width: 960px) { .toast { bottom: calc(150px + env(safe-area-inset-bottom)); } }
dialog { border: 0; border-radius: 20px; padding: 22px; width: min(520px, calc(100% - 24px)); max-height: 90vh; }
dialog::backdrop { background: rgba(23,33,28,.5); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 520px) { .prow { grid-template-columns: 110px minmax(0, 1fr) 40px; } .meta3 b { font-size: 15px; } }
.stack-bars.dense { gap: 4px; }
.stack-bars.dense small { font-size: 10.5px; white-space: nowrap; }
.stack-bars > div { min-width: 0; }
