/* The web for joiners (web/ – docs/web_reference.md): the sign-in, the frame of its shell, its own parts. Only the
   tokens of style.css (greys, one blue accent, red / amber for errors and warnings) – never a literal black or white.
   The data surfaces keep their own look (src/surfaces/surface.css). */

body.web { overflow: auto; }
.web-root { min-height: 100%; }

/* ----- The sign-in and the ways of somebody who cannot sign in yet ----- */
.web-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100%;
  padding: 48px 16px;
  box-sizing: border-box;
}
.web-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, 100%);
}
.web-brand h1 { margin: 0; font-size: 20px; font-weight: 600; }
.web-brand p { margin: 2px 0 0; color: var(--muted); }
.web-brand .web-lang { margin-left: auto; align-self: flex-start; }
.web-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(420px, 100%);
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.web-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.web-note { margin: 0; color: var(--muted); }
.web-told { margin: 0; padding: 8px 10px; border-radius: 4px; background: var(--accent-soft); color: var(--text); }
.web-bad { margin: 0; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--error); color: var(--error); }
.web-field { display: flex; flex-direction: column; gap: 4px; }
.web-field span { color: var(--muted); font-size: 12px; }
.web-field input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.web-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.web-check { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.web-actions { display: flex; gap: 8px; margin-top: 4px; }
.web-actions .primary { flex: 1; min-height: 36px; }
.web-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.web-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  cursor: pointer;
}
.web-link:hover { text-decoration: underline; }

/* ----- Loading, the service out of reach ----- */
.web-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 48px 16px;
  box-sizing: border-box;
  color: var(--muted);
}

/* ----- The overview (web/overview.js) ----- */
.web-overview { padding: 20px 24px; overflow: auto; display: flex; flex-direction: column; gap: 18px; }
.web-ov-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.web-ov-start h2 { margin: 0; font-size: 18px; font-weight: 600; }
.web-ov-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.web-ov-actions button { min-height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); cursor: pointer; }
.web-ov-actions button.primary { border-color: var(--chrome); background: var(--chrome); color: var(--chrome-text); }
.web-ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.web-ov-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.web-ov-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.web-ov-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.web-ov-count { min-width: 26px; padding: 2px 8px; border-radius: 12px; background: var(--surface-2); color: var(--muted); text-align: center; font-weight: 600; }
.web-ov-count.is-on { background: var(--accent-soft); color: var(--accent-ink); }
.web-ov-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.web-ov-rows li + li { border-top: 1px solid var(--border); }
.web-ov-row { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; width: 100%; padding: 8px 6px; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.web-ov-row:hover, .web-ov-row:focus-visible { background: var(--hover); outline: none; }
.web-ov-row strong { grid-column: 1; font-weight: 600; }
.web-ov-row .sf-row-sub { grid-column: 1; }
.web-ov-row .sf-tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.web-ov-warn { color: var(--warning); }
.web-ov-note { color: var(--muted); }
