:root { --c-primary: #1a73e8; --bg: #f5f6f8; --card: #fff; --line: #e1e4ea; --text: #1d2330; --muted: #6b7385; --ok: #1e8e3e; --bad: #d93025; --warn: #e37400; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); padding-bottom: 80px; }
a, button, summary, label[for], select, input[type="button"], input[type="submit"], [role="button"], [role="tab"], [role="link"] {
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; touch-action: manipulation; }
button, summary, [role="button"], [role="tab"], .btn, nav a { -webkit-user-select: none; user-select: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
header { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
header h1 { font-size: 17px; margin: 0 8px 0 0; }
nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
nav a.on { background: #e8f0fe; color: var(--c-primary); font-weight: 600; }
nav a:active, .btn:active { filter: brightness(.92); }
main { max-width: 1100px; margin: 16px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td.mono, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.btn, button { background: var(--c-primary); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; min-height: 44px; font: inherit; cursor: pointer; }
.btn.sec { background: #eef1f6; color: var(--text); }
.btn.bad { background: var(--bad); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; background: #fff; color: var(--text); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #eef1f6; margin-right: 4px; }
.tag.money, .tag.sms, .tag.sign { background: #fce8e6; color: var(--bad); }
.tag.external { background: #fef7e0; color: var(--warn); }
.tag.ok { background: #e6f4ea; color: var(--ok); }
.muted { color: var(--muted); }
.err { color: var(--bad); margin: 8px 0; }
.login { max-width: 360px; margin: 12vh auto; }
.switch { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
#cookie { position: fixed; left: 0; right: 0; bottom: 0; background: #1d2330; color: #fff; padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 20; font-size: 13px; }
#cookie p { margin: 0; flex: 1; min-width: 240px; }
@media (max-width: 640px) { th:nth-child(n+5), td:nth-child(n+5) { display: none; } }
