/* Shared style for the info pages (terms, privacy, guidelines), the parent tools and the admin panel. */
:root {
  --bg: #0e131d; --panel: #161c28; --panel2: #1d2533; --line: rgba(255, 255, 255, .1); --text: #e9eef6; --muted: #9aa6b8;
  --accent: #7cff6b; --accent2: #ffd166; --danger: #ff6b6b; --ok: #4caf50; --info: #4dabf7; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Fredoka', system-ui, sans-serif; line-height: 1.55; }
a { color: var(--accent); }
header.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #0b1018; position: sticky; top: 0; z-index: 5; }
header.top .logo { font-weight: 700; font-size: 22px; letter-spacing: .04em; color: #fff; text-decoration: none; }
header.top .logo span { color: var(--accent); }
header.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a.on, header.top nav a:hover { color: var(--text); }
main.doc { max-width: 820px; margin: 0 auto; padding: 24px 24px 60px; }
main.doc h1 { font-size: 34px; margin: 10px 0 4px; }
main.doc h2 { font-size: 21px; margin: 28px 0 6px; color: var(--accent2); }
main.doc p, main.doc li { color: #d3dbe7; }
main.doc .updated { color: var(--muted); font-size: 14px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.callout.warn { border-left-color: var(--accent2); }
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.rules li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rules li b { display: block; font-size: 17px; color: #fff; margin-bottom: 2px; }
.rules .emoji { font-size: 28px; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: 8px 14px; background: #2a3346; color: var(--text); text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #36415a; }
button.primary { background: linear-gradient(180deg, #8bff7a, #3fbf35); color: #0d2a09; font-weight: 700; }
button.danger { background: #5a2430; }
button.danger:hover { background: #7a2d3c; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); background: #0f1420; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 14px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.err { color: var(--danger); min-height: 20px; font-size: 14px; }
.okmsg { color: var(--accent); min-height: 20px; font-size: 14px; }
.hidden { display: none !important; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #cfd7e3; margin: 8px 0; }
label.check input { margin-top: 3px; }
.field { display: grid; gap: 4px; margin: 8px 0; font-size: 14px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 99px; background: #2a3346; color: var(--text); white-space: nowrap; }
.pill.green { background: #1b5e20; } .pill.red { background: #6b1f2b; } .pill.yellow { background: #6d5500; } .pill.purple { background: #4a148c; } .pill.blue { background: #0d47a1; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #555; margin-right: 5px; }
.dot.on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
footer.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; border-top: 1px solid var(--line); }
