/* Админ-панель */
.adm-tabs { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs a { flex-shrink: 0; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.adm-tabs a.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stats div { background: var(--card); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: var(--serif); font-size: 28px; font-weight: 900; }
.stats span { font-size: 12px; color: var(--graphite); line-height: 1.25; }
.adm-list { display: flex; flex-direction: column; margin-top: 8px; }
.adm-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.adm-row-link { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-row small { color: var(--graphite); font-size: 12.5px; line-height: 1.5; }
.warn-line { font-size: 12px; color: var(--red); }
.chip { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--line); color: var(--graphite); margin-right: 4px; }
.chip.ok { background: #DCE7D3; color: #3C5530; }
.order { display: flex; flex-direction: column; gap: 4px; }
.order button, .icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 16px; }
.order button[disabled] { opacity: .3; }
.adm-add { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.adm-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.adm-form .card, .adm-stack { display: flex; flex-direction: column; gap: 12px; }
.card.adm-stack { margin-top: 16px; }
.adm-sec-title { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.adm-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--graphite); font-weight: 600; }
.fld input, .fld textarea, .fld select { width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; background: #FFFDF8; padding: 11px 12px; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }
.fld input:focus, .fld textarea:focus, .fld select:focus, .ed-area:focus { border-color: var(--ink); }
.fld textarea { resize: vertical; line-height: 1.45; }
.fld-num { width: 90px; flex-direction: row; align-items: center; }
.adm-line { display: flex; align-items: center; gap: 10px; }
.adm-q { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.adm-q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 50px; height: 30px; flex-shrink: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }
.sw-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.sw-text small { font-size: 12.5px; color: var(--graphite); line-height: 1.35; }
.adm-save { position: sticky; bottom: 0; margin: 0 -20px calc(-24px - var(--safe-bottom)); padding: 12px 20px calc(16px + var(--safe-bottom)); background: var(--card); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.adm-save-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-save-row .btn { width: 100%; }
.danger { color: var(--red); border-color: var(--red); }
.step { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.step.ok { background: #DCE7D3; color: #3C5530; }
.step.bad { background: #F4D9D2; color: #7E2615; }

/* редактор */
.ed { border: 1.5px solid var(--line-2); border-radius: 14px; background: #FFFDF8; overflow: hidden; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 2; }
.ed-bar button { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #FFFDF8; cursor: pointer; font-size: 13px; }
.ed-bar button mark { background: linear-gradient(transparent 62%, rgba(200,65,43,.3) 62%); font-weight: 700; }
.ed-area { min-height: 160px; padding: 14px; outline: none; border: 0; }
.ed-area.prose { font-size: 17px; gap: 12px; }
.ed-area.is-empty::before { content: attr(data-placeholder); color: var(--muted); font-size: 15px; pointer-events: none; }
.ed-area p:empty::before { content: "\200b"; }
