:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  color: #14243a;
  background: #f4f6f8;
  --accent: #174e57;
  --dark: #102e39;
  --tint: #e8f3f0;
  --muted: #516274;
  --line: #d8e0e6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body.bangaligamer { --accent: #344895; --dark: #19254c; --tint: #ebefff; }
.top { color: #fff; background: var(--dark); }
.bar, .wrap { width: min(1224px, calc(100% - 64px)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 20px; }
.brand { font-size: 17px; font-weight: 720; letter-spacing: -.02em; }
.brand span { display: inline-block; margin-left: 14px; padding-left: 14px; border-left: 1px solid #ffffff55; color: #d4dfe4; font-weight: 440; font-size: 14px; letter-spacing: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(29px, 4vw, 44px); line-height: 1.14; letter-spacing: -.045em; font-weight: 700; }
h2 { font-size: 21px; letter-spacing: -.035em; line-height: 1.28; }
p, label, input, textarea, button { font-size: 14px; line-height: 1.52; }
.intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.wrap { margin-block: 40px 64px; }
.state { padding: 5px 11px; font-weight: 590; border-radius: 5px; background: #e3e9ed; color: #344453; font-size: 13px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(295px, 1fr); gap: 20px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h2 { margin-bottom: 18px; }
.activity { margin-top: 20px; }
.activity > p, #import-help { color: var(--muted); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 9px; border-bottom: 1px solid #e4e9ed; white-space: nowrap; }
thead th { background: #f2f5f7; color: var(--muted); font-size: 12px; font-weight: 630; }
tbody th { font-size: 14px; }
tbody tr:last-child > * { border-bottom: 0; }
.overview th:not(:first-child), .overview td { text-align: right; }
th small { display: block; margin-top: 1px; font-weight: 450; font-size: 11px; color: var(--muted); }
.available { font-weight: 700; color: var(--accent); }
label { display: block; font-weight: 630; margin-bottom: 5px; }
#import-help { margin: 0 0 12px; }
input:not([type=hidden]), textarea {
  display: block; width: 100%; min-height: 42px; font: inherit; padding: 8px 10px;
  border: 1px solid #9eacb8; border-radius: 6px; background: #fff; color: inherit;
}
textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: 9px 16px; background: var(--accent); color: #fff; font-weight: 640; }
button:hover { filter: brightness(1.13); }
button.quiet { padding: 6px 12px; border-color: #ffffff55; background: transparent; font-size: 13px; }
.import button, .login button { margin-top: 14px; }
:focus-visible { outline: 3px solid #387ac8; outline-offset: 3px; }
.signin { width: min(420px, calc(100% - 32px)); margin: clamp(40px, 11vh, 110px) auto 42px; }
.login { padding: clamp(22px, 5vw, 36px); }
.login h1 { font-size: 30px; margin-bottom: 22px; }
.login label:not(:first-of-type) { margin-top: 14px; }
.login button { width: 100%; }
.notice { padding: 12px 15px; margin-bottom: 18px; border-radius: 6px; }
.notice.good { background: #e3f2e9; color: #164b30; }
.notice.bad { background: #fbe9e7; color: #812c22; }
@media(max-width: 860px) {
  .columns { grid-template-columns: 1fr; }
  .bar, .wrap { width: calc(100% - 40px); }
}
@media(max-width: 540px) {
  .bar, .wrap { width: calc(100% - 24px); }
  .bar { min-height: 56px; }
  .wrap { margin-block: 24px 32px; }
  .card { padding: 16px; border-radius: 8px; }
  .brand span { margin-left: 8px; padding-left: 8px; font-size: 12px; }
  .intro { align-items: flex-start; gap: 8px; }
}
