/* Hub pages. Same tokens and type as the canvas chrome (client/canvas.css): sans, 13px, white cards. */
@font-face {
  font-family: 'Geist';
  src: url('/_hub/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/_hub/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --cv-ground: light-dark(#ECEBE8, #1C1C1A);
  --panel: light-dark(#FFFFFF, #222220);
  --ink: light-dark(#1A1A1A, #F2F2F0);
  --on-ink: light-dark(#FFFFFF, #1B1B19);
  --muted: light-dark(#6B6B69, #A2A29F);
  --placeholder: light-dark(#767674, #8A8A87);
  --tonal: light-dark(#E4E3DE, #383835);
  --border: light-dark(#E2E2E0, #3D3D3A);
  --hairline: light-dark(#EDECE8, #31312E);
  --hover: light-dark(#F6F5F2, #2C2C2A);
  --destructive: light-dark(#A33327, #D0766B);
  --success: light-dark(#3A7D5C, #5FA37E);
  --r-btn: 5px;
  --r-field: 7px;
  --r-card: 10px;
  --font: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cv-ground); color: var(--ink); font: 13px/18px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; }
/* The Canvas mark, as in the canvas' own top bar (client/canvas.css .cv-mark) */
.mark { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #1A1A1A 0 27%, #FFD449 31%); }
.mark-lg { width: 40px; height: 40px; margin-bottom: 20px; }
.me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

main { max-width: 600px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--panel); border-radius: var(--r-card); padding: 20px; }
.card-narrow { max-width: 380px; width: 100%; margin: 8vh auto 0; }
h1 { font-size: 16px; line-height: 22px; font-weight: 600; margin: 0 0 4px; overflow-wrap: anywhere; }
h2 { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.card > .sub:last-child { margin-bottom: 0; }
.crumb { margin: 0; font-size: 12px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.notice { margin: 0 0 12px; padding: 8px 10px; border-radius: var(--r-field); background: var(--hover); }
.notice-error { color: var(--destructive); }
main > .notice { margin: 0; background: var(--panel); }

.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; min-width: 0; }
.new { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--hairline); }

.list { list-style: none; margin: 0; padding: 0; }
.list-gap { margin-top: 16px; }
.item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--hairline); }
.item:first-child { border-top: 0; }
.item-tall { align-items: flex-start; padding: 10px 0; }
.item-link { text-decoration: none; margin: -6px -8px; padding: 6px 8px; border-radius: var(--r-field); }
.item-link:hover { background: var(--hover); }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.copy { margin-top: 8px; }
.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
form { margin: 0; }

.avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; object-fit: cover; }
.avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--tonal); font-size: 11px; font-weight: 500; }

input[type="text"], input[type="email"], select {
  font: inherit; color: inherit; height: 32px; padding: 0 10px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-field); outline: none;
}
select { padding: 0 6px; }
input::placeholder { color: var(--placeholder); }
input:focus-visible, select:focus-visible, .btn:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.code { font: 12px/18px var(--mono); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; flex: none;
  font: inherit; font-weight: 500; color: var(--ink); background: var(--tonal); border: 0; border-radius: var(--r-btn);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(0.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { filter: none; opacity: 0.88; }
.btn-wide { width: 100%; height: 36px; }
.link { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; padding: 4px; cursor: pointer; border-radius: var(--r-btn); }
.link:hover { color: var(--ink); text-decoration: underline; }

/* ---- sign in: one card in the middle of the page ---- */
.bare main { min-height: 100vh; min-height: 100dvh; max-width: none; justify-content: center; align-items: center; padding: 24px 16px; }
.signin { width: 100%; max-width: 384px; background: var(--panel); border-radius: 16px; padding: 40px 32px 32px; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06); }
.signin h1 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; margin-bottom: 6px; }
.signin .sub { margin-bottom: 28px; }
.signin .notice { text-align: left; }
.signin .stack { gap: 10px; }
.signin .code { width: 100%; text-align: center; }
/* Provider buttons follow each provider's sign-in guidance: its own mark, untouched, on a neutral outlined button */
.provider {
  position: relative; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 44px;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: light-dark(#1F1F1F, #E3E3E3); background: light-dark(#FFFFFF, #131314);
  border: 1px solid light-dark(#D5D6D3, #5A5C5A); border-radius: 10px;
  transition: background-color 0.12s, border-color 0.12s;
}
.provider { width: 100%; cursor: pointer; font-family: inherit; }
.provider:hover { background: light-dark(#F7F7F5, #1E1F20); border-color: light-dark(#B9BAB6, #8E918F); }
.code-field { height: 44px; text-align: center; margin-bottom: 2px; font-family: var(--mono); letter-spacing: 0.06em; font-size: 15px; }
.provider.ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.provider.ink:hover { background: var(--ink); opacity: 0.9; }
.fine a { color: var(--ink); }
.narrow { width: 88px; flex: none !important; }
.provider:active { background: light-dark(#EFEFEC, #28292A); }
.provider:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.provider .logo { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; }
.fine { margin: 20px 0 0; font-size: 12px; line-height: 17px; color: var(--muted); }
.dev { margin-top: 24px; text-align: left; }
.rule { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.dev input { height: 36px; }
.dev .btn { height: 36px; }

.js [data-auto-hide] { display: none; }

@media (max-width: 480px) {
  .signin { padding: 32px 20px 24px; }
  .top { padding: 0 16px; }
  .item { flex-wrap: wrap; }
  .row { flex-wrap: wrap; }
  .row > input { flex-basis: 100%; }
}

.prose h2 { margin-top: 20px; }
.prose p { margin: 0 0 10px; line-height: 20px; }
.prose a { color: inherit; }
