/* Change only --brand-color to recolor the interface and its derived shades. */
:root {
  --brand-color: #287454;
  --brand-hover: color-mix(in srgb, var(--brand-color), black 16%);
  --brand-soft: color-mix(in srgb, var(--brand-color) 8%, white);
  --brand-subtle: color-mix(in srgb, var(--brand-color) 3%, white);
  --brand-border: color-mix(in srgb, var(--brand-color) 25%, white);
  --brand-medium: color-mix(in srgb, var(--brand-color) 55%, white);
  --brand-ink: color-mix(in srgb, var(--brand-color) 80%, black);
  --surface: #fff;
  --page: #f7f8f7;
  --text: #24312b;
  --muted: #69746e;
  --line: #e5e9e6;
  --focus: color-mix(in srgb, var(--brand-color) 65%, white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--page);
}
body { margin: 0; }
main { max-width: 440px; margin: 8vh auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 32px #15261c06; }
h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.04em; font-weight: 650; }
h2 { letter-spacing: -.025em; font-weight: 600; }
p { line-height: 1.65; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
.eyebrow { color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 24px; }
nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
nav form { margin: 0; }
.account-nav { border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: stretch; }
.account-nav .ui-button, .account-nav form, .account-nav form button { width: 100%; height: 100%; text-align: center; }
.ui-button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 40px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--brand-color); color: white; font: inherit; font-size: 13px; line-height: 1.3; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.ui-button:hover, button:hover { background: var(--brand-hover); }
.ui-button-secondary { background: var(--surface); color: var(--brand-ink); border-color: var(--line); }
.ui-button-secondary:hover { background: var(--brand-soft); border-color: var(--brand-border); }
.ui-button-quiet { background: transparent; color: var(--muted); border-color: transparent; }
.ui-button-quiet:hover { background: var(--brand-soft); color: var(--brand-ink); }
.panel-nav { gap: 8px; }
.panel-nav .ui-button { background: var(--surface); border-color: var(--line); color: var(--muted); }
.panel-nav .ui-button:hover { background: var(--brand-subtle); color: var(--brand-ink); }
.panel-nav .ui-button[aria-current=page] { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-border); }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
input, select { box-sizing: border-box; width: 100%; max-width: 100%; padding: 12px; border: 1px solid #cfd7d1; border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
input[type=checkbox] { width: auto; accent-color: var(--brand-color); }
input[type=file] { font-size: 12px; }
input::file-selector-button { border: 0; border-radius: 6px; padding: 7px 10px; margin-right: 10px; background: var(--brand-soft); color: var(--brand-ink); cursor: pointer; }
.helptext { display: block; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.helptext ul { padding-left: 20px; }
.errorlist { color: #a42025; padding-left: 20px; font-size: 13px; }
.notice { padding: 12px 16px; background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 10px; font-size: 14px; }
.muted { color: var(--muted); }
:where(a, button, input, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 520px) { main { margin: 16px 12px; padding: 24px 20px; } .ui-button { padding: 10px 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media (max-width: 520px) { .panel-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-nav .ui-button { width: 100%; } }
