
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/about/assets/hanken-grotesk-400-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/about/assets/ibm-plex-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/about/assets/ibm-plex-mono-600-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #ecebe6; --panel: #ffffff; --fill-soft: #f4f3ee; --fill-list: #faf9f6; --row-in-use: #f7f6f2;
  --hairline: #f0efea; --border: #d9d8d2;
  --ink-surface: #1f2421; --on-dark: #f4f3ee; --on-dark-muted: #a3a59f;
  --text: #1a1a1a; --text-secondary: #4a4a47; --text-muted: #696966; --text-faint: #8a8a85;
  --accent: #2d5a45; --accent-light: #e8f0ec; --accent-hover: #234836; --accent-mid: #7fb398; --accent-pale: #c9ddd2;
  --status-online: #4f7a5a; --status-online-halo: rgba(79, 122, 90, 0.28);
  --status-offline: #9e4631; --status-offline-halo: rgba(158, 70, 49, 0.28);
  --dot-optional: #b5b4ae; --dot-empty: #dddcd6;
  --red: #9e4631; --failed-bg: #f3e2da;
  --orange: #c4913f; --orange-light: #f4ead6;
  --ripping-fg: #8e6424; --ripping-bg: #efe2c6;
  --attention-ring: #e6d2a8; --attention-text: #6e4a14;
  --panel-attention: #c4913f; --on-panel-attention: #2a1a06;
  --panel-success: #3d5f45; --on-panel-success: #f4f3ee;
  --panel-error: #9e4631; --on-panel-error: #fbefe8;
  --card-radius: 18px; --radius-inner: 6px; --radius-check: 4px; --radius-sheet: 22px; --radius-pill: 999px;
  --card-shadow: 0 1px 2px rgba(31, 36, 33, 0.05), 0 12px 32px -20px rgba(31, 36, 33, 0.28);
  --soft-shadow: 0 1px 2px rgba(31, 36, 33, 0.05);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-colors: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  --font-ui: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --page-max: 1600px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body {
  margin: 0; color: var(--text); font-family: var(--font-ui); font-size: 13.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; overflow-wrap: anywhere; }
h1 { font-size: 26px; }
h2 { font-size: 15px; letter-spacing: -0.01em; }
p { margin: 0; }
.label { font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 5px; border-radius: var(--radius-check); background: var(--fill-soft); }

/* ── the ink header bar ─────────────────────────────────────────────────── */
.pb-top { position: sticky; top: 0; z-index: 20; padding: 12px 12px 0; background: var(--bg); }
.pb-bar {
  max-width: var(--page-max); margin: 0 auto; min-height: 54px; padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 12px; min-width: 0;
  border-radius: var(--card-radius); background: var(--ink-surface); color: var(--on-dark);
}
.pb-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.pb-brand:hover { color: var(--on-dark); }
.pb-brand img { width: 26px; height: 26px; display: block; }
.pb-brand b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pb-divider { width: 1px; height: 22px; margin: 0 2px; flex: none; background: rgba(255, 255, 255, 0.12); }
.pb-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.pb-nav { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); flex: none; min-width: 0; }
.pb-nav a, .pb-nav button {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border: 0;
  border-radius: var(--radius-pill); background: transparent; color: var(--on-dark-muted); font-size: 13px; font-weight: 500;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: var(--t-colors);
}
.pb-nav a:hover, .pb-nav button:hover { color: var(--on-dark); }
.pb-nav [aria-current="page"], .pb-nav [aria-pressed="true"] { background: var(--on-dark); color: var(--ink-surface); }
.pb-nav [aria-current="page"]:hover, .pb-nav [aria-pressed="true"]:hover { color: var(--ink-surface); }
.pb-spacer { flex: 1; min-width: 0; }
.pb-right { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.pb-right form { margin: 0; display: flex; }
.pb-who { font-size: 12.5px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

/* ── page, cards ────────────────────────────────────────────────────────── */
.pb-page { max-width: var(--page-max); margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.pb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 4px 0; }
.pb-head .sub { margin-top: 4px; color: var(--text-muted); }
.card { background: var(--panel); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 18px 20px; min-width: 0; }
.card > h2 { margin-bottom: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.well { background: var(--fill-soft); border-radius: var(--radius-inner); padding: 12px 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }

/* ── buttons: pills ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--panel); color: var(--text);
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: var(--t-colors);
}
.btn:hover { border-color: var(--text-faint); color: var(--text); }
.btn.sm { height: 30px; padding: 0 13px; font-size: 12.5px; }
.btn.lg { height: 46px; padding: 0 26px; font-size: 14.5px; }
.btn.block { display: flex; width: 100%; }
.btn.primary { background: var(--ink-surface); border-color: transparent; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #2c332f; color: #fff; }
.btn.accent { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }
.btn.accent:hover { background: var(--accent-hover); color: #fff; }
.btn.soft { background: var(--fill-soft); border-color: transparent; }
.btn.soft:hover { background: var(--hairline); }
.btn.danger { background: var(--red); border-color: transparent; color: #fff; font-weight: 600; }
.btn.on-ink { height: 30px; padding: 0 13px; font-size: 12.5px; background: rgba(255, 255, 255, 0.08); border-color: transparent; color: var(--on-dark); }
.btn.on-ink:hover { background: rgba(255, 255, 255, 0.14); color: var(--on-dark); }
.btn.on-ink.primary { background: var(--on-dark); color: var(--ink-surface); font-weight: 600; }
.btn.on-ink.primary:hover { background: #ffffff; color: var(--ink-surface); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary:disabled, .btn.accent:disabled, .btn.danger:disabled { opacity: 1; background: var(--dot-empty); color: var(--text-faint); }
.btn.primary:disabled:hover { background: var(--dot-empty); }

/* ── filter chips (on the ground white, in a card soft) ─────────────────── */
.chips { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0;
  border-radius: var(--radius-pill); background: var(--panel); box-shadow: var(--soft-shadow); color: var(--text);
  font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; transition: var(--t-colors);
}
.chip:hover { background: var(--fill-soft); color: var(--text); }
.card .chip { background: var(--fill-soft); box-shadow: none; }
.card .chip:hover { background: var(--hairline); }
.chip[aria-pressed="true"], .chip[aria-current="page"], .card .chip[aria-pressed="true"], .card .chip[aria-current="page"] {
  background: var(--ink-surface); color: #fff; box-shadow: none;
}
.chip .count { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.6; }

/* ── status: dots and tinted pills ──────────────────────────────────────── */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--dot-optional); }
.dot.ok { background: var(--status-online); }
.dot.attn { background: var(--orange); }
.dot.err { background: var(--status-offline); }
.dot.busy { background: var(--ripping-fg); }
.dot.live.ok { box-shadow: 0 0 0 4px var(--status-online-halo); }
.dot.live.attn { box-shadow: 0 0 0 4px rgba(196, 145, 63, 0.24); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-inner);
  font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--fill-soft); color: var(--text-secondary);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--dot-optional); }
.pill.plain::before { display: none; }
.pill.ok { background: var(--accent-light); color: var(--accent); }
.pill.ok::before { background: var(--status-online); }
.pill.attn { background: var(--orange-light); color: var(--attention-text); }
.pill.attn::before { background: var(--orange); }
.pill.err { background: var(--failed-bg); color: var(--red); }
.pill.err::before { background: var(--red); }
.pill.busy { background: var(--ripping-bg); color: var(--ripping-fg); }
.pill.busy::before { background: var(--ripping-fg); }
.pill.off { color: var(--text-faint); }
.pill.off::before { background: var(--dot-empty); }

/* ── tables: hairline rows inside a card ────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--text-muted);
  border-bottom: 1px solid var(--hairline); white-space: nowrap;
}
.table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }
.table tbody tr[data-href] { cursor: pointer; transition: var(--t-colors); }
.table tbody tr[data-href]:hover { background: var(--row-in-use); }
.table tbody tr[aria-current="true"] { background: var(--accent-light); }
.table td.title a { color: var(--text); font-weight: 600; text-decoration: none; }
.table td.title a:hover { color: var(--accent); }

/* ── form fields ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text-muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: var(--radius-inner);
  background: var(--fill-soft); color: var(--text); font-size: 13.5px; font-weight: 400; transition: var(--t-colors);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23696966' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input:hover, select:hover, textarea:hover { background-color: var(--hairline); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; background-color: var(--panel); }
.slot { min-height: 18px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.slot.err { color: var(--red); }
kbd { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); padding: 0 5px; border-radius: var(--radius-check); box-shadow: inset 0 0 0 1px var(--border); }

/* ── notices: solid state panels ────────────────────────────────────────── */
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius-inner); font-size: 12.5px; line-height: 1.5; }
.notice::before { content: ""; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; flex: none; background: currentColor; }
.notice.attention { background: var(--panel-attention); color: var(--on-panel-attention); }
.notice.error { background: var(--panel-error); color: var(--on-panel-error); }
.notice.success { background: var(--panel-success); color: var(--on-panel-success); }
.notice.info { background: var(--fill-soft); color: var(--text); }
.notice.info::before { background: var(--dot-optional); }

/* ── empty states and lists ─────────────────────────────────────────────── */
.empty { padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ── a centered card: sign-in, setup, not found ─────────────────────────── */
.pb-center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.pb-top + .pb-center { min-height: calc(100vh - 66px); }
.solo { width: 100%; max-width: 400px; background: var(--panel); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.solo.wide { max-width: 520px; }
.solo .brand { display: flex; align-items: center; gap: 10px; }
.solo .brand img { width: 28px; height: 28px; display: block; }
.solo h1 { margin-top: 2px; }
.solo h1 + p { margin-top: 6px; }
.solo p { color: var(--text-muted); }
.solo form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.solo input { height: 42px; font-size: 15px; }

@media (max-width: 760px) {
  .pb-top { padding: 8px 8px 0; }
  .pb-bar { flex-wrap: wrap; padding: 8px 8px 8px 12px; row-gap: 8px; }
  .pb-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pb-nav::-webkit-scrollbar { display: none; }
  .pb-nav a, .pb-nav button { flex: 1 0 auto; }
  .pb-who { display: none; }
  .table td.title { min-width: 220px; }
  .pb-page { padding: 8px; gap: 8px; }
  .card { padding: 16px; }
  .pb-top + .pb-center { min-height: calc(100vh - 110px); }
  h1 { font-size: 22px; }
}
@media (max-width: 480px) {
  .pb-divider, .pb-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
