/* Matematik Atölyesi - site stili */
:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1c2431;
  --muted: #6b7686;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.err { color: var(--err); }
[hidden] { display: none !important; }

/* üst çubuk */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #f7b733, #fc4a1a); color: #fff; font-size: 1.1rem; }
.mainnav { display: flex; align-items: center; gap: 4px 16px; flex: 1; flex-wrap: wrap; }
.mainnav a { color: var(--text); font-weight: 500; }
.mainnav a.muted { color: var(--muted); }
.logo-link { margin-left: auto; display: flex; align-items: center; }
.logo-link img { height: 34px; width: auto; display: block; }

.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; width: 100%; flex: 1; }
.narrow { max-width: 440px; margin: 20px auto; }
.footer { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; max-width: 1180px; margin: 0 auto; width: 100%; }

/* kart / form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
label { display: block; font-weight: 500; margin-bottom: 12px; font-size: .92rem; }
label input, label select, label textarea, input.title-input, .search, .select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; background: #fff; color: var(--text);
}
label input:focus, .search:focus, .select:focus, .title-input:focus { outline: 2px solid rgba(37, 99, 235, .35); border-color: var(--primary); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 label { margin-bottom: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid #cbd5e1;
  background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; white-space: nowrap;
}
.btn:hover { background: #f1f5f9; text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 6px 11px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn.danger, .more-menu .danger { color: var(--err); }
.btn:disabled { opacity: .5; cursor: default; }
.flash { padding: 12px 16px; border-radius: 8px; margin: 12px auto; max-width: 1180px; }
.flash-ok { background: #dcfce7; color: #166534; }
.flash-err { background: #fee2e2; color: #991b1b; }
.flash-info { background: #dbeafe; color: #1e40af; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }
code { background: #eef2f7; padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* ana sayfa */
.hero { text-align: center; padding: 16px 0 24px; }
.hero h1 { font-size: 2rem; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { width: 260px; margin: 0; }
.toolbar .select { width: auto; margin: 0; }
.tabs { display: flex; background: #e6ebf3; border-radius: 10px; padding: 3px; }
.tab { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.tpl-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 24, 40, .12); text-decoration: none; }
.tpl-icon { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); display: grid; place-items: center; height: 130px; }
.tpl-icon svg { width: 84px; height: 84px; }
.tpl-icon.small { height: 48px; width: 48px; border-radius: 10px; }
.tpl-icon.small svg { width: 34px; height: 34px; }
.tpl-body { padding: 12px 14px 14px; }
.tpl-body h3 { margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.tpl-body p { margin: 0; color: var(--muted); font-size: .85rem; }
.pill { font-size: .65rem; background: #fef3c7; color: #92400e; padding: 2px 7px; border-radius: 99px; font-weight: 700; text-transform: uppercase; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feature span { font-size: 1.8rem; }
.feature h4 { margin: 6px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .88rem; }

/* etkinliklerim */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.act-list { display: flex; flex-direction: column; gap: 10px; }
.act-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.act-icon { width: 54px; height: 54px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); display: grid; place-items: center; flex-shrink: 0; }
.act-icon svg { width: 36px; height: 36px; }
.act-info { flex: 1; min-width: 200px; }
.act-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.act-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 3px; }
.tag { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.act-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.more { position: relative; }
.more-menu { display: none; position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 5; min-width: 140px; }
.more.open .more-menu { display: block; }
.more-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; font: inherit; cursor: pointer; }
.more-menu button:hover { background: #f1f5f9; }

/* keşfet */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.disc-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.disc-top { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--text); background: color-mix(in srgb, var(--c) 8%, #fff); }
.disc-icon { width: 44px; height: 44px; color: var(--c); flex-shrink: 0; }
.disc-icon svg { width: 44px; height: 44px; }
.disc-meta { padding: 10px 12px; font-size: .82rem; color: var(--muted); }
.disc-actions { padding: 0 12px 12px; display: flex; gap: 6px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* sonuçlar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: #f8fafc; font-size: .82rem; color: var(--muted); text-transform: uppercase; }
.bar { display: inline-block; width: 90px; height: 8px; background: #e2e8f0; border-radius: 99px; vertical-align: middle; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok); }

/* editör */
.editor-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.editor-tpl { display: flex; gap: 10px; align-items: center; }
.editor-tpl strong { display: block; line-height: 1.1; }
.title-input { flex: 1; min-width: 220px; margin: 0; font-size: 1.05rem; font-weight: 600; }
.editor-actions { display: flex; gap: 8px; }
.editor-body { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.editor-main .card { padding: 16px; }
.ed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ed-head h3 { margin: 0; }
.ed-hint { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.ed-rows { display: flex; flex-direction: column; gap: 8px; }
.ed-row { display: grid; grid-template-columns: 28px 1fr 1fr 32px; gap: 8px; align-items: center; }
.ed-row.quiz { grid-template-columns: 28px 1.4fr 1fr 32px; }
.ed-row.tf { grid-template-columns: 28px 1fr 130px 32px; }
.ed-row.list { grid-template-columns: 28px 1fr 32px 32px 32px; }
.ed-row input, .ed-row select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; width: 100%; min-width: 0; }
.ed-row input.wrong { border-style: dashed; }
.ed-num { color: var(--muted); font-size: .85rem; text-align: right; }
.ed-del, .ed-mv { border: 0; background: #f1f5f9; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }
.ed-del:hover { background: #fee2e2; color: var(--err); }
.ed-wrongs { grid-column: 2 / span 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-quiz-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 28px 1fr 32px; gap: 8px; align-items: start; }
.ed-quiz-item .ed-num { padding-top: 8px; }
.ed-quiz-fields { display: grid; gap: 6px; }
.ed-quiz-fields .main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.ed-quiz-fields .wrongs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-quiz-fields input { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; width: 100%; min-width: 0; }
.ed-quiz-fields input.a { border-color: #86efac; background: #f0fdf4; }
.ed-quiz-fields input.wrong { border-style: dashed; }
.ed-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.ed-group-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ed-group-head input { flex: 1; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-weight: 600; }
.ed-group textarea { width: 100%; min-height: 70px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; resize: vertical; }
.ed-foot { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ed-bulk { width: 100%; min-height: 120px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-family: Consolas, monospace; font-size: .9rem; }

/* diyalog / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); color: var(--text); }
.modal h3 { margin-top: 0; }
.modal .link-row { display: flex; gap: 6px; margin-bottom: 12px; }
.modal .link-row input { flex: 1; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.modal .qr { display: grid; place-items: center; margin: 10px 0; }
.modal .qr img, .modal .qr canvas { border: 8px solid #fff; border-radius: 8px; box-shadow: var(--shadow); }
.modal textarea { width: 100%; font-family: Consolas, monospace; font-size: .8rem; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1c2431; color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 200; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: toastIn .25s; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 900px) {
  .editor-body { grid-template-columns: 1fr; }
  .mainnav { gap: 4px 10px; font-size: .9rem; }
}
@media (max-width: 600px) {
  .topbar-inner { height: auto; padding: 10px 12px; flex-wrap: wrap; gap: 8px 14px; }
  .brand { order: 1; font-size: 1rem; }
  .logo-link { order: 2; }
  .logo-link img { height: 24px; }
  .mainnav { order: 3; flex: 0 0 100%; }
  .hero h1 { font-size: 1.5rem; }
  .ed-row, .ed-row.quiz, .ed-row.tf { grid-template-columns: 24px 1fr 32px; }
  .ed-row .a, .ed-row select { grid-column: 2; }
  .ed-quiz-fields .main, .ed-quiz-fields .wrongs { grid-template-columns: 1fr; }
  .act-actions .btn { flex: 1; }
}

/* sonuç ayrıntıları */
.table.results .res-row { cursor: pointer; }
.table.results .res-row:hover td { background: #f8fafc; }
.table.results .res-row.open td { background: #eff6ff; }
.table.results .res-row.unfinished td { background: #fffbeb; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.res-detail td { background: #f8fafc; white-space: normal; }
.ans-list { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.ans-list li { break-inside: avoid; padding: 3px 0; display: flex; gap: 10px; align-items: baseline; }
.ans-list li .q { flex: 1; }
.ans-list li .g { font-weight: 600; }
.ans-list li.ok .g { color: var(--ok); }
.ans-list li.bad .g { color: var(--err); }
.ans-list li .t { font-size: .78rem; }
@media (max-width: 800px) { .ans-list { columns: 1; } }

/* Gruplara Ayırma editörü (kart düzeni) */
.ed-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ed-gcard { background: #f1f4f8; border-radius: 10px; padding: 14px 16px 12px; }
.ed-ghead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ed-gname { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px; color: var(--text); }
.ed-gname:hover, .ed-gname:focus { border-color: #cbd5e1; background: #fff; outline: none; }
.ed-gname::placeholder { color: var(--text); opacity: .75; }
.ed-pencil { color: var(--muted); cursor: pointer; font-size: .95rem; }
.ed-pencil:hover { color: var(--primary); }
.ed-ib { border: 0; background: transparent; color: #94a3b8; cursor: pointer; font-size: .8rem; width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; padding: 0; }
.ed-ib:hover:not(:disabled) { background: #e2e8f0; color: var(--text); }
.ed-ib.del:hover:not(:disabled) { background: #fee2e2; color: var(--err); }
.ed-ib:disabled { opacity: .35; cursor: default; }
.ed-ghead .ed-ib.del { margin-left: auto; font-size: 1rem; }
.ed-gitems { display: flex; flex-direction: column; gap: 8px; }
.ed-grow { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; }
.ed-grow .ed-gitem { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; background: #fff; }
.ed-grow .ed-gitem:focus { outline: 2px solid rgba(37, 99, 235, .35); border-color: var(--primary); }
.ed-gtools { display: flex; gap: 2px; }
.ed-addlink { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; padding: 6px 4px; display: inline-flex; align-items: center; gap: 8px; }
.ed-addlink b { font-size: 1.15rem; font-weight: 400; line-height: 1; }
.ed-addlink:hover:not(:disabled) { color: var(--primary); }
.ed-addlink:disabled { opacity: .4; cursor: default; }
.ed-foot-col { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; }
.ed-minmax { color: var(--muted); font-size: .72rem; white-space: pre; padding-left: 26px; }
.ed-instr { margin: -6px 0 16px; }
.ed-instr textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; resize: vertical; background: #fff; }
@media (max-width: 700px) { .ed-groups { grid-template-columns: 1fr; } }

/* zengin metin alanı */
.ed-field { min-height: 38px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; line-height: 1.4; white-space: pre-wrap; word-break: break-word; outline: none; cursor: text; }
.ed-field:focus { outline: 2px solid rgba(37, 99, 235, .35); border-color: var(--primary); }
.ed-field:empty::before { content: attr(data-placeholder); color: #9aa5b5; pointer-events: none; }
.ed-field img { max-height: 44px; max-width: 120px; vertical-align: middle; border-radius: 4px; margin: 0 2px; }
.ed-field .eq { display: inline-block; padding: 0 3px; border-radius: 4px; background: #eef2ff; cursor: pointer; user-select: none; }
.ed-field .eq:hover { background: #e0e7ff; }
.ed-quiz-fields .ed-field.a { border-color: #86efac; background: #f0fdf4; }
.ed-quiz-fields .ed-field.wrong { border-style: dashed; }
.rt-bar { position: absolute; z-index: 90; display: flex; align-items: center; gap: 2px; background: #f1f4f8; border: 1px solid #cbd5e1; border-radius: 8px; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.rt-btn { border: 0; background: transparent; font: inherit; font-weight: 700; color: #334155; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 6px; cursor: pointer; }
.rt-btn:hover { background: #dbe3ee; }
.rt-btn sub, .rt-btn sup { font-size: .6em; }
.rt-sep { width: 1px; height: 20px; background: #cbd5e1; margin: 0 3px; }
.rt-sym { position: absolute; z-index: 91; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); display: grid; grid-template-columns: repeat(10, 34px); gap: 3px; }
.rt-sym button { border: 1px solid var(--line); background: #fff; border-radius: 6px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.rt-sym button:hover { background: #eff6ff; border-color: var(--primary); }

/* denklem düzenleyici */
.modal.modal-wide { max-width: 860px; }
.eq-top { display: flex; gap: 8px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px; align-items: center; }
.eq-input { flex: 1; border: 0; font: inherit; font-size: 1.1rem; padding: 8px; outline: none; font-family: Consolas, "Cascadia Mono", monospace; }
.eq-preview { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; padding: 6px; }
.eq-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.eq-tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 6px 2px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.eq-tabs button.active { color: #312e81; border-bottom-color: #312e81; }
.eq-pal { display: flex; flex-wrap: wrap; gap: 10px; max-height: 50vh; overflow: auto; }
.eq-group { display: grid; gap: 6px; background: #f1f4f8; padding: 8px; border-radius: 8px; }
.eq-group.row { display: flex; flex-wrap: wrap; width: 100%; }
.eq-group button { border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; min-width: 44px; height: 44px; font-size: 1.15rem; cursor: pointer; padding: 0 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eq-group button:hover { border-color: var(--primary); background: #eff6ff; }
.eq-group.red button { color: #dc2626; } .eq-group.blue button { color: #2563eb; } .eq-group.green button { color: #16a34a; } .eq-group.purple button { color: #4c1d95; }
.eq-group button .katex { font-size: .95em; }
.eq-gap { width: 10px; }
.modal label input[type="file"], .modal label input[type="url"] { margin-top: 4px; }
@media (max-width: 600px) { .rt-sym { grid-template-columns: repeat(7, 34px); } .eq-group button { min-width: 38px; height: 38px; font-size: 1rem; } }

/* MathQuill görsel formül alanı */
.eq-host { flex: 1; min-height: 64px; font-size: 26px; padding: 8px 10px; border: 0 !important; box-shadow: none !important; display: flex; align-items: center; }
.eq-host.mq-focused { box-shadow: none !important; }
.eq-host .mq-empty { background: #d1d5db; border-radius: 2px; }
.eq-top { min-height: 84px; }
.eq-status { margin: 6px 0 8px; }
.eq-pal { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px; max-height: 55vh; overflow: auto; }
.eq-group.row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
.eq-group.row button { height: 40px; min-width: 42px; }
@media (max-width: 760px) { .eq-pal { grid-template-columns: 1fr; } }
