body.admin { overflow: auto; height: auto; }
body.admin header { position: sticky; top: 0; z-index: 5; }
#gate, #panel { max-width: 1000px; margin: 0 auto; padding: .8rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: .8rem 0; }
#tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .6rem; }
#tabs button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filters input[type=search] { width: 12rem; }
label.inline { display: inline-flex; gap: .3rem; margin: 0; align-items: center; }
label.inline input { width: auto; min-height: 0; }
.bar { display: flex; align-items: center; gap: .6rem; margin: .6rem 0; flex-wrap: wrap; }
kbd { background: var(--user); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35rem; font-size: .8em; }
.turn { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin: .6rem 0; }
.turn.user { background: var(--user); }
.turn.cut { opacity: .55; border-style: dashed; }
.turn .role { font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.turn .txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; }
.badge { display: inline-block; font-size: .72rem; border-radius: 6px; padding: .05rem .4rem; margin-inline-end: .25rem; background: var(--user); }
.badge.bad { background: var(--danger); color: #fff; }
.badge.warn { background: #e0a800; color: #000; }
.badge.ok { background: var(--accent-2); color: #fff; }
.corr { border-inline-start: 4px solid var(--accent-2); padding-inline-start: .6rem; margin-top: .4rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.row-actions button { min-height: 36px; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
td, th { border-bottom: 1px solid var(--line); padding: .4rem .5rem; text-align: start; white-space: nowrap; }
#f-set label { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem; align-items: center; margin: .4rem 0; }
#f-set label > span:first-child { margin: 0; }
#f-set textarea { grid-column: 2; }
pre { background: var(--user); padding: .6rem; border-radius: 8px; overflow-x: auto; }
.rep { border-bottom: 1px solid var(--line); padding: .6rem 0; }
