:root { --bg: #f6f6f7; --fg: #1d1d1f; --muted: #6b6b70; --card: #fff; --line: #e2e2e5; --accent: #1a56db; --ok: #157347; --warn: #9a6700; --bad: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
h1 { font-size: 1.1rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
form:not(#edit-form), section { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
form:not(#edit-form) { max-width: 380px; margin: 24px auto; }
label { display: block; margin-bottom: 12px; font-weight: 500; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; }
button { padding: 8px 14px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; cursor: pointer; }
button[type=submit] { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: .6; cursor: wait; }
#msg, #edit-msg { padding: 10px 12px; border-radius: 8px; background: #fdecea; color: var(--bad); }
#qr { display: block; margin: 8px auto; background: #fff; }
.secret { font-size: .85rem; color: var(--muted); word-break: break-all; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.toolbar input { margin: 0; flex: 1; }
#count { color: var(--muted); white-space: nowrap; font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.mono { font-family: ui-monospace, monospace; letter-spacing: 1px; }
td[data-status=active] { color: var(--ok); font-weight: 600; }
td[data-status=disabled] { color: var(--bad); }
td[data-status=inactive] { color: var(--muted); }
dialog { width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
dialog::backdrop { background: rgba(0, 0, 0, .35); }
.places { padding: 12px; margin-bottom: 16px; border-radius: 8px; background: var(--bg); }
.places label { margin-bottom: 8px; }
#place-results { list-style: none; margin: 8px 0 0; padding: 0; }
#place-results button { display: block; width: 100%; margin-top: 6px; text-align: left; }
#place-results small { display: block; color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
