* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; background: #f6f7f9; color: #1d1f23; font-size: 14px; }
a { color: #0f5fa3; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #1d1f23; color: #fff; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar .brand { font-weight: 700; font-size: 15px; letter-spacing: 0.2px; }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a { color: #c2c8d2; padding: 6px 12px; border-radius: 6px; }
.topbar nav a:hover { background: #2a2d33; color: #fff; text-decoration: none; }
.topbar nav a.on { background: #0f5fa3; color: #fff; }
.topbar nav a.logout { margin-left: 16px; color: #ffb3b3; }
.container { max-width: 1240px; margin: 0 auto; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 24px 0 12px; color: #4b5159; }
.card { background: #fff; border: 1px solid #e1e4e8; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.card h2:first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eaecef; vertical-align: middle; }
th { background: #f6f7f9; font-weight: 600; color: #4b5159; text-transform: uppercase; font-size: 11px; letter-spacing: 0.4px; }
tr:hover td { background: #fafbfc; }
input[type=text], input[type=number], input[type=password], input[type=email], select { font: inherit; padding: 6px 8px; border: 1px solid #d0d4da; border-radius: 6px; background: #fff; }
input[type=number] { width: 90px; }
input[type=text].full, input[type=password].full, input[type=email].full { width: 100%; }
input:focus, select:focus { outline: 2px solid #0f5fa3; outline-offset: -1px; border-color: #0f5fa3; }
button, .btn { display: inline-block; font: inherit; padding: 8px 16px; border: 0; border-radius: 6px; cursor: pointer; background: #0f5fa3; color: #fff; font-weight: 500; }
button:hover, .btn:hover { background: #0c4d83; text-decoration: none; color: #fff; }
button.danger { background: #c0392b; }
button.danger:hover { background: #962d22; }
button.ghost { background: #fff; color: #1d1f23; border: 1px solid #d0d4da; }
button.ghost:hover { background: #f6f7f9; color: #1d1f23; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: #e8f5e8; color: #1e6b1e; border: 1px solid #b8e0b8; }
.flash.err { background: #fde8e6; color: #8b1a10; border: 1px solid #f5b8b0; }
.flash.warn { background: #fff8db; color: #6b5410; border: 1px solid #f0d77b; }
.bottom { text-align: center; padding: 24px; color: #8a909a; }
.toggle { width: 38px; height: 22px; appearance: none; background: #ccc; border-radius: 12px; position: relative; cursor: pointer; transition: background 0.15s; }
.toggle:checked { background: #1e9c4a; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.15s; }
.toggle:checked::after { transform: translateX(16px); }
.muted { color: #8a909a; font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; background: #eaecef; color: #4b5159; }
.tag.live { background: #d4edda; color: #155724; }
.tag.eur { background: #e7f1ff; color: #0f5fa3; }
.login-wrap { max-width: 360px; margin: 80px auto; }
.login-wrap .card { padding: 28px; }
.login-wrap input { width: 100%; padding: 10px; font-size: 14px; }
.login-wrap label { display: block; font-weight: 500; margin: 12px 0 4px; }
.login-wrap button { width: 100%; padding: 10px; font-size: 14px; margin-top: 16px; }
.row { display: flex; gap: 16px; align-items: center; }
.row > * { flex: 1; }
.diff-up { color: #c0392b; }
.diff-down { color: #1e9c4a; }
.diff-new { color: #0f5fa3; font-style: italic; }
