/* Takım Yarışması - site sayfaları (keşfet, panel, editör, giriş, admin) */
:root {
  --bg: #FFF8EC;
  --surface: #FFFFFF;
  --soft: #FFF1D9;
  --line: #F1DFBF;
  --text: #3B2106;
  --muted: #8A6A45;
  --brand: #E8541E;
  --brand-dark: #C2410C;
  --amber: #F7A21B;
  --ok: #2F9E44;
  --ok-bg: #E6F6EA;
  --warn: #B45309;
  --warn-bg: #FFF1DC;
  --bad: #D9480F;
  --bad-bg: #FFE9E3;
  --radius: 14px;
  --shadow: 0 2px 0 rgba(120, 70, 10, .06), 0 6px 18px rgba(120, 70, 10, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3 { font-family: 'Baloo 2', 'Nunito', sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 23px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
a { color: var(--brand-dark); }
code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.err { color: var(--bad); }
[hidden] { display: none !important; }

/* ---------- üst çubuk ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font: 800 22px 'Baloo 2', sans-serif; }
.brand small { font: 600 14px 'Nunito', sans-serif; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--amber), var(--brand)); font-size: 20px; }
.mainnav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; flex: 1; }
.mainnav > a:not(.btn) { text-decoration: none; color: var(--text); font-weight: 700; }
.mainnav > a:not(.btn):hover { color: var(--brand); }
.mainnav .muted { color: var(--muted); font-weight: 600; }
.logo-link { margin-left: auto; display: inline-flex; }
.logo-link img { height: 36px; width: auto; display: block; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: 700 15px 'Nunito', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--amber); background: var(--soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-dark); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn-sm.btn-primary { box-shadow: 0 2px 0 var(--brand-dark); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 17px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn.icon { width: 34px; padding: 0; }

/* ---------- genel ---------- */
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 16px 40px; flex: 1; }
.page.wide { max-width: 1320px; }
.narrow { max-width: 440px; margin: 20px auto; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 16px; }
.flash { max-width: 1200px; margin: 14px auto 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; width: calc(100% - 32px); }
.flash.inline { width: auto; margin: 0 0 14px; }
.flash-ok { background: var(--ok-bg); color: #1f6b30; border: 1px solid #bfe5c8; }
.flash-err { background: var(--bad-bg); color: #9a2f07; border: 1px solid #ffc9b8; }
.link-row { display: flex; gap: 6px; margin-top: 8px; }
.link-row input { flex: 1; min-width: 0; }
label { display: block; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 600 15px 'Nunito', sans-serif; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247, 162, 27, .2); }
input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(217, 72, 15, .15); }
textarea { resize: vertical; line-height: 1.4; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #EEE7DA; color: #6b5536; }
.badge.ok { background: var(--ok-bg); color: #1f6b30; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.footer { max-width: 1200px; width: 100%; margin: 0 auto; padding: 18px 16px 28px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }

/* ---------- keşfet ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #FFE3A8, #FFD08A 60%, #FFB98A); border-radius: 24px; padding: 30px 34px; margin-bottom: 22px; }
.hero h1 { font-size: 40px; color: #5A2A04; }
.hero .hl { color: var(--brand); }
.hero p { font-size: 17px; color: #6B3A07; max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; transform: rotate(-3deg); }
.hero-board span { aspect-ratio: 1.3; border-radius: 12px; background: #fff; color: var(--brand-dark); display: grid; place-items: center; font: 800 28px 'Baloo 2', sans-serif; box-shadow: inset 0 -5px 0 var(--amber); }
.hero-board span.used { background: rgba(255, 255, 255, .45); color: #C08A4A; box-shadow: none; }
.hero-board span.sur { background: var(--brand); color: #fff; box-shadow: inset 0 -5px 0 var(--brand-dark); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 18px; align-items: end; }
.filters input, .filters select { margin: 0; height: 42px; }
.filters .btn { height: 42px; }
.section-title { font-size: 22px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.set-card { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.set-card:hover { transform: translateY(-3px); }
.set-thumb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 10px; border-radius: 12px; text-decoration: none; }
.set-thumb i { font: 800 15px/1 'Baloo 2', sans-serif; font-style: normal; aspect-ratio: 1.3; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.set-body { flex: 1; }
.set-body h3 { margin: 0 0 6px; font-size: 19px; }
.set-body h3 a { color: var(--text); text-decoration: none; }
.set-body p { margin: 6px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--soft); color: var(--brand-dark); }
.tag-soft { background: #F3EEE6; color: var(--muted); }
.empty { text-align: center; padding: 34px; }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 22px; }

/* ---------- setlerim ---------- */
.my-list { display: grid; gap: 10px; margin-bottom: 12px; }
.my-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.theme-dot { width: 30px; height: 30px; border-radius: 9px; border: 5px solid; flex: none; display: inline-block; vertical-align: middle; }
.my-info { flex: 1 1 260px; min-width: 0; }
.my-title { font: 800 19px 'Baloo 2', sans-serif; color: var(--text); text-decoration: none; }
.my-title:hover { color: var(--brand); }
.my-actions, .my-actions form { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- editör ---------- */
.meta-card .big-label input { font-size: 20px; font-family: 'Baloo 2', sans-serif; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.check-label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--soft); cursor: pointer; }
.check-label input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.check-label span { line-height: 1.25; }
.theme-pick { border: 0; padding: 0; margin: 6px 0 0; }
.theme-pick legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.theme-opt { position: relative; margin: 0; padding: 8px; border-radius: 14px; border: 2.5px solid var(--line); cursor: pointer; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt b { font-size: 15px; }
.theme-opt small { font-size: 12px; font-weight: 600; line-height: 1.25; }
.theme-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 3px 0 var(--brand); }
.theme-opt input:checked ~ b::after { content: ' ✓'; color: var(--brand); }
.theme-opt input:focus-visible ~ .theme-mini { outline: 3px solid var(--amber); }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 10px; }
.q-head h2 { margin: 0; }
.q-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.import-card textarea { font-family: Consolas, 'Courier New', monospace; font-size: 14px; }
.import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.import-actions .check-label { margin: 0; font-weight: 600; }
.import-actions .muted { flex: 1; }
.q-list { display: grid; gap: 12px; }
.q-card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.q-num { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 18px 'Baloo 2', sans-serif; }
.q-card .q-body { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.q-field .q-label { margin: 0; }
.q-tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-img { display: flex; align-items: center; gap: 8px; }
.q-img img { height: 56px; max-width: 120px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.q-img label { margin: 0; }
.q-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.mini { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.mini select { margin: 0; width: auto; padding: 5px 8px; font-size: 14px; }
.q-acts { display: flex; gap: 5px; margin-left: auto; }
.add-more { text-align: center; margin: 16px 0 80px; }
.save-bar { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 10px 14px; box-shadow: 0 -6px 18px rgba(120, 70, 10, .08); }
.save-bar #save-status { margin-right: auto; font-weight: 700; }
.editor-page .footer { padding-bottom: 12px; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 9px 16px; text-decoration: none; color: var(--muted); font-weight: 800; border-radius: 10px 10px 0 0; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--brand-dark); border-bottom-color: var(--brand); background: var(--surface); }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-head h1 { margin: 0; }
.adm-search { display: flex; gap: 8px; }
.adm-search input { margin: 0; min-width: 240px; height: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.stat b { display: block; font: 800 30px 'Baloo 2', sans-serif; }
.stat span { color: var(--muted); font-size: 14px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.table-card.flat { border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #FFFBF3; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.susp td { background: #FFF7EA; }
.role { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #E4E7FF; color: #3730A3; }
.role.r-admin { background: #FFE3D6; color: #9A2F07; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 5px; }
td.actions { min-width: 250px; }

/* ---------- mobil ---------- */
@media (max-width: 1000px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-board { display: none; }
  /* admin tabloları kart görünümüne geçer */
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border-bottom: 1px solid var(--line); padding: 8px 4px; }
  .rtable td { border: 0; padding: 4px 10px; display: flex; gap: 10px; }
  .rtable td[data-label]::before { content: attr(data-label); min-width: 100px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
  td.actions { min-width: 0; }
}
@media (max-width: 760px) {
  h1 { font-size: 25px; }
  .hero { padding: 22px; }
  .hero h1 { font-size: 30px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input[type=search] { grid-column: 1 / -1; }
  .row3 { grid-template-columns: 1fr; }
  .q-card .q-body { grid-template-columns: 1fr; }
  .q-num { width: 30px; height: 30px; font-size: 15px; }
  .q-acts { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .adm-search { width: 100%; }
  .adm-search input { min-width: 0; flex: 1; }
  .logo-link img { height: 28px; }
  .mainnav { order: 3; flex-basis: 100%; gap: 12px; }
  .hide-sm { display: none; }
}
@media (max-width: 460px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
}

/* ---------- zengin metin: araç çubuğu, sembol paleti, denklem düzenleyici ----------
   Matematik Atölyesi (assets/style.css) ile birebir aynı; oradaki --primary/--line/--muted/--text değerleri yazılı. */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-bg .modal { background: #fff; border-radius: 14px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); color: #1c2431; }
.modal-bg .modal h3 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.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; }
.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 #e2e8f0; background: #fff; border-radius: 6px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.rt-sym button:hover { background: #eff6ff; border-color: #2563eb; }
.modal-bg .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 #e2e8f0; margin: 6px 0 12px; }
.eq-tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: #6b7686; 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: #2563eb; 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-bg .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; } }
.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; } }
.eq-host .mq-textcolor[style*="#010203"], .eq-host .mq-textcolor[style*="#010206"], .eq-host .mq-textcolor[style*="#010209"] { color: inherit !important; }
.eq-host .mq-textcolor[style*="#010203"] .mq-paren, .eq-host .mq-textcolor[style*="#010206"] .mq-paren { display: none; }
.eq-host .mq-textcolor[style*="#010203"] .mq-array > span:first-child { font-size: .62em; }
.eq-host .mq-textcolor[style*="#010209"] { display: inline-block; position: relative; padding-top: .55em; }
.eq-host .mq-textcolor[style*="#010209"]::before { content: "\27F7"; position: absolute; top: -.32em; left: 50%; transform: translateX(-50%) scaleX(1.3); font-size: .85em; line-height: 1; pointer-events: none; }
/* Pencere içi yazı, etiket, kutu ve düğmeler de Matematik Atölyesi'ndeki gibi */
.modal-bg .modal, .rt-bar, .rt-sym { font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
.modal-bg .modal h3 { font-family: inherit; font-size: 1.17em; font-weight: 700; margin-bottom: 12px; }
.modal-bg .modal label { display: block; font-weight: 500; margin-bottom: 12px; font-size: .92rem; }
.modal-bg .modal label input { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: #1c2431; box-shadow: none; }
.modal-bg .modal label input:focus { outline: 2px solid rgba(37, 99, 235, .35); border-color: #2563eb; box-shadow: none; }
.modal-bg .modal .eq-input { display: block; margin: 0; border: 0; box-shadow: none; }
.modal-bg .muted { color: #6b7686; }
.modal-bg .small { font-size: .85rem; }
.modal-bg .btn { height: auto; padding: 9px 16px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: #1c2431; font: inherit; font-weight: 600; box-shadow: none; transform: none; }
.modal-bg .btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.modal-bg .btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.modal-bg .btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.modal-bg .btn:disabled { opacity: .5; cursor: default; }

/* Soru/cevap kutuları (sitenin form görünümüyle) */
.ed-field.q-rich { min-height: 62px; margin-top: 5px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 600 16px/1.45 'Nunito', sans-serif; color: var(--text); white-space: pre-wrap; word-break: break-word; outline: none; cursor: text; }
.ed-field.q-rich:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247, 162, 27, .2); }
.ed-field.q-rich:empty::before { content: attr(data-placeholder); color: #b39b7c; font-weight: 600; pointer-events: none; }
.ed-field.q-rich.a { border-color: #bfe5c8; background: #f6fcf7; }
.q-field .q-label { display: block; font-weight: 700; font-size: 15px; }
.q-hint { margin: 0 0 10px; }

/* Musterengames ile Giriş (v1.2) */
.sso-box { margin: 16px 0; }
.sso-box .musteren-giris { width: 100%; justify-content: center; box-sizing: border-box; }
