/* Density pass 2026-10-23: same look, tighter proportions, real content in the first screen.
   Loaded after bt.css and lab.css. Remove this file (and its <link>) to go back. */

/* Header: slimmer top bar and page titles */
.topbar { padding-top: calc(8px + var(--safe-t)); padding-bottom: 6px; }
.ph { margin: 2px 0 12px; align-items: center; }
.ph h1 { font-size: clamp(28px, 7.5vw, 34px); }
.ph .sub { font-size: 14px; margin-top: 4px; }
.sec-h { margin: 22px 0 10px; }
.sec-h h2 { font-size: 18px; }
.sec-h h2 .ic { width: 16px; height: 16px; vertical-align: -1px; color: var(--ytext); }
@media (min-width: 760px) {
  .topbar { padding-top: calc(10px + var(--safe-t)); padding-bottom: 6px; }
  .ph h1 { font-size: 38px; }
}
@media (min-width: 1180px) {
  .topbar { padding-top: 12px; padding-bottom: 4px; }
  .ph { margin-top: -6px; }
}

/* "About this page", slim form: one yellow line */
details.pintro.slim { margin: 0 0 14px; }
details.pintro.slim > summary { padding: 9px 12px; gap: 10px; font: 400 14.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
details.pintro.slim .pintro-ic { width: 28px; height: 28px; border-radius: 9px; }
details.pintro.slim .pintro-ic .ic { width: 15px; height: 15px; }
details.pintro.slim .pintro-lead { flex: 1; min-width: 0; }
details.pintro.slim .pintro-tg { font: 600 11px var(--display); letter-spacing: .12em; text-transform: uppercase; }
details.pintro.slim[open] .pintro-tg { display: none; }
details.pintro.slim[open] > summary::after { margin-left: 4px; }
details.pintro.slim:not([open]) .pintro-lead { display: none; }
details.pintro.slim:not([open]) > summary::before { content: ''; }
details.pintro.slim:not([open]) { display: inline-block; }

/* News: tabs and search on one line, feeds folded to one row */
.nf-top { display: grid; gap: 10px; margin-bottom: 10px; }
.nf-top .seg { max-width: none; }
.nf-top .seg button { min-height: 40px; }
.nf-top .input { border-radius: 99px; min-height: 44px; }
@media (min-width: 640px) { .nf-top { grid-template-columns: 320px 1fr; align-items: center; } }
.news-filters { gap: 6px; margin-bottom: 14px; }
.news-filters .chip { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.nf-feeds:not(.open) .chips { max-height: 38px; overflow: hidden; }
.nf-more { display: inline-block; margin-left: 6px; font: inherit; color: var(--ytext); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 641px) { .nf-k { padding-top: 8px; } .nf-feeds .nf-k { display: flex; flex-direction: column; gap: 4px; } .nf-more { margin-left: 0; text-align: left; } }
#list > .sec-h:first-child { margin-top: 0 !important; }

/* Prompts: card description one point larger, discover cards at the end */
.prompt-card .ps { font-size: 15px; }
.disc-h { margin-top: 40px; }
.disc-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.disc-card { position: relative; display: grid; gap: 4px; padding: 16px 44px 16px 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.disc-card:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.disc-card b { font: 600 15px/1.15 var(--display); text-transform: uppercase; }
.disc-card span { color: var(--mut); font-size: 14px; line-height: 1.45; }
.disc-card > .ic { position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; color: var(--ytext); }

/* Calendar and downloads: hero becomes one compact band */
.cal-hero, .dl-hero { padding: 16px 18px; gap: 10px; }
.cal-hero h1, .dl-hero h1 { font-size: clamp(30px, 8vw, 46px); line-height: .95; }
.cal-shapes, .dl-shapes { transform: scale(.5); transform-origin: top right; }
.cal-show { margin: 12px 0; }
.dl-first { margin-top: 18px; }
@media (min-width: 760px) {
  .cal-hero, .dl-hero { padding: 18px 24px; align-items: center; }
  .cal-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .cal-hero .cal-ctl { grid-column: 1 / -1; }
  .dl-hero h1 { padding-right: 130px; }
}
@media (min-width: 1180px) {
  .dl-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-hero h1 { padding-right: 0; }
  .dl-hero .lab-stats { justify-self: end; margin-right: 150px; }
}
@media (min-width: 1180px) {
  .cal-hero { grid-template-columns: auto minmax(0, 1fr); }
  .cal-hero .cal-ctl { grid-column: auto; margin-right: 140px; }
  .cal-day { min-height: 84px; }
}

/* Spaces: joined = full colour cards, open to join = quiet rows with a Join button */
.sp-mine .pcard { min-height: 160px !important; }
.sp-in .ic { width: 12px; height: 12px; }
.sp-avail-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sp-avail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-avail { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r-lg); background: var(--s1); border: 1.5px dashed var(--line2); min-width: 0; }
.sp-av-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.sp-av-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 15px/1.15 var(--display); text-transform: uppercase; overflow: hidden; overflow-wrap: break-word; }
.sp-av-em { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.sp-join { flex: none; }
.sp-none { padding: 18px; }

/* Phones: the page name moves into the top bar (it is empty there anyway), filters get inline labels */
@media (max-width: 759px) {
  body:has(.view .ph.fold) .topbar .title.root:not(.brand) { visibility: visible; }
  .ph.fold { display: none; }
  .nf-top { gap: 8px; }
  .nf-top .input { min-height: 42px; }
  .nf-row { grid-template-columns: 74px 1fr; gap: 8px; }
  .nf-k { padding-top: 7px; font-size: 10px; }
  .nf-feeds .nf-k { display: flex; flex-direction: column; gap: 2px; }
  .nf-more { margin-left: 0; text-align: left; }
  .news-filters .chip { min-height: 32px; font-size: 13px; padding: 5px 11px; }
  .nf-feeds:not(.open) .chips { max-height: 34px; }
  details.pintro.slim > summary { font-size: 14px; }
  .cal-hero, .dl-hero { padding: 14px 16px; }
}
@media (max-width: 759px) {
  .sp-mine { gap: 10px; }
  .sp-mine .pcard { min-height: 0 !important; padding: 14px 16px; gap: 6px; }
  .sp-mine .pcard .title { font-size: 19px !important; margin-top: 2px; }
  .sp-mine .pcard .top span:first-child { font-size: 26px !important; }
  .sp-mine .pcard .ghost-word { font-size: 44px; }
}

/* Share (2026-10-23): small, quiet share buttons and the share sheet */
.share-btn .ic { width: 15px; height: 15px; }
.share-btn.quiet { background: transparent; color: var(--mut); }
.share-btn.quiet:hover { color: var(--ytext); }
.share-btn.on-colour { background: rgba(0, 0, 0, .12); color: #000; flex: none; }
.share-wa { background: #25D366; color: #000; }
.share-people { display: grid; gap: 4px; }
.share-p { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; text-align: left; color: var(--text); }
.share-p:hover { background: var(--s2); }
.share-p.on { background: var(--s2); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.share-p .ic { width: 15px; height: 15px; }
.share-p > .ic { color: var(--ytext); }
@media (max-width: 559px) { .sp-join { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; } .sp-join .sp-jl { display: none; } }

/* SOS (2026-10-23 b): inline form under the buttons, picked button marked, emergency numbers per country */
.sos.picked { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); transform: translateY(-2px); }
.sos { min-height: 112px; padding: 14px 16px; }
.sos-e { font-size: 28px; }
.sos-t { font-size: 19px; }
.sos-form { margin-top: 12px; }
.sos-nums { margin-top: 14px; }
.sos-rows { display: grid; gap: 6px; }
@media (min-width: 760px) { .sos-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sos-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--s2); font-size: 14.5px; }
.sos-row b { font-weight: 600; }
.sos-num { font: 600 18px var(--display); color: var(--ytext); white-space: nowrap; letter-spacing: .02em; }

/* Page tools row (2026-10-23 b): search plus the page's main action side by side, away from the header controls */
.ph-tools { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; }
.ph-tools .input { flex: 1; min-width: 0; border-radius: 99px; min-height: 44px; margin: 0; }
.ph-tools .btn { flex: none; min-height: 44px; }
.ph-tools .grow { flex: 1; }

/* Crew: calmer card grid on desktop */
@media (min-width: 1180px) { .grid.people { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .mcard .nm { font-size: 15px; } .mcard .initials { font-size: 52px; } }

/* AI Lab hub (2026-10-23 b): keep the orbit and textured title, calmer proportions */
.lab-hub-hero { padding: 22px 22px; gap: 14px; }
.lab-hub-hero h1 { font-size: clamp(38px, 9vw, 66px); }
.lab-hub-hero .lede { font-size: 15.5px; max-width: 600px; }
@media (min-width: 760px) { .lab-hub-hero { padding: 26px 30px; } .lab-orbit { transform: scale(.8); transform-origin: top right; } }
.lab-verbs { margin: 16px 0 2px; padding: 9px 0; }
.lab-verbs div { font-size: 17px; }
.lab-card { min-height: 180px; padding: 16px; }
.lab-card .num { font-size: 34px; }
.lab-card .glyph { width: 48px; height: 48px; }
.lab-card .title { font-size: 20px; }
.lab-card .ghost-word { font-size: 56px; bottom: 44px; }
.lab-card.flag { min-height: 220px; }
.lab-card.flag .title { font-size: clamp(24px, 4.5vw, 32px); }
.lab-card.flag .title.fit { font-size: min(32px, calc((100cqw - 36px) / (var(--ch) * .6))); }
.lab-card.flag .ghost-word { font-size: 88px; }
.lab-card .title.fit { font-size: min(20px, calc((100cqw - 36px) / (var(--ch) * .6))); }
.lab-route a { padding-bottom: 14px; }
.lab-route b { font-size: 15px; }
.lab-panel { padding: 16px; }
@media (min-width: 760px) { .lab-panel { padding: 18px; } }
.lab-plat { min-height: 150px; }
.lab-warn { padding: 12px 14px; }

/* Agenda (2026-10-23 b): month + navigation together, the two actions as their own equal width group */
.cal-hero { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.cal-head h1 { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-acts .btn { width: 100%; justify-content: center; }
@media (min-width: 760px) {
  .cal-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .cal-acts { grid-template-columns: 1fr; width: 230px; margin-right: 120px; }
  .cal-acts .btn { white-space: nowrap; }
}
@media (min-width: 1180px) { .cal-hero { grid-template-columns: minmax(0, 1fr) auto; } .cal-hero .cal-ctl { margin-right: 0; } }
/* lettering: the moving texture stays, with a soft warm glow; the year gets the same quiet movement in orange */
.cal-hero h1 .textured { animation-duration: 14s; filter: drop-shadow(0 0 14px rgba(235, 100, 52, .22)); }
.cal-year { background: linear-gradient(100deg, #fff 0 38%, #ffb08a 46%, var(--orange) 52%, #fff 62% 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: calSheen 9s ease-in-out infinite; }
@keyframes calSheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cal-year, .cal-hero h1 .textured { animation: none; } }
[data-theme="light"] .cal-year { background-image: linear-gradient(100deg, #fff 0 38%, #ffb08a 46%, var(--orange) 52%, #fff 62% 100%); }

/* Agenda side: readable tasks and day view */
.cal-dayview, .cal-tasks { padding: 16px 18px; }
.cal-tasks .seg { flex: none; }
.cal-tasks .seg button { white-space: nowrap; padding: 0 14px; min-width: 76px; min-height: 36px; font-size: 12.5px; }
.cal-tasks > p, .cal-dayview > p { font-size: 14px !important; color: var(--lede, var(--text)) !important; opacity: .9; line-height: 1.5; }
.cal-task { padding: 10px 12px; }
.cal-task-t { font-size: 15px; color: var(--text); }
.cal-task-s { font-size: 13px; color: var(--text); opacity: .72; }

/* Profile header (Me and member profiles, 2026-10-23 b): calmer name and photo, two equal buttons */
.pf-name { font-size: min(clamp(38px, 6.5vw, 68px), calc(100cqw / (var(--ch, 8) * .62))); }
.pf-id { gap: 12px; }
.pf-headline { font-size: 15.5px; }
.pf-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pf-btns .btn { width: 100%; justify-content: center; }
/* side by side: both as wide as the longest label */
@media (min-width: 560px) { .pf-btns { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; justify-self: start; } .pf-btns .btn { white-space: nowrap; } }
@media (min-width: 1180px) { .pf-hero { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 36px; } }
.pf-stats .pf-num { font-size: clamp(34px, 4.6vw, 54px); }

/* My corner: rows of cards that scroll sideways on their own (no snapping, the page scrolls normally) */
.corner { display: grid; gap: 18px; }
.corner-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.corner-h h3 { font: 600 16px var(--display); text-transform: uppercase; margin: 0; }
.corner-h .k { color: var(--ytext); display: inline-flex; align-items: center; gap: 4px; }
.corner-h .k .ic { width: 13px; height: 13px; }
.corner-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.corner-card { display: grid; align-content: start; gap: 6px; padding: 14px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); min-height: 120px; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
.corner-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.corner-card b { font: 600 15px/1.2 var(--display); text-transform: uppercase; }
.corner-card.news b, .corner-card.prompt b { font: 600 14.5px/1.35 var(--body); text-transform: none; }
.corner-card:not(.space) { background: var(--s1); }
.corner-card.space { color: #000; box-shadow: none; }
.corner-card.space .small { opacity: .7; }
.corner-em { font-size: 26px; line-height: 1; }
.corner-src { font: 600 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.corner-img { display: block; margin: -14px -14px 4px; height: 110px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--s2); }
.corner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.corner-empty { margin: 0; }

/* Sidebar profile shortcut: photo and name only, in a soft colour that fits the sidebar */
.side .side-foot .me-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--lilac); color: #000; transition: transform .2s var(--ease); }
.side .side-foot .me-row:hover { transform: translateY(-1px); }
.side .side-foot .me-row b { font: 600 13.5px/1.15 var(--display); text-transform: uppercase; color: #000; }
@media (min-width: 760px) { .pf-photo-wrap { max-width: 380px; } }
@media (max-width: 759px) { .cal-acts .btn { white-space: nowrap; font-size: 12px; padding: 0 10px; } }

/* Crew chat (2026-10-23): pinned row and the stream */
.crew-row { box-shadow: inset 0 0 0 1px rgba(244, 198, 0, .35); margin-bottom: 6px; }
.crew-av { background: var(--yellow); color: #000; display: grid; place-items: center; flex: none; }
.crew-av .ic { width: 22px; height: 22px; }
.crew-pane { display: grid; gap: 12px; padding: 4px 2px 20px; align-content: start; }
.crew-head { display: flex; align-items: center; gap: 12px; }
.crew-head b { display: block; font: 600 17px var(--display); text-transform: uppercase; }
.crew-compose { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .crew-compose { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.crew-compose .input { border-radius: 16px; min-height: 56px; }
.crew-list { display: grid; gap: 8px; }
.crew-post { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.crew-post.new { box-shadow: inset 0 0 0 1px rgba(244, 198, 0, .5); }
.crew-name { font: 600 14px var(--display); text-transform: uppercase; }
.crew-body { margin-top: 4px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
