/* Adam Desk — shared stylesheet.
   One file for the whole app (see plan §3.8: no front-end frameworks).

   Design idea: this is a queue of cases, and every case is "on" someone —
   us, the client, or the provider. That three-way state is the one thing
   this product is actually about, so it's the only place color does real
   work. Everything else stays quiet: ink on paper, hairline rules, and
   case numbers set in monospace so they read as data, not decoration. */

:root {
  --paper: #eef0ec;
  --paper-raised: #ffffff;
  --ink: #1e2321;
  --ink-soft: #565f5a;
  --line: #d8dcd4;
  --accent: #3b5d52;
  --accent-ink: #ffffff;

  /* the three states a case's "ball" can be in — used again in the
     work queue, SLA colors and stats views built in later steps */
  --ball-us: #b5562e;
  --ball-client: #375a82;
  --ball-provider: #6b5590;

  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  max-width: 60ch;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 1.5em;
}

.wordmark::before {
  content: "#";
  color: var(--ball-us);
  margin-right: 0.4em;
}

.wordmark--flush {
  margin: 0;
}

button,
.btn {
  font: inherit;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--accent-ink);
  padding: 0.6em 1.1em;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--google {
  background: var(--paper-raised);
  color: var(--ink);
  border-color: var(--line);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Centered single-card layout, shared by login and the no-access state */
.auth-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card,
.state-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.5em;
  max-width: 360px;
  width: 100%;
}

.state-card {
  margin: 4em auto;
}

.auth-card__error {
  color: var(--ball-us);
  font-size: 0.9em;
}

.state-card__actions,
.auth-card__actions {
  display: flex;
  gap: 0.75em;
  margin-top: 1.5em;
}

/* Minimal header used until the full sidebar arrives in step 4 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.5em;
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.topbar__who {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.topbar__role {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.15em 0.5em;
}

main.page {
  padding: 2em 1.5em;
}
