:root {
  --navy: #1b2234; --navy-2: #2a3350; --ink: #1b2234; --muted: #5a6175; --line: #e4decf;
  --cream: #f6f1e5; --paper: #fffdf8; --gold: #c9932e; --gold-2: #e8c77a; --card-yellow: #f6ef9a;
  --green: #1f7a4d; --green-bg: #e3f4ea; --red: #a3302a; --red-bg: #fbe7e5; --amber-bg: #fdf3d8; --amber: #8a5a00;
  --radius: 16px; --shadow: 0 1px 2px rgb(27 34 52 / 6%), 0 6px 20px rgb(27 34 52 / 7%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; background: var(--navy); color: #fff; text-decoration: none; min-height: 46px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.huge { min-height: 64px; font-size: 20px; border-radius: 20px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-height: 46px; }
.input:focus { outline: 3px solid rgb(201 147 46 / 35%); border-color: var(--gold); }
.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-weight: 500; }
.notice.red { background: var(--red-bg); color: var(--red); }
.notice.amber { background: var(--amber-bg); color: var(--amber); }
.notice.green { background: var(--green-bg); color: var(--green); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #efe9da; color: var(--navy); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #e9e2d0; border-top-color: var(--gold); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
