/* Home only. The outer panel is tinted; only sibling cards blur the backdrop.
   Phone layout (bottom nav) up to 900px wide, same breakpoint as css/studio-sidebar.css. */
/* Keep the body palette available on browsers without root :has() support. */
:is(body.studio-glass, html:has(> body.studio-glass)) {
  --g-bg: #1a120c;
  --g-accent: #D6B088;
  --g-scheme: dark;
}
body.studio-glass {
  --g-text: #F4ECE1; --g-sub: #C4B49F; --g-faint: #A39079;
  --g-glass: rgba(48,34,24,.50); --g-glass-soft: rgba(40,28,20,.34); --g-glass-strong: rgba(28,19,13,.66);
  --g-line: rgba(255,236,214,.13); --g-chip: rgba(255,236,214,.07); --g-track: rgba(255,236,214,.14);
  --g-accent-ink: #1a120c; --g-accent-soft: rgba(214,176,136,.16);
  --ink: var(--g-text); --muted: var(--g-sub); --line: var(--g-line); --accent: var(--g-accent);
  background: var(--g-bg);
  color: var(--g-text); font-family: "Jost", sans-serif;
}
/* Nov 18 (Jay: a white strip flashes when the phone keyboard opens in the MOU chat).
   Root cause: <html> had no background and no color-scheme, so while the screen resizes for
   the keyboard, Chrome paints the not-yet-drawn area with its default WHITE. Dark root = no flash. */
html:has(> body.studio-glass) {
  background: var(--g-bg);
  color-scheme: var(--g-scheme);
}
/* Nov 18 (Jay: Studio background went plain dark after the line above). ROOT CAUSE: once <html>
   has its own background, body's background no longer moves up to the page canvas; body paints it
   as a normal box OVER the z-index:-1 corner glows (body::before). So the glows disappeared.
   Fix: html keeps the dark color (no white flash), body is see-through, glows show again. */
html:has(> body.studio-glass) > body.studio-glass { background: transparent; }
/* Nov 18 (Jay: on first open the page looks frozen, no sign it is loading). The page stays hidden
   until the login check and scripts are done (studio-gate.js). While hidden: keep the Studio
   background (glows + grain) and show a softly breathing MOUMEANTS symbol in the middle.
   It appears only after 0.4 s, so fast loads never flash it. */
body.studio-glass::before,
body.studio-glass::after,
body.studio-glass .studio-shell::after { visibility: visible; }
html:has(> body.studio-glass[style*="visibility"][style*="hidden"])::after {
  content: "";
  position: fixed;
  inset: 50% auto auto 50%;
  width: 40px;
  height: 48px;
  margin: -24px 0 0 -20px;
  background: var(--g-accent);
  -webkit-mask: url("../assets/brand/moumeants-symbol.svg") center / contain no-repeat;
  mask: url("../assets/brand/moumeants-symbol.svg") center / contain no-repeat;
  pointer-events: none;
  opacity: 0;
  animation: studio-loading-in .3s ease .4s forwards, studio-loading-breathe 1.6s ease-in-out .7s infinite;
}
@keyframes studio-loading-in { to { opacity: .9; } }
@keyframes studio-loading-breathe { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  html:has(> body.studio-glass[style*="visibility"][style*="hidden"])::after { animation: studio-loading-in .3s ease .4s forwards; }
}
body.studio-glass [hidden] { display: none; }
.studio-not-found { padding: clamp(28px, 8vw, 96px); }
body.studio-glass .studio-shell { background: transparent; }
body.studio-glass .studio-content { padding: 24px 28px 64px; }
body.studio-glass .home-desk { max-width: 1280px; padding: 34px; gap: 22px; grid-template-columns: repeat(15, minmax(0, 1fr)); border: 1px solid var(--g-line); border-radius: 28px; background: var(--g-glass-soft); }
body.studio-glass .desk-hello { grid-column: 1 / -1; grid-template-columns: 1fr auto; gap: 5px 24px; padding: 6px 0 20px; }
body.studio-glass .glass-greeting { grid-column: 1; grid-row: 1; margin: 0; color: var(--g-sub); font-size: 15px; }
body.studio-glass .desk-hello h1 { grid-column: 1; grid-row: 2; font-size: 48px; }
body.studio-glass .desk-eyebrow { grid-column: 2; grid-row: 1; align-self: center; text-align: right; color: var(--g-sub); font-size: 12px; letter-spacing: 0; }
body.studio-glass .desk-summary { grid-column: 1; grid-row: 3; color: var(--g-sub); font-size: 13px; }
body.studio-glass .desk-usage { grid-column: 1; grid-row: 4; margin: 0; color: var(--g-sub); font: 400 13px "Jost", sans-serif; }
body.studio-glass .desk-usage--accent,
body.studio-glass .desk-usage a { color: var(--g-accent); }
body.studio-glass .desk-summary strong { color: var(--g-accent); font-weight: 400; }
body.studio-glass .desk-actions { grid-column: 2; grid-row: 2 / 4; align-self: center; margin: 0; }
body.studio-glass .desk-section,
body.studio-glass .desk-next,
body.studio-glass .studio-sidebar,
body.studio-glass .glass-bottom-nav { background: var(--g-glass); border: 1px solid var(--g-line); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
body.studio-glass .desk-section,
body.studio-glass .desk-next { padding: 22px; border-radius: 22px; gap: 12px; align-content: start; }
body.studio-glass .desk-start { grid-column: 1 / -1; }
/* One card per row on every size (Jay, Nov 15): side by side, the short
   "Needs you" card stretched to the tall RSVP card and left a big empty box. */
body.studio-glass [data-desk-needs-section],
body.studio-glass .desk-next,
body.studio-glass .desk-section--wide,
body.studio-glass [aria-labelledby="desk-coming-title"] { grid-column: 1 / -1; }
body.studio-glass .desk-head { min-height: 30px; }
body.studio-glass .desk-head h2,
body.studio-glass .desk-next__top h2 { font: 500 17px "Jost", sans-serif; letter-spacing: 0; text-transform: none; color: var(--g-text); }
body.studio-glass .desk-btn,
body.studio-glass .desk-next__btn,
body.studio-glass .desk-need__action { min-height: 44px; border: 1px solid var(--g-line); border-radius: 8px; background: transparent; color: var(--g-text); padding: 0 12px; font: 400 13px "Jost", sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
body.studio-glass .desk-btn--dark,
body.studio-glass .studio-shell.is-home .sidebar-new { background: var(--g-accent); color: var(--g-accent-ink); border: 1px solid var(--g-accent); border-radius: 8px; }
body.studio-glass .desk-next__btn { flex: none; min-height: 36px; }
body.studio-glass .desk-next__stats { border-color: var(--g-line); }
body.studio-glass .desk-next__stats div + div { border-color: var(--g-line); }
body.studio-glass .desk-next__stats b { font: 400 44px/1 "Cormorant Garamond", serif; }
body.studio-glass .desk-next__stats span { color: var(--g-sub); text-transform: none; letter-spacing: 0; font-size: 12px; }
body.studio-glass .glass-chart-empty { min-height: 110px; display: grid; place-items: center; border-bottom: 1px solid var(--g-line); color: var(--g-faint); font-size: 13px; text-align: center; }
body.studio-glass .desk-need__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--g-chip); color: var(--g-sub); }
body.studio-glass .desk-need:first-child .desk-need__icon { background: var(--g-accent-soft); color: var(--g-accent); }
body.studio-glass .desk-need__text strong,
body.studio-glass .desk-event__text strong,
body.studio-glass .desk-gallery strong { font: 400 16px/1.3 "Jost", sans-serif; }
body.studio-glass .desk-need__text small,
body.studio-glass .desk-event__text small,
body.studio-glass .desk-gallery small,
body.studio-glass .desk-next__meta,
body.studio-glass .desk-next__note,
body.studio-glass .desk-start__lead,
body.studio-glass .desk-start__done,
body.studio-glass .desk-start__step[data-done] .desk-need__text strong,
body.studio-glass .desk-status,
body.studio-glass .desk-empty { color: var(--g-sub); }
body.studio-glass .desk-head__note,
body.studio-glass .sample-label { color: var(--g-faint); }
body.studio-glass .desk-link,
body.studio-glass .desk-more,
body.studio-glass .desk-calm { color: var(--g-accent); }
body.studio-glass .desk-need + .desk-need,
body.studio-glass .desk-events > li + li,
body.studio-glass .desk-card > .desk-more { border-color: var(--g-line); }
body.studio-glass .desk-date { background: var(--g-chip); color: var(--g-sub); border-radius: 12px; }
body.studio-glass .desk-date--next { background: var(--g-accent-soft); color: var(--g-accent); }
body.studio-glass .desk-strip { display: grid; gap: 0; overflow: visible; }
body.studio-glass .desk-gallery { width: auto; display: flex; gap: 14px; padding: 14px 0; align-items: center; }
body.studio-glass .desk-gallery + .desk-gallery { border-top: 1px solid var(--g-line); }
body.studio-glass .desk-gallery__cover { flex: none; width: 46px; height: 46px; margin: 0; border-radius: 10px; background: var(--g-chip); border: 1px dashed var(--g-line); }
body.studio-glass .desk-gallery small { display: block; margin-top: 4px; font-size: 12px; }
body.studio-glass .studio-sidebar { border-width: 0 1px 0 0; }
body.studio-glass .sidebar-brand strong { color: var(--g-text); }
body.studio-glass .sidebar-brand small { color: var(--g-sub); }
body.studio-glass .sidebar-brand img { filter: brightness(0) invert(.9); }
body.studio-glass .sidebar-link,
body.studio-glass .project-list-item,
body.studio-glass .project-list-button { color: var(--g-text); }
body.studio-glass .sidebar-link[aria-current="page"],
body.studio-glass .project-list-item[data-active="true"] { background: var(--g-chip); border: 1px solid var(--g-line); }
body.studio-glass .studio-shell.is-home .sidebar-new { display: flex; }
body.studio-glass .studio-shell.is-home .sidebar-new--quiet { display: none; }
body.studio-glass .content-bar { position: static; min-height: 0; padding: 0; margin: 0 0 16px; border: 0; background: transparent; justify-content: flex-end; }
body.studio-glass .account-chip { margin-left: auto; }
body.studio-glass .glass-mobile-brand,
body.studio-glass .glass-bottom-nav { display: none; }
body.studio-glass .account-chip__avatar { background: var(--g-chip); border-color: var(--g-line); color: var(--g-text); }
body.studio-glass :is(a, button):focus-visible { outline: 2px solid var(--g-accent); outline-offset: 3px; }
@media (min-width: 901px) {
  body.studio-glass .studio-shell--sidebar { grid-template-columns: 248px minmax(0, 1fr); }
  /* inherit, not visible (Nov 18, Jay: white "New event" on first open). "visible" made the sidebar
     show while the page was still hidden and loading, before studio-sidebar.js styles it. */
  body.studio-glass .studio-sidebar { display: flex; position: sticky; transform: none; visibility: inherit; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  body.studio-glass .studio-content { padding: 18px; }
  body.studio-glass .home-desk { padding: 22px; gap: 16px; }
  body.studio-glass .desk-hello { grid-template-columns: 1fr; }
  body.studio-glass .desk-eyebrow { grid-column: 1; grid-row: 5; text-align: left; }
  body.studio-glass .desk-actions { grid-column: 1; grid-row: 6; justify-self: start; }
}
@media (max-width: 900px) {
  body.studio-glass .studio-shell--sidebar { display: block; }
  body.studio-glass .studio-sidebar,
  body.studio-glass .sidebar-scrim { display: none; }
  body.studio-glass .studio-content { padding: 14px 14px calc(130px + env(safe-area-inset-bottom)); }
  body.studio-glass .content-bar { display: flex; padding: 12px; min-height: 64px; border: 1px solid var(--g-line); border-radius: 16px; background: var(--g-glass-strong); }
  body.studio-glass .glass-mobile-brand { display: flex; padding: 0; margin-right: auto; }
  body.studio-glass .desk-eyebrow { align-self: flex-start; }
  body.studio-glass .glass-mobile-brand strong { font: 400 21px/1 "Cormorant Garamond", serif; }
  body.studio-glass .home-desk { display: flex; flex-direction: column; padding: 0; border: 0; background: transparent; gap: 16px; }
  body.studio-glass .desk-hello { display: flex; flex-direction: column; padding: 14px 8px 8px; gap: 10px; }
  body.studio-glass .desk-eyebrow { order: 3; text-align: left; }
  body.studio-glass .desk-actions { order: 4; align-self: stretch; }
  body.studio-glass .desk-hello h1 { font-size: 44px; }
  body.studio-glass .desk-section,
  body.studio-glass .desk-next { padding: 20px; }
  body.studio-glass .desk-next,
  body.studio-glass .desk-section { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
  body.studio-glass .desk-next__top { flex-wrap: wrap; }
  body.studio-glass .desk-need { gap: 10px; flex-wrap: wrap; }
  body.studio-glass .desk-need__text { flex-basis: 130px; }
  body.studio-glass .desk-need__action { margin-left: auto; }
  body.studio-glass .desk-head { flex-wrap: wrap; }
  body.studio-glass .glass-bottom-nav { display: flex; justify-content: space-around; align-items: center; position: fixed; z-index: 40; left: 14px; right: 14px; bottom: calc(22px + env(safe-area-inset-bottom)); padding: 8px 4px; border-radius: 22px; background: var(--g-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
  body.studio-glass .glass-bottom-nav a { position: relative; min-width: 44px; min-height: 52px; display: grid; place-items: center; gap: 4px; color: var(--g-sub); text-decoration: none; font-size: 11px; }
  body.studio-glass .glass-bottom-nav a[aria-current="page"] { color: var(--g-accent); }
  body.studio-glass .glass-bottom-nav a[aria-current="page"] span { font-weight: 600; }
  body.studio-glass .glass-bottom-nav a[aria-current="page"] svg { stroke-width: 1.8; }
  body.studio-glass .glass-bottom-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    margin-inline: auto;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--g-accent);
  }
  body.studio-glass .glass-nav-new svg { box-sizing: content-box; padding: 9px; border-radius: 8px; background: var(--g-accent); color: var(--g-accent-ink); }
}
@supports not (backdrop-filter: blur(1px)) {
  body.studio-glass .desk-section,
  body.studio-glass .desk-next,
  body.studio-glass .studio-sidebar,
  body.studio-glass .glass-bottom-nav { background: rgba(40,28,20,.92); }
}

body.studio-glass .project-more__menu { background: var(--g-bg); border-color: var(--g-line); }
body.studio-glass .project-more__menu a,
body.studio-glass .project-more__menu button { color: var(--g-text); }
body.studio-glass .events-more__menu { background: var(--g-bg); border-color: var(--g-line); }
body.studio-glass .events-more__menu > :is(a, button) { color: var(--g-text); }
body.studio-glass .events-more__menu > .is-danger { color: #EFA394; }
body.studio-glass .events-more__button { color: var(--g-sub); }
body.studio-glass .events-more__button:is(:hover, [aria-expanded="true"]) { background: var(--g-chip); color: var(--g-text); }
body.studio-glass .desk-start[data-ready] { background: var(--g-glass); border-color: var(--g-line); }
body.studio-glass .desk-start[data-ready] #desk-start-title { color: var(--g-text); }

/* ---- Nov 15 polish (Jay: "medju iba sa mockup", gradient not smooth) ----
   Background: the glows sit on a FIXED layer (same on every scroll position,
   not stretched over the whole page height) with many color stops, so the
   color fades slowly. A faint grain on top hides the "steps" (banding) that
   dark gradients show on big screens. No filter: blur (slow on cheap phones). */
body.studio-glass::before,
body.studio-glass::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
/* Nov 16 (Jay: the round glows show rings, "parang may anino"). Root cause: the old stops were
   straight lines joined at 12%, 24%, 36%...; the eye sees every place where the fade changes
   speed as a ring (Mach bands). Now each glow follows one smooth curve, (1 - t)^1.5 in 17 stops:
   no sudden speed change, and it flattens out where the glow ends. Same colors, same size. */
body.studio-glass::before {
  background:
    radial-gradient(58% 55% at 6% 4%, rgba(125,75,34,0.780) 0.0%, rgba(125,75,34,0.708) 5.0%, rgba(125,75,34,0.638) 10.0%, rgba(125,75,34,0.571) 15.0%, rgba(125,75,34,0.507) 20.0%, rgba(125,75,34,0.445) 25.0%, rgba(125,75,34,0.385) 30.0%, rgba(125,75,34,0.329) 35.0%, rgba(125,75,34,0.276) 40.0%, rgba(125,75,34,0.226) 45.0%, rgba(125,75,34,0.179) 50.0%, rgba(125,75,34,0.136) 55.0%, rgba(125,75,34,0.098) 60.0%, rgba(125,75,34,0.063) 65.0%, rgba(125,75,34,0.034) 70.0%, rgba(125,75,34,0.012) 75.0%, rgba(125,75,34,0.000) 80.0%),
    radial-gradient(52% 58% at 98% 42%, rgba(169,115,60,0.460) 0.0%, rgba(169,115,60,0.418) 4.6%, rgba(169,115,60,0.377) 9.2%, rgba(169,115,60,0.337) 13.9%, rgba(169,115,60,0.299) 18.5%, rgba(169,115,60,0.262) 23.1%, rgba(169,115,60,0.227) 27.8%, rgba(169,115,60,0.194) 32.4%, rgba(169,115,60,0.163) 37.0%, rgba(169,115,60,0.133) 41.6%, rgba(169,115,60,0.106) 46.2%, rgba(169,115,60,0.080) 50.9%, rgba(169,115,60,0.058) 55.5%, rgba(169,115,60,0.037) 60.1%, rgba(169,115,60,0.020) 64.8%, rgba(169,115,60,0.007) 69.4%, rgba(169,115,60,0.000) 74.0%),
    radial-gradient(60% 50% at 42% 104%, rgba(74,44,23,0.850) 0.0%, rgba(74,44,23,0.772) 4.9%, rgba(74,44,23,0.696) 9.8%, rgba(74,44,23,0.623) 14.6%, rgba(74,44,23,0.552) 19.5%, rgba(74,44,23,0.485) 24.4%, rgba(74,44,23,0.420) 29.2%, rgba(74,44,23,0.359) 34.1%, rgba(74,44,23,0.301) 39.0%, rgba(74,44,23,0.246) 43.9%, rgba(74,44,23,0.195) 48.8%, rgba(74,44,23,0.148) 53.6%, rgba(74,44,23,0.106) 58.5%, rgba(74,44,23,0.069) 63.4%, rgba(74,44,23,0.038) 68.2%, rgba(74,44,23,0.013) 73.1%, rgba(74,44,23,0.000) 78.0%);
}
body.studio-glass::after {
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.studio-glass .studio-content { background: transparent; }

/* Type: card titles 20px medium, list names medium (as in the mockup). */
body.studio-glass .desk-head h2,
body.studio-glass .desk-next__top h2 { font-size: 20px; font-weight: 500; }
body.studio-glass .desk-need__text strong,
body.studio-glass .desk-event__text strong,
body.studio-glass .desk-gallery strong { font-weight: 500; }
body.studio-glass .desk-need__text small,
body.studio-glass .desk-gallery small,
body.studio-glass .desk-event__text small { font-size: 13px; }
body.studio-glass .desk-next__meta { font-size: 13px; }

/* Card header: note and link sit together on the right. */
body.studio-glass .desk-head .desk-link,
body.studio-glass .desk-head__note { margin-left: auto; font-size: 14px; }
body.studio-glass .desk-head__note + .desk-link { margin-left: 14px; }
body.studio-glass .desk-head .desk-link { color: var(--g-sub); }

/* Buttons in "Needs you": soft chip, like the mockup. */
body.studio-glass .desk-need__action { min-height: 40px; padding: 0 16px; background: var(--g-chip); font-size: 14px; display: inline-flex; align-items: center; }

/* RSVP numbers: label with a dot on top, big number below, no boxes. */
body.studio-glass .desk-next__stats { display: flex; flex-wrap: wrap; gap: 14px 34px; border: 0; }
body.studio-glass .desk-next__stats div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 0; }
body.studio-glass .desk-next__stats div + div { padding-left: 0; border-left: 0; }
body.studio-glass .desk-next__stats b { font: 500 40px/1 "Cormorant Garamond", serif; }
body.studio-glass .desk-next__stats span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
body.studio-glass .desk-next__stats span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g-accent); }
body.studio-glass .desk-next__stats div:nth-child(2) span::before { background: var(--g-sub); }
body.studio-glass .desk-next__stats div:nth-child(3) span::before { background: transparent; border: 1px solid var(--g-sub); box-sizing: border-box; }
body.studio-glass .desk-next__btn { min-height: 40px; background: var(--g-chip); font-size: 14px; }

/* ---- Nov 15, after Jay's live check ----
   The "waiting for your review" bar (js/review-notice.js) is put inside the
   Home grid: give it the full row and dark glass colors (the button was
   light text on a light button). */
body.studio-glass .home-desk > .review-notice { grid-column: 1 / -1; margin: 0; padding: 16px 20px; border-radius: 18px; background: var(--g-accent-soft); border: 1px solid rgba(214,176,136,.30); }
body.studio-glass .review-notice strong { color: var(--g-text); font-size: 15px; font-weight: 500; }
body.studio-glass .review-notice li span { color: var(--g-sub); font-size: 14px; }
body.studio-glass .review-notice li em { background: var(--g-accent); color: var(--g-accent-ink); }
body.studio-glass .review-notice .button { min-height: 40px; padding: 0 16px; border: 1px solid var(--g-accent); border-radius: 8px; background: var(--g-accent); color: var(--g-accent-ink); box-shadow: none; font: 500 14px "Jost", sans-serif; letter-spacing: 0; text-transform: none; }
body.studio-glass .review-notice .button::before { display: none; }
body.studio-glass .account-chip__pro { color: var(--g-sub); border-color: var(--g-line); }

/* Phone: smaller and quieter (Jay: "paki liitan, minimal lang").
   The bottom nav sits flat at the very bottom, almost solid, so the page
   does not show under or behind it. */
@media (max-width: 900px) {
  body.studio-glass .studio-content { padding: 10px 12px calc(76px + env(safe-area-inset-bottom)); }
  body.studio-glass .content-bar { min-height: 0; padding: 8px 10px 8px 12px; border-radius: 14px; margin-bottom: 12px; }
  body.studio-glass .glass-mobile-brand img { width: 24px; height: auto; }
  body.studio-glass .glass-mobile-brand strong { font-size: 16px; letter-spacing: .08em; }
  /* STUDIO uses the computer rule: letters spread under MOUMEANTS (Jay, Nov 15). */
  body.studio-glass .glass-mobile-brand small { font-size: 7px; margin-top: 4px; }
  body.studio-glass .account-chip__avatar { width: 34px; height: 34px; }
  body.studio-glass .home-desk { gap: 12px; }
  body.studio-glass .home-desk > .review-notice { padding: 14px 16px; }
  body.studio-glass .review-notice strong { font-size: 14px; }
  body.studio-glass .desk-hello { padding: 8px 6px 4px; gap: 6px; }
  body.studio-glass .glass-greeting { font-size: 14px; }
  body.studio-glass .desk-hello h1 { font-size: 34px; }
  body.studio-glass .desk-summary,
  body.studio-glass .desk-eyebrow { font-size: 12px; }
  body.studio-glass .desk-actions { margin-top: 6px; }
  body.studio-glass .desk-actions .desk-btn { min-height: 44px; font-size: 13px; }
  body.studio-glass .desk-section,
  body.studio-glass .desk-next { padding: 16px; border-radius: 18px; gap: 10px; }
  body.studio-glass .desk-head h2,
  body.studio-glass .desk-next__top h2 { font-size: 17px; }
  body.studio-glass .desk-next__stats { gap: 10px 26px; }
  body.studio-glass .desk-next__stats b { font-size: 30px; }
  body.studio-glass .glass-chart-empty { min-height: 72px; font-size: 12px; }
  body.studio-glass .desk-need__icon,
  body.studio-glass .desk-gallery__cover { width: 40px; height: 40px; }
  body.studio-glass .desk-need__text strong,
  body.studio-glass .desk-event__text strong,
  body.studio-glass .desk-gallery strong { font-size: 15px; }
  body.studio-glass .desk-need__action { min-height: 38px; padding: 0 12px; font-size: 13px; }

  body.studio-glass .glass-bottom-nav { left: 0; right: 0; bottom: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; background: rgba(22,15,10,.94); }
  body.studio-glass .glass-bottom-nav a { min-height: 50px; gap: 2px; font-size: 10px; flex: 1; }
  body.studio-glass .glass-bottom-nav svg { width: 19px; height: 19px; }
  body.studio-glass .glass-nav-new svg { padding: 0; border-radius: 0; background: none; color: inherit; }
}

/* Home data cards: native event filter, cumulative replies and usage tracks. */
body.studio-glass .glass-event-select { min-height: 44px; max-width: 100%; min-width: 0; width: 180px; padding: 0 10px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-glass-strong); color: var(--g-text); font: 400 13px "Jost", sans-serif; color-scheme: var(--g-scheme); }
body.studio-glass .desk-next__top { flex-wrap: wrap; }
body.studio-glass .desk-next__top h2 { margin-right: auto; }
body.studio-glass .glass-event-select:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 3px; }
body.studio-glass .glass-progress { display: block; width: 100%; overflow: hidden; border-radius: 3px; background: var(--g-track); }
body.studio-glass .glass-progress > span { display: block; height: 100%; background: var(--g-accent); }
body.studio-glass .glass-gallery-details { flex: 1; min-width: 0; }
body.studio-glass .glass-gallery-details strong { overflow-wrap: anywhere; }
body.studio-glass .glass-gallery-details .glass-progress { margin-top: 9px; }
body.studio-glass .glass-reply-chart { width: 100%; height: 170px; overflow: visible; }
body.studio-glass .glass-reply-chart text { fill: var(--g-faint); font: 12px "Jost", sans-serif; }
body.studio-glass .glass-chart-grid { stroke: var(--g-line); stroke-dasharray: 4 5; }
body.studio-glass .glass-chart-area { fill: var(--g-accent-soft); }
body.studio-glass .glass-chart-coming { fill: none; stroke: var(--g-accent); stroke-width: 2; }
body.studio-glass .glass-chart-no { fill: none; stroke: var(--g-sub); stroke-width: 1.5; }
body.studio-glass .glass-chart-dot { fill: var(--g-accent); }
body.studio-glass .glass-chart-no-dot { fill: var(--g-sub); }
body.studio-glass .glass-chart-deadline { stroke: var(--g-accent); stroke-dasharray: 2 4; }
body.studio-glass .glass-reply-chart .glass-chart-close { fill: var(--g-accent); }
@media (max-width: 900px) {
  body.studio-glass .glass-reply-chart { height: 120px; }
}

/* "Start here": a finished step uses the soft accent tile, not the light-page mint one. */
body.studio-glass .desk-start__step[data-done] .desk-start__mark { background: var(--g-accent-soft); color: var(--g-accent); }
body.studio-glass .desk-start__step[data-done] .desk-need__text strong { color: var(--g-sub); }

/* Sidebar only: reserve a column for the menu so long names cannot overlap it. */
body.studio-glass .studio-sidebar .project-list-item { grid-template-columns: minmax(0, 1fr) 38px; }
body.studio-glass .studio-sidebar :is(.project-link, .project-list-button, .project-list-item > button) { min-width: 0; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
body.studio-glass .studio-sidebar :is(.project-link, .project-list-button, .project-list-item > button) > span { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.studio-glass .studio-sidebar .project-more { justify-self: end; }

/* Nov 15 (Jay: color banding on every page). Screens show 256 steps per color; a slow
   dark-brown fade over a wide monitor shows those steps as bands, and the glass cards'
   blur smooths the old grain away. Fix: a fixed, very faint per-pixel noise ON TOP of
   everything (dithering). Adds at most ~3 shades of light per pixel: invisible, but it
   breaks the steps. No blur, no animation, cheap on phones. */
body.studio-glass .studio-shell::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; background: url("../assets/brand/glass-dither.png") repeat; background-size: 256px 256px; }

/* Nov 15 night (Jay: dither too visible on phone). Root cause: the tile was sized in CSS
   pixels. A phone packs 2-4 real screen pixels into 1 CSS pixel, so each noise dot became
   a 2x2..4x4 block = visible grain. Fix: shrink the tile by the screen's pixel ratio so
   1 noise dot = 1 real screen pixel again (same as on a computer). On touch phones also
   make it fainter: small screens show far less banding.
   Same root cause on a 4K monitor at 125%/150% Windows scaling: the dots were stretched
   and blurred, so the dither got too weak and the banding came back (Jay, Home + cards). */
@media (min-resolution: 1.25dppx) { body.studio-glass .studio-shell::after { background-size: 204.8px 204.8px; } }
@media (min-resolution: 1.5dppx) { body.studio-glass .studio-shell::after { background-size: 170.667px 170.667px; } }
@media (min-resolution: 1.75dppx) { body.studio-glass .studio-shell::after { background-size: 146.286px 146.286px; } }
@media (min-resolution: 2dppx)   { body.studio-glass .studio-shell::after { background-size: 128px 128px; } }
@media (min-resolution: 2.5dppx) { body.studio-glass .studio-shell::after { background-size: 102.4px 102.4px; } }
@media (min-resolution: 3dppx)   { body.studio-glass .studio-shell::after { background-size: 85.333px 85.333px; } }
@media (min-resolution: 3.5dppx) { body.studio-glass .studio-shell::after { background-size: 73.143px 73.143px; } }
@media (min-resolution: 4dppx)   { body.studio-glass .studio-shell::after { background-size: 64px 64px; } }
@media (hover: none) and (pointer: coarse) { body.studio-glass .studio-shell::after { opacity: .5; } }

/* Nov 16 (Jay: "parang laminated ID na may extra sa labas" around the Settings boxes).
   Root cause: the old light theme gives cards a huge soft shadow (0 30px 90px, var(--shadow)).
   On the dark glass that shadow shows as a dark halo ring outside every box, and its long
   faint fade bands too. The glass design has no shadows, so turn them off for the Studio. */
body.studio-glass { --shadow: none; }
body.studio-glass :is(.panel, .events-main, .module-card, .pipeline-panel, .action-alert, .status-card, .story-link-card, .rsvp-totals, .rsvp-row, .review-sections > section, .editor-panel, .editor-publish, .gallery-list) { box-shadow: none; }

/* Nov 16 (Jay: rings clearly visible BEHIND the boxes). Root cause: the cards blurred what is
   behind them (backdrop-filter). Behind a card there is only the fixed background, which is
   already soft, so the blur changed nothing we want; but it wiped out the fine grain that
   hides the color steps, and saturate(140%) made each step bigger. Result: clean bands inside
   every box while the area outside looked fine. Fix: cards no longer blur (tint + border stay).
   The phone bottom nav keeps its blur, because page content scrolls under it. */
body.studio-glass :is(.panel, .events-main, .desk-section, .desk-next, .studio-sidebar) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Home count jumps below the sticky content bar without changing the URL. */
body.studio-home-page #needs-you { scroll-margin-top: 96px; }
body.studio-home-page [data-needs-jump] { text-decoration: underline; text-underline-offset: 3px; }
/* Nov 16 (Jay): Hide / Show menu button is back on computers; quiet on dark glass. */
body.studio-glass .sidebar-toggle { color: var(--g-sub); }
@media (min-width: 901px) {
  /* One toggle: first in the page's top bar while the menu is open; at the
     top left corner of the window while it is hidden. */
  body.studio-glass .sidebar-toggle--hide { display: none; }
  body.studio-glass .sidebar-toggle--show { display: inline-flex; margin: 0 6px 0 -8px; }
  body.studio-glass .studio-shell--sidebar.sidebar-collapsed .sidebar-toggle--show { position: fixed; top: 18px; left: 16px; z-index: 30; margin: 0; }
}
body.studio-glass .sidebar-toggle:hover { background: rgba(255, 255, 255, .06); color: var(--g-text); }
/* Nov 16 (Jay): Home "Coming up" rows say Invitation or Gallery, same quiet box as the sidebar. */
body.studio-glass .desk-event .event-kind-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--g-line); border-radius: 4px; color: var(--g-sub); font: 500 10px/1.5 "Jost", sans-serif; letter-spacing: .06em; text-transform: uppercase; vertical-align: 3px; white-space: nowrap; }
