/* Basalt refresh. Mobile is the primary surface; photos supply the color.
   Glass belongs to controls and navigation. Space replaces decorative rules. */
:root {
  color-scheme: light;
  --m-bg: #f7f8fa;
  --m-bg-2: #eef0f3;
  --m-fg: #1c2025;
  --m-fg-dim: #606771;
  --m-fg-faint: #69717b;
  --m-accent: #282e35;
  --m-line: transparent;
  --m-line-2: transparent;
  --m-glass-line: rgba(255,255,255,.88);
  --m-glass-line-2: rgba(27,34,44,.10);
  --m-sans: 'Manrope', 'Heebo', system-ui, sans-serif;
  --m-display: var(--m-sans);
  --m-mono: var(--m-sans);
  --b-glass: linear-gradient(145deg, rgba(255,255,255,.90), rgba(242,244,247,.54) 55%, rgba(255,255,255,.72));
  --b-shadow: inset 0 1px 1px rgba(255,255,255,1), inset 0 -1px 1px rgba(28,36,46,.055), 0 4px 12px rgba(28,36,46,.07);
  --b-gutter: 20px;
}
html { scroll-behavior: auto; }
body { line-height: 1.5; }
button, input, textarea, select { font-family: var(--m-sans); }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font-size: 14px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #545f6e; outline-offset: 4px; }
button:disabled { opacity: .45; }
/* Backdrop content must not receive taps, selection, or native callouts. */
[inert] { pointer-events: none; }
[inert], [inert] * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.m-app { max-width: 720px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); box-shadow: none; animation: none; }
html.m-motion-ready [data-reveal] { opacity: 1; transform: none; filter: none; will-change: auto; transition: opacity .2s; }
.b-brand, .m-hd-logo-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--m-sans); font-size: 27px; font-weight: 800; letter-spacing: -1.25px; text-decoration: none; line-height: 1; color: var(--m-fg); }
.b-brand { min-height: 44px; }
.b-brand svg, .m-hd-logo-btn svg { flex-shrink: 0; }
.m-hd { min-height: calc(68px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(247,248,250,.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 0; animation: none; }
.m-hd-logo, .m-hd-logo-btn, .m-hd-logo-btn.is-active { width: auto; min-width: 44px; height: 44px; padding: 0 4px; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--m-fg); }
.m-hd-left-group, .m-hd-right-group { display: flex; align-items: center; gap: 9px; }
.m-hd-icon, .m-hd-back, .b-edit-profile, .b-new-album, .b-album-arrow, .m-btn-ghost {
  background: var(--b-glass); border: 1px solid var(--m-glass-line); box-shadow: var(--b-shadow); color: var(--m-fg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.m-hd-icon, .m-hd-back { width: 44px; height: 44px; border-radius: 50%; }
.m-hd-icon svg { width: 21px; height: 21px; }
.m-hd-text { width: auto; min-width: 64px; padding: 0 14px; border-radius: 14px; font-family: var(--m-sans); font-size: 13px; text-transform: none; letter-spacing: 0; }
.m-hd-title { position: static; inset: auto; transform: none; width: auto; max-width: 55%; font-size: 14px; font-weight: 600; letter-spacing: -.2px; margin-left: 8px; }
.m-profile { padding: 24px var(--b-gutter) 12px; background: none; border: 0; }
.m-pf-row { grid-template-columns: 64px minmax(0,1fr); gap: 18px; }
.m-pf-avatar { width: 64px; height: 64px; border-radius: 50%; border: 0; box-shadow: 0 4px 14px rgba(25,32,40,.06); background-color: var(--m-bg-2); }
.m-pf-avatar .m-pf-avatar-ph { color: var(--m-fg); background: #e9ecf0; font-size: 22px; font-weight: 700; }
.m-pf-name { font-family: var(--m-sans); font-size: 26px; font-weight: 750; letter-spacing: -.85px; line-height: 1.2; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.b-handle { font-size: 14px; color: var(--m-fg-dim); overflow-wrap: anywhere; }
.m-pf-bio { font: 400 14px/1.55 var(--m-sans); display: block; margin: 16px 0 0; max-width: 50ch; color: var(--m-fg-dim); }
.b-profile-bottom { margin-top: 15px; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--m-fg-dim); font-size: 13px; }
.b-edit-profile { min-height: 44px; padding: 0 13px; font-size: 12px; font-weight: 600; border-radius: 14px; white-space: nowrap; cursor: pointer; }
.m-tabs { display: flex; align-items: center; gap: 4px; margin: 7px 12px 0; padding: 7px; background: var(--b-glass); border: 1px solid rgba(255,255,255,.85); border-radius: 20px; box-shadow: var(--b-shadow); top: calc(68px + env(safe-area-inset-top)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.m-tab { flex: 0 1 auto; height: 44px; padding: 0 15px; border: 0; background: none; color: var(--m-fg-dim); font-family: var(--m-sans); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: -.2px; border-radius: 13px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m-tab.is-active { color: #fff; background: linear-gradient(150deg,#424951,#171c22); border: 1px solid rgba(0,0,0,.16); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 3px 6px rgba(22,29,36,.12); }
.b-new-album { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; margin-left: auto; padding: 0 11px; border-radius: 13px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.m-albums { padding: 27px var(--b-gutter) 24px; gap: 32px; }
.m-year-section { display: block; }
.m-year-head { display: flex; align-items: center; justify-content: space-between; padding: 0; margin: 0 0 13px; border: 0; letter-spacing: 0; text-transform: none; }
.m-year-head span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--m-fg); font: 750 21px/1.35 var(--m-sans); letter-spacing: -.6px; }
.m-year-head span:last-child:not(:first-child) { font: 400 12px/1.5 var(--m-sans); color: var(--m-fg-dim); letter-spacing: 0; }
.m-year-head.is-pinned span { font-size: 14px; font-weight: 650; letter-spacing: 0; }
.b-album-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 16px; }
.m-alb-card { display: block; align-self: start; padding: 0; border: 0; background: none; border-radius: 14px; text-align: left; }
.m-alb-card.is-featured { grid-column: 1 / -1; background: var(--b-glass); box-shadow: var(--b-shadow); padding-bottom: 1px; }
.m-alb-cover, .m-alb-card.is-featured .m-alb-cover { display: block; min-height: 0; aspect-ratio: 3/2; border-radius: 12px; background: #e9ecf0; overflow: hidden; }
.m-alb-card.is-featured .m-alb-cover { aspect-ratio: 1.52; border-radius: 14px; }
.m-alb-cover::before, .m-alb-shade, .m-alb-cover-ph::before, .m-alb-cover-ph::after { display: none; }
.m-alb-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b-cover-empty { height: 100%; display: grid; place-items: center; color: #838b95; }
.m-alb-info { display: flex; flex-direction: column; position: relative; inset: auto; padding: 10px 0 0; gap: 4px; }
.m-alb-title { font: 650 16px/1.3 var(--m-sans); letter-spacing: -.35px; color: var(--m-fg); overflow-wrap: anywhere; }
.m-alb-subtitle { display: block; margin: 0; font: 400 13px/1.45 var(--m-sans); color: var(--m-fg-dim); }
.m-alb-meta { margin: 0; font: 400 11px/1.6 var(--m-sans); color: var(--m-fg-dim); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.m-alb-card.is-featured .m-alb-info { padding: 13px 56px 14px 10px; gap: 3px; min-height: 102px; }
.m-alb-card.is-featured .m-alb-title { font-size: 22px; font-weight: 750; letter-spacing: -.7px; }
.m-alb-card.is-featured .m-alb-meta { font-size: 12px; }
.m-alb-card.is-featured .m-alb-subtitle { font-size: 14px; }
.b-album-arrow { position: absolute; right: 10px; top: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.m-alb-card:active .m-alb-cover { transform: scale(.99); filter: none; }
.m-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 24px 12px; gap: 5px; }
.m-grid-cell { border-radius: 7px; background: #e9ecf0; }
.m-grid-cell::before, .m-grid-cell::after { display: none; }
.m-grid-upload { background: none; border: 0; padding: 20px 20px 0; }
.m-grid-upload .m-btn-ghost { min-height: 44px; }
.m-al-hero { margin: 18px 16px 0; min-height: 0; height: auto; aspect-ratio: 1.5; background: none; border-radius: 14px; overflow: hidden; }
.m-al-hero::before, .m-al-veil { display: none; }
.b-album-hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-album-hero-empty { background: #e9ecf0; height: 100%; display: grid; place-items: center; color: #838b95; }
.m-al-meta { position: static; padding: 22px var(--b-gutter) 8px; }
.m-al-title { font: 750 30px/1.12 var(--m-sans); letter-spacing: -1.1px; color: var(--m-fg); }
.m-al-italic { margin-top: 9px; font: 400 15px/1.5 var(--m-sans); color: var(--m-fg-dim); }
.m-al-sub { font: 400 12px/1.5 var(--m-sans); margin: 9px 0 0; color: var(--m-fg-dim); text-transform: none; letter-spacing: 0; }
.m-al-caption { font: 400 15px/1.65 var(--m-sans); color: var(--m-fg-dim); padding: 8px 20px; border: 0; margin: 0; }
.m-al-stats { padding: 18px 20px 8px; border: 0; gap: 16px; }
.m-al-stats>div { padding: 0; border: 0; background: none; }
.m-al-stats b { font-size: 16px; font-weight: 650; }
.m-al-stats span { font: 400 12px/1.5 var(--m-sans); color: var(--m-fg-dim); letter-spacing: 0; text-transform: none; }
.m-al-actions { padding: 18px 20px 0; gap: 8px; border: 0; }
.m-al-grid { padding-top: 22px; }
.m-btn-primary { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 19px; margin-top: 0; background: linear-gradient(150deg,#424951,#171c22); border: 1px solid rgba(0,0,0,.12); color: #fff; border-radius: 14px; box-shadow: inset 0 1px 1px rgba(255,255,255,.3),0 4px 10px rgba(24,31,40,.1); text-transform: none; letter-spacing: -.2px; font: 600 15px/1.5 var(--m-sans); text-decoration: none; }
.m-btn-ghost { min-height: 44px; padding: 10px 14px; font: 550 13px/1.4 var(--m-sans); letter-spacing: 0; text-transform: none; border-radius: 14px; }
.m-btn-ghost:active, .b-edit-profile:active, .b-new-album:active { background: rgba(222,228,234,.7); }
.m-btn-ghost.is-on { color: #fff; background: #363e48; border-color: transparent; }
.m-btn-ghost.m-danger { color: #994147; border-color: rgba(255,255,255,.85); }
.m-err { padding: 12px 14px; color: #92363f; background: #f9ecee; border: 0; border-radius: 12px; font: 500 13px/1.5 var(--m-sans); }
.m-empty-contact { display: none; }
.m-empty-mark { color: var(--m-fg-dim); background: var(--b-glass); border-color: #fff; box-shadow: var(--b-shadow); width: 56px; height: 56px; }
.m-empty-t { font: 700 23px/1.25 var(--m-sans); letter-spacing: -.7px; }
.m-empty-s { font: 400 14px/1.6 var(--m-sans); color: var(--m-fg-dim); }
.m-empty .m-btn-primary { margin-top: 16px; }
.m-upload-progress, .m-upload-progress.is-failed, .m-upload-progress.is-complete { background: #eef0f3; border: 0; margin: 12px; border-radius: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m-upload-row { font-size: 12px; letter-spacing: 0; text-transform: none; }
.m-upload-track { background: #d8dde3; border-radius: 3px; }
.m-upload-track i { background: #424c58; }
.m-upload-subrow { font: 400 12px/1.5 var(--m-sans); }
/* Editing stays full-height and scrollable above the mobile keyboard. */
.m-sheet-wrap, .m-search-overlay { background: rgba(27,34,43,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.m-sheet { background: rgba(250,251,253,.97); border: 1px solid #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 50px rgba(30,38,46,.13); max-height: 94dvh; }
.m-sheet-hd { padding: 12px 12px 8px; border: 0; }
.m-sheet-x, .m-sheet-ok { min-height: 44px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.m-sheet-ok { font-weight: 750; }
.m-sheet-t { font-size: 17px; font-weight: 700; }
.m-sheet-body { padding-top: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); gap: 21px; }
.m-field>span, .m-field>label { font: 550 13px/1.5 var(--m-sans); text-transform: none; letter-spacing: 0; color: var(--m-fg-dim); }
.m-field input, .m-field textarea, .m-composer-panel .m-field input, .m-composer-panel .m-field textarea { border: 1px solid rgba(255,255,255,.95); background: rgba(229,233,238,.63); box-shadow: inset 0 1px 3px rgba(30,40,50,.035); border-radius: 12px; padding: 13px 14px; min-height: 48px; color: var(--m-fg); font: 400 16px/1.5 var(--m-sans); }
.m-field textarea { font-weight: 400; }
.m-field input:focus, .m-field textarea:focus, .m-composer-panel .m-field input:focus, .m-composer-panel .m-field textarea:focus { border-color: #9da6b1; }
.m-field input::placeholder, .m-field textarea::placeholder { color: #737c87; opacity: 1; }
.m-field small { color: var(--m-fg-dim); font-size: 12px; }
.m-album-composer-wrap { background: var(--m-bg); }
.m-composer-top { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; gap: 6px; grid-template-columns: 64px minmax(0,1fr) 80px; background: rgba(247,248,250,.92); border: 0; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.m-composer-plain, .m-composer-publish { min-height: 44px; padding: 8px 0; font: 550 14px/1.4 var(--m-sans); color: var(--m-fg); letter-spacing: 0; text-transform: none; }
.m-composer-publish { background: var(--b-glass); box-shadow: var(--b-shadow); border: 1px solid #fff; border-radius: 13px; width: 78px; text-align: center; font-weight: 700; }
.m-composer-heading span { font: 650 16px/1.4 var(--m-sans); color: var(--m-fg); letter-spacing: -.3px; text-transform: none; }
.m-composer-heading b { display: none; }
.m-composer-scroll { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); }
.m-composer-layout { display: flex; flex-direction: column; height: auto; min-height: 0; gap: 24px; max-width: 620px; }
.m-composer-cover { min-height: 160px; height: 160px; flex-shrink: 0; border-radius: 14px; background-color: #e4e8ed; background-image: none; box-shadow: var(--b-shadow); }
.m-composer-cover-shade { background: none; }
.m-composer-cover.has-cover .m-composer-cover-shade { background: linear-gradient(0deg,rgba(0,0,0,.58),transparent 90%); }
.m-composer-cover-copy { left: 16px; right: 16px; bottom: 16px; }
.m-composer-cover-copy span { font: 500 11px/1.4 var(--m-sans); color: #59616c; text-transform: none; letter-spacing: 0; }
.m-composer-cover-copy h2 { margin: 4px 0; font: 700 24px/1.2 var(--m-sans); letter-spacing: -.7px; color: #2a313b; }
.m-composer-cover-copy p { font: 400 12px/1.5 var(--m-sans); color: #59616c; }
.m-composer-cover.has-cover .m-composer-cover-copy h2, .m-composer-cover.has-cover .m-composer-cover-copy p, .m-composer-cover.has-cover .m-composer-cover-copy span { color: #fff; }
.m-composer-add { min-height: 44px; top: 12px; right: 12px; padding: 10px 14px; border: 1px solid #fff; border-radius: 13px; background: rgba(255,255,255,.86); color: #242b34; box-shadow: var(--b-shadow); font: 650 13px/1.5 var(--m-sans); letter-spacing: 0; text-transform: none; }
.m-composer-panel { gap: 17px; padding: 0; }
.m-composer-panel .m-field { gap: 6px; }
.m-composer-panel .m-field-row { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.m-composer-panel .m-field-sm { grid-column: auto; }
.m-composer-panel .m-field-row .m-field:first-child { grid-column: 1/-1; }
.m-composer-panel .m-field-row .m-field-sm { grid-column: auto; }
.m-composer-panel textarea { min-height: 96px; }
.m-draft-note, .m-photo-warnings { border: 0; background: #e9edf2; }
.m-draft-note b, .m-photo-warning b { font-size: 12px; text-transform: none; letter-spacing: 0; }
.m-draft-note span, .m-photo-warning span { font: 400 12px/1.5 var(--m-sans); }
.m-profile-photo-btn { border: 0; border-radius: 14px; box-shadow: var(--b-shadow); }
.m-profile-photo-edit { right: 4px; bottom: 4px; border: 1px solid var(--m-glass-line); border-radius: 8px; background: var(--b-glass); color: var(--m-fg); box-shadow: var(--b-shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.m-profile-photo-title { font-size: 13px; text-transform: none; letter-spacing: 0; }
.m-danger-zone { border: 0; padding-top: 12px; }
.m-danger-note { color: #994147; font: 400 13px/1.5 var(--m-sans); }
.m-check-row { background: #eef0f3; border: 0; }
.m-check-row b { font-size: 13px; text-transform: none; letter-spacing: 0; }
.m-check-row em { font: 400 13px/1.5 var(--m-sans); }
.m-search-panel { background: rgba(247,248,250,.98); border: 1px solid #fff; box-shadow: 0 16px 48px rgba(30,38,48,.12); width: min(100%,560px); border-radius: 0 0 24px 24px; }
.m-search-hd { border: 0; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; gap: 12px; }
.m-search-input { min-height: 48px; border: 0; background: #e9edf1; border-radius: 12px; padding: 12px; color: var(--m-fg); font: 400 16px/1.4 var(--m-sans); }
.m-search-input::placeholder { color: #68717d; }
.m-search-row { min-height: 72px; border: 0; padding: 14px 20px; color: var(--m-fg); }
.m-search-avatar { background-color: #e5e9ef; color: #48515e; border: 0; border-radius: 50%; }
.m-search-name { font-size: 16px; font-weight: 650; }
.m-search-handle, .m-search-bio { font: 400 13px/1.5 var(--m-sans); color: var(--m-fg-dim); text-transform: none; letter-spacing: 0; }
.m-search-hint, .m-search-empty { font: 400 14px/1.5 var(--m-sans); color: var(--m-fg-dim); }
.m-contact-sheet { background: rgba(29,36,46,.20); }
.m-contact-card { background: rgba(247,248,250,.96); border: 1px solid #fff; box-shadow: var(--b-shadow); }
.m-contact-stamp, .m-contact-caption, .m-contact-frame small { color: var(--m-fg-dim); letter-spacing: 0; text-transform: none; font-style: normal; }
.m-contact-name { font-weight: 700; color: var(--m-fg); }
/* A quiet light frame, with glass controls kept outside the photograph. */
.m-viewer { background: var(--m-bg); color: var(--m-fg); overscroll-behavior: none; animation: b-viewer-open 220ms cubic-bezier(.2,.7,.2,1); transition: opacity 160ms ease, transform 160ms ease; }
.m-viewer.is-closing { opacity: 0; transform: translate3d(0, 6px, 0) scale(.99); }
@keyframes b-viewer-open { from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.99); } to { opacity: 1; transform: none; } }
.m-vw-top { display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; padding: 12px 16px; min-height: 68px; flex-shrink: 0; animation: none; }
.m-vw-x { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--m-glass-line); background: var(--b-glass); color: var(--m-fg); box-shadow: var(--b-shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background 150ms ease, transform 150ms ease, opacity 150ms ease; }
.m-vw-x:active { transform: scale(.95); background: #e8ebef; }
.m-vw-x:disabled { opacity: .3; box-shadow: none; }
.m-vw-x.is-on { background: #e3e8ed; color: var(--m-fg); }
.m-vw-actions { justify-content: flex-end; gap: 8px; }
.m-vw-count { color: var(--m-fg-dim); font: 550 13px/1.5 var(--m-sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.m-vw-stage { min-height: 0; }
.m-vw-slot { padding: 4px 12px; }
.m-vw-slot img { border-radius: 10px; }
.m-vw-cap { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: 1120px; align-self: center; flex-shrink: 0; padding: 18px 20px 24px; background: none; animation: none; }
.b-vw-details { min-width: 0; overflow-wrap: anywhere; }
.m-vw-t { font: 650 17px/1.4 var(--m-sans); letter-spacing: -.35px; margin: 0 0 4px; }
.m-vw-s { color: var(--m-fg-dim); font: 400 12px/1.5 var(--m-sans); letter-spacing: 0; text-transform: none; }
.m-vw-caption { color: var(--m-fg-dim); font: 400 14px/1.5 var(--m-sans); margin-top: 8px; max-height: 15dvh; overflow: auto; overscroll-behavior: contain; }
.m-vw-cover-tag { display: inline-block; color: var(--m-fg-dim); font: 500 11px/1.5 var(--m-sans); letter-spacing: 0; text-transform: none; }
.b-vw-navigation { display: flex; gap: 8px; flex-shrink: 0; }
.m-vw-progress { display: none; }
.m-sheet-body, .m-search-results { overscroll-behavior: contain; }
@media (min-width: 760px) {
  .m-vw-top { padding: 16px 24px; min-height: 76px; }
  .m-vw-slot { padding: 4px 32px; }
  .m-vw-cap { padding: 18px 24px 24px; }
  .m-vw-t { font-size: 18px; }
}
@media (max-height: 500px) {
  .m-vw-top { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .m-vw-cap { padding-top: 8px; padding-bottom: 8px; }
  .m-vw-caption { display: none; }
}
/* Public entry and authentication use the same mobile-first system. */
.b-public-header { max-width: 1180px; margin: auto; padding: calc(12px + env(safe-area-inset-top)) 22px 12px; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.b-public-header nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.b-home-hero { padding: 30px 22px 0; max-width: 1140px; margin: auto; }
.b-home-copy h1 { font: 800 clamp(42px,12vw,60px)/1.05 var(--m-sans); letter-spacing: -2.6px; margin: 0; }
.b-home-copy h1 span { color: #656e7b; }
.b-home-copy p { font: 400 15px/1.6 var(--m-sans); color: var(--m-fg-dim); max-width: 36ch; margin: 23px 0 25px; }
.b-home-cta { width: 100%; display: flex; justify-content: space-between; min-height: 52px; padding: 12px 18px; }
.b-home-photo { margin: 28px 0 0; position: relative; }
.b-home-photo>img { width: 100%; height: auto; aspect-ratio: 1.2; display: block; object-fit: cover; object-position: 50% 39%; border-radius: 16px; }
.b-home-photo figcaption, .b-auth-photo figcaption { font-size: 11px; color: var(--m-fg-dim); margin-top: 12px; }
.b-home-features { max-width: 1140px; margin: auto; padding: 48px 22px 0; }
.b-home-features h2 { font: 750 29px/1.15 var(--m-sans); letter-spacing: -1.1px; margin: 0 0 26px; max-width: 17ch; }
.b-feature-list { display: grid; gap: 27px; }
.b-feature-list h3 { font-size: 18px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 6px; }
.b-feature-list p { font-size: 14px; line-height: 1.6; color: var(--m-fg-dim); margin: 0; max-width: 36ch; }
.b-home-footer { max-width: 1140px; margin: 40px auto 0; padding: 15px 22px calc(26px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.b-home-footer>a:last-child { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.b-home-footer .b-brand { font-size: 22px; }
.b-home-footer .b-brand svg { display: none; }
.b-auth-layout { max-width: 1020px; margin: 36px auto 0; padding: 0 22px 40px; }
.b-auth-photo { display: none; }
.m-auth { min-height: 0; width: 100%; max-width: 420px; margin: 0 auto; padding: 18px 0; display: block; background: none; border: 0; box-shadow: none; text-align: left; }
.m-auth-t { margin: 0; font: 750 35px/1.13 var(--m-sans); letter-spacing: -1.3px; }
.m-auth-s { margin: 17px 0 28px; font: 400 15px/1.6 var(--m-sans); color: var(--m-fg-dim); }
.m-auth-form { display: flex; flex-direction: column; width: 100%; gap: 21px; }
.m-auth-form .m-btn-primary { margin-top: 7px; width: 100%; display: flex; justify-content: space-between; }
.m-auth-alt { margin-top: 25px; font: 400 13px/1.7 var(--m-sans); color: var(--m-fg-dim); letter-spacing: 0; text-transform: none; }
.m-auth-alt a { font-weight: 650; color: var(--m-fg); text-decoration: none; }
.b-password-field { position: relative; }
.b-password-field input { padding-right: 54px; }
.b-password-toggle { width: 48px; height: 48px; position: absolute; right: 1px; top: 1px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; color: var(--m-fg-dim); cursor: pointer; }
.b-loading { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.b-loading-brand { font-size: 38px; font-weight: 800; letter-spacing: -2px; }
.b-loading p { font-size: 14px; color: var(--m-fg-dim); }
@media (max-width: 359px) {
  :root { --b-gutter: 16px; }
  .m-hd { padding-left: 12px; padding-right: 12px; }
  .m-hd-logo-btn { font-size: 25px; gap: 6px; }
  .m-pf-name { font-size: 23px; }
  .m-pf-row { gap: 13px; }
  .m-tabs { margin-left: 8px; margin-right: 8px; padding: 6px; gap: 2px; }
  .m-tab { padding: 0 10px; font-size: 12px; }
  .b-new-album { font-size: 11px; padding: 0 8px; }
  .b-profile-bottom { font-size: 11px; }
  .b-edit-profile { font-size: 11px; padding: 0 10px; }
  .m-alb-card.is-featured .m-alb-title { font-size: 20px; }
  .b-home-copy h1 { font-size: 42px; letter-spacing: -2px; }
  .b-public-header { padding-left: 18px; padding-right: 18px; }
}
@media (min-width: 760px) {
  .m-app { max-width: 1160px; padding: 0 24px 48px; }
  .m-hd { min-height: 82px; padding: 14px 0; }
  .m-profile { padding: 38px 0 18px; }
  .m-pf-row { grid-template-columns: 82px minmax(0,1fr); gap: 24px; }
  .m-pf-avatar { width: 82px; height: 82px; }
  .m-pf-name { font-size: 36px; }
  .b-profile-bottom { margin-top: 17px; }
  .m-tabs { margin: 0; top: 82px; padding: 8px; }
  .m-tab { padding: 0 24px; }
  .b-new-album { padding: 0 18px; font-size: 13px; }
  .m-albums { padding: 32px 0; gap: 38px; }
  .b-album-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
  .m-alb-card.is-featured { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; }
  .m-alb-card.is-featured .m-alb-cover { aspect-ratio: 1.85; }
  .m-alb-card.is-featured .m-alb-info { padding: 25px 62px 25px 32px; }
  .m-alb-card.is-featured .m-alb-title { font-size: 29px; }
  .m-alb-card.is-featured .m-alb-meta { font-size: 13px; margin-top: 8px; }
  .b-album-arrow { top: 50%; transform: translateY(-50%); right: 18px; }
  .m-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 28px 0; }
  .m-al-hero { margin: 18px 0 0; aspect-ratio: 2.7; }
  .m-al-title { font-size: 40px; }
  .m-al-meta, .m-al-caption, .m-al-stats, .m-al-actions { padding-left: 0; padding-right: 0; }
  .m-sheet-wrap { align-items: center; }
  .m-sheet { border-radius: 24px; }
  .m-composer-top { padding-left: max(20px,calc((100vw - 620px)/2)); padding-right: max(20px,calc((100vw - 620px)/2)); }
  .m-composer-cover { height: 210px; }
  .b-home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; padding-top: 55px; }
  .b-home-copy h1 { font-size: clamp(56px,5.8vw,80px); letter-spacing: -4px; }
  .b-home-copy p { font-size: 17px; }
  .b-home-cta { max-width: 330px; }
  .b-home-photo { margin: 0; }
  .b-home-photo>img { aspect-ratio: .85; }
  .b-home-features { padding-top: 100px; }
  .b-home-features h2 { font-size: 40px; max-width: none; margin-bottom: 38px; }
  .b-feature-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 56px; }
  .b-home-footer { margin-top: 72px; padding-bottom: 36px; }
  .b-auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-top: 70px; }
  .b-auth-photo { display: block; margin: 0; }
  .b-auth-photo img { width: 100%; height: auto; aspect-ratio: .82; object-fit: cover; border-radius: 18px; }
  .m-auth-t { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Review correction: a compact profile header, shared gutters, quieter editing. */
.m-profile { padding-top: 14px; }
.b-edit-profile { position: relative; isolation: isolate; min-height: 44px; padding: 0 10px; background: none; border: 0; box-shadow: none; border-radius: 10px; font-size: 12px; }
.b-edit-profile::before { content: ''; position: absolute; inset: 6px 0; z-index: -1; border: 1px solid rgba(255,255,255,.88); border-radius: 10px; background: var(--b-glass); box-shadow: inset 0 1px 1px #fff,0 2px 6px rgba(28,36,46,.04); }
.m-tabs { margin-left: 16px; margin-right: 16px; box-shadow: inset 0 1px 1px #fff,0 3px 9px rgba(28,36,46,.04); }
.m-alb-card.is-featured { box-shadow: inset 0 -1px 1px #fff,0 4px 12px rgba(28,36,46,.035); }
@media(min-width:760px) { .m-profile { padding-top: 30px; } .m-tabs { margin-left:0; margin-right:0; } }
/* Legacy components must inherit the light surface's readable text colors. */
.m-hd-title { color: var(--m-fg); text-transform: none; }
.m-contact-title { color: var(--m-fg-dim); font-style: normal; }
.m-contact-num { color: #fff; background: rgba(26,32,40,.66); }
.m-profile-photo-btn { background-color: #e5e9ef; background-image: none; }
.m-profile-photo-btn .m-pf-avatar-ph { color: var(--m-fg); background: #e5e9ef; }
.m-al-hero { width: auto; }
/* The header leaves with the profile; a compact switcher floats on its own. */
.m-app.is-gallery > .m-hd { position: relative; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.b-nav-anchor { height: 1px; margin-top: 7px; pointer-events: none; }
.b-gallery-nav { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 12; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; border-radius: 20px; }
.b-gallery-nav .m-tabs { position: static; top: auto; margin: 0; padding: 5px; gap: 3px; background: rgba(241,243,246,.72); border: 1px solid rgba(255,255,255,.92); box-shadow: inset 0 1px 1px #fff, 0 2px 8px rgba(28,36,46,.035); transition: background 240ms ease, box-shadow 240ms ease; }
.b-gallery-nav.is-docked .m-tabs { background: rgba(247,248,250,.88); box-shadow: inset 0 1px 1px #fff, 0 5px 20px rgba(28,36,46,.12); }
.b-gallery-nav .m-tab { padding: 0 15px; white-space: nowrap; }
.b-gallery-nav .b-new-album { margin-left: 5px; padding: 0 11px; }
@media (max-width: 359px) {
  .b-gallery-nav { max-width: calc(100% - 24px); }
  .b-gallery-nav .m-tab { padding: 0 11px; }
  .b-gallery-nav .b-new-album { margin-left: 2px; padding: 0 8px; }
}
@media (min-width: 760px) {
  .b-gallery-nav .m-tab { padding: 0 22px; }
  .b-gallery-nav .b-new-album { padding: 0 16px; }
}
/* Owner actions share one scale and sit directly above their photographs. */
.b-photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 12px 0; }
.b-photo-total { color: var(--m-fg-dim); font: 500 13px/1.5 var(--m-sans); }
.b-photo-toolbar ~ .m-grid { padding-top: 14px; }
.m-empty > .m-upload-progress { align-self: stretch; min-width: 0; max-width: 100%; margin: 16px 0 0; }
.m-empty-actions .b-action-add { margin-top: 0; }
.b-album-actions { display: flex; align-items: center; gap: 8px; padding: 18px 20px 0; background: none; border: 0; }
.b-action-add, .b-action-secondary, .b-album-more-toggle { min-height: 44px; margin: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 13px/1.4 var(--m-sans); letter-spacing: 0; text-transform: none; padding: 0 14px; cursor: pointer; }
.b-action-add { background: linear-gradient(150deg,#424951,#20262d); border: 1px solid rgba(0,0,0,.12); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,.28),0 3px 8px rgba(24,31,40,.08); }
.b-action-add:active { background: #222830; transform: scale(.98); }
.b-action-secondary, .b-album-more-toggle { background: var(--b-glass); border: 1px solid var(--m-glass-line); box-shadow: var(--b-shadow); color: var(--m-fg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.b-action-add svg, .b-action-secondary svg { flex-shrink: 0; }
.b-album-actions > .b-action-add { min-width: 0; }
.b-action-secondary { white-space: nowrap; }
.b-album-more { position: relative; flex-shrink: 0; }
.b-album-more-toggle { width: 44px; padding: 0; }
.b-album-more-toggle[aria-expanded="true"] { background: #e5e9ee; }
.b-album-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 15; width: 206px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 18px; border: 1px solid #fff; background: rgba(249,250,252,.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 1px 1px #fff,0 8px 28px rgba(28,36,46,.14); animation: b-menu-open 160ms ease; transform-origin: top right; }
.b-album-menu-item { min-height: 44px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--m-fg); font: 500 13px/1.4 var(--m-sans); text-align: left; cursor: pointer; }
.b-album-menu-item:hover, .b-album-menu-item:focus-visible { background: #e9edf1; }
.b-album-menu-item.is-danger { color: #994147; }
.b-album-more.is-above .b-album-menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
@keyframes b-menu-open { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 760px) {
  .b-photo-toolbar { padding-left: 0; padding-right: 0; }
  .b-album-actions { padding-left: 0; padding-right: 0; }
}

/* Guest previews never use restricted photographs as blurred placeholders. */
.b-cover-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; color: var(--m-fg-dim); background: linear-gradient(145deg,#eef0f3,#e4e8ec); font-size: 12px; }
.b-locked-album { padding: 32px 0; }
.b-locked-album > h1 { margin: 0 18px 24px; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; overflow-wrap: anywhere; }
.b-viewer-gate { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 12px; overflow-y: auto; touch-action: pan-y; }
.b-preview-more { display: flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 44px; margin: 4px 18px; padding: 8px 14px; border: 1px solid var(--m-glass-line); border-radius: 14px; background: var(--b-glass); box-shadow: var(--b-shadow); color: var(--m-fg); font: 600 13px/1.4 var(--m-sans); cursor: pointer; }

/* Google identity uses Google's current official icon and button treatment. */
.b-google-signin { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px; border: 1px solid #747775; border-radius: 14px; background: #fff; color: #1f1f1f; font: 500 14px/20px 'Google Sans', Arial, sans-serif; text-decoration: none; cursor: pointer; }
.b-google-signin img { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.b-google-signin:hover { background: #f8f9fa; }
.b-google-signin:active { background: #f1f3f4; }
.b-auth-google { margin: 22px 0 0; }
.b-auth-google p { margin: 16px 0 0; color: var(--m-fg-dim); text-align: center; font: 400 12px/1.5 var(--m-sans); }
.b-policy-links{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin:20px 0 0;padding-bottom:16px;font-size:12px;color:#626a74}
.b-policy-links a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.b-policy-links a:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:3px}
.b-google-link{margin:24px 0;padding:20px;border-radius:18px;background:rgba(231,234,239,.48)}
.b-google-link-title{display:flex;align-items:center;gap:10px}.b-google-link h3{margin:0;font-size:15px;font-weight:700}.b-google-link p{font-size:13px;line-height:1.6;color:#626a74;margin:12px 0}.b-google-link .m-field{margin-top:16px}.b-google-link-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.b-google-link-actions .m-btn-primary{min-height:44px;font-size:13px;padding:12px 16px}

.b-profile-fields{border:0;min-width:0;margin:0;padding:0;display:flex;flex-direction:column;gap:21px}
.b-handle-help{font-size:12px;line-height:1.6;color:#626a74;overflow-wrap:anywhere;margin:0}
.b-delete-action{position:relative}.b-delete-confirm{padding:16px;background:#f6f7f9;color:#20262b;border-radius:16px;box-shadow:0 8px 30px #20262b20;min-width:240px;max-width:calc(100vw - 32px);text-align:left}.b-delete-confirm p{font-size:14px;line-height:1.5;margin:0 0 12px}.b-delete-actions{display:flex;justify-content:flex-end;gap:12px}.b-delete-actions button{min-height:44px;font-size:13px}.m-vw-actions .b-delete-confirm{position:absolute;right:0;top:52px;z-index:10;width:280px}.b-album-menu .b-delete-confirm{box-shadow:none}.b-delete-confirm [role=alert]{color:#9d2828}
.b-album-menu:has(.b-delete-confirm){width:min(300px,calc(100vw - 32px))}.b-album-menu .b-delete-confirm{min-width:0;width:100%}.b-delete-actions{flex-wrap:wrap}
.b-album-menu{overflow-y:auto;overscroll-behavior:contain}
.b-delete-confirm p{overflow-wrap:anywhere}
