/* The sign-in pages' stylesheet: brand tokens, the centred card, buttons and
   notices. The owner dashboard has its own system in admin/app.css. */
/* Inter and Fraunces (both OFL), served from our own origin rather than a font
   CDN. The typography is worth having; a third-party request on a page that
   asks for somebody's work identity is not. Latin subsets only - 115KB for the
   pair - and font-display:swap so text is readable before they arrive. */
@font-face{font-family:"Inter";src:url("/static/fonts/inter-var.woff2") format("woff2");
font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("/static/fonts/fraunces-var.woff2") format("woff2");
font-weight:500 700;font-style:normal;font-display:swap}
/*
 * One palette with the Deal Flow dashboard, not a lookalike.
 *
 * These triplets, the radius and the spacing scale are the same values
 * compass-deal-watcher uses in its tokens.css - that file says it took them
 * from here, and this block now matches it back, including the part that
 * actually makes the two feel like one site: dark is the default. The mark is
 * gold on charcoal and it was designed that way. Change them here and change
 * them there.
 *
 * Both theme conventions are honoured: [data-theme] because that is what the
 * dashboard's toggle writes, and .light/.dark because this site already
 * documented them.
 */
:root{
  --background:240 6% 7%; --foreground:40 20% 92%;
  --card:240 5% 11%; --card-foreground:40 20% 92%;
  --muted:240 4% 16%; --muted-foreground:240 5% 60%;
  --border:240 4% 20%; --primary:41 54% 56%; --primary-foreground:240 10% 6%;
  --success:150 45% 50%; --destructive:0 60% 55%;
  /* A cool second accent, desaturated on purpose: two loud colours would undo
     the restraint the gold buys. */
  --feature:202 38% 62%;
  --elev:0 18px 40px -20px hsl(0 0% 0% / .7);
  --radius:0.875rem; --radius-sm:0.5rem; --radius-lg:1.25rem;
  /* An 8px rhythm. Every margin and gap here is one of these. */
  --s1:0.25rem; --s2:0.5rem; --s3:0.75rem; --s4:1rem;
  --s5:1.5rem; --s6:2rem; --s7:3rem;
  --rail:232px; --measure:68ch;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}
:root[data-theme="light"],:root.light{
  --background:40 20% 97%; --foreground:240 8% 12%;
  --card:0 0% 100%; --card-foreground:240 8% 12%;
  --muted:40 14% 94%; --muted-foreground:240 5% 40%;
  --border:40 9% 85%; --primary:38 62% 34%; --primary-foreground:40 30% 98%;
  --success:150 55% 30%; --destructive:0 62% 45%;
  --feature:202 45% 38%;
  --elev:0 16px 32px -18px hsl(240 20% 30% / .28);
}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]):not(.dark){
    --background:40 20% 97%; --foreground:240 8% 12%;
    --card:0 0% 100%; --card-foreground:240 8% 12%;
    --muted:40 14% 94%; --muted-foreground:240 5% 40%;
    --border:40 9% 85%; --primary:38 62% 34%; --primary-foreground:40 30% 98%;
    --success:150 55% 30%; --destructive:0 62% 45%;
    --feature:202 45% 38%;
    --elev:0 16px 32px -18px hsl(240 20% 30% / .28);
  }
}
*{box-sizing:border-box}
/* The UA rule for [hidden] is display:none, but any author display rule beats
   it - .sesrow{display:block} silently un-hid filtered rows. Make the attribute
   authoritative so toggling el.hidden actually hides. */
[hidden]{display:none!important}
body{margin:0;background:hsl(var(--background));color:hsl(var(--foreground));
font-family:var(--sans);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;
font-feature-settings:"cv05" 1,"ss03" 1;text-rendering:optimizeLegibility}
.num,.mono,td.num,.meta{font-variant-numeric:tabular-nums}
.wrap{max-width:1180px;margin:0 auto;padding:40px 28px 88px}
/* the auth pages are a single short card: centre it in the viewport rather
   than pinning it to the top of an otherwise empty page */
.wrap.narrow{max-width:452px;padding:32px 24px;min-height:100vh;display:flex;
flex-direction:column;justify-content:center}
/* Matched to .signin-card on the Deal Flow dashboard, which is the page a
   person is most likely to see next to this one: the larger radius, the
   translucent card and the lifted shadow are its treatment, not a second
   invention. */
.wrap.narrow .card{text-align:center;padding:var(--s6);border-radius:var(--radius-lg);
background:hsl(var(--card) / .7);box-shadow:var(--elev)}
.wrap.narrow h1{font-size:26px;margin-bottom:14px}
.wrap.narrow p{margin-left:auto;margin-right:auto;text-wrap:balance}
.wrap.narrow .btn{margin-top:4px}
/* explanatory blocks keep their reading edge; only the card is centred */
.wrap.narrow .note{text-align:left}
.authmark{width:54px;height:54px;border-radius:13px;display:block;margin:0 auto 20px}
.signin{display:flex;flex-direction:column;gap:9px;align-items:stretch;margin-top:18px}
.signin .btn{justify-content:center}
.eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:.13em;text-transform:uppercase;
color:hsl(var(--primary));margin:0 0 8px}
h1{font-family:var(--serif);font-weight:600;font-size:31px;line-height:1.12;
letter-spacing:-.021em;font-optical-sizing:auto;margin:0}
.sub{color:hsl(var(--muted-foreground));font-size:14px;margin:6px 0 0}
p{color:hsl(var(--muted-foreground));margin:0 0 14px;max-width:64ch}
/* surfaces */
.card{background:hsl(var(--card));border:1px solid hsl(var(--border));
border-radius:var(--radius);padding:22px}
/* badges - status always carries a word, never colour alone */
.badge{display:inline-block;font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;
padding:3px 9px;border-radius:999px;background:hsl(var(--muted));
color:hsl(var(--muted-foreground));border:1px solid hsl(var(--border))}
.badge.owner{background:hsl(var(--primary)/.12);color:hsl(var(--primary));
border-color:hsl(var(--primary)/.3)}
.badge.gone{opacity:.65;text-decoration:line-through}
/* controls */
.btn{display:inline-flex;align-items:center;gap:8px;background:hsl(var(--primary));
color:hsl(var(--primary-foreground));border:1px solid hsl(var(--primary));
border-radius:8px;padding:9px 16px;font:inherit;font-size:14px;font-weight:600;
cursor:pointer;text-decoration:none}
.btn:hover{background:hsl(var(--primary)/.9)}
.btn.ghost{background:transparent;color:hsl(var(--foreground));
border-color:hsl(var(--border));font-weight:500}
.btn.ghost:hover{background:hsl(var(--muted))}
.btn.danger{background:transparent;color:hsl(var(--destructive));
border-color:hsl(var(--border));font-weight:500}
.btn.danger:hover{background:hsl(var(--destructive)/.08)}
.btn.sm{padding:6px 11px;font-size:13px}
:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}
/* notices */
.note{border:1px solid hsl(var(--border));border-left-width:3px;background:hsl(var(--muted));
padding:13px 15px;border-radius:0 8px 8px 0;margin:0 0 18px}
.note p{margin:0;color:hsl(var(--foreground));font-size:14px;max-width:96ch}
.note.ok{border-left-color:hsl(var(--success))}
.note.bad{border-left-color:hsl(var(--destructive))}
.note.info{border-left-color:hsl(var(--primary))}
a{color:hsl(var(--primary))}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Front door (7 Nov): the square mark with the name beside it, a short lead,
   one obvious button, and the "new here" path as quiet text under a rule
   rather than a second box competing with the button. */
.authbrand{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0 0 22px}
.authbrand span{font-family:var(--serif);font-size:15px;font-weight:600;letter-spacing:.01em;color:hsl(var(--foreground))}
.authmark{width:56px;height:56px;border-radius:14px;object-fit:contain;margin:0;box-shadow:0 6px 18px -8px hsl(0 0% 0% / .5)}
.wrap.narrow{max-width:440px}
.wrap.narrow .card{padding:40px 36px 32px}
.wrap.narrow h1{margin-bottom:10px}
.lead{font-size:15px;margin-bottom:6px}
.signin{margin-top:22px}
.btn-ms{padding:12px 16px;font-size:14.5px;gap:10px}
.btn-ms svg{background:#fff;border-radius:3px;padding:2px;box-sizing:content-box}
.fine{font-size:12.5px;line-height:1.5;margin:12px auto 0;max-width:34ch}
.or{display:flex;align-items:center;gap:12px;margin:26px 0 4px;font-size:12px;color:hsl(var(--muted-foreground))}
.or::before,.or::after{content:"";flex:1;height:1px;background:hsl(var(--border))}
.or span{font-weight:600;color:hsl(var(--foreground))}
@media (max-width:480px){.wrap.narrow .card{padding:32px 22px 26px}}
