/* Showroom base styles: brand-neutral, plain, square corners, system fonts. */
:root {
  --fg: #111111;
  --fg-2: #3a3a3a;
  --muted: #6b6b6b;
  --line: #d4d4d4;
  --line-2: #e8e8e8;
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --bg-3: #ececec;
  --accent: #111111;
  --accent-fg: #ffffff;
  --danger: #a31515;
  --ok: #1f6f3a;
  --focus: #1a5fd0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; padding: 0; }
body { font: 15px/1.45 var(--font); color: var(--fg); background: var(--bg); -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0 0 .75em; }
a { color: inherit; text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--danger); margin: 0; }
.ok { color: var(--ok); }
.notice { background: var(--bg-2); border-left: 3px solid var(--accent); padding: 10px 12px; margin: 0 0 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.spacer { flex: 1; }

label { font-weight: 500; font-size: 14px; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=datetime-local],
input[type=number], input[type=search], select, textarea {
  font: inherit; color: var(--fg); background: #fff; border: 1px solid var(--line);
  padding: 9px 10px; width: 100%; min-height: 40px;
}
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line); background: #fff; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }

.btn {
  font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; color: var(--fg);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--bg-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.15); }
.btn-danger { color: var(--danger); border-color: #e2b4b4; }
.btn-small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.linkish { font: inherit; font-size: 14px; background: none; border: 0; padding: 4px 0; color: var(--fg-2); text-decoration: underline; cursor: pointer; }
.linkish:disabled { opacity: .5; cursor: default; }

.card { background: #fff; border: 1px solid var(--line); padding: 20px; }

/* Sign-in card (viewer applies space colors through --brand-* variables). */
.signin { width: 100%; max-width: 400px; }
.signin-logo { display: block; max-height: 44px; max-width: 200px; margin: 0 0 16px; }
.signin-title { font-size: 20px; }
.code-input { font-family: var(--mono); font-size: 24px !important; letter-spacing: .35em; text-align: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--bg-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.bar { position: relative; height: 10px; background: var(--bg-3); min-width: 80px; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }

.tag { display: inline-block; font-size: 12px; padding: 1px 6px; border: 1px solid var(--line); color: var(--fg-2); background: var(--bg-2); }
.tag-ok { color: var(--ok); border-color: #b9d8c4; background: #f1f8f3; }
.tag-off { color: var(--muted); }
.tag-warn { color: var(--danger); border-color: #e2b4b4; background: #fbf2f2; }
