/* Purallel Web — one shared stylesheet (D-22). Same palette as the checkout pages. */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6573;
  --line: #e3e7ec;
  --accent: #226d7a;
  --accent-text: #ffffff;
  --ok: #1f8a5b;
  --warn: #a15c00;
  --danger: #b42318;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --card: #1b2128;
    --text: #e8edf2;
    --muted: #9aa5b1;
    --line: #2a323b;
    --accent: #6fc3d1;
    --accent-text: #0e1a1d;
    --ok: #4cc58d;
    --warn: #f0b45a;
    --danger: #ff7b72;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

/* Signed-in pages stay hidden until the sign-in check finishes (no flash of content). */
body.guarded:not(.ready) main { visibility: hidden; }

/* Header + tabs */
#site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; max-width: 920px; margin: 0 auto; padding: 14px 16px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.spacer { flex: 1; }
.who { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--warn); color: var(--card); }
.tabs { display: flex; gap: 4px; max-width: 920px; margin: 0 auto; padding: 0 12px; overflow-x: auto; }
.tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* Layout */
main { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.narrow { max-width: 420px; margin: 8vh auto 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input, select {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px;
  padding: 10px 16px; background: var(--accent); color: var(--accent-text);
}
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--danger); color: #fff; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 500; }
button:disabled { opacity: 0.55; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* Messages */
.notice { display: none; margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.notice.info, .notice.ok, .notice.error { display: block; }
.notice.ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.notice.error { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }

@media (max-width: 560px) {
  .who { display: none; }
  .card { padding: 16px; }
}
