/* Sovara Golf™ staff app (svg-app-staging 0.8.0). Brand Packet v1.4: Fairway, Lime, Light, Ink; Sora and Instrument Sans, self-hosted. */
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --fairway: #1F5A43; --fairway-night: #10342A; --lime: #B5E04C; --lime-deep: #A2CC3B;
  --light: #F2F6F1; --white: #FFFFFF; --ink: #14201B; --muted: #5B6B63; --line: #D6E0D9; --danger: #A8321E;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 85% 0%, var(--fairway) 0%, var(--fairway-night) 70%);
  color: var(--white); font: 400 17px/1.55 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
header, main, footer { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 24px; }
header { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header img { width: 190px; height: auto; display: block; }
.env { font: 600 12px/1 "Instrument Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--fairway); background: var(--lime); padding: 6px 10px; border-radius: 999px; }
main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 40px; padding-bottom: 48px; }
footer { padding-bottom: 24px; font-size: 14px; color: rgba(255,255,255,.62); }

.card { width: 100%; max-width: 480px; background: var(--white); color: var(--ink); border-radius: 18px; padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.card.wide { max-width: 760px; }
.eyebrow { font: 600 12px/1 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--fairway); margin: 0 0 12px; }
h1 { font: 600 30px/1.15 "Sora", sans-serif; letter-spacing: -.01em; margin: 0 0 10px; }
h2 { font: 600 19px/1.3 "Sora", sans-serif; margin: 28px 0 10px; }
.lede { color: var(--muted); margin: 0 0 24px; }

form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select { font: inherit; color: var(--ink); background: var(--light); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, select:focus { border-color: var(--fairway); outline: none; box-shadow: 0 0 0 3px rgba(31,90,67,.18); }
input.code { font: 600 28px/1 "Sora", sans-serif; letter-spacing: .4em; text-align: center; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.field-error { color: var(--danger); font-weight: 400; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 600 16px/1 "Instrument Sans", sans-serif; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--fairway); color: var(--white); }
.btn-primary:hover { background: var(--fairway-night); }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--fairway); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fairway); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.alt { margin: 20px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
.alt a, .alt button.link { color: var(--fairway); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

.status { border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.status.error { background: #FBEAE6; color: var(--danger); }
.status.ok { background: #EAF6DA; color: #2F5212; }
[hidden] { display: none !important; }

.orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.orgs li { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.orgs .name { font-weight: 600; }
.orgs .meta { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font: 600 12px/1 "Instrument Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--light); color: var(--fairway); border: 1px solid var(--line); }
.badge.platform { background: var(--fairway); color: var(--lime); border-color: var(--fairway); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

@media (max-width: 620px) { .row { grid-template-columns: 1fr; } .card { padding: 24px; } h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
