:root {
  --brand: #6dac3a; --brand-dark: #5a9130; --ink: #313131; --muted: #626262;
  --red: #f11e1e; --redt: #fdeeee;
  --yellow: #e6a817; --yellowt: #fff7e6;
  --bg: #fbfbfb; --line: #e3e3e3; --tint: #f0f7ea;
}
* { box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, sans-serif; background: var(--bg); margin: 0; color: var(--ink); }

.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; }
.topbar .inner { max-width: 820px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.topbar img { height: 32px; }
.topbar .t { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.wrap { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.wide { max-width: 1150px; }

h1 { color: var(--ink); font-size: 25px; margin: 8px 0 4px; }
h1 b { color: var(--brand); }
.sub { color: var(--muted); margin-bottom: 20px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }

label.opt { display: block; padding: 8px 10px; border-radius: 8px; cursor: pointer; margin: 4px 0; }
label.opt:hover { background: var(--tint); }

input[type=text], input[type=password] { width: 100%; padding: 10px; border: 1px solid #cfcfcf; border-radius: 8px; font-size: 15px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 240px; }

button { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 12px 22px; font-size: 16px; cursor: pointer; font-weight: 600; }
button:hover { background: var(--brand-dark); }
button:disabled { background: #cfcfcf; cursor: default; }
button.btn-secondary { background: #9aa5b1; }
button.btn-secondary:hover { background: #7c8794; }
button.btn-danger { background: var(--red); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; background: var(--tint); color: var(--brand-dark); margin-bottom: 6px; font-weight: 600; }
a.back { display: inline-block; color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.warn { color: var(--red); font-size: 14px; margin-top: 8px; }
.warn[hidden] { display: none; }

.ok { color: var(--brand-dark); font-weight: 600; }
.partial { color: var(--yellow); font-weight: 600; }
.bad { color: var(--red); font-weight: 600; }
.muted { color: var(--muted); }
