/* The account host: home screen and sign-in (docs/sora-account-phase1.md).
   Loaded after portal.css, whose colour tokens (and dark mode) it uses. */
body.shell-home, body.shell-welcome { min-height:100vh; }

/* ---- the home screen: a calm gradient behind translucent tiles (tokens.css:
   --sd-home-bg, --sd-tile-*). Layout variables of the grid only. ---- */
body.shell-home { --tile-r:var(--sd-r-xl); --gap:20px; --row-h:360px; --snap-gap:2px; background:var(--sd-home-bg); background-attachment:fixed; }

/* ---- top bar ---- */
.topbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px max(16px, calc((100vw - 1240px) / 2)); background:color-mix(in srgb, var(--sd-bg) 82%, transparent);
  backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px); border-bottom:1px solid var(--sd-hairline); }
body.shell-home .topbar { background:color-mix(in srgb, var(--sd-surface) 45%, transparent); border-bottom-color:var(--sd-tile-hair); }
.topbar-end { display:flex; align-items:center; gap:6px; }
.pop { position:relative; }
.pop > summary { list-style:none; cursor:pointer; display:grid; place-items:center; min-width:44px; min-height:var(--sd-h-ctl); border-radius:50%; }
.pop > summary::before { display:none; }
.pop > summary::-webkit-details-marker { display:none; }
.pop > summary:hover { background:var(--sd-fill-subtle); }
.pop-menu { position:absolute; right:0; top:calc(100% + 8px); min-width:240px; max-width:min(320px, calc(100vw - 32px)); background:var(--sd-surface);
  border-radius:var(--sd-r-lg); box-shadow:var(--sd-shadow-2); padding:12px; display:flex; flex-direction:column; gap:4px; }
.pop-menu .who { margin:2px 6px 8px; overflow-wrap:anywhere; font-size:var(--sd-fs-md); color:var(--sd-fg); }
.pop-menu .orgswitch { margin:4px 0 8px; display:flex; gap:6px; flex-wrap:wrap; }
.pop-menu .orgswitch select { flex:1 1 10rem; min-height:var(--sd-h-ctl); padding:.4rem .6rem; }
.pop-menu .orgs-locked { margin:2px 6px 8px; padding:0; }
.menu-link { display:block; padding:8px 10px; border-radius:var(--sd-r-md); color:var(--sd-fg); text-align:left; width:100%; font-size:var(--sd-fs-md); }
button.link.menu-link { color:var(--sd-fg); padding:8px 10px; border-radius:var(--sd-r-md); }
.menu-link:hover, button.link.menu-link:hover { background:var(--sd-fill-subtle); text-decoration:none; }
.apps { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; min-width:270px; }
.apps a { display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 4px; border-radius:var(--sd-r-md); color:var(--sd-fg); font-size:var(--sd-fs-sm); }
.apps a:hover { background:var(--sd-fill-subtle); text-decoration:none; }
.avatarbtn .avatar { width:34px; height:34px; background:var(--sd-art-avatar-me); }
.iconbtn { color:var(--sd-muted); }
svg.i { width:22px; height:22px; display:block; }

/* ---- app icons: rounded-square tiles, one gradient per app (our own palette) ---- */
.app-ico, .card-ico, .app-tile { display:grid; place-items:center; width:44px; height:44px; border-radius:var(--sd-r-md); color:var(--sd-white); flex:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.08), 0 2px 6px -1px rgba(10,20,60,.22); /* sd:raw */ }
.card-ico, .app-tile { width:40px; height:40px; border-radius:var(--sd-r-md); }
.card-ico svg.i, .app-tile svg.i { width:21px; height:21px; }
.app-home     { background:var(--sd-art-home); }
.app-mail     { background:var(--sd-art-mail); }
.app-calendar { background:var(--sd-art-calendar); }
.app-contacts { background:var(--sd-art-contacts); }
.app-files    { background:var(--sd-art-files); }
.app-camera   { background:var(--sd-art-camera); }
.app-admin    { background:var(--sd-art-admin); }
.app-key      { background:var(--sd-art-key); }
.app-billing  { background:var(--sd-art-billing); }
.app-security { background:var(--sd-art-security); }
.app-spark    { background:var(--sd-art-spark); }
.app-devices  { background:var(--sd-art-devices); }

/* ---- home ---- */
main.home-main { max-width:1288px; margin:0 auto; padding:24px 24px 72px; }
.home-main [hidden] { display:none !important; }
.page-title { font-size:1.9rem; font-weight:700; letter-spacing:-.03em; margin:8px 4px 18px; }
/* layout banners (2FA, recovery, confirmations): compact, full width, above the grid */
.home-main > .grace, .home-main > .msg, .home-main > .err { padding:.55rem .9rem; font-size:var(--sd-fs-sm); border-radius:var(--sd-r-md); margin:0 0 14px;
  box-shadow:var(--sd-tile-shadow); }

/* banners of the home itself: an ownership offer, a closed organisation, a mailbox to link */
.banner-card { display:flex; align-items:flex-start; gap:14px; padding:14px 16px 14px 18px; margin:0 0 14px; border-radius:var(--sd-r-lg);
  background:var(--sd-tile-bg); border:1px solid var(--sd-tile-line); box-shadow:var(--sd-tile-shadow);
  backdrop-filter:blur(24px) saturate(160%); -webkit-backdrop-filter:blur(24px) saturate(160%); }
.banner-card .banner-text { flex:1; min-width:0; }
.banner-card h2 { margin:2px 0 0; font-size:var(--sd-fs-lg); font-weight:650; letter-spacing:-.015em; }
.banner-card p { margin:2px 0; font-size:var(--sd-fs-md); }
.banner-card .button { align-self:center; flex:none; }
.banner-card.card-transfer, .banner-card.card-closed { box-shadow:var(--sd-tile-shadow), 0 0 0 2px var(--sd-accent-ring); }
.link-rows { margin:4px 0; }
.link-rows li { align-items:center; }
.dismiss { margin:0; }
.dismiss button, .tile-act { display:grid; place-items:center; width:36px; height:var(--sd-h-md); min-height:var(--sd-h-md); padding:0; border-radius:50%;
  background:none; color:var(--sd-muted); flex:none; }
.dismiss button:hover, .tile-act:hover { background:var(--sd-fill-subtle); color:var(--sd-fg); text-decoration:none; }
.dismiss svg.i, .tile-act svg.i { width:20px; height:20px; }

/* the grid: one column on a phone, two on a tablet, twelve on a desktop;
   every row the same height from tablet width up */
.board { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--gap); }
.tile { position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; border-radius:var(--tile-r);
  background:var(--sd-tile-bg); border:1px solid var(--sd-tile-line); box-shadow:var(--sd-tile-shadow);
  backdrop-filter:blur(24px) saturate(160%); -webkit-backdrop-filter:blur(24px) saturate(160%); }
@media (min-width: 700px) {
  .board { grid-template-columns:repeat(2, minmax(0,1fr)); grid-auto-rows:var(--row-h); }
  .tile.solo { grid-column:span 2; }
}
@media (min-width: 1100px) {
  .board { grid-template-columns:repeat(12, minmax(0,1fr)); }
  .tile.s4 { grid-column:span 4; } .tile.s5 { grid-column:span 5; } .tile.s6 { grid-column:span 6; } .tile.s7 { grid-column:span 7; }
  .tile.s8 { grid-column:span 8; } .tile.s9 { grid-column:span 9; } .tile.s10 { grid-column:span 10; } .tile.s11 { grid-column:span 11; }
  .tile.s12 { grid-column:span 12; }
}

/* a tile: header bar (icon, title, muted subtitle, optional action), then its body */
.tile-head { display:flex; align-items:center; gap:12px; padding:16px 14px 12px 18px; flex:none; }
.tile-titles { flex:1; min-width:0; }
.tile h2 { margin:0; font-size:var(--sd-fs-lg); line-height:1.25; font-weight:650; letter-spacing:-.018em; color:var(--sd-fg); text-transform:none; }
.tile h2 a { color:inherit; }
.tile-sub { margin:1px 0 0; display:flex; align-items:center; gap:0; min-width:0; color:var(--sd-muted); font-size:var(--sd-fs-sm); line-height:1.35;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tile-sub .sub-text { overflow:hidden; text-overflow:ellipsis; flex:none; }
.tile-sub > * + .sub-text::before { content:"·"; margin:0 .4em; }
.tile-body { flex:1; min-height:0; overflow:auto; padding:0 20px 18px; display:flex; flex-direction:column; gap:6px; }
.tile-body > p { margin:0 0 4px; }
.tile-foot { margin:auto 0 0; padding-top:8px; font-size:var(--sd-fs-md); }
.tile-note { margin:0; padding:8px 20px 14px; font-size:var(--sd-fs-sm); flex:none; }
.mini { min-height:var(--sd-h-sm); padding:.2rem .7rem; font-size:var(--sd-fs-sm); }
.skel-line { display:inline-block; width:12em; max-width:100%; height:.8em; border-radius:var(--sd-r-xs); vertical-align:middle;
  background:linear-gradient(90deg, var(--sd-fill-subtle) 0%, var(--sd-fill) 50%, var(--sd-fill-subtle) 100%); background-size:200% 100%; animation:skel 1.4s ease-in-out infinite; }

/* rows (events, contacts, links) */
.rows { list-style:none; margin:2px 0; padding:0; display:flex; flex-direction:column; }
.rows li { padding:7px 0; border-top:1px solid var(--sd-tile-hair); display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; }
.rows li:first-child { border-top:none; }
.who2 { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.what { grid-column:1 / -1; color:var(--sd-muted); font-size:var(--sd-fs-md); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.when { color:var(--sd-faint); font-size:var(--sd-fs-sm); white-space:nowrap; text-align:right; }
.unread .who2::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--sd-accent); margin-right:7px; vertical-align:middle; }
.skel { height:40px; border-radius:var(--sd-r-md); background:linear-gradient(90deg, var(--sd-fill-subtle) 0%, var(--sd-fill) 50%, var(--sd-fill-subtle) 100%); background-size:200% 100%;
  animation:skel 1.4s ease-in-out infinite; margin:4px 0; }
.rows li.skel { border-top:none; display:block; padding:0; }
@keyframes skel { from { background-position:200% 0; } to { background-position:-200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .skel-line { animation:none; } }

/* profile */
.card-profile { padding:22px 22px 16px; }
.profile { flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:0; }
.avatar-xl { width:96px; height:96px; border-radius:50%; flex:none; object-fit:cover; box-shadow:0 0 0 4px color-mix(in srgb, var(--sd-surface) 70%, transparent), 0 8px 24px -6px rgba(20,32,90,.35); /* sd:raw */ }
.avatar-xl.initials { display:grid; place-items:center; color:var(--sd-white); font-size:2.1rem; font-weight:650; letter-spacing:-.02em;
  background:var(--sd-art-avatar-xl); }
.greet { margin:14px 0 0; color:var(--sd-muted); font-size:var(--sd-fs-md); }
.tile h2.profile-name { margin:0; font-size:1.65rem; line-height:1.15; font-weight:700; letter-spacing:-.03em; max-width:100%; overflow-wrap:anywhere; }
.profile-email { margin:2px 0 0; color:var(--sd-muted); font-size:var(--sd-fs-md); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-org { margin:10px 0 0; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px; font-size:var(--sd-fs-md); }
.org-name { font-weight:600; }
.badge.plan { background:color-mix(in srgb, var(--sd-accent) 14%, transparent); color:var(--sd-accent); }
.profile-switch { display:flex; gap:6px; justify-content:center; margin:10px 0 0; }
.profile-switch select { min-height:var(--sd-h-md); padding:.3rem .6rem; font-size:var(--sd-fs-md); max-width:100%; background:color-mix(in srgb, var(--sd-surface) 70%, transparent); }
.card-profile .orgs-locked { margin:8px 0 0; text-align:center; font-size:var(--sd-fs-sm); }
.card-profile .tile-foot { text-align:center; padding-top:10px; }

/* mail: the latest six, two columns with a hairline between */
.mb-switch { display:inline-flex; align-items:center; gap:6px; margin:0; min-width:0; flex:0 1 auto; }
.mb-switch select { min-height:var(--sd-h-sm); padding:0 1.6rem 0 .5rem; font-size:var(--sd-fs-sm); border-radius:var(--sd-r-sm); width:100%; max-width:16rem; min-width:0; text-overflow:ellipsis;
  background-color:color-mix(in srgb, var(--sd-surface) 60%, transparent); }
.msgs { list-style:none; margin:0; padding:0 20px 12px; flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr);
  align-content:start; }
.msgs li { min-width:0; padding:9px 0; border-top:1px solid var(--sd-tile-hair); display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; align-content:center; }
.msgs li:first-child { border-top:none; }
.msgs li.skel { border-top:none; margin:6px 0; height:44px; padding:0; }
.msgs .msg-empty { grid-column:1 / -1; border:none; color:var(--sd-muted); }
@media (min-width: 700px) {
  /* a tablet's half-width card: the latest four, sender and subject */
  .msgs { grid-template-rows:repeat(4, minmax(0,1fr)); align-content:stretch; }
  .msgs li { overflow:hidden; }
  .msgs li:nth-child(n+5) { display:none; }
  dl.glance.four dd { font-size:var(--sd-fs-lg); }
}
@media (min-width: 1100px) {
  .msgs { grid-template-columns:repeat(2, minmax(0,1fr)); grid-template-rows:repeat(3, minmax(0,1fr)); grid-auto-flow:column; }
  .msgs li:nth-child(-n+3) { padding-right:18px; }
  .msgs li:nth-child(n+4) { padding-left:18px; border-left:1px solid var(--sd-tile-hair); }
  .msgs li:nth-child(4) { border-top:none; }
  .msgs li:nth-child(n+5) { display:grid; }
  dl.glance.four dd { font-size:var(--sd-fs-xl); }
  .msgs li.skel:nth-child(n+4) { margin-left:18px; }
  .msgs .msg-empty { grid-row:1 / -1; align-self:center; text-align:center; }
}

/* calendar and contacts */
.cal-body { gap:4px; }
.events li .who2 { font-weight:600; font-size:var(--sd-fs-md); }
.empty { margin:2px 0 4px; }
.card-contacts { margin-top:auto; padding-top:10px; border-top:1px solid var(--sd-tile-hair); }
.quick { margin:0; }
.quick input { width:100%; min-height:var(--sd-h-md); padding:.4rem .8rem; font-size:var(--sd-fs-md); border-radius:var(--sd-r-md); background:color-mix(in srgb, var(--sd-surface) 70%, transparent); }
.dav summary { font-size:var(--sd-fs-sm); color:var(--sd-accent); cursor:pointer; }
.dav p { font-size:var(--sd-fs-sm); overflow-wrap:anywhere; }

/* cameras: the latest snapshots edge to edge, 4 x 2 */
.snaps-wrap { flex:1; min-height:0; display:flex; flex-direction:column; }
.snaps { list-style:none; margin:0; padding:0; flex:1; min-height:0; display:grid; gap:var(--snap-gap);
  grid-template-columns:repeat(4, minmax(0,1fr)); grid-template-rows:repeat(2, minmax(0,1fr)); }
.snaps li { position:relative; min-width:0; min-height:0; overflow:hidden; background:var(--sd-fill-subtle); }
.snaps li.skel { margin:0; height:auto; border-radius:0; }
.snap { display:block; width:100%; height:100%; color:var(--sd-white); }
.snap:hover { text-decoration:none; }
.snap img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.snap:hover img { transform:scale(1.03); }
.snap:focus-visible { box-shadow:inset 0 0 0 3px var(--sd-accent); border-radius:0; }
.snap-cap { position:absolute; left:0; right:0; bottom:0; display:flex; justify-content:space-between; gap:8px; padding:18px 10px 7px;
  font-size:var(--sd-fs-xs); line-height:1.2; background:linear-gradient(180deg, transparent 0%, var(--sd-scrim) 100%); }
.snap-site { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.snap-time { flex:none; opacity:.85; }
.snaps li.broken { background:var(--sd-art-broken); }
.snaps li.broken img { visibility:hidden; }
.snap-empty { background:repeating-linear-gradient(135deg, var(--sd-fill-subtle) 0 10px, color-mix(in srgb, var(--sd-fill-subtle) 60%, transparent) 10px 20px) !important; }
.cam-glance { padding-top:0; }
.cam-thumb { display:block; width:100%; max-height:150px; aspect-ratio:16 / 9; object-fit:cover; border-radius:var(--sd-r-md); margin:6px 0 2px; background:var(--sd-fill-subtle); }
@media (max-width: 699px) {
  .snaps { grid-template-columns:repeat(2, minmax(0,1fr)); grid-template-rows:none; flex:none; }
  .snaps li { aspect-ratio:4 / 3; }
  .snaps li:nth-child(n+5) { display:none; }
}

/* glance numbers (admin; cameras without snapshots) */
dl.glance { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin:0 0 4px; }
dl.glance.four { grid-template-columns:repeat(4, minmax(0,1fr)); margin:0 20px 10px; flex:none; }
dl.glance div { background:var(--sd-tile-well); border-radius:var(--sd-r-md); padding:9px 12px; min-width:0; }
dl.glance dt { font-size:var(--sd-fs-xs); color:var(--sd-muted); }
dl.glance dt a { color:inherit; }
dl.glance dd { margin:0; font-size:var(--sd-fs-xl); font-weight:650; letter-spacing:-.02em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* admin: recent activity */
.activity-head { display:flex; align-items:baseline; justify-content:space-between; padding:2px 20px 0; flex:none; }
.tile .activity-head h3 { margin:0; font-size:var(--sd-fs-sm); font-weight:600; color:var(--sd-muted); }
.activity-head a { font-size:var(--sd-fs-sm); }
.activity { list-style:none; margin:0; padding:0 20px 12px; flex:1; min-height:0; overflow:hidden; }
.activity li { display:flex; gap:12px; align-items:baseline; padding:6px 0; border-top:1px solid var(--sd-tile-hair); font-size:var(--sd-fs-md); }
.activity li:first-child { border-top:none; }
.activity li.skel { height:28px; padding:0; border:none; }
.act-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* apps launcher */
.launch { list-style:none; margin:0; padding:2px 14px 16px; flex:1; min-height:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr));
  grid-template-rows:repeat(2, minmax(0,1fr)); grid-auto-rows:minmax(0,1fr); align-content:stretch; gap:4px; }
.launch li { min-width:0; display:flex; }
.app { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:6px 2px; border-radius:var(--sd-r-lg);
  color:var(--sd-fg); font-size:var(--sd-fs-sm); font-weight:500; text-align:center; }
a.app:hover { background:color-mix(in srgb, var(--sd-fill-subtle) 80%, transparent); text-decoration:none; }
.app .app-tile { width:56px; height:56px; border-radius:var(--sd-r-lg); }
.app .app-tile svg.i { width:28px; height:28px; }
.app-name { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:1.3; padding-bottom:1px; }
/* more than two rows of four would not fit the tile's fixed height: five across */
.launch.many { grid-template-columns:repeat(5, minmax(0,1fr)); }
.app.is-soon { opacity:.55; }
.app .app-tile { position:relative; }
.app-soon { position:absolute; top:-7px; right:-14px; font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  background:var(--sd-fill); color:var(--sd-muted); border-radius:var(--sd-r-xs); padding:1px 5px; }

/* My day (coming) and invites */
.myday p { font-size:var(--sd-fs-md); }
.myday-ghost { list-style:none; margin:auto 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.myday-ghost li { height:14px; border-radius:var(--sd-r-sm); background:color-mix(in srgb, var(--sd-fill) 80%, transparent); }
.myday-ghost li:nth-child(1) { width:72%; } .myday-ghost li:nth-child(2) { width:56%; } .myday-ghost li:nth-child(3) { width:64%; }
.invite-body { font-size:var(--sd-fs-md); }
.invite-cameras { background:linear-gradient(160deg, var(--sd-tile-bg) 45%, color-mix(in srgb, var(--sd-hue-camera) 16%, var(--sd-tile-bg)) 100%); }
.invite-mail { background:linear-gradient(160deg, var(--sd-tile-bg) 45%, color-mix(in srgb, var(--sd-hue-mailblue) 16%, var(--sd-tile-bg)) 100%); }
.invite-body .button { align-self:flex-start; }

/* phone: one column, cards size to their content (set sizes keep the skeletons in place) */
@media (max-width: 699px) {
  main.home-main { padding:16px 12px 56px; }
  body.shell-home { --gap:14px; --tile-r:var(--sd-r-lg); }
  .card-profile { min-height:300px; }
  .card-mail { min-height:420px; }
  .msgs li { min-height:58px; }
  .card-calendar { min-height:300px; }
  .card-apps .launch { grid-template-rows:none; grid-auto-rows:auto; }
  .card-admin, .card-myday, .card-invite { min-height:280px; }
  dl.glance.four { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .banner-card { flex-wrap:wrap; }
}

/* ---- sign-in beside the pitch ---- */
main.welcome { max-width:1080px; margin:0 auto; padding:56px 16px 24px; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:48px; align-items:center;
  overflow-wrap:break-word; }
/* Grid items default to min-width:auto, so one wide child (Google's button
   frame, a long address) would widen its track and the page with it. */
main.welcome > * { min-width:0; }
/* the pitch sits on the page, calm; only the sign-in is a card */
main.welcome > section.pitch { background:none; box-shadow:none; padding:0; margin:0; }
.pitch h1 { font-size:clamp(2.2rem, 4.4vw, 3.4rem); line-height:1.05; font-weight:750; letter-spacing:-.045em; margin:18px 0 14px; }
.pitch .lede { font-size:1.15rem; color:var(--sd-muted); max-width:34rem; }
.points { padding-left:1.1rem; margin:18px 0; }
.points li { margin:.35rem 0; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:var(--sd-h-ctl); padding:.62rem 1.25rem; border-radius:var(--sd-r-pill);
  background:var(--sd-accent-bg); color:var(--sd-on-accent); font-weight:500; }
.button:hover { background:var(--sd-accent-bg-hover); text-decoration:none; }
.button.secondary { background:var(--sd-fill); color:var(--sd-accent); }
.signin h2 { margin:0 0 16px; font-size:1.5rem; text-align:center; }
/* The Sign in button matches the fields above it and Google's button. */
.signin .stack button { align-self:stretch; border-radius:var(--sd-r-md); min-height:var(--sd-h-ctl); }
.signin .gbtn { width:100%; min-height:var(--sd-h-ctl); }
.signin .hint { text-align:left; }
@media (max-width: 52rem) {
  /* minmax(0,1fr), never a bare 1fr: 1fr's minimum is the content's, and
     Google's button frame (it sizes itself) pushed the column, the card
     and the pitch past a phone's right edge. */
  main.welcome { grid-template-columns:minmax(0,1fr); gap:28px; padding-top:28px; }
  .signin { order:-1; }
  .panel.signin { padding:26px 20px 20px; }
}

/* ---- People page (portal shell) ---- */
table.people td { vertical-align:top; }
form.products label { margin-right:.6rem; color:var(--sd-fg); }
form.products input[type=checkbox] { min-height:0; width:18px; height:18px; vertical-align:middle; accent-color:var(--sd-accent); }
.badge { display:inline-block; padding:2px 10px; border-radius:var(--sd-r-pill); background:var(--sd-fill); font-size:var(--sd-fs-sm); font-weight:600; }
.role-owner { background:var(--sd-warn-bg); color:var(--sd-warn); }
.role-admin { background:var(--sd-ok-bg); color:var(--sd-ok); }


/* ---- Sign in with Sora (docs/sora-oidc.md) ---- */
.home-main .card { border-radius:var(--sd-r-xl); padding:20px 22px 18px; min-width:0; display:flex; flex-direction:column; gap:6px; }
.home-main .card h2 { margin:0; font-size:var(--sd-fs-lg); color:var(--sd-fg); text-transform:none; letter-spacing:-.02em; font-weight:650; }
.consent { max-width:560px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:16px; }

/* Getting started (gettingstarted.go): what Sora is doing, step by step. */
.card-start .start-steps { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:8px; }
.card-start .start-step { display:flex; gap:8px; align-items:flex-start; overflow-wrap:anywhere; }
.card-start .start-text { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:baseline; }
.card-start .start-todo { opacity:.8; }
