/* Simya Plus — portal stilleri. Kurumsal renkler gelince yalnızca :root değişkenlerini değiştirmek yeterli. */
:root {
  --brand: #0c2356;          /* Simya lacivert */
  --brand-2: #1a5fc4;        /* logo mavisi */
  --brand-soft: #e7effb;
  --gold: #e2ad35;           /* Simya altını */
  --gold-soft: #fcf2da;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --line: #e3e3ee;
  --text: #191932;
  --text-2: #5c5c78;
  --text-3: #8b8ba3;
  --ok: #1d8a5b; --ok-soft: #e2f5ec;
  --no: #c8423a; --no-soft: #fbe7e5;
  --warn: #b86e00; --warn-soft: #fff1da;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(25,25,50,.06), 0 4px 16px rgba(25,25,50,.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8fb8f5; --brand-2: #6aa3f2; --brand-soft: #172a4d;
    --gold: #f0b84a; --gold-soft: #3a2f17;
    --bg: #0a1224; --surface: #111c33; --surface-2: #182541; --line: #243352;
    --text: #ececf8; --text-2: #b0b0c8; --text-3: #7e7e9a;
    --ok: #4cc490; --ok-soft: #173327; --no: #f07a72; --no-soft: #3a1c1a; --warn: #f0a742; --warn-soft: #3a2a12;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8fb8f5; --brand-2: #6aa3f2; --brand-soft: #172a4d;
  --gold: #f0b84a; --gold-soft: #3a2f17;
  --bg: #0a1224; --surface: #111c33; --surface-2: #182541; --line: #243352;
  --text: #ececf8; --text-2: #b0b0c8; --text-3: #7e7e9a;
  --ok: #4cc490; --ok-soft: #173327; --no: #f07a72; --no-soft: #3a1c1a; --warn: #f0a742; --warn-soft: #3a2a12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--brand-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
.muted { color: var(--text-2); } .small { font-size: .85rem; } .tiny { font-size: .75rem; color: var(--text-3); }
.hidden { display: none !important; }

/* ---- üst çubuk ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; border-bottom: 3px solid var(--gold); }
:root[data-theme="dark"] .topbar { background: #081733; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #081733; } }
.topbar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.logo img { width: 32px; height: 32px; }
.logo b { color: #4fb0f0; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: rgba(255,255,255,.78); padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; position: relative; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: #fff; background: rgba(255,255,255,.14); }
.spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.who .name { font-weight: 600; } .who .role { opacity: .7; font-size: .78rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #2b1d00; display: grid; place-items: center; font-weight: 800; font-size: .85rem; border: 0; cursor: pointer; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--no); color: #fff; font-size: .7rem; font-weight: 700; }
.nav a .badge { position: absolute; top: 0; right: -2px; }

/* alt sekme çubuğu (mobil) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav, .who .txt { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font-size: .7rem; font-weight: 600; padding: 4px 0; position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--brand-2); }
  .tabbar a .badge { position: absolute; top: 0; left: 55%; }
  main { padding-bottom: 90px !important; }
}

main { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.crumb { font-size: .85rem; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--text-2); }

/* ---- kartlar ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.stat .d { font-size: .78rem; font-weight: 700; margin-top: 4px; }
.up { color: var(--ok); } .down { color: var(--no); }

.hero { background: linear-gradient(135deg, #0c2356 0%, #12337a 60%, #1a4596 100%); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 190px; height: 190px; border-radius: 50%; border: 20px solid rgba(242,193,78,.55); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 4px; }
.hero p { margin: 0; opacity: .85; }

/* deneme kartı */
.exam-card { display: block; color: var(--text); transition: transform .12s, box-shadow .12s; }
.exam-card:hover { transform: translateY(-2px); }
.exam-card .t { font-weight: 700; font-size: 1.02rem; }
.exam-card .meta { font-size: .82rem; color: var(--text-2); margin: 2px 0 12px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand-2); border-radius: 4px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--no-soft); color: var(--no); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.brand { background: var(--brand-soft); color: var(--brand-2); }
.pill.gold { background: var(--gold-soft); color: var(--warn); }

/* ---- butonlar & formlar ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 15px; border-radius: 11px; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--brand-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: var(--brand); }
:root[data-theme="dark"] .btn.primary { color: #0f0f1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0f0f1c; } }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2b1d00; }
.btn.danger { color: var(--no); }
.btn.danger:hover { border-color: var(--no); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 6px 10px; font-size: .8rem; border-radius: 9px; }
.btn.lg { padding: 13px 20px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.in, select.in, textarea.in { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); outline: none; }
.in:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.in { resize: vertical; min-height: 80px; }
.err { color: var(--no); font-size: .85rem; margin: 6px 0; }

/* ---- ders sekmeleri ---- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--text-2); }
.tab.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.tab .c { opacity: .7; font-weight: 600; margin-left: 4px; }

/* ---- soru ızgarası ---- */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
@media (max-width: 500px) { .qgrid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 7px; } .q .n { font-size: 1.1rem; } .card { padding: 14px; } .tbl-wrap { margin: 0 -14px; padding: 0 14px; } }
.q { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-3); transition: transform .1s; padding: 4px; }
.q:hover { transform: scale(1.04); }
.q .n { font-size: 1.25rem; font-weight: 800; }
.q .s { font-size: .64rem; font-weight: 700; line-height: 1.2; text-align: center; }
.q.has { border: 1.5px solid var(--brand-2); color: var(--brand-2); background: var(--brand-soft); }
.q.seen { background: var(--brand-2); color: #fff; }
.q.fb-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.q.fb-no { background: var(--no); border-color: var(--no); color: #fff; }
.q.wrong::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2.5px solid var(--gold); pointer-events: none; }
.q .dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }
.q .rq { position: absolute; top: 4px; left: 5px; font-size: .62rem; font-weight: 800; color: var(--warn); }
.q.has .rq, .q.seen .rq { color: inherit; }
.q .mini { display: flex; gap: 5px; font-size: .62rem; font-weight: 800; }
.q .mini .o { color: var(--ok); } .q .mini .x { color: var(--no); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--text-2); margin: 12px 0 0; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; border: 1.5px solid var(--line); }

/* ---- çözüm görüntüleyici ---- */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .viewer { grid-template-columns: 1fr; } }
.photo-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-wrap img { width: 100%; cursor: zoom-in; background: #fff; min-height: 120px; }
.photo-cap { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: .8rem; color: var(--text-2); border-top: 1px solid var(--line); gap: 8px; }
.qnav { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qnav .title { font-weight: 800; font-size: 1.15rem; }
.fb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb button { padding: 14px 8px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .9rem; }
.fb button svg { width: 24px; height: 24px; }
.fb button.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.fb button.no.on { background: var(--no); border-color: var(--no); color: #fff; }
.fb button.ok:hover { border-color: var(--ok); } .fb button.no:hover { border-color: var(--no); }

.thread { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); font-size: .9rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--brand-2); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg .by { font-size: .72rem; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.msg .tm { font-size: .68rem; opacity: .6; margin-top: 3px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,15,.94); overflow: auto; display: flex; align-items: flex-start; justify-content: center; touch-action: pan-x pan-y pinch-zoom; }
.lightbox img { max-width: none; width: 100%; max-width: 1400px; margin: auto; cursor: zoom-out; }
.lightbox img.big { width: 200%; max-width: none; }
.lightbox .x { position: fixed; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

/* ---- tablo ---- */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { min-width: 150px; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86em; }
.pw { background: var(--gold-soft); color: var(--warn); padding: 2px 7px; border-radius: 6px; font-weight: 700; }

/* ---- modal ---- */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,30,.5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 760px; }
.modal h2 { margin-bottom: 14px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 760px) { .modal-bg { align-items: flex-end; padding: 0; } .modal { border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: #0c2356; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: fade .2s; max-width: calc(100% - 32px); }
.toast.err { background: var(--no); color: #fff; }
@media (max-width: 760px) { .toast { bottom: 90px; } }

.empty { text-align: center; padding: 34px 16px; color: var(--text-2); }
.empty svg { width: 46px; height: 46px; color: var(--text-3); margin-bottom: 8px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand-2); border-radius: 50%; animation: sp 1s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---- giriş ---- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(circle at 20% 15%, #1a4596 0%, #0c2356 50%, #06122e 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .rings { position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 40px solid rgba(242,193,78,.4); }
.login-art .rings::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.login-art h1 { font-size: 2.3rem; color: #fff; max-width: 420px; }
.login-art h1 b { color: var(--gold); }
.login-art p { opacity: .8; max-width: 380px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--bg); }
.login-form .box { width: 100%; max-width: 380px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg button svg { width: 18px; height: 18px; vertical-align: -4px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px 34px; min-height: auto; }
  .login-art h1 { font-size: 1.6rem; margin-top: 18px; }
  .login-art .foot { display: none; }
}

/* ---- yükleme ---- */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; text-align: center; cursor: pointer; background: var(--surface); }
.drop:hover, .drop.over { border-color: var(--brand-2); background: var(--brand-soft); }
.drop svg { width: 40px; height: 40px; color: var(--brand-2); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.thumb.dragging { opacity: .4; }
.thumb .img { aspect-ratio: 3/4; background: var(--surface-2) center/cover no-repeat; position: relative; }
.thumb .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.thumb .bar { display: flex; align-items: center; gap: 4px; padding: 6px; }
.thumb select { flex: 1; padding: 5px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; min-width: 0; }
.thumb .st { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.6rem; }
.thumb.done .st { background: rgba(29,138,91,.55); }
.thumb.fail .st { background: rgba(200,66,58,.6); font-size: .85rem; padding: 8px; text-align: center; }
.thumb.busy .st { background: rgba(20,20,50,.45); }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; color: var(--text-2); }
.iconbtn:hover { border-color: var(--brand-2); color: var(--brand-2); }
.iconbtn svg { width: 16px; height: 16px; }
.camera-box { text-align: center; }
.camera-box .next { font-size: 3rem; font-weight: 800; color: var(--brand-2); line-height: 1; }
.camera-box .prev-img { max-height: 55vh; margin: 12px auto; border-radius: 12px; border: 1px solid var(--line); }

/* ---- grafik ---- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .ln { fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--brand-2); opacity: .08; }
.chart .pt { fill: var(--brand-2); stroke: var(--surface); stroke-width: 2; }
.chart .pt.hl { r: 7; }
.chart .lbl { fill: var(--text); font-size: 12px; font-weight: 700; font-family: var(--font); }
.chart .xh { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 10px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); z-index: 5; }
.tip b { display: block; font-size: 1rem; }

.subj-bars { display: grid; gap: 10px; }
.subj-bar .top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
.subj-bar .top b { font-variant-numeric: tabular-nums; }
.subj-bar .track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.subj-bar .track i { display: block; height: 100%; background: var(--brand-2); border-radius: 0 4px 4px 0; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; margin-top: 8px; }
.res-grid button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--text-2); }
.res-grid button.on { background: var(--gold); border-color: var(--gold); color: #2b1d00; }

/* ---- yazdırma: giriş kartları ---- */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .topbar, .tabbar, .no-print, .toast { display: none !important; }
  .print-only { display: block; }
  main { padding: 0; max-width: none; }
}
.cards-print { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cards-print .pc { border: 1px dashed #999; padding: 14px 16px; page-break-inside: avoid; font-size: 12pt; color: #000; }
.cards-print .pc .h { font-weight: 800; color: #0c2356; margin-bottom: 6px; }
.cards-print .pc .k { font-family: ui-monospace, Menlo, monospace; font-size: 13pt; font-weight: 700; }

.footer-note { text-align: center; font-size: .75rem; color: var(--text-3); margin-top: 30px; }
