body.admin { background: #f5f5f7; min-height: 100%; }
.admin main { max-width: 640px; margin: 0 auto; padding: calc(var(--safe-t) + 20px) 16px 48px; }
.admin h1 { font-size: 26px; margin: 10px 0 18px; }
.admin h2 { font-size: 18px; margin: 0 0 4px; }
.back { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.admin p, .admin h2, .log span { word-break: auto-phrase; text-wrap: pretty; }
.card { background: #fff; border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.step { display: flex; gap: 14px; }
.step > div { flex: 1; min-width: 0; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e5e5ea; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.num.done { background: var(--ok); color: #fff; }
.note { color: var(--sub); font-size: 14px; margin: 0 0 12px; }
.note.small { font-size: 13px; margin: 10px 0 0; }
.now { font-weight: 600; margin: 0 0 10px; white-space: pre-line; line-height: 1.6; }
.now:empty { display: none; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; }
.inline input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.msg { padding: 12px 16px; border-radius: 14px; background: #e8f8ed; color: #1b6b34; font-weight: 600; }
.msg.bad { background: #fdecea; color: #b3261e; }
.log { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.log li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.log time { color: var(--sub); flex: none; font-variant-numeric: tabular-nums; }
.log span { min-width: 0; overflow-wrap: anywhere; }
.link-danger { color: #b3261e; font-size: 14px; margin-top: 8px; padding: 8px 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { flex: none; width: 52px; height: 32px; border-radius: 16px; background: #e5e5ea; position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.switch:disabled { opacity: .4; }
.inline.limit { align-items: center; margin-top: 4px; }
.inline.limit label { font-size: 14px; color: var(--sub); flex: none; }
.inline.limit input { flex: 0 1 120px; height: 44px; text-align: right; }
.inline.limit span { font-size: 14px; }
.inline.limit .btn { height: 44px; padding: 0 16px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.kinds:empty { display: none; }
.kinds b { font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: #f5f5f7; }
.kinds .label { width: 100%; font-size: 13px; color: var(--sub); word-break: auto-phrase; text-wrap: pretty; }
.kinds .label.hint { margin-top: 6px; }
.inline.key { margin: 4px 0 6px; }
#keyNow button { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; margin-left: 6px; }
