:root {
  --bg: #eef2f9; --card: #ffffff; --ink: #14213d; --muted: #5a6a8a;
  --accent: #2851a3; --accent-ink: #ffffff; --line: #d3dcec; --soft: #e3e9f5;
  --glass: rgba(255, 255, 255, .72); --danger: #c0392b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1426; --card: #13203a; --ink: #e4eaf6; --muted: #8fa0c0;
    --accent: #6aa5ff; --accent-ink: #0b1426; --line: #24365a; --soft: #1a2a4a;
    --glass: rgba(19, 32, 58, .72); --danger: #ff7b72; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1426; --card: #13203a; --ink: #e4eaf6; --muted: #8fa0c0;
  --accent: #6aa5ff; --accent-ink: #0b1426; --line: #24365a; --soft: #1a2a4a;
  --glass: rgba(19, 32, 58, .72); --danger: #ff7b72; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif;
       background: var(--bg); color: var(--ink); }
header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
         backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
         padding: 10px 20px; background: var(--glass); border-bottom: 1px solid var(--line);
         position: sticky; top: 0; z-index: 5; }
.brand { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
nav::-webkit-scrollbar { display: none; }
nav button { border: none; background: none; padding: 8px 12px; border-radius: 20px; white-space: nowrap; flex: none; }
nav button.active { background: var(--soft); color: var(--accent); font-weight: 600; }
.who { border-radius: 20px; }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.view { display: none; } .view.active { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; padding: 8px 14px; border-radius: 8px;
         border: 1px solid var(--line); background: var(--card); }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.small { padding: 4px 10px; font-size: .85rem; margin-top: 6px; align-self: flex-start; }
button.danger { color: var(--danger); }
input, select, textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
         background: var(--bg); width: 100%; }
textarea { resize: vertical; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search], .toolbar input[type=url] { flex: 1; min-width: 200px; width: auto; }
.toolbar select { width: auto; }
.check { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.check input { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
        overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.card .ph { aspect-ratio: 1; background: var(--soft); display: flex; align-items: center;
            justify-content: center; font-size: 3rem; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 8px 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .m { font-size: .82rem; color: var(--muted); }
.card .row { display: flex; gap: 6px; margin-top: 6px; }
.card .row button { flex: 1; padding: 5px; font-size: .85rem; }
.fav { color: var(--accent); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
         padding: 14px 16px; margin-bottom: 14px; }
.panel h3 { margin: 0 0 10px; }
.hint { color: var(--muted); font-size: .88rem; margin: 4px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border-radius: 16px; padding: 4px 12px; font-size: .88rem; background: var(--soft); }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; margin: 16px; }
.status { color: var(--muted); margin: 8px 0; }
dialog { border: none; border-radius: 14px; padding: 0; width: min(900px, 96vw);
         max-height: 92vh; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(5, 12, 28, .45); backdrop-filter: blur(6px); }
#pForm, #detailBody { padding: 18px 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.form-grid label > * { color: var(--ink); }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } header { padding: 8px 12px; } }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.thumbs .th { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden;
              border: 1px solid var(--line); }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .th button { position: absolute; top: 2px; right: 2px; padding: 0 7px; font-size: .9rem;
                     border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center;
        color: var(--muted); }
.drop.over { border-color: var(--accent); background: var(--soft); }
.filebtn { color: var(--accent); text-decoration: underline; cursor: pointer; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;
           position: sticky; bottom: 0; background: var(--card); padding-top: 8px; }
.detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.detail-head h2 { margin: 0; }
.gallery { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.gallery .main { width: 100%; max-height: 60vh; object-fit: contain; background: var(--soft);
                 border-radius: 10px; cursor: zoom-in; }
.gallery .thumbs img { cursor: pointer; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px;
         margin: 10px 0; }
.facts div { background: var(--soft); border-radius: 8px; padding: 6px 10px; }
.facts b { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.instr { white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.tag { display: inline-block; background: var(--soft); border-radius: 12px; padding: 1px 10px;
       margin: 2px; font-size: .85rem; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.pick label { position: relative; cursor: pointer; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
              border: 3px solid transparent; }
.pick label:has(input:checked) { border-color: var(--accent); }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick input { position: absolute; top: 6px; left: 6px; width: auto; }
.guide h2 { color: var(--accent); margin-top: 6px; }
.guide table { border-collapse: collapse; width: 100%; margin: 8px 0 18px; }
.guide th, .guide td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left;
                       vertical-align: top; }
.guide th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.guide .sym { font-family: ui-monospace, monospace; font-size: 1.15rem; text-align: center; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink);
         color: var(--bg); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .3s;
         pointer-events: none; max-width: 90vw; z-index: 50; }
.toast.show { opacity: 1; }
@media (max-width: 620px) {
  header { gap: 6px 10px; }
  .brand { flex: 1; }
  nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; }
  nav button { white-space: nowrap; padding: 6px 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  main { padding: 10px; }
  .toolbar select { flex: 1; }
}

a { color: var(--accent); }
.ai-btn { background: linear-gradient(90deg, #4f46e5, #2f80ed); color: #fff; border: none; }
.ai-note { border-left: 4px solid var(--accent); background: var(--soft); padding: 8px 12px;
           border-radius: 6px; margin: 8px 0; font-size: .92rem; }
.spinner { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%;
           border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* şema */
.chart { width: 100%; height: auto; fill: none; stroke-linecap: round; }
.chart line, .chart ellipse, .chart circle, .chart polyline, .chart rect { stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .fill { fill: currentColor; }
.chart .r0 { color: var(--ink); stroke: var(--ink); }
.chart .r1 { color: var(--accent); stroke: var(--accent); }
.chart .hl { color: var(--accent); stroke: var(--accent); }
.chart .hl line, .chart .hl ellipse, .chart .hl circle { stroke-width: 2; }
.chart .dim { color: var(--muted); stroke: var(--muted); opacity: .35; }
.chart .ring { stroke: var(--muted); }
.chart .dash { stroke-dasharray: 2 2; }
.chart .lbl { fill: var(--muted); stroke: none; font-size: 6px; }
.chart g[data-row] { cursor: pointer; }
.chart.icon { width: 22px; height: 26px; vertical-align: middle; }
.chart-box { background: var(--soft); border-radius: 12px; padding: 10px; margin: 8px 0; }
.chart-box .chart:not(.icon) { max-height: 70vh; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--muted); margin-top: 6px; }
/* biçimli tarif */
.recipe { display: flex; flex-direction: column; gap: 8px; }
.recipe p { margin: 0; }
.recipe h4 { margin: 10px 0 2px; color: var(--accent); }
.recipe .badge { align-self: flex-start; background: var(--soft); border: 1px dashed var(--accent);
  color: var(--accent); border-radius: 8px; padding: 3px 10px; font-size: .85rem; }
.recipe .abbr { background: var(--soft); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.recipe ul { margin: 0; padding-left: 20px; }
.row-step { display: flex; gap: 10px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.row-step .rn { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.row-step .tip { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.row-step .tip::before { content: "💡 "; }
.recipe .warn { border-left: 4px solid #e6a23c; background: var(--soft); border-radius: 6px; padding: 8px 12px; }
.sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-head h3 { margin: 12px auto 12px 0; }
.sec-head button { padding: 5px 12px; font-size: .9rem; }
/* adım adım */
.step-dlg { width: min(760px, 98vw); }
.st-chart { max-width: 420px; margin: 0 auto; }
.st-card { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.st-card h3 { margin: 2px 0 8px; color: var(--accent); }
.st-text { font-size: 1.2rem; line-height: 1.6; white-space: pre-wrap; }
.st-controls { display: flex; gap: 8px; justify-content: space-between; }
.st-controls button { flex: 1; padding: 12px; font-size: 1.05rem; }
.st-opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.st-opts select { width: auto; padding: 4px 8px; }
.guide .chart.icon { width: 30px; height: 38px; }
.guide .chart line, .guide .chart ellipse, .guide .chart circle { stroke-width: 1.5; }

body { background: radial-gradient(1200px 600px at 10% -10%, var(--soft), transparent 60%), var(--bg);
       background-attachment: fixed; min-height: 100vh; }
.icon-btn { border-radius: 20px; padding: 7px 12px; }
.exit-btn { color: var(--danger); }
.closed { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
          justify-content: center; gap: 8px; background: var(--bg); z-index: 100; text-align: center; padding: 20px; }
.ver { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: 4px; }
.lan { font-family: ui-monospace, monospace; background: var(--soft); padding: 2px 8px; border-radius: 6px; }
.guide th.sym { font-family: inherit; font-size: .9rem; }
.toast[popover] { inset: auto; bottom: 20px; left: 50%; margin: 0; border: none; overflow: visible; }
.net-out { margin: 8px 0; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.chart .nost { fill: var(--muted); stroke: none; opacity: .35; }

/* ---------- dersler ---------- */
a.btn { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
        background: var(--card); color: var(--ink); text-decoration: none; }
a.btn:hover { border-color: var(--accent); }
.ls-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
@media (max-width: 820px) { .ls-wrap { grid-template-columns: 1fr; } }
.ls-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.ls-item { display: flex; align-items: center; gap: 8px; text-align: left; border: none; background: none; padding: 7px 8px; }
.ls-item:hover { background: var(--soft); }
.ls-item.on { background: var(--soft); color: var(--accent); font-weight: 600; }
.ls-item.done .ls-n { background: #1f9d5c; color: #fff; }
.ls-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: flex;
        align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.ls-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin: 8px 0; }
@media (max-width: 820px) { .ls-grid { grid-template-columns: 1fr; } }
.ls-stage { background: var(--soft); border-radius: 12px; padding: 6px; }
.ls-steps { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ls-steps li { background: var(--soft); border-radius: 8px; padding: 8px 10px; color: var(--muted); cursor: pointer;
               border-left: 4px solid transparent; font-size: .95rem; }
.ls-steps li.on { color: var(--ink); border-left-color: var(--accent); font-weight: 600; font-size: 1.02rem; }
.ls-steps li.past { opacity: .75; }
.ls-ctrl { margin: 8px 0; }
.ctrl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* sahne */
.scene { width: 100%; height: auto; display: block; }
.scene .yarn, .scene .yarn * { fill: none; stroke: #e8b48a; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .done, .scene .done * { stroke-width: 1.6; }
.scene .hl { stroke: var(--accent) !important; }
.scene .shaft { fill: none; stroke: #b9c6de; stroke-width: 9; stroke-linecap: round; }
.scene .shaft.thin { stroke-width: 6; }
.scene .grip { fill: #8fa0c0; opacity: .5; }
.scene .fab { fill: none; stroke: #e8b48a; stroke-width: 4; opacity: .55; }
.scene .fab.target { stroke: var(--accent); opacity: 1; stroke-dasharray: 5 4; animation: blink 1.2s infinite; }
.scene .post { stroke-dasharray: 3 0; }
.scene .arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.scene .ball { fill: #e8b48a; opacity: .9; } .scene .ball-l { fill: none; stroke: #b5815c; stroke-width: 2; }
.scene .cap { fill: var(--ink); font-size: 17px; font-weight: 700; }
.scene .lbl2 { fill: var(--muted); font-size: 13px; }
.scene .draw { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.1s ease forwards; }
.scene .pop { animation: pop .7s ease; transform-box: fill-box; transform-origin: center; }
.scene .vanish { animation: vanish .9s ease forwards; }
.scene .hook { transition: transform .8s; }
.scene .dip { animation: dip .8s ease; }
.scene .rise { animation: rise .8s ease; }
.ls-stage.slow .draw, .ls-stage.slow .pop, .ls-stage.slow .vanish, .ls-stage.slow .dip, .ls-stage.slow .rise { animation-duration: 2.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 70% { transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes vanish { 0% { opacity: 1; } 100% { opacity: 0; transform: translate(-14px, 6px); } }
@keyframes dip { from { translate: 10px -86px; } to { translate: 0 0; } }
@keyframes rise { from { translate: -10px 86px; } to { translate: 0 0; } }
@keyframes blink { 50% { opacity: .35; } }
/* terimler */
.term { color: var(--accent); border-bottom: 2px dotted var(--accent); cursor: pointer; font-weight: 600; }
.term:hover { background: var(--soft); border-radius: 4px; }
.term-dlg { width: min(520px, 94vw); }
.term-pop { display: flex; gap: 14px; align-items: flex-start; }
.term-pop h3 { margin: 0 0 6px; color: var(--accent); }
.term-pop p { margin: 0 0 10px; }
.term-icon { flex: none; background: var(--soft); border-radius: 12px; padding: 10px; }
.term-icon .chart.icon { width: 56px; height: 70px; }
.term-icon .chart line, .term-icon .chart ellipse, .term-icon .chart circle, .term-icon .chart polyline { stroke-width: 2; }
/* öğrenme kutusu */
.learn { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.learn-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.learn-chip { border-radius: 16px; padding: 5px 12px; font-size: .9rem; background: var(--card); border: 1px solid var(--line);
              color: var(--ink); font-weight: 500; }
.learn-chip.done { color: #1f9d5c; border-color: #1f9d5c; }
.sec-head button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* adım adım: küçük adımlar + sayaç */
.st-anim { justify-content: center; margin: 4px 0; }
.micro { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.micro .m { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.micro .m.done { opacity: .5; } .micro .m.done > span:last-child { text-decoration: line-through; }
.micro .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
            display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.counter { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; }
.counter > button { font-size: 1.5rem; padding: 8px 22px; }
.counter .cnt-mid { flex: 1; text-align: center; }
.counter .big { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.counter .bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.counter .bar > div { height: 100%; background: var(--accent); width: 0; transition: width .3s; }

.ls-back { border-color: var(--accent); }
.ls-back-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ls-back-row button { font-size: 1.02rem; }
.learn-chip.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.ls-back { position: sticky; top: 62px; z-index: 4; }

/* ---------- versiyon stüdyosu ---------- */
.var-dlg { width: min(1100px, 98vw); }
.var-top { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
@media (max-width: 700px) { .var-top { grid-template-columns: 1fr; } }
.var-orig { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft); }
.var-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
.idea { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: left;
        display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.idea:hover { border-color: var(--accent); }
.idea b { color: var(--accent); }
.idea .tagd { font-size: .78rem; color: var(--muted); }
.var-own { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.var-hist { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.var-hist button { border-radius: 16px; padding: 4px 12px; font-size: .88rem; }
.var-hist button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.var-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .var-previews { grid-template-columns: 1fr; } }
.var-box { background: var(--soft); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.var-box-h { font-weight: 600; }
.lace-view { border-radius: 10px; padding: 14px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #6b4a33, #3e2a1c 70%); }
.lace-view .chart { max-height: 100%; }
.lace-view .chart line, .lace-view .chart ellipse, .lace-view .chart circle, .lace-view .chart polyline, .lace-view .chart rect {
  stroke: #f4ead6 !important; stroke-width: 2.6; opacity: 1 !important; filter: drop-shadow(0 1.5px 1px rgba(0,0,0,.55)); }
.lace-view .chart .fill { fill: #f4ead6 !important; }
.lace-view .chart .ring { stroke: #f4ead6 !important; }
.var-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.var-photos .ph { position: relative; border-radius: 10px; overflow: hidden; border: 3px solid transparent; }
.var-photos .ph.sel { border-color: var(--accent); }
.var-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
.var-photos label { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px;
  padding: 1px 6px; font-size: .8rem; display: flex; gap: 4px; align-items: center; }
.var-photos label input { width: auto; }
.var-photos .empty-ph { color: var(--muted); font-size: .9rem; padding: 18px; text-align: center; grid-column: 1 / -1; }
.var-again { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.var-again label { display: flex; flex-direction: column; gap: 4px; }
.adv summary { cursor: pointer; color: var(--muted); margin: 6px 0; }

/* ---------- versiyon ailesi ---------- */
.vbadge { color: var(--accent) !important; font-weight: 600; }
.family { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.family-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.family-list { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.fam { flex: none; width: 110px; padding: 0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
       background: var(--card); border: 2px solid var(--line); }
.fam.on { border-color: var(--accent); }
.fam img, .fam .fam-ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.fam-t { font-size: .78rem; padding: 4px 6px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- karşılaştırma ---------- */
.cmp-dlg { width: min(1200px, 98vw); }
.cmp-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cmp-body { grid-template-columns: 1fr; } }
.cmp-col { background: var(--soft); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cmp-sel { font-weight: 600; }
.cmp-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmp-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.cmp-noimg { display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--muted); }
.cmp-media .lace-view { padding: 6px; }
.cmp-facts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp-facts th { text-align: left; color: var(--muted); font-weight: 500; width: 38%; padding: 4px 6px; vertical-align: top; }
.cmp-facts td { padding: 4px 6px; }
.cmp-facts tr.diff td { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 4px; font-weight: 600; }
.cmp-col details summary { cursor: pointer; color: var(--accent); }

.brand { display: flex; align-items: center; gap: 8px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; }

.filebtn2 { cursor: pointer; display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }

.up-notes { background: var(--soft); border-radius: 8px; padding: 8px 10px; font-size: .85rem; white-space: pre-wrap; margin: 6px 0; }
#setBtn.has-update { position: relative; border-color: var(--accent); }
#setBtn.has-update::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }

.usage { background: var(--soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.use-now { display: flex; align-items: baseline; gap: 10px; }
.use-big { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.usage .bar { height: 6px; background: var(--line); border-radius: 3px; margin: 6px 0; overflow: hidden; }
.usage .bar > div { height: 100%; background: var(--accent); }
.use-tbl { margin-top: 6px; font-size: .88rem; border-collapse: collapse; }
.use-tbl td { padding: 2px 10px 2px 0; }

.pin-dlg { width: min(360px, 92vw); }
.pin-in { font-size: 1.8rem; text-align: center; letter-spacing: .4em; margin: 6px 0; }
@media (max-width: 620px) { .brand { white-space: nowrap; font-size: 1.1rem; } }
.ls-grp { font-weight: 700; color: var(--muted); font-size: .85rem; margin: 10px 0 2px 4px; text-transform: none; }
.scene .needle { fill: none; stroke: #b9c6de; stroke-width: 7; stroke-linecap: round; }
.scene .loops .hl, .scene .yarn.hl { stroke: var(--accent) !important; }
.scene .fabv { stroke-width: 3.5; opacity: .55; }
.scene .yarn.front { stroke-dasharray: none; }
.chart .dimrep { opacity: .12; }
.chart .focus line, .chart .focus ellipse, .chart .focus circle, .chart .focus polyline { stroke: var(--accent); stroke-width: 2.2; }
.chart .focus .fill { fill: var(--accent); }
.chart .focus-ring { stroke: var(--accent) !important; stroke-width: 3 !important; animation: blink 1.2s infinite; }

.tour-dlg { width: min(980px, 98vw); }
.tour-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; margin: 8px 0 12px; }
@media (max-width: 760px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-chart { background: var(--soft); border-radius: 12px; padding: 10px; }
.tour-chart .chart { max-height: 60vh; }
.tour-card { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.tour-card h3 { color: var(--accent); margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.tour-card p { font-size: 1.08rem; line-height: 1.6; }
.tour-icon .chart.icon { width: 30px; height: 38px; }
.ls-tour { width: 100%; margin: 6px 0; }

.chk-btn { font-size: .92rem; padding: 6px 12px; }
.chk-dlg { width: min(860px, 96vw); }
.chk-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
@media (max-width: 640px) { .chk-grid { grid-template-columns: 1fr; } }
.chk-grid img { width: 100%; border-radius: 10px; }
.chk-badge { display: inline-block; border-radius: 16px; padding: 4px 12px; font-weight: 700; margin-bottom: 8px; }
.chk-badge.ok { background: rgba(31,157,92,.18); color: #3fcf8e; }
.chk-badge.warn { background: rgba(230,162,60,.18); color: #e6a23c; }
.chk-issues li { margin-bottom: 8px; }
.chk-issues .tip { color: var(--muted); font-size: .92rem; }
.chk-issues .tip::before { content: "💡 "; }

.share-dlg { width: min(520px, 94vw); }
.sh-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sh-opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px;
          background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.4rem; cursor: pointer; }
.sh-opt > span { font-size: .95rem; }
.sh-opt:hover { border-color: var(--accent); }

.fb { background: var(--soft); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.fb h3 { margin: 4px 0; }
.fb-form { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.fb-r.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fb-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fb-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 8px; padding: 8px 10px; }
.fb-list li > div { flex: 1; }
.fb-ic { font-size: 1.2rem; }
.fb-del { padding: 2px 8px; }
.fbbadge { font-size: .8rem !important; }
@media (max-width: 620px) {
  .ver, #exitBtn { display: none !important; }
  .who { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  header .icon-btn { padding: 7px 10px; }
}

.rav-dlg { width: min(1000px, 96vw); }
.rav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 720px) { .rav-grid { grid-template-columns: 1fr; } }
.rav-grid .gallery { margin: 0; }
.rav-grid .facts { grid-template-columns: 1fr 1fr; }
.rav-dl { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rav-dl.free { border: 1px solid #3fcf8e; }
.rav-notes { max-height: 320px; overflow: auto; }

/* ---------- Google girişi: kullanıcı düğmesi ve Kullanıcılar sayfası ---------- */
.who { display: inline-flex; align-items: center; gap: 6px; }
.who-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: #ff6b6b; color: #fff; font-size: .75rem; font-weight: 700; }
.u-group { font-size: 1.1rem; margin: 18px 0 10px; }
.u-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.u-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex;
  flex-direction: column; gap: 12px; }
.u-card.pending { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.u-card.blocked { opacity: .8; }
.u-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.u-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.u-av.ph { display: grid; place-items: center; background: linear-gradient(135deg, #f6b26b, #e06666); color: #fff; font-weight: 700; }
.u-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.u-name .hint { overflow: hidden; text-overflow: ellipsis; }
.u-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.u-tag { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.u-tag.pending { color: var(--accent); font-weight: 600; }
.u-tag.blocked { color: var(--danger); }
.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; }
.u-grid div { min-width: 0; }
.u-grid dt { font-size: .74rem; color: var(--muted); }
.u-grid dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.u-limit { display: flex; gap: 8px; align-items: flex-end; }
.u-limit label { flex: 1; font-size: .82rem; color: var(--muted); }
.u-limit button { margin-top: 0; }
.u-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.u-actions button { margin-top: 0; }
@media (max-width: 620px) {
  .u-list { grid-template-columns: 1fr; }
}

/* ---------- profil menüsü ve Ayarlarım ---------- */
.who { gap: 8px; padding: 4px 12px 4px 4px; }
.who .caret { font-size: .7rem; color: var(--muted); }
.who-av, .who .av-ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.av-ph { display: inline-grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--h, 20) 75% 62%), hsl(calc(var(--h, 20) + 40) 70% 50%)); }
.who .av-ph { font-size: .85rem; }
.me-menu { position: fixed; z-index: 50; min-width: 240px; max-width: calc(100vw - 16px); background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); padding: 8px;
  display: flex; flex-direction: column; gap: 2px; }
.me-menu[hidden] { display: none; }
.me-menu .me-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-menu .me-head div { display: flex; flex-direction: column; min-width: 0; }
.me-menu .me-head .hint { overflow: hidden; text-overflow: ellipsis; font-size: .8rem; }
.me-menu .me-head .u-tag { align-self: flex-start; margin-top: 4px; }
.me-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; font-size: 1.1rem; }
.me-menu > button { border: 0; background: none; text-align: left; padding: 10px 10px; border-radius: 8px; }
.me-menu > button:hover, .me-menu > button:focus-visible { background: var(--soft); }
.me-page { max-width: 720px; margin: 0 auto; }
.me-title { font-size: 1.5rem; margin: 6px 0 16px; }
.me-sec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.me-sec h2 { font-size: 1.05rem; margin: 0 0 10px; }
.me-profile { display: flex; gap: 16px; align-items: center; }
.me-profile h2 { margin: 0; font-size: 1.25rem; }
.me-profile p { margin: 2px 0; }
.me-big-av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; font-size: 1.8rem; }
.me-big { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin: 0; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 620px) {
  .who-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .me-profile { flex-direction: column; text-align: center; }
}

/* tarif dili / çeviri şeridi */
.lang-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; padding: 8px 12px;
  border: 1px dashed var(--accent); border-radius: 10px; background: var(--soft); font-size: .92rem; }
.lang-bar button { margin-top: 0; }

/* üst menü: sığmazsa kenarı solar (kaydırılabildiği belli olsun) */
nav.scrolls { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
nav.scrolls.at-end { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 1250px) {
  .brand .ver { display: none; }
  nav button { padding: 7px 9px; }
  header { gap: 8px; }
}

/* aralıklı sıra numaraları ("12–15") rozete sığsın */
.row-step .rn { min-width: 30px; width: auto; padding: 0 7px; border-radius: 999px; }
