:root { --bg: #faf8f5; --surface: #ffffff; --surface-2: #f2eee9; --surface-3: #e7e1da; --line: #e4ddd5; --ink: #1d1a17; --ink-2: #5a524b; --ink-3: #776d65; --accent: #c2355e; --accent-ink: #ffffff; --accent-soft: #fae6ec; --accent-on-soft: #9a2347; --bar: rgba(250, 248, 245, 0.88); --shadow: rgba(45, 28, 18, 0.10); --scrim: rgba(20, 14, 10, 0.42); --badge: rgba(0, 0, 0, 0.56); --badge-ink: #ffffff; --viewer: #000000; --viewer-ink: #f4f1ee; --viewer-ink-2: #c9c2bb; --viewer-soft: rgba(255, 255, 255, 0.14); --viewer-bar: rgba(0, 0, 0, 0.55); --brand-a: #e8507e; --brand-b: #8b5cf6; --brand-ink: #ffffff; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #131211; --surface: #1c1a18; --surface-2: #272421; --surface-3: #322e2a; --line: #36312d; --ink: #f2eee9; --ink-2: #b8b0a8; --ink-3: #938a82; --accent: #f0789d; --accent-ink: #26070f; --accent-soft: #3a1f28; --accent-on-soft: #ffb8cc; --bar: rgba(19, 18, 17, 0.86); --shadow: rgba(0, 0, 0, 0.45); --scrim: rgba(0, 0, 0, 0.6); --badge: rgba(0, 0, 0, 0.6); --badge-ink: #ffffff; --viewer: #000000; --viewer-ink: #f4f1ee; --viewer-ink-2: #c9c2bb; --viewer-soft: rgba(255, 255, 255, 0.14); --viewer-bar: rgba(0, 0, 0, 0.55); --brand-a: #f0739a; --brand-b: #a07cf8; --brand-ink: #ffffff; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #131211; --surface: #1c1a18; --surface-2: #272421; --surface-3: #322e2a; --line: #36312d; --ink: #f2eee9; --ink-2: #b8b0a8; --ink-3: #938a82; --accent: #f0789d; --accent-ink: #26070f; --accent-soft: #3a1f28; --accent-on-soft: #ffb8cc; --bar: rgba(19, 18, 17, 0.86); --shadow: rgba(0, 0, 0, 0.45); --scrim: rgba(0, 0, 0, 0.6); --badge: rgba(0, 0, 0, 0.6); --badge-ink: #ffffff; --viewer: #000000; --viewer-ink: #f4f1ee; --viewer-ink-2: #c9c2bb; --viewer-soft: rgba(255, 255, 255, 0.14); --viewer-bar: rgba(0, 0, 0, 0.55); --brand-a: #f0739a; --brand-b: #a07cf8; --brand-ink: #ffffff; color-scheme: dark; }
@font-face { font-family: "Plex Looped"; src: url("fonts/plex-looped-thai-400.f4270b50.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Looped"; src: url("fonts/plex-looped-thai-600.81b3c289.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Looped"; src: url("fonts/plex-looped-latin-400.b917ad13.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Plex Looped"; src: url("fonts/plex-looped-latin-600.ee778ee2.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
:root {
  --font: "Plex Looped", "Leelawadee UI", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  --text-xs: 0.875rem; --text-sm: 1rem; --text-md: 1.1875rem; --text-lg: 1.375rem; --text-xl: 1.75rem; --text-2xl: 2.25rem;
  --lh-body: 1.6; --lh-tight: 1.35;
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem;
  --r-xs: 4px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-full: 999px;
  --touch: 3rem;
  --lift-1: 0 1px 2px var(--shadow), 0 6px 18px var(--shadow);
  --lift-2: 0 12px 48px var(--shadow);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --quick: 200ms;
  --bar-h: 3.5rem; --tabs-h: 4.25rem; --rail-w: 6.75rem; --pad: 1rem; --row: 128px;
}
@media (min-width: 600px) { :root { --pad: 1.5rem; --row: 176px; } }
@media (min-width: 1100px) { :root { --pad: 2rem; --row: 208px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
body { margin: 0; font-family: var(--font); font-size: var(--text-md); line-height: var(--lh-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.muted { color: var(--ink-2); font-size: var(--text-sm); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.i { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-a { stop-color: var(--brand-a); } .brand-b { stop-color: var(--brand-b); } .brand-heart { fill: var(--brand-ink); }
.hidden-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-2); top: var(--s-2); z-index: 50; padding: var(--s-2) var(--s-4); border-radius: var(--r-full); background: var(--accent); color: var(--accent-ink); translate: 0 -200%; }
.skip:focus { translate: 0 0; }
html:not(.js) .needs-script { display: none; }
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: var(--quick); animation-timing-function: var(--ease); }
::view-transition-group(photo) { animation-duration: 280ms; }
::view-transition-old(root) { animation: var(--quick) var(--ease) both look-fade-out; }
::view-transition-new(root) { animation: var(--quick) var(--ease) both look-fade-in; }
html:active-view-transition-type(next)::view-transition-old(root) { animation-name: look-out-left; }
html:active-view-transition-type(next)::view-transition-new(root) { animation-name: look-in-right; }
html:active-view-transition-type(prev)::view-transition-old(root) { animation-name: look-out-right; }
html:active-view-transition-type(prev)::view-transition-new(root) { animation-name: look-in-left; }
@keyframes look-fade-out { to { opacity: 0; } }
@keyframes look-fade-in { from { opacity: 0; translate: 0 6px; } }
@keyframes look-out-left { to { translate: -30% 0; opacity: 0; } }
@keyframes look-in-right { from { translate: 30% 0; opacity: 0; } }
@keyframes look-out-right { to { translate: 30% 0; opacity: 0; } }
@keyframes look-in-left { from { translate: -30% 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s-1); min-height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--s-2), env(safe-area-inset-right)) 0 max(var(--s-2), env(safe-area-inset-left)); background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; }
@supports (animation-timeline: scroll()) { .bar { animation: look-bar-line linear both; animation-timeline: scroll(); animation-range: 0 3rem; } }
@keyframes look-bar-line { to { border-bottom-color: var(--line); } }
@supports (animation-timeline: scroll()) { .bar-title.late { opacity: 0; animation: look-late-title linear both; animation-timeline: scroll(); animation-range: 3rem 5.5rem; } }
@keyframes look-late-title { from { opacity: 0; translate: 0 0.5rem; } to { opacity: 1; translate: 0 0; } }
.bar-mark { display: grid; place-items: center; width: var(--touch); height: var(--touch); }
.bar-title { flex: 1; min-width: 0; padding-inline: var(--s-2); font-size: var(--text-lg); font-weight: 600; line-height: var(--lh-tight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-switch { display: inline-flex; align-items: center; gap: var(--s-1); max-width: 100%; min-height: var(--touch); margin-inline: calc(-1 * var(--s-2)); padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: none; font-weight: 600; cursor: pointer; }
.bar-switch-text { overflow: hidden; text-overflow: ellipsis; }
.bar-switch .i { width: 1.25rem; height: 1.25rem; color: var(--ink-2); }
.bar-end { display: flex; align-items: center; gap: var(--s-1); }
.tag { flex: none; margin-inline: var(--s-1); padding: 0.125rem var(--s-3); border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-on-soft); font-size: var(--text-xs); font-weight: 600; line-height: 1.6; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: var(--touch); height: var(--touch); padding: 0; border: 0; border-radius: var(--r-full); background: transparent; color: inherit; cursor: pointer; transition: background-color var(--quick); }
.icon-btn:hover, .bar-switch:hover { background: var(--surface-2); }
.icon-btn:active { background: var(--surface-3); }
.tabs { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); view-transition-name: tabs; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; min-height: var(--tabs-h); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.2; }
.tab-icon { display: grid; place-items: center; width: 3.5rem; height: 2rem; border-radius: var(--r-full); transition: background-color var(--quick) var(--ease); }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tab[aria-current="page"] .tab-icon { background: var(--accent-soft); color: var(--accent-on-soft); }
.tab:active .tab-icon { background: var(--surface-2); }
.rail-mark { display: none; }
main { padding: 0 max(var(--pad), env(safe-area-inset-right)) var(--s-7) max(var(--pad), env(safe-area-inset-left)); }
.has-tabs main { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + var(--s-6)); }
@media (min-width: 900px) {
  .has-tabs { padding-left: var(--rail-w); }
  .has-tabs .bar-mark { display: none; }
  .has-tabs .bar { padding-left: calc(var(--pad) - var(--s-2)); }
  .tabs { inset: 0 auto 0 0; width: var(--rail-w); grid-template-columns: none; align-content: start; gap: var(--s-2); padding: var(--s-4) 0; border-top: 0; border-right: 1px solid var(--line); }
  .rail-mark { display: grid; place-items: center; height: var(--bar-h); margin-bottom: var(--s-4); }
  .rail-mark .brand-mark { width: 2.5rem; height: 2.5rem; }
  .tab { min-height: 4.5rem; }
  .has-tabs main { padding-bottom: var(--s-7); }
}

.group + .group { margin-top: var(--s-5); }
.group-head { margin: 0; padding: var(--s-4) 0 var(--s-3); font-size: inherit; font-weight: inherit; }
.group-text { display: flex; flex-direction: column; min-width: 0; }
.group-title { font-size: var(--text-lg); font-weight: 600; line-height: var(--lh-tight); }
.group-line { margin-top: 0.125rem; color: var(--ink-2); font-size: var(--text-sm); }
.group-link { display: flex; align-items: center; gap: var(--s-3); border-radius: var(--r-sm); }
.group-go { display: grid; place-items: center; flex: none; width: var(--touch); height: var(--touch); margin-left: auto; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); transition: background-color var(--quick); }
.group-link:hover .group-go { background: var(--surface-3); }
.grid { display: flex; flex-wrap: wrap; gap: 3px; margin-inline: calc(-1 * var(--pad) + 3px); }
.grid::after { content: ""; flex: 1000000 1 0; }
.tile { --ar: 1; position: relative; flex: var(--ar) 1 calc(var(--ar) * var(--row)); aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--r-xs); background: var(--surface-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--quick) var(--ease), filter var(--quick); }
.tile:active img { scale: 0.97; }
@media (hover: hover) { .tile:hover img { filter: brightness(1.06); } }
.tile:focus-visible { outline-offset: -3px; }
.badge { position: absolute; left: 0.375rem; bottom: 0.375rem; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0 0.5rem 0 0.375rem; border-radius: var(--r-full); background: var(--badge); color: var(--badge-ink); font-size: var(--text-xs); font-weight: 600; line-height: 1.6; }
.badge .i { width: 0.8125rem; height: 0.8125rem; fill: currentColor; stroke-width: 0; }
@media (min-width: 600px) { .grid { gap: 4px; margin-inline: 0; } .tile { border-radius: var(--r-sm); } }
.ar-40 { --ar: 0.4; }
.ar-45 { --ar: 0.45; }
.ar-50 { --ar: 0.5; }
.ar-55 { --ar: 0.55; }
.ar-60 { --ar: 0.6; }
.ar-65 { --ar: 0.65; }
.ar-70 { --ar: 0.7; }
.ar-75 { --ar: 0.75; }
.ar-80 { --ar: 0.8; }
.ar-85 { --ar: 0.85; }
.ar-90 { --ar: 0.9; }
.ar-95 { --ar: 0.95; }
.ar-100 { --ar: 1; }
.ar-105 { --ar: 1.05; }
.ar-110 { --ar: 1.1; }
.ar-115 { --ar: 1.15; }
.ar-120 { --ar: 1.2; }
.ar-125 { --ar: 1.25; }
.ar-130 { --ar: 1.3; }
.ar-135 { --ar: 1.35; }
.ar-140 { --ar: 1.4; }
.ar-145 { --ar: 1.45; }
.ar-150 { --ar: 1.5; }
.ar-155 { --ar: 1.55; }
.ar-160 { --ar: 1.6; }
.ar-165 { --ar: 1.65; }
.ar-170 { --ar: 1.7; }
.ar-175 { --ar: 1.75; }
.ar-180 { --ar: 1.8; }
.ar-185 { --ar: 1.85; }
.ar-190 { --ar: 1.9; }
.ar-195 { --ar: 1.95; }
.ar-200 { --ar: 2; }
.ar-205 { --ar: 2.05; }
.ar-210 { --ar: 2.1; }
.ar-215 { --ar: 2.15; }
.ar-220 { --ar: 2.2; }
.ar-225 { --ar: 2.25; }
.ar-230 { --ar: 2.3; }
.ar-235 { --ar: 2.35; }
.ar-240 { --ar: 2.4; }
.ar-245 { --ar: 2.45; }
.ar-250 { --ar: 2.5; }

.cards, .faces, .chips { list-style: none; margin: 0; padding: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9rem, 40%), 1fr)); gap: var(--s-5) var(--s-4); padding-top: var(--s-4); }
.card { display: flex; flex-direction: column; gap: 0.125rem; border-radius: var(--r-md); }
.card-cover { position: relative; display: block; aspect-ratio: 1; margin-bottom: var(--s-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.card-cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); transition: scale 300ms var(--ease); }
.card-cover.stack { overflow: visible; margin-top: 0.625rem; }
.card-cover.stack::before, .card-cover.stack::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); background: var(--surface-3); }
.card-cover.stack::before { translate: 0 -0.625rem; scale: 0.84 1; opacity: 0.6; }
.card-cover.stack::after { translate: 0 -0.3125rem; scale: 0.92 1; }
@media (hover: hover) { .card:hover .card-cover img { scale: 1.03; } }
.card:active .card-cover { scale: 0.98; }
.card-name { font-weight: 600; line-height: var(--lh-tight); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-line { color: var(--ink-2); font-size: var(--text-sm); }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: var(--s-5) var(--s-3); padding-top: var(--s-4); }
.face { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; text-align: center; border-radius: var(--r-md); }
.face-pic { width: min(100%, 6.75rem); aspect-ratio: 1; margin-bottom: var(--s-2); border-radius: 50%; object-fit: cover; background: var(--surface-2); transition: scale var(--quick) var(--ease); }
.face:active .face-pic { scale: 0.96; }
.face-name { font-weight: 600; line-height: var(--lh-tight); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face-line { color: var(--ink-2); font-size: var(--text-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-4) 0 var(--s-3); border-radius: var(--r-full); background: var(--surface-2); font-size: var(--text-sm); line-height: var(--lh-tight); transition: background-color var(--quick); }
.chip:has(.chip-face) { padding-left: 0.375rem; }
.chip:hover { background: var(--surface-3); }
.chip .i { width: 1.25rem; height: 1.25rem; color: var(--ink-2); }
.chip-face { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: var(--s-6) var(--s-5); }
  .faces { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 3.25rem; padding: 0 var(--s-5); border: 0; border-radius: var(--r-full); font-size: var(--text-md); font-weight: 600; line-height: var(--lh-tight); text-align: center; cursor: pointer; transition: background-color var(--quick), scale 120ms var(--ease); }
.btn:active { scale: 0.97; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-plain { background: var(--surface-2); color: var(--ink); }
.btn-plain:hover { background: var(--surface-3); }
.btn-text { background: transparent; color: var(--accent); }
.btn-wide { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 85vh; max-height: 85dvh; margin: 0; padding: var(--s-2) max(var(--s-3), env(safe-area-inset-right)) calc(var(--s-4) + env(safe-area-inset-bottom)) max(var(--s-3), env(safe-area-inset-left)); overflow: auto; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--lift-2); translate: 0 100%; transition: translate 240ms var(--ease), display 240ms allow-discrete, overlay 240ms allow-discrete; }
.sheet::before { content: ""; display: block; width: 2.5rem; height: 0.3125rem; margin: 0 auto var(--s-2); border-radius: var(--r-full); background: var(--line); }
.sheet:popover-open { translate: 0 0; }
@starting-style { .sheet:popover-open { translate: 0 100%; } }
.sheet::backdrop { background: var(--scrim); opacity: 0; transition: opacity 240ms, display 240ms allow-discrete, overlay 240ms allow-discrete; }
.sheet:popover-open::backdrop { opacity: 1; }
@starting-style { .sheet:popover-open::backdrop { opacity: 0; } }
@supports not selector(:popover-open) {
  html:not(.sheets-by-script) .sheet { position: static; display: block; width: auto; margin: var(--s-6) 0 0; translate: none; opacity: 1; box-shadow: 0 0 0 1px var(--line); border-radius: var(--r-lg); }
  html:not(.sheets-by-script) .sheet::before, html:not(.sheets-by-script) .sheet > .btn, html:not(.sheets-by-script) [popovertarget] { display: none; }
}
.sheets-by-script .sheet { z-index: 31; }
.sheets-by-script .sheet:not(.open) { display: none; }
.sheets-by-script .sheet.open { display: block; translate: none; opacity: 1; scale: 1; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: var(--scrim); }
.sheet-title { padding: var(--s-2) var(--s-3) var(--s-1); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; }
.menu { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
.menu-item { display: flex; align-items: center; gap: var(--s-4); width: 100%; min-height: 3.5rem; padding: 0 var(--s-3); border: 0; border-radius: var(--r-md); background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.menu-item .i { color: var(--ink-2); }
.menu-item[aria-current] { font-weight: 600; }
.menu-item[aria-current] .i:last-child { margin-left: auto; color: var(--accent); }
@media (min-width: 900px) {
  .sheet { inset: 0; width: min(26rem, 90vw); height: fit-content; margin: auto; border-radius: var(--r-lg); padding: var(--s-3); translate: none; scale: 1; opacity: 1; transition: scale 200ms var(--ease), opacity 200ms, display 200ms allow-discrete, overlay 200ms allow-discrete; }
  .sheet::before { display: none; }
  @starting-style { .sheet:popover-open { translate: none; scale: 0.96; opacity: 0; } }
}
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + var(--s-4)); z-index: 40; width: max-content; max-width: calc(100% - 2rem); margin: 0; padding: var(--s-3) var(--s-5); translate: -50% 0; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); box-shadow: var(--lift-2); font-size: var(--text-sm); text-align: center; transition: opacity var(--quick), translate var(--quick) var(--ease); }
.toast[hidden] { display: none; }
@starting-style { .toast { opacity: 0; translate: -50% 0.5rem; } }
.plain-page .toast, .viewer-page .toast { bottom: calc(env(safe-area-inset-bottom) + var(--s-6)); }
@media (min-width: 900px) { .has-tabs .toast { bottom: var(--s-6); } }
.notice { display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: var(--text-sm); }
.notice .i { margin-top: 0.125rem; color: var(--ink-3); }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); max-width: 30rem; margin: 0 auto; padding: var(--s-7) 0 var(--s-6); text-align: center; }
.empty-art { display: grid; place-items: center; width: 8rem; height: 8rem; margin-bottom: var(--s-2); border-radius: 50%; background: var(--accent-soft); color: var(--accent-on-soft); }
.empty-art .i { width: 3.5rem; height: 3.5rem; stroke-width: 1.5; }
.empty-title { font-size: var(--text-xl); font-weight: 600; line-height: var(--lh-tight); text-wrap: balance; }
.empty-lead { color: var(--ink-2); text-wrap: balance; }
.steps { counter-reset: step; list-style: none; display: grid; gap: var(--s-3); width: 100%; margin: var(--s-2) 0 var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift-1); text-align: left; }
.steps li { display: flex; align-items: center; gap: var(--s-3); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-on-soft); font-weight: 600; }

.page-head { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) 0 var(--s-2); }
.page-head.centred { align-items: center; text-align: center; padding-top: var(--s-5); }
.head-face { width: 8rem; height: 8rem; margin-bottom: var(--s-3); border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.head-title { font-size: var(--text-xl); font-weight: 600; line-height: var(--lh-tight); text-wrap: balance; }
.head-line { color: var(--ink-2); font-size: var(--text-sm); }
.page-head .actions { margin-top: var(--s-3); }
.page-head.centred .actions { justify-content: center; }
.narrow { max-width: 40rem; margin-inline: auto; }
.lead { padding-top: var(--s-3); }
.grid-lead { padding-bottom: var(--s-3); }
.actions.foot-actions { margin-top: var(--s-5); }
.page-foot { display: grid; gap: var(--s-4); margin-top: var(--s-6); text-align: center; }
.page-foot a:not(.btn) { text-decoration: underline; text-underline-offset: 0.2em; }
.section { margin-top: var(--s-5); }
.section-title { padding: 0 var(--s-2) var(--s-2); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; }
.rows { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: var(--s-3); min-height: 4rem; padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); transition: background-color var(--quick); }
button.row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
a.row:hover, button.row:hover { background: var(--surface-2); }
.credit { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
.credit-text { display: grid; gap: var(--s-2); flex: 1; min-width: 0; line-height: var(--lh-tight); }
.credit-file { font-size: var(--text-xs); overflow-wrap: anywhere; }
.row-thumb { flex: none; width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); }
.row-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.row-face { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.row-icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); }
.row-text { display: flex; flex-direction: column; flex: 1 0 45%; min-width: 0; line-height: var(--lh-tight); }
.row-hint { margin-top: 0.125rem; color: var(--ink-2); font-size: var(--text-sm); }
.row-value { color: var(--ink-2); font-size: var(--text-sm); white-space: nowrap; }
.row-go { color: var(--ink-3); display: grid; }
.row-go .i { width: 1.25rem; height: 1.25rem; }
.row-own { padding: var(--s-3) var(--s-4); }
.meter { display: block; width: 100%; height: 0.75rem; margin: var(--s-3) 0 var(--s-1); border: 0; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; appearance: none; }
.meter::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--r-full); }
.meter::-webkit-progress-value { background: var(--accent); border-radius: var(--r-full); }
.meter::-moz-progress-bar { background: var(--accent); border-radius: var(--r-full); }
.switch { margin: 0; padding: 0; border: 0; min-width: 0; }
.switch-legend { padding: 0 0 var(--s-2); }
.switch-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-lg); background: var(--surface-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; min-height: 3.75rem; padding: var(--s-1) var(--s-2); border-radius: calc(var(--r-lg) - 0.25rem); color: var(--ink-2); font-size: var(--text-sm); text-align: center; line-height: 1.2; cursor: pointer; transition: background-color var(--quick), color var(--quick); }
.switch label .i { width: 1.25rem; height: 1.25rem; }
.switch input:checked + label { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--lift-1); }
.switch input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.viewer-page { background: var(--bg); color: var(--viewer-ink); }
.viewer-page main { padding: 0; }
html:has(.viewer-page) { overscroll-behavior: none; }
.gestures .stage { touch-action: none; }
.viewer .tag { background: var(--viewer-soft); color: var(--viewer-ink); }
.viewer { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "bar" "stage" "info"; background: var(--viewer); background: color-mix(in srgb, var(--viewer) calc(var(--fade, 1) * 100%), transparent); }
.viewer-bar { grid-area: bar; display: flex; align-items: center; gap: var(--s-1); padding: calc(env(safe-area-inset-top) + var(--s-1)) max(var(--s-2), env(safe-area-inset-right)) var(--s-1) max(var(--s-2), env(safe-area-inset-left)); view-transition-name: viewer-bar; }
.viewer .icon-btn:hover { background: var(--viewer-soft); }
.viewer .icon-btn:active { background: var(--viewer-soft); }
.viewer-what { display: flex; flex-direction: column; flex: 1; min-width: 0; padding-inline: var(--s-1); font-size: inherit; line-height: var(--lh-tight); }
.viewer-title { font-size: var(--text-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-line { color: var(--viewer-ink-2); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage { grid-area: stage; position: relative; display: grid; place-items: center; overflow: hidden; container-type: size; user-select: none; -webkit-user-select: none; }
.frame { width: min(100vw, (100vh - 15rem) * var(--ar)); width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); view-transition-name: photo; transform-origin: 0 0; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.stage-go { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; translate: 0 -50%; border-radius: 50%; background: var(--viewer-bar); color: var(--viewer-ink); transition: background-color var(--quick); }
.stage-go:hover { background: var(--viewer-soft); }
@media (hover: none), (max-width: 699px) { .gestures .stage:not(.has-clip) .stage-go { display: none; } }
.has-clip .stage-go { top: 40%; width: 3rem; height: 3rem; }
.stage-go[rel="prev"] { left: max(var(--s-2), env(safe-area-inset-left)); } .stage-go[rel="next"] { right: max(var(--s-2), env(safe-area-inset-right)); }
@media (min-width: 700px) { .stage-go[rel="prev"] { left: var(--s-4); } .stage-go[rel="next"] { right: var(--s-4); } }
.viewer-info { grid-area: info; display: grid; gap: var(--s-4); padding: var(--s-3) max(var(--s-4), env(safe-area-inset-right)) calc(var(--s-4) + env(safe-area-inset-bottom)) max(var(--s-4), env(safe-area-inset-left)); }
.sender { display: flex; align-items: center; gap: var(--s-3); line-height: var(--lh-tight); }
.sender > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sender-face { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--viewer-soft); }
.sender-name { font-weight: 600; }
.sender-group { color: var(--viewer-ink-2); font-size: var(--text-sm); }
.info-part { display: grid; gap: var(--s-2); }
.info-title { color: var(--viewer-ink-2); font-size: var(--text-sm); font-weight: 400; }
.viewer .chip { background: var(--viewer-soft); color: var(--viewer-ink); }
.viewer .chip .i { color: var(--viewer-ink-2); }
@media (max-width: 999px) { .info-parts { display: flex; flex-wrap: wrap; gap: var(--s-2); } .info-part, .info-parts .chips { display: contents; } .info-title { display: none; } }
@media (min-width: 1000px) { .info-parts { display: grid; gap: var(--s-5); } }
@media (min-width: 1000px) {
  .viewer { grid-template-columns: minmax(0, 1fr) 24rem; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "bar bar" "stage info"; }
  .viewer-info { align-content: start; padding: var(--s-5); border-left: 1px solid var(--viewer-soft); overflow: auto; }
}

.plain-page main:has(> .welcome) { min-height: 100dvh; display: grid; place-items: center; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); width: 100%; max-width: 26rem; padding: var(--s-6) 0; text-align: center; }
.prints { position: relative; width: 17rem; height: 13rem; margin-bottom: var(--s-4); }
.print { position: absolute; width: 9.5rem; aspect-ratio: 4 / 5; object-fit: cover; border: 0.375rem solid var(--surface); border-radius: var(--r-md); box-shadow: var(--lift-1); }
.print-1 { left: 0; top: 1.5rem; rotate: -8deg; }
.print-2 { right: 0; top: 1.25rem; rotate: 7deg; }
.print-3 { left: 50%; top: 0; translate: -50% 0; rotate: -1deg; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .print { animation: look-print 600ms var(--ease) both; }
  .print-2 { animation-delay: 80ms; } .print-3 { animation-delay: 160ms; }
}
@keyframes look-print { from { opacity: 0; translate: 0 1rem; } }
.print-3 { animation-name: look-print-mid; }
@keyframes look-print-mid { from { opacity: 0; translate: -50% 1rem; } }
.welcome-brand { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-lg); font-weight: 600; }
.welcome-line { font-size: var(--text-xl); font-weight: 600; line-height: var(--lh-tight); text-wrap: balance; }
.welcome .btn { margin-top: var(--s-3); }
.welcome-fine { display: grid; gap: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); text-wrap: pretty; }
.welcome-fine a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 900px) { .welcome { max-width: 32rem; } .prints { width: 22rem; height: 17rem; } .print { width: 12.5rem; } .welcome-line { font-size: var(--text-2xl); } }