/* style.css — CGTKeeper, CGTDebate Hub temasıyla */

:root {
    /* Logodan türetilen palet (Hub ile aynı) */
    --accent:    #2f80ff;
    --accent-2:  #4cb2ff;
    --accent-3:  #1f63d6;
    --btn:       #1f6fe8;      /* beyaz yazıyla 4.7:1 */
    --bg:        #051230;
    --panel:     #071a3d;
    --surface:   rgba(76,178,255,0.05);
    --surface-2: rgba(76,178,255,0.10);
    --border:    rgba(76,178,255,0.16);
    --border-2:  rgba(76,178,255,0.45);
    --text:      #eef6ff;
    --text-2:    #c3d6f2;
    --muted:     rgba(195,214,242,0.68);

    /* Zil renkleri: sırayı anlatır */
    --bell-1:    #4cb2ff;
    --bell-2:    #fbbf24;
    --bell-3:    #fb923c;
    --bell-last: #f87171;

    --radius:    3px;
    --mono:      'JetBrains Mono', ui-monospace, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.15s;
}

/* Milimetrik kâğıt: ince ızgara 24px, kalın ızgara 120px */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(76,178,255,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,178,255,0.09) 1px, transparent 1px),
        linear-gradient(rgba(76,178,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,178,255,0.035) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    pointer-events: none;
    z-index: 0;
}

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    z-index: 1;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

/* ── BAŞLIK ── */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.brand img { height: 30px; width: auto; }
.brand span span { color: var(--accent-2); }

/* ── CGTDebate kredisi ── */
.credit {
    margin-top: auto;
    padding-top: 48px;
}
.credit a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.credit a:hover { color: var(--text); border-color: var(--border-2); background: var(--surface); }
.credit img { height: 14px; width: auto; }
.credit b { color: var(--text); font-weight: 600; }

/* ── SIDEBAR AÇ BUTONU ── */
#sidebarOpenBtn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 200;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--panel);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.25s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
#sidebarOpenBtn svg {
    width: 20px; height: 20px;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.4s;
}
#sidebarOpenBtn:hover { background: var(--panel); color: var(--text); border-color: var(--border-2); }
#sidebarOpenBtn:hover svg { transform: rotate(60deg); }
#sidebarOpenBtn.hidden { opacity: 0; pointer-events: none; }

/* ── SIDEBAR ── */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    background: var(--panel);
    border-left: 1px solid var(--border-2);
    padding: 35px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    overflow-y: auto;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.open { transform: translateX(0); }

#sidebarCloseBtn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius);
    line-height: 1;
}
#sidebarCloseBtn:hover { background: var(--surface-2); color: var(--text); }

/* ── FORMAT SEKME BUTONLARI ── */
.format-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

.fmt-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fmt-btn:hover:not(.active) { background: var(--surface-2); color: var(--text); }
.fmt-btn.active {
    background: rgba(47,128,255,0.18);
    color: var(--text);
    border-color: var(--accent-2);
    box-shadow: inset 3px 0 0 var(--accent-2);
    font-weight: 600;
}

/* ── BÖLÜM BAŞLIĞI ── */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}
.section-title::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent);
}

/* ── ZİL SATIRI ── */
.bell-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px;
}

.bell-input-row { display: flex; align-items: center; gap: 8px; }
.bell-input-row label { font-size: 13px; color: var(--muted); min-width: 28px; }
.bell-input-row input[type=number] {
    width: 76px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 6px 8px;
    font-family: var(--mono);
    font-size: 15px;
    text-align: center;
    -moz-appearance: textfield;
}
.bell-input-row input[type=number]::-webkit-inner-spin-button,
.bell-input-row input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bell-input-row input[type=number]:focus { outline: none; border-color: var(--accent-2); }



.sidebar-apply {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    background: var(--btn);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}
.sidebar-apply:hover { background: var(--accent-3); }

.sidebar-info {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
}
.sidebar-info b { color: var(--text); }

/* ── ANA ALAN ── */
.speakerTitle { font-size: 15px; font-weight: 500; color: var(--muted); }
#speakerName {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--accent-2);
    margin: 4px 0 16px;
}
.speakerButtons { display: flex; gap: 10px; margin-bottom: 18px; }

#timer {
    font-family: var(--mono);
    font-size: 120px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 10px 0;
    padding: 18px 36px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(5,18,48,0.7);
    font-variant-numeric: tabular-nums;
    position: relative;
}
/* sayaç çerçevesinin köşe işaretleri */
#timer::before,
#timer::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--accent-2);
}
#timer::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
#timer::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

#questionCountdown {
    font-family: var(--mono);
    font-size: 30px;
    color: var(--bell-2);
    height: 44px;
    line-height: 44px;
}
.checkboxArea { margin: 12px 0; font-size: 16px; color: var(--text-2); }
.checkboxArea label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.checkboxArea input { width: 18px; height: 18px; accent-color: var(--accent); }

.buttons { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

button {
    padding: 13px 22px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface);
    color: var(--text);
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
button:disabled { opacity: 0.35; cursor: not-allowed; }
button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-2); }
button:active:not(:disabled) { transform: scale(0.97); }

#startBtn,
#resumeBtn   { background: var(--btn); border-color: var(--btn); color: #fff; }
#startBtn:hover:not(:disabled),
#resumeBtn:hover:not(:disabled) { background: var(--accent-3); border-color: var(--accent-3); }
#stopBtn     { background: #b4412f; border-color: #b4412f; color: #fff; }
#stopBtn:hover:not(:disabled) { background: #9a3627; border-color: #9a3627; }
#questionBtn { background: transparent; border-color: var(--bell-2); color: var(--bell-2); }
#questionBtn:hover:not(:disabled) { background: rgba(251,191,36,0.12); border-color: var(--bell-2); }
#cancelBtn   { background: transparent; color: var(--text-2); }

/* FLASH: soru süresi bitince ekran yanıp söner (script body sınıfını değiştirir) */
.flash1 { background: #f59e0b !important; }
.flash2 { background: var(--accent) !important; }
.flash3 { background: #f59e0b !important; }

/* ── TAM EKRAN BUTONU (ayar butonunun solunda) ── */
#fullscreenBtn {
    position: fixed;
    top: 18px;
    right: 70px;
    z-index: 200;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--panel);
    color: var(--text-2);
    border: 1px solid var(--border);
}
#fullscreenBtn svg {
    width: 20px; height: 20px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
#fullscreenBtn:hover { background: var(--panel); color: var(--text); border-color: var(--border-2); }
#fullscreenBtn.hidden { opacity: 0; pointer-events: none; }

/* ── İLERLEME ÇUBUĞU: zil noktaları ve soru penceresi ── */
#progress {
    position: relative;
    width: min(560px, 88vw);
    height: 8px;
    margin: 18px 0 6px;
    background: var(--surface-2);
}
#progressWindow {
    position: absolute;
    top: 0; bottom: 0;
    background: rgba(76,178,255,0.22);
}
#progressFill {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.25s linear;
}
#progress.over #progressFill { background: var(--bell-last); }
#progress .mark {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    z-index: 1;
}
#progress .mark.b1    { background: var(--bell-1); }
#progress .mark.b2    { background: var(--bell-2); }
#progress .mark.b3    { background: var(--bell-3); }
#progress .mark.blast { background: var(--bell-last); }

/* ── DURUM SATIRI: soru alınabilir / alınamaz / aşım ── */
#statusLine {
    min-height: 30px;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#statusLine::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
#statusLine:empty::before { display: none; }
#statusLine.open   { color: #4ade80; }
#statusLine.closed { color: var(--muted); }
#statusLine.over   { color: var(--bell-last); font-family: var(--mono); font-weight: 500; }

/* sayaç: aşımda kırmızı, zil anında çerçeve parlar */
#timer.over { color: var(--bell-last); border-color: rgba(248,113,113,0.5); }
#timer.ring { animation: ring 0.9s ease-out; }
@keyframes ring {
    0%   { box-shadow: 0 0 0 0 rgba(76,178,255,0.7); border-color: var(--accent-2); }
    100% { box-shadow: 0 0 0 22px rgba(76,178,255,0); }
}

/* ── SIDEBAR EKLERİ ── */
.sidebar-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
}
.sidebar-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.bell-input-row .prep-start { width: auto; flex: 1; padding: 8px 12px; font-size: 13px; }
kbd {
    display: inline-block;
    min-width: 22px;
    padding: 1px 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    text-align: center;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
}

/* ── HAZIRLIK EKRANI ── */
#prepOverlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--bg);
}
#prepOverlay[hidden] { display: none; }
.prep-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
#prepTimer {
    font-family: var(--mono);
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
#prepTimer.over { color: var(--bell-last); }
#prepStatus { min-height: 26px; font-size: 18px; font-weight: 600; color: var(--bell-2); }
.prep-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
#prepToggleBtn { background: var(--btn); border-color: var(--btn); color: #fff; }
#prepToggleBtn:hover { background: var(--accent-3); border-color: var(--accent-3); }

/* ── ÖZEL FORMAT DÜZENLEYİCİSİ (tam sayfa) ── */
#editorOverlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    overflow-y: auto;
    background: var(--bg);
    text-align: left;
}
#editorOverlay[hidden] { display: none; }
#editorOverlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(76,178,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,178,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.ed-shell { position: relative; max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.ed-top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: -32px -24px 20px;
    padding: 24px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.ed-top h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.ed-sub { margin-top: 6px; max-width: 56ch; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ed-top-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ed-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.ed-primary:hover:not(:disabled) { background: var(--accent-3); border-color: var(--accent-3); }

.ed-panel, .ed-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.ed-panel { margin-bottom: 26px; }
.ed-fields { display: grid; grid-template-columns: 2fr 1fr 1.6fr; gap: 14px; }
.ed-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
#editorOverlay input[type=text], #editorOverlay input[type=number], #editorOverlay select {
    width: 100%;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
}
#editorOverlay input:focus, #editorOverlay select:focus { outline: none; border-color: var(--accent-2); }
#editorOverlay input.invalid { border-color: var(--bell-last); color: var(--bell-last); }
.ed-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.ed-files button, .ed-file-btn { padding: 9px 14px; font-size: 14px; }
.ed-file-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}
.ed-file-btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.ed-file-btn:focus-within { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.ed-file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#edNotice { font-size: 13px; color: #4ade80; }
#edNotice.error { color: var(--bell-last); }

.ed-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ed-list-head .section-title { flex: 1; }
#edCount { margin-left: 12px; font-size: 13px; color: var(--muted); }
#edPositions { display: flex; flex-direction: column; gap: 12px; }

/* pozisyon kartı: köşe işaretleri Hub'daki proje kartlarıyla aynı */
.ed-card::before, .ed-card::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border: 0 solid var(--accent-2);
    opacity: 0.6;
}
.ed-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.ed-card::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.ed-card.has-error { border-color: rgba(248,113,113,0.6); }
.ed-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ed-index {
    display: grid; place-items: center;
    width: 30px; height: 30px; flex-shrink: 0;
    font-family: var(--mono); font-size: 13px;
    color: var(--bg); background: var(--accent-2);
    border-radius: var(--radius);
}
#editorOverlay input.ed-name { flex: 1; font-size: 17px; font-weight: 600; }
.ed-actions { display: flex; gap: 4px; flex-shrink: 0; }
.ed-icon { width: 36px; height: 36px; padding: 0; font-size: 15px; }

.ed-row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); }
.ed-row-top { align-items: start; }
.ed-key { font-size: 13px; font-weight: 600; color: var(--muted); }
#editorOverlay input.ed-time { width: 88px; flex-shrink: 0; font-family: var(--mono); text-align: center; }
#editorOverlay input.ed-num { width: 64px; flex-shrink: 0; padding: 9px 4px; text-align: center; }
.ed-bells { display: flex; flex-direction: column; gap: 6px; }
.ed-bell { display: flex; align-items: center; gap: 10px; }
.ed-bell-label { width: 44px; font-size: 13px; color: var(--text-2); }
.ed-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ed-dot.d0 { background: var(--bell-1); }
.ed-dot.d1 { background: var(--bell-2); }
.ed-dot.d2 { background: var(--bell-3); }
.ed-dot.d3 { background: var(--bell-last); }
.ed-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.ed-inline input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.ed-qrange { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); grid-column: 2; white-space: nowrap; }
.ed-qrange.off { opacity: 0.35; pointer-events: none; }
.ed-add { margin-top: 8px; padding: 8px 14px; font-size: 14px; background: transparent; border-style: dashed; }
.ed-add-pos { width: 100%; margin-top: 12px; padding: 14px; }
.ed-card-foot { padding-top: 10px; border-top: 1px dashed var(--border); }
.ed-link { padding: 4px 0; font-size: 13px; font-weight: 500; color: var(--accent-2); background: none; border: 0; }
.ed-link:hover:not(:disabled) { background: none; text-decoration: underline; }
.ed-errors { list-style: none; }
.ed-errors:not(:empty) { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--bell-last); background: rgba(248,113,113,0.08); }
.ed-errors li { font-size: 13px; color: #fca5a5; line-height: 1.6; }

/* klavye kısayolları dokunmatik cihazlarda gösterilmez */
@media (hover: none) { .shortcuts { display: none; } }


/* ══════════════════════════════════════════════
   MOBİL (max-width: 600px)
   ══════════════════════════════════════════════ */
@media (max-width: 600px) {

    body { font-size: 14px; }

    #sidebarOpenBtn {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    #fullscreenBtn { top: 12px; right: 58px; width: 40px; height: 40px; }
    #progress { margin-top: 14px; }
    #statusLine { font-size: 14px; }

    /* alt padding: sabit buton barı için boşluk */
    .main {
        padding: 22px 16px 110px;
        justify-content: flex-start;
    }

    .brand { font-size: 22px; gap: 9px; margin: 4px 0 10px; }
    .brand img { height: 22px; }

    .speakerTitle { font-size: 13px; margin-top: 4px; }

    #speakerName {
        font-size: 52px;
        margin: 2px 0 10px;
    }

    .speakerButtons {
        gap: 8px;
        margin-bottom: 12px;
        white-space: nowrap;
    }
    .speakerButtons button {
        padding: 10px 22px;
        font-size: 14px;
        flex: 1;
    }

    #timer {
        font-size: 76px;
        margin: 6px 0;
        padding: 14px 22px 16px;
    }

    #questionCountdown {
        font-size: 24px;
        height: 36px;
        line-height: 36px;
    }

    .checkboxArea { font-size: 14px; margin: 8px 0; }

    .credit { padding-top: 28px; }

    /* aksiyon butonları: sabit alt bar */
    .buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 12px 14px;
        background: var(--panel);
        border-top: 1px solid var(--border-2);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        z-index: 50;
    }
    .buttons button {
        flex: 1 1 calc(33% - 8px);
        min-width: 90px;
        max-width: 140px;
        padding: 13px 8px;
        font-size: 14px;
    }

    /* sidebar: tam ekran çekmece */
    .sidebar {
        width: 100%;
        padding: 56px 16px 100px;
    }

    #sidebarCloseBtn {
        top: 12px;
        right: 14px;
        font-size: 22px;
    }

    .format-tabs { gap: 7px; padding-top: 4px; }
    .fmt-btn { padding: 12px 14px; font-size: 15px; }
    .bell-row { padding: 12px; }
    .bell-input-row input[type=number] { width: 72px; font-size: 16px; padding: 8px; }
    .sidebar-apply { padding: 13px; font-size: 15px; }
    .sidebar-info { line-height: 1.9; }

    /* düzenleyici: telefonda tek sütun */
    .ed-shell { padding: 20px 14px 60px; }
    .ed-top { flex-direction: column; margin: -20px -14px 16px; padding: 16px 14px 14px; }
    .ed-top h2 { font-size: 22px; }
    .ed-top-actions { width: 100%; }
    .ed-top-actions button { flex: 1; }
    .ed-fields { grid-template-columns: 1fr; }
    .ed-row { grid-template-columns: 1fr; gap: 8px; }
    .ed-qrange { grid-column: 1; flex-wrap: wrap; }
    .ed-card-head { flex-wrap: wrap; }
    #editorOverlay input.ed-name { flex: 1; min-width: 0; }
    .ed-bell { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
