/* sign-in and the startup placeholder. these show before the app's own stylesheets can be trusted (and
   sign-in.html does not load them at all), so the house values are written out here: the dashboard's neutrals,
   the flat pink button, the midnight greys in dark. */
.auth-screen {
  --auth-ink: #18181b;
  --auth-muted: #5b5b65;
  --auth-surface: #fff;
  --auth-accent: #f14bba;
  --auth-hover: color-mix(in srgb, #f14bba 92%, black);
  --auth-active: color-mix(in srgb, #f14bba 84%, black);
  --auth-line: #e5e5e9;
  --auth-soft: #f5f5f5;
  --auth-ring: #a1a1a1;
  --auth-on-accent: #fff;
  display: none;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 28px;
  place-items: center;
  position: relative;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font: 14px/20px Inter, system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
.auth-page { margin: 0; background: #fff; }
html[data-auth-theme="dark"] .auth-page { background: #13151b; color-scheme: dark; }
.auth-page .auth-screen,
html[data-live="true"]:not([data-team-access="ready"]) #auth-screen { display: grid; }
html[data-live="true"]:not([data-team-access="ready"]) :is(.frame, .skip-link, #drawer, #toast) { display: none; }
.auth-panel { width: 100%; max-width: 360px; padding-bottom: 9vh; }
.auth-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}
.auth-mark { color: var(--auth-accent); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
/* one plain title line, then one line of second ink under it */
.auth-panel h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.025em; text-wrap: balance; }
#auth-message { margin: 6px 0 24px; color: var(--auth-muted); overflow-wrap: anywhere; }
#auth-actions { display: grid; gap: 10px; }
/* the one filled button on the page: flat pink, white words. the second choice is an outline */
.auth-button,
.auth-secondary {
  width: 100%;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.auth-button { background: var(--auth-accent); color: var(--auth-on-accent); }
.auth-button:hover:not(:disabled) { background: var(--auth-hover); }
.auth-button:active:not(:disabled) { background: var(--auth-active); }
.auth-secondary { border-color: var(--auth-line); background: var(--auth-surface); color: var(--auth-ink); }
.auth-secondary:hover:not(:disabled) { background: var(--auth-soft); }
.auth-secondary:active:not(:disabled) { background: var(--auth-soft); }
.auth-screen :is(button, a):focus-visible { outline: 2px solid var(--auth-ring); outline-offset: 2px; }
.auth-screen button:disabled { cursor: wait; opacity: .5; }
.auth-screen ::selection { background: #f9d8ed; color: #40122f; }
.auth-noscript { margin-top: 16px; color: var(--auth-muted); }
html[data-auth-theme="dark"] .auth-screen,
.theme-dark .auth-screen {
  --auth-ink: #ededf1;
  --auth-muted: #9ea3b0;
  --auth-surface: #13151b;
  --auth-accent: #f14bba;
  --auth-hover: color-mix(in srgb, #f14bba 92%, black);
  --auth-active: color-mix(in srgb, #f14bba 84%, black);
  --auth-line: #30353f;
  --auth-soft: #20232b;
  --auth-ring: #a3a3a3;
}
html[data-auth-theme="dark"] .auth-secondary,
.theme-dark .auth-secondary { background: #191c23; }
html[data-auth-theme="dark"] .auth-screen ::selection,
.theme-dark .auth-screen ::selection { background: rgb(241 75 186 / .38); color: #fff; }

/* velocity creators (owner 2026-10-26: "it should at least be the correct branding"). the sign-in page, and the
   moment after google on the way back to the new hq, wear the new hq's look: its V mark and name, the teal button
   with white words (aqua with dark words in dark), the system font. the values are the new hq's own (v2/styles/ade.css), written out because these
   screens show before it loads. data-brand="vc" is set by sign-in.html, and by the home page's first script for a
   sign-in coming back on its way to /v2/ */
.auth-brand-vc { display: none; }
html[data-brand="vc"] .auth-brand-cc { display: none; }
html[data-brand="vc"] .auth-brand-vc { display: flex; }
html[data-brand="vc"] .auth-screen {
  --auth-ink: #171717;
  --auth-muted: #6b6b6b;
  --auth-surface: #fff;
  /* the brand's own teal and its white words, the same as the hq it opens (v2/styles/ade.css) */
  --auth-accent: #00bdab;
  --auth-on-accent: #fff;
  --auth-hover: #00ab9b;
  --auth-active: #00998b;
  --auth-line: rgba(0, 0, 0, .09);
  --auth-soft: #f7f7f7;
  /* the accent's word colour: the teal itself is too light to ring a button on white */
  --auth-ring: #008075;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
  font-feature-settings: normal;
  letter-spacing: -.08px;
}
html[data-brand="vc"] .auth-brand { gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
.auth-vc-mark { display: block; flex: none; width: 22px; height: 22px; }
.auth-vc-mark rect { fill: var(--auth-accent); }
.auth-vc-mark .off { opacity: .16; }
html[data-brand="vc"] .auth-screen ::selection { background: #e0f7f5; color: #00463f; }
html[data-brand="vc"][data-auth-theme="dark"] .auth-page { background: #161a19; }
html[data-brand="vc"][data-auth-theme="dark"] .auth-screen {
  --auth-ink: #ecefee;
  --auth-muted: #8a9290;
  --auth-surface: #161a19;
  --auth-accent: #4cefdb;
  --auth-on-accent: #0b1114;
  --auth-hover: #7df4e5;
  --auth-active: #33d9c5;
  --auth-line: rgba(255, 255, 255, .09);
  --auth-soft: #1f2423;
  --auth-ring: #4cefdb;
}
html[data-brand="vc"][data-auth-theme="dark"] .auth-secondary { background: #1d2221; }
html[data-brand="vc"][data-auth-theme="dark"] .auth-vc-mark .off { opacity: .22; }
html[data-brand="vc"][data-auth-theme="dark"] .auth-screen ::selection { background: rgb(76 239 219 / .26); color: #fff; }
@media (max-width: 600px) {
  .auth-screen { padding: 100px 24px 48px; }
  .auth-brand { top: 24px; left: 24px; }
  .auth-panel { padding-bottom: 12vh; }
  .auth-button, .auth-secondary { min-height: 44px; padding-block: 11px; }
}
@media (max-height: 520px) {
  .auth-panel { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-screen :is(button, a) { transition: none; }
}

/* the startup placeholder: the real frame's footprint with no records in it, so nothing jumps when the page
   opens. the grey frame, a 262px sidebar, the page panel with a hairline and 10px corners, soft bars where
   the words will be. */
#startup-screen {
  min-height: 100vh;
  min-height: 100svh;
  color: #18181b;
  background: #f6f6f7;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.startup-sidebar { width: 262px; flex-shrink: 0; padding: 8px 6px 8px 8px; background: transparent; }
.startup-brand { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: #18181b; }
.startup-brand img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.auth-brand .auth-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.startup-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.startup-link { display: flex; align-items: center; gap: 11px; height: 32px; padding: 0 10px; font-size: 14.5px; color: #18181b; }
.startup-link i { display: block; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #e6e6ea; }
.startup-link.is-sub { padding-left: 39px; font-size: 14px; color: #5b5b65; }
.startup-workspace { flex: 1; min-width: 0; margin: 8px 8px 8px 0; border: 1px solid #e5e5e9; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(17 17 26 / .05); }
.startup-topbar { height: 48px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #e5e5e9; }
.startup-topbar span { width: 96px; height: 12px; border-radius: 6px; background: #f5f5f5; }
.startup-content { max-width: 1400px; margin: 0 auto; padding: 32px 24px 40px; }
.startup-heading { width: 160px; height: 28px; border-radius: 6px; background: #f5f5f5; }
.startup-toolbar { width: 220px; height: 32px; margin: 20px 0; border-radius: 8px; background: #f5f5f5; }
.startup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.startup-grid > div { height: 86px; border: 1px solid #e5e5e9; border-radius: 10px; background: #fff; }
.startup-panel { height: 280px; margin-top: 18px; border: 1px solid #e5e5e9; border-radius: 10px; background: #fff; }
.startup-rows { display: grid; gap: 0; margin-top: 18px; }
.startup-rows i { display: block; height: 44px; border-bottom: 1px solid #e5e5e9; }
/* midnight: every grey carries a little blue. frame darkest, page lighter, cards lighter again */
html[data-auth-theme="dark"] #startup-screen { color: #ededf1; background: #0a0b0f; }
html[data-auth-theme="dark"] .startup-brand,
html[data-auth-theme="dark"] .startup-link { color: #ededf1; }
html[data-auth-theme="dark"] .startup-link.is-sub { color: #9ea3b0; }
html[data-auth-theme="dark"] .startup-link i { background: #1c1f27; }
html[data-auth-theme="dark"] .startup-workspace { background: #13151b; border-color: #262a33; box-shadow: none; }
html[data-auth-theme="dark"] .startup-topbar,
html[data-auth-theme="dark"] .startup-rows i { border-color: #262a33; }
html[data-auth-theme="dark"] :is(.startup-topbar span, .startup-heading, .startup-toolbar) { background: #20232b; }
html[data-auth-theme="dark"] :is(.startup-grid > div, .startup-panel) { background: #191c23; border-color: #262a33; }
@media (max-width: 850px) {
  .startup-sidebar { display: none; }
  .startup-workspace { margin: 6px; }
  .startup-topbar { padding: 0 12px; }
  .startup-content { padding: 20px 16px 32px; }
  .startup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 520px) {
  .startup-grid > div { height: 74px; }
}
