/* Shared account and workspace components. Colors and fonts come from theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #678c22; outline-offset: 4px; }
.hidden { display: none !important; }
.mono, .led { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.skip { position: fixed; left: 12px; top: -100px; padding: 12px 18px; background: var(--white); color: var(--ink); z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Brand matches the landing page. */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo-symbol { display: grid; place-items: center; width: 31px; height: 34px; padding-bottom: 7px; flex: 0 0 auto; border-radius: 9px; background: var(--ink); color: var(--lime); font: 800 34px/1 var(--display); transform: rotate(-8deg); }
.logo-word { font: 800 29px/1 var(--display); letter-spacing: -1.6px; }
.logo-period { color: #759333; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: var(--radius); border: 1px solid transparent; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary, .btn-blue { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled), .btn-blue:hover:not(:disabled) { background: #39412e; }
.btn-ghost { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--paper); border-color: #9ba68c; }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 8px 10px; }
.btn-quiet:hover:not(:disabled) { color: var(--ink); background: var(--surface); }
.btn-danger { background: var(--white); border-color: #e4b4ae; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-bg); border-color: var(--red); }
.btn-go { background: var(--lime); color: var(--ink); }
.btn-go:hover:not(:disabled) { background: #c4e76b; }
.btn-line { background: transparent; border-color: #68735c; color: #fff; }
.btn-line:hover:not(:disabled) { border-color: var(--lime); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.btn-lg { min-height: 50px; padding: 13px 22px; font-size: 14px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink); }
.input, .select { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-2); color: var(--ink); transition: border-color .15s; }
.input::placeholder { color: #79816f; }
.input:focus, .select:focus { outline: 2px solid #678c22; outline-offset: 2px; border-color: #678c22; }
.input[readonly], .input:disabled, .select:disabled { background: var(--surface); }
.select { appearance: none; padding-right: 32px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236c7462' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input-sm, .select-sm { height: 36px; font-size: 12px; }
.note { padding: 13px 15px; border-radius: var(--radius); font-size: 13px; line-height: 1.6; border: 1px solid; overflow-wrap: anywhere; }
.note-error { color: var(--red); background: var(--red-bg); border-color: #eacbc3; }
.note-ok { color: var(--green); background: var(--green-bg); border-color: #ceddb3; }
.note-warn { color: var(--amber); background: var(--amber-bg); border-color: #e7d7b0; }
.note-info { color: var(--ink-2); background: var(--white); border-color: var(--line); }

/* Account pages: an inset charcoal panel, a quiet form, and clear wayfinding. */
.auth-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(320px, .9fr) 1.1fr; padding: 20px; gap: 20px; }
.auth-brand { position: sticky; top: 20px; height: calc(100vh - 40px); height: calc(100svh - 40px); min-height: 530px; display: flex; flex-direction: column; justify-content: space-between; padding: 42px; background: var(--navy-ink); color: #f6f7f2; border-radius: 18px; overflow: hidden; }
.auth-brand .logo { color: #fff; }
.auth-brand .logo-symbol { background: var(--lime); color: var(--ink); }
.auth-brand .logo-period { color: var(--lime); }
.auth-brand-copy { margin: 50px 0; max-width: 440px; }
.auth-brand .big { margin: 0 0 25px; font: 550 clamp(38px, 4.3vw, 64px)/1.12 var(--display); letter-spacing: -2.6px; }
.auth-brand .big span { color: var(--lime); }
.auth-brand-copy > p:last-child { font-size: 14px; line-height: 1.8; color: #bec7b3; max-width: 300px; }
.auth-brand-foot { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 23px; border-top: 1px solid #47513d; font-size: 11px; color: #bec7b3; }
.auth-main { display: flex; flex-direction: column; min-width: 0; padding: 16px 34px 24px; }
.auth-top { display: flex; justify-content: flex-end; font-size: 12px; }
.auth-top a { color: var(--ink-2); padding: 8px 0; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 50px 0; }
.auth-card h1 { margin: 0 0 14px; font: 600 clamp(29px, 3vw, 38px)/1.18 var(--display); letter-spacing: -1.4px; overflow-wrap: break-word; }
.auth-card .sub { margin: 0 0 28px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.auth-card .note { margin-bottom: 18px; }
.auth-foot { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.auth-foot a, .auth-links a { font-weight: 600; color: var(--ink); }
.auth-links { display: flex; justify-content: flex-end; margin: -4px 0 22px; font-size: 12px; }
.auth-bottom { font-size: 11px; color: var(--ink-3); text-align: center; margin: 0; }
.check-big { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: var(--lime); color: var(--ink); }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Activity marks represent actual calls; no decorative glow. */
.tally { display: flex; align-items: flex-end; gap: 4px; height: 28px; overflow: hidden; }
.tally i { flex: 0 0 3px; height: 14px; border-radius: 1px; background: currentColor; opacity: .35; }
.tally i.c { height: 28px; opacity: 1; background: var(--green-hi); }
@media (max-width: 1050px) {
  .auth-brand { padding: 32px; }
  .auth-main { padding: 12px 24px 20px; }
}
@media (max-width: 820px) {
  .auth-page { display: flex; flex-direction: column; padding: 0; gap: 0; }
  .auth-brand { position: static; height: auto; min-height: 0; padding: 24px; border-radius: 0; background: var(--paper); color: var(--ink); }
  .auth-brand .logo { color: var(--ink); }
  .auth-brand .logo-symbol { background: var(--ink); color: var(--lime); }
  .auth-brand .logo-period { color: #759333; }
  .auth-brand-copy, .auth-brand-foot { display: none; }
  .auth-main { flex: 1; padding: 0 24px 26px; }
  .auth-top { margin-top: -4px; }
  .auth-card { padding: 34px 0 48px; }
  .auth-card h1 { font-size: 32px; }
  .input, .select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
