/* Sofix/pen · ortak tema (koyu) */
[hidden] { display: none !important; }
:root {
  --bg: #0a0b0b; --panel: #121514; --panel2: #171b19; --panel3: #1d2220; --line: #252b28; --line2: #323a36;
  --text: #ecf0ee; --muted: #8a948e; --dim: #5f6863;
  --acc: #22c55e; --acc2: #4ade80; --accbg: rgba(34, 197, 94, .12); --accline: rgba(34, 197, 94, .35); --onacc: #03140a;
  --warn: #f59e0b; --warnbg: rgba(245, 158, 11, .1); --err: #f87171; --errbg: rgba(248, 113, 113, .1);
  --ink: #1a237e; --radius: 12px; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--acc2); }
::selection { background: rgba(34, 197, 94, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a302d; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- navbar ---- */
header.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 max(24px, calc((100% - 1112px) / 2)); /* sayfa içeriğiyle (1160px) aynı kenar boşluğu */ height: 76px; /* diğer Sofix navbarlarıyla aynı */ background: rgba(10, 11, 11, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; flex-shrink: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; justify-self: start; }
.logo img { height: 26px; width: auto; display: block; }
.logo-word { display: flex; align-items: baseline; font-size: 23px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.logo-word .s { color: #5f6863; font-weight: 600; font-size: 18px; margin: 0 1px; }
.logo-word .p { color: var(--acc); font-weight: 800; font-size: 18px; }
header.top nav { display: flex; gap: 4px; justify-self: center; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 21, 20, .6); }
header.top nav a { color: #9aa39e; text-decoration: none; padding: 7px 14px; border-radius: 9px; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: color .15s, background .15s; }
header.top nav a:hover { color: #fff; }
header.top nav a.on { color: #fff; background: #1d2220; box-shadow: inset 0 0 0 1px var(--line2); }
header.top .right { justify-self: end; display: flex; align-items: center; gap: 10px; position: relative; }
.btn.navcta { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.acct-btn { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.acct-btn:hover { border-color: #46514b; background: var(--panel3); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accbg); border: 1px solid var(--accline); color: var(--acc2); font-weight: 700; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5); padding: 6px; z-index: 40; }
.acct-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu .who b { display: block; font-size: 14px; } .acct-menu .who span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.acct-menu a, .acct-menu button { display: flex; width: 100%; gap: 9px; align-items: center; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: #c9d1cc; font-size: 14px; text-decoration: none; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--panel3); color: #fff; }
.srcLbl { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.srcLbl:empty { display: none; }

/* ---- form öğeleri ---- */
button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); padding: 7px 13px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
button:hover, .btn:hover { border-color: #46514b; background: var(--panel3); }
button.pri, .btn.pri { background: var(--acc); border-color: var(--acc); color: var(--onacc); font-weight: 650; }
button.pri:hover, .btn.pri:hover { background: var(--acc2); border-color: var(--acc2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.sm, .btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 8px; }
button.on { background: var(--accbg); border-color: var(--accline); color: var(--acc2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.note { padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; color: #c9d1cc; }
.note.warn { background: var(--warnbg); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.note.err { background: var(--errbg); border-color: rgba(248,113,113,.3); color: #fca5a5; }
.note.ok { background: var(--accbg); border-color: var(--accline); color: #86efac; }
.note b { color: inherit; }
label.f { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; font-size: 13px; margin: 8px 0; color: #c9d1cc; }
label.f input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--acc); }
label.f output { font-family: var(--mono); font-size: 12px; color: var(--muted); }
input[type=number], input[type=text], select { font: inherit; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel2); color: var(--text); min-width: 0; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accline); outline-offset: 1px; }
input[type=checkbox] { accent-color: var(--acc); }
input[type=number] { width: 78px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.grid2 label { font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.grid2 label input, .grid2 label select { width: 100%; color: var(--text); }
details.sec { border-top: 1px solid var(--line); }
details.sec > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: '›'; color: var(--muted); transition: transform .15s; font-size: 16px; line-height: 1; }
details.sec[open] > summary::after { transform: rotate(90deg); }
details.sec > div { padding: 0 16px 16px; }
kbd { font-family: var(--mono); font-size: 12px; background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--panel3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: #d6dfda; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 10px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 11px 12px; color: var(--muted); }
.tabs button:hover { background: transparent; color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--acc); font-weight: 600; background: transparent; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1b201d; border: 1px solid var(--line2); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 99; opacity: 0; transition: opacity .2s; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; }
@media (max-width: 760px) {
  header.top { display: grid; grid-template-columns: 1fr auto; height: auto; padding: 10px 14px 10px; gap: 10px 12px; }
  header.top nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; overflow-x: auto; }
  header.top nav a { padding: 6px 10px; font-size: 13.5px; }
  .logo img { height: 22px; } .logo-word { font-size: 20px; } .logo-word .s, .logo-word .p { font-size: 16px; }
  .acct-name { display: none; }
  .btn.navcta { padding: 7px 11px; font-size: 13px; }
}

/* ---- uygulama sayfaları (Kurulum, Yaz & Çiz): navbar yok, sol üstte menü ---- */
#burgerSlot { display: inline-flex; align-items: center; }
#burgerSlot.floating { position: absolute; left: 14px; top: 12px; z-index: 5; }
.cardtop { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.cardtop .tabs { flex: 1; border-bottom: 0; }
.cardtop #burgerSlot { padding: 0 10px 0 10px; align-self: stretch; border-right: 1px solid var(--line); }
.burger { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line2); background: rgba(18, 21, 20, .85); color: var(--text); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cardtop .burger { width: 32px; height: 32px; border-radius: 8px; background: var(--panel2); }
button.burger:hover { border-color: #46514b; background: var(--panel3); }
.sdrawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sdrawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 91; background: var(--panel); border-right: 1px solid var(--line2); display: flex; flex-direction: column; padding: 18px 14px 16px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .45); }
body.sdrawer-open .sdrawer { transform: none; }
body.sdrawer-open .sdrawer-bg { opacity: 1; pointer-events: auto; }
.sdrawer .dhead { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sdrawer .dclose { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); }
.sdrawer .dclose:hover { border-color: var(--line2); color: var(--text); }
.sdrawer .dnav { display: grid; gap: 2px; }
.sdrawer .dnav a, .sdrawer .dnav button { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 9px; color: #b9c2bd; text-decoration: none; font-size: 14.5px; font-weight: 500; background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; }
.sdrawer .dnav a:hover, .sdrawer .dnav button:hover { background: var(--panel2); color: #fff; }
.sdrawer .dnav a.on { background: var(--panel2); color: #fff; box-shadow: inset 2px 0 0 var(--acc); }
.sdrawer .dnav svg { flex-shrink: 0; color: var(--muted); }
.sdrawer .dnav a.on svg { color: var(--acc2); }
.sdrawer .dsp { flex: 1; }
.sdrawer .dacct { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.sdrawer .dwho { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; min-width: 0; }
.sdrawer .dwho div { min-width: 0; } .sdrawer .dwho b { display: block; font-size: 14px; }
.sdrawer .dwho span { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdrawer .dacct .btn { justify-content: center; }
.sdrawer .dnav button.out:hover { color: #fca5a5; } .sdrawer .dnav button.out:hover svg { color: #fca5a5; }
