:root {
  --green: #1F6F5C; --green-dark: #154D40; --green-soft: #E4F1EC; --mint: #CFEADF;
  --cream: #EEF4F2; --bg-top: #F6FAF9; --bg-bottom: #E3EEEA; --ink: #17231F; --muted: #5E6B67; --line: #E3E8E5; --white: #fff;
  --red: #D64545; --orange: #F08A24; --yellow: #F2C21B; --lime: #7CC24E; --good: #23975F;
  --radius: 18px; --shadow: 0 10px 30px rgba(21, 77, 64, .10);
  font-synthesis: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed; background-color: var(--bg-top); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.btn { white-space: nowrap; border: 0; border-radius: 14px; padding: 14px 22px; font-weight: 700; font-size: 16px; background: var(--green); color: #fff; transition: transform .08s, background .15s, opacity .15s; }
.btn:hover { background: var(--green-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--green-dark); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.danger { background: var(--red); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: #fff; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-dark); letter-spacing: -.2px; }
.brand .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--green); display: grid; place-items: center; }
.brand .dot svg { width: 20px; height: 20px; }
.dot.has-logo { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
.dot.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.msg { font-size: 14px; min-height: 20px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--good); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 50; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--red); }

.modal { position: fixed; inset: 0; background: rgba(15, 30, 26, .45); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal .card { width: min(420px, 100%); padding: 24px; display: grid; gap: 14px; }
.modal h3 { margin: 0; }
