/* Tunnel Watch admin console. Palette comes from shared/style.css. */
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bar h1 { font-size: 18px; margin: 0 12px 0 0; }
nav a { margin-right: 14px; font-weight: 600; color: var(--ink); }
.grow { flex: 1; }
.gate { padding: 24px 16px; font-weight: 600; }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
button { padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; min-height: 36px; }
button.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
button.danger { color: var(--red); border-color: var(--red); }
button:disabled { opacity: .45; cursor: not-allowed; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar h2 { margin: 0 12px 0 0; font-size: 18px; }
input[type=text], input[type=search], input[type=email], select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr.retired td { color: var(--muted); text-decoration: line-through; }
td.actions { white-space: nowrap; }
td.actions button { margin-right: 6px; }
.panel { margin-bottom: 14px; }
.site-form label { display: block; margin: 8px 0; }
.site-form label > span:first-child { display: block; font-size: 12px; color: var(--muted); }
.site-form input[type=text], .site-form select { width: 100%; max-width: 420px; }
.site-form label.check { display: flex; gap: 8px; align-items: center; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0; }
.err { color: var(--red); font-size: 13px; display: block; }
.warn { color: #8a5a00; font-weight: 600; }
.ok { color: #11612b; font-weight: 600; }
.pin-map { height: 320px; background: #e9edf0; margin: 10px 0; border-radius: 8px; }
.geo-panel { font-size: 14px; margin-bottom: 8px; }
.qr-url { width: 100%; max-width: 640px; font-family: monospace; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.st-ok { background: #e3f6e8; color: #11612b; }
.st-warning { background: #fff1d6; color: #8a5a00; }
.st-error { background: #fde4e4; color: #9b1414; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 2000; max-width: 90vw; }
.toast[hidden] { display: none; }
textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.site-form textarea { width: 100%; max-width: 420px; }
tr.subtotal td { font-weight: 700; background: #eef2f5; border-top: 2px solid var(--line); }
.diff { font-family: monospace; font-size: 12px; }
.diff-changed { background: #fff1d6; padding: 1px 4px; margin: 1px 0; word-break: break-all; }
.diff-unchanged { color: var(--muted); padding: 1px 4px; word-break: break-all; }
.diff button { font-size: 11px; margin-top: 2px; }
