/* Smoke Control Hub front door. Same palette, type and card style as Inspect and Design
   (tokens copied from the Design side's repository.css). */
:root {
  --bg: #f4f7f3; --panel: #ffffff; --ink: #1b2a1f; --muted: #55665a; --line: #d9e1d8; --soft: #eef2ec;
  --accent: #196b24; --accent-ink: #ffffff; --accent-soft: #e6f2e7;
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 6px 20px -12px rgba(20, 40, 25, .25);
  --r: 8px; --rl: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1511; --panel: #171f19; --ink: #e6ece7; --muted: #a5b3a8; --line: #2b3a2f; --soft: #222d25;
  --accent: #4fae5b; --accent-ink: #08130a; --accent-soft: #183a1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
} }
:root[data-theme="dark"] {
  --bg: #0f1511; --panel: #171f19; --ink: #e6ece7; --muted: #a5b3a8; --line: #2b3a2f; --soft: #222d25;
  --accent: #4fae5b; --accent-ink: #08130a; --accent-soft: #183a1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
}
.wrap {
  width: 100%; max-width: 920px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Top bar: logo, section name, who is signed in. */
header.top { background: var(--panel); border-bottom: 2px solid var(--accent); box-shadow: var(--shadow); }
.brandrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
.brandrow img { display: block; height: 28px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; }
.brandrow .sect { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.2; margin: 0; }
.account { margin-left: auto; font-size: 13px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.account b { color: var(--ink); font-weight: 600; }
.account a { color: var(--accent); font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); display: inline-block; }
.account a:hover { border-color: var(--accent); }

main { flex: 1; padding-block: 36px 40px; }
.lead { margin: 0 0 28px; max-width: 62ch; font-size: 17px; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--rl); box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}
.card:hover { border-color: var(--accent); }
.card h2 { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 0 0 4px; }
.card .who { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.card ul { margin: 0 0 20px; padding-left: 20px; }
.card li { margin-bottom: 4px; }
.card li::marker { color: var(--accent); }
.card .go {
  margin-top: auto; align-self: flex-start;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: var(--r);
}
.card:hover .go { filter: brightness(1.08); }

/* Signed in, but not a designer: the Design card stays, without the primary button. */
.invite-note {
  margin: 0 0 12px; align-self: flex-start;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.card.invite { box-shadow: none; }
.card.invite:hover { border-color: var(--muted); }
.card.invite h2 { color: var(--muted); }
.card.invite li::marker { color: var(--muted); }
.card.invite .go { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500; }
.card.invite:hover .go { filter: none; }

.foot { padding-block: 16px 24px; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .brandrow { gap: 6px 10px; }
  .brandrow img { height: 24px; padding: 2px 4px; }
  .brandrow .sect { font-size: 15px; }
  .account a { padding: 4px 9px; }
  main { padding-block: 24px 28px; }
  .lead { font-size: 16px; margin-bottom: 20px; }
  .card { padding: 18px 18px 16px; }
  .card h2 { font-size: 23px; }
}
