:root { --em: #0E3B2E; --gold: #B98A2E; --bg: #F4F1E8; --card: #FFFFFF; --text: #1C2421; --muted: #5B6661; --line: #DAD6C8; --bad: #B5121B; --accent: var(--em); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0C1412; --card: #15201C; --text: #EDEBE3; --muted: #A3ADA8; --line: #2B3833; --accent: #E2BE6C; } }
:root[data-theme="dark"] { --bg: #0C1412; --card: #15201C; --text: #EDEBE3; --muted: #A3ADA8; --line: #2B3833; --accent: #E2BE6C; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.card { width: 100%; max-width: 400px; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; }
.brand b { font-size: 19px; }
h1 { font-size: 21px; margin: 0 0 6px; }
p { margin: 0 0 14px; color: var(--muted); }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; font: inherit; margin-bottom: 14px; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: var(--accent); color: var(--card); font: 600 16px system-ui, sans-serif; cursor: pointer; }
button[disabled] { opacity: .6; cursor: wait; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); margin-top: 10px; }
.err { color: var(--bad); font-size: 14px; margin: -6px 0 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.foot { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0; }
.card.wide { max-width: 980px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
small { color: var(--muted); }
button.small { min-height: 40px; margin: 0; padding: 0 12px; width: auto; white-space: nowrap; }
.card a { color: var(--accent); }
