:root {
  color-scheme:dark;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Inter",sans-serif;
  --ink:#0b0b0d;
  --white:#fff;
  --secondary:rgba(255,255,255,.68);
  --tertiary:rgba(255,255,255,.44);
  --line:rgba(255,255,255,.12);
  --glass:linear-gradient(155deg,rgba(255,255,255,.14),rgba(255,255,255,.03) 42%,rgba(255,255,255,.06)),rgba(20,20,24,.34);
  --glass-control:linear-gradient(165deg,rgba(255,255,255,.22),rgba(255,255,255,.04) 48%,rgba(255,255,255,.08)),rgba(24,24,29,.36);
  --glass-sheet:rgba(22,22,27,.56);
  --surface-filter:blur(24px) saturate(185%) brightness(1.06);
  --control-filter:blur(28px) saturate(200%) brightness(1.12);
  --sheet-filter:blur(32px) saturate(190%) brightness(1.05);
  --glass-edge:rgba(255,255,255,.24);
  --glass-shadow:inset 0 1px .5px rgba(255,255,255,.46),inset 0 -1px .5px rgba(255,255,255,.12),inset 1px 0 0 rgba(255,255,255,.14),0 16px 36px rgba(0,0,0,.32);
  --ease:cubic-bezier(.22,1,.36,1);
  --content:1120px;
}
*,*::before,*::after { box-sizing:border-box; }
body {
  margin:0; color:var(--white); background:var(--ink); min-width:0; overflow-x:clip;
  font:400 17px/1.5 var(--font); -webkit-font-smoothing:antialiased;
}
body:has(dialog[open]) { overflow:hidden; }
button,input,textarea,select { font:inherit; }
a,button,input,textarea,select { -webkit-tap-highlight-color:transparent; }
a,button { touch-action:manipulation; }
button { color:inherit; cursor:pointer; }
a { color:inherit; }
img,svg { display:block; }
img { width:100%; height:auto; }
svg { flex:none; }
h1,h2,h3,p { margin:0; }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.skip {
  position:fixed; z-index:20; inset:12px auto auto 16px; padding:8px 16px; border-radius:12px;
  color:var(--ink); background:var(--white); transform:translateY(-180%);
}
.skip:focus { transform:none; }
.loading {
  display:grid; min-height:100svh; place-items:center;
  font-weight:700; font-size:34px; letter-spacing:-.035em;
}
.icon {
  width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.75;
  stroke-linecap:round; stroke-linejoin:round;
}
.wrap { width:min(calc(100% - 64px),var(--content)); margin-inline:auto; }
:where(#shell,.rug-home) { --rug:url('/assets/jacquard.webp'); --texture-position:center 45%; }
#shell { position:relative; isolation:isolate; min-height:100svh; }
.rug-shopping { --rug:url('/assets/berber.webp'); --rug-light:1.08; }
.rug-plans { --rug:url('/assets/green-pile.webp'); }
.rug-gallery { --rug:url('/assets/persian.webp'); }
.rug-music { --rug:url('/assets/record-weave.webp'); --rug-light:1; --texture-position:center; --music-meta:#e4d9ce; }
.rug-profile { --rug:url('/assets/herringbone.webp'); }
.rug-board { --rug:url('/assets/jacquard.webp'); --texture-position:center 73%; --rug-light:1.04; }
.rug-trips { --rug:url('/assets/persian.webp'); --texture-position:center 36%; --rug-light:1.07; }
.rug-places { --rug:url('/assets/green-pile.webp'); --texture-position:center 73%; --rug-light:.90; }
#shell::before,.carpet-roll,.carpet-shade {
  background:var(--rug) var(--texture-position,center 45%) / cover no-repeat;
}
#shell::before,#shell::after {
  position:fixed; inset:0; content:''; pointer-events:none; z-index:-4;
}
#shell::before,.carpet-shade { filter:brightness(var(--rug-light,1.18)); }
#shell::after {
  z-index:-3;
  background:linear-gradient(rgba(8,8,10,.42),rgba(8,8,10,.42)),
    radial-gradient(ellipse at 53% 36%,transparent 14%,rgba(8,8,10,.34) 74%,rgba(8,8,10,.69) 100%),
    linear-gradient(180deg,rgba(8,8,10,.31),transparent 30%,rgba(8,8,10,.23) 74%,rgba(8,8,10,.57)),
    linear-gradient(90deg,rgba(8,8,10,.20),transparent 62%);
}
#shell.rug-music::after {
  background:linear-gradient(180deg,rgba(27,20,16,.66),rgba(27,20,16,.55) 20%,rgba(27,20,16,.26) 49%,rgba(27,20,16,.52)),
    radial-gradient(ellipse at 64% 48%,transparent 28%,rgba(27,20,16,.16));
}
#shell.app {
  display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:100svh; height:100dvh; min-height:0;
}
.app-viewport {
  overflow-y:auto; overflow-x:hidden; min-width:0; min-height:0; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.3) transparent;
  scroll-padding:16px 0 24px;
}
main { min-width:0; }
main.wrap { padding-top:24px; padding-bottom:24px; }
main:focus { outline:none; }

.glass-surface,.dock,.map-wrap,.photo-tile {
  background:var(--glass); border:1px solid var(--glass-edge); box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--surface-filter); backdrop-filter:var(--surface-filter);
}
.topbar {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:72px; padding-top:env(safe-area-inset-top,0px);
}
.brand {
  display:inline-flex; align-items:center; gap:10px; min-height:44px;
  width:max-content; text-decoration:none; white-space:nowrap;
}
.brand-mark { display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--glass-edge); border-radius:10px; }
.brand-mark .icon { width:19px; height:19px; }
.brand-name { font-size:21px; font-weight:690; letter-spacing:-.035em; }
.profile {
  display:inline-flex; align-items:center; gap:8px; min-height:44px;
  padding:4px 13px 4px 5px; border-radius:999px; font-size:14px; font-weight:610; text-decoration:none;
}
.profile[aria-current=page] { border-color:rgba(255,255,255,.47); }
.avatar {
  display:grid; place-items:center; position:relative; overflow:hidden; width:32px; height:32px; flex:none; border-radius:50%;
  color:#fff; font-size:14px; font-weight:660; background:rgba(255,255,255,.14);
}
.avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#28282b; }
.avatar-large { width:56px; height:56px; font-size:24px; border:1px solid var(--glass-edge); }
.avatar-small { width:28px; height:28px; font-size:12px; }
.profile-photo { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.profile-photo h2 { font-size:20px; }
.dock-shelf {
  display:grid; justify-items:center; padding:8px 16px max(16px,env(safe-area-inset-bottom,0px));
  min-width:0;
}
.dock {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; padding:4px;
  width:min(100%,410px); border-radius:999px; background:var(--glass-control);
  -webkit-backdrop-filter:var(--control-filter); backdrop-filter:var(--control-filter);
}
.dock-toggle { border:0; background:transparent; }
.dock-more {
  position:fixed; inset:auto 0 calc(max(16px,env(safe-area-inset-bottom)) + 70px); margin:0 auto;
  width:min(calc(100% - 24px),396px); max-height:calc(100dvh - 110px); overflow:auto;
  padding:8px; border:1px solid var(--glass-edge); border-radius:23px; color:#fff;
  background:var(--glass-sheet); box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--sheet-filter); backdrop-filter:var(--sheet-filter);
}
.dock-more:popover-open { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; animation:sheet-in .2s var(--ease); }
.dock-more .nav-link { min-height:58px; border-radius:15px; font-size:13px; }
.nav-link {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:51px; min-width:0;
  padding:4px; border-radius:999px; color:var(--secondary); text-decoration:none; font-size:11px; font-weight:560;
  line-height:1.15; white-space:nowrap;
  transition:background .28s var(--ease),color .28s var(--ease);
}
.nav-link .icon { width:21px; height:21px; }
.dock-toggle .icon { stroke-width:3; }
.nav-link[aria-current=page],.dock-toggle[data-current],.dock-shelf:has(:popover-open) .dock-toggle {
  color:#fff; background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.10));
  box-shadow:inset 0 1px rgba(255,255,255,.19),inset 0 0 0 1px rgba(255,255,255,.1);
}

.page-heading {
  display:flex; justify-content:space-between; align-items:end; gap:16px;
  margin-bottom:24px; min-width:0;
}
.page-heading h1,.auth-card h1 {
  font-size:clamp(34px,4vw,40px); line-height:1.08; font-weight:700; letter-spacing:-.035em; color:#fff;
}
.page-heading p,.auth-card > p {
  margin-top:8px; color:var(--secondary); font-size:16px; line-height:1.45; text-wrap:pretty;
}
.heading-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.panel-heading h2,.panel h2,.invitation-panel h2 {
  font-size:20px; font-weight:660; letter-spacing:-.024em; line-height:1.2;
}
.btn,.icon-button,.check {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px;
  padding:8px 16px; border:1px solid transparent; border-radius:999px;
  background:#fff; color:#0b0b0d; text-decoration:none; font-size:14px; line-height:1.22;
  font-weight:650; white-space:nowrap;
  transition:background-color .24s var(--ease),border-color .24s var(--ease),transform .3s var(--ease);
}
.btn .icon { width:16px; height:16px; }
.btn.glass,.btn.secondary,.btn.subtle,.btn.danger,.icon-button,.check {
  background:var(--glass-control); border-color:var(--glass-edge); color:#fff;
  box-shadow:inset 0 1px rgba(255,255,255,.14);
}
.btn.subtle { background:transparent; box-shadow:none; }
.btn.slim { padding:8px 14px; }
.btn:not(:disabled):active,.icon-button:active,.check:active { transform:scale(.965); }
.btn:disabled { opacity:.48; cursor:not-allowed; }
.icon-button { display:inline-grid; place-items:center; flex:none; width:44px; height:44px; padding:0; }
.icon-button .icon { width:19px; height:19px; }
@media (hover:hover) {
  .nav-link:not([aria-current]):hover,.profile:hover { background-color:rgba(255,255,255,.14); color:#fff; }
  .btn:not(.glass,.secondary,.subtle,.danger,:disabled):hover { background-color:#ebebed; }
  .btn.glass:hover,.btn.secondary:hover,.btn.subtle:hover,.btn.danger:hover,.icon-button:hover,.check:hover { background-color:rgba(255,255,255,.19); border-color:rgba(255,255,255,.31); }
}

.wall { position:relative; min-width:0; touch-action:pan-y pinch-zoom; }
.wall-track { --wall-pan:clamp(240px,55svh,580px); width:100vw; margin-inline:calc((100% - 100vw)/2); }
.wall-track::after { content:""; display:block; height:var(--wall-pan); }
.wall-scene { position:sticky; top:0; width:100%; overflow:clip; contain:layout paint; }
.wall-plane { position:relative; isolation:isolate; padding:12px 0 24px; transform-origin:0 0; }
#shell[data-wall-carpet]::before { visibility:hidden; }
.wall-carpet-carrier { position:fixed; z-index:-4; inset:0 auto auto 0; width:100vw; pointer-events:none; }
.wall-carpet { position:absolute; inset:0 0 auto; transform-origin:0 0; }
.wall-weave {
  position:relative; top:calc(-2 * var(--tile-height)); margin-inline:-20px; height:var(--tile-height);
  background:var(--rug) center / cover no-repeat,#332c29;
}
@media (prefers-reduced-motion:reduce) { .wall-track { --wall-pan:0px; } }
.wall-weave:nth-child(even) { transform:scaleY(-1); }
.wall-reveal,.wall-trail { width:min(calc(100% - 32px),920px); margin-inline:auto; }
.wall-mosaic,.wall-band { position:relative; width:100%; aspect-ratio:4/3; }
.wall-slot {
  position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-50%);
  display:grid; place-items:center; width:var(--room-w); height:var(--room-h); min-width:0; min-height:0;
}
.wall-frame {
  position:relative; display:block; min-width:0; isolation:isolate; overflow:hidden; appearance:none;
  padding:var(--rim,3px); border:1px solid var(--frame-edge,#ffffff45); border-radius:var(--corner,5px); background:var(--wood,#211b18);
  box-shadow:0 10px 22px -6px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 #ffffff35; transition:box-shadow .3s var(--ease);
}
.wall-frame[data-finish=walnut] { --rim:clamp(3px,.55vw,8px); --corner:6px; --wood:#473227; --frame-edge:#ac836c70; }
.wall-frame[data-finish=ivory] { --rim:clamp(4px,.75vw,10px); --corner:3px; --wood:#e5ddcb; --frame-edge:#fffb; }
.wall-frame[data-finish=metal] {
  --rim:clamp(2px,.34vw,5px); --corner:3px; --frame-edge:#d6bb7c8f;
  --wood:linear-gradient(140deg,#d9ba84 0%,#776142 23%,#a99067 50%,#584d3a 75%,#c9ac71);
}
.wall-frame[data-finish=ebonized] { --rim:clamp(3px,.4vw,6px); --corner:9px; --wood:#171719; --frame-edge:#fff5; }
.wall-frame-feature { border-radius:clamp(6px,1vw,12px); }
.wall-frame::after { content:""; position:absolute; inset:0; border:1px solid #ffffff25; border-radius:inherit; pointer-events:none; }
.wall-frame:focus-visible { outline-offset:3px; }
.wall-frame:hover { box-shadow:0 12px 24px -6px rgba(0,0,0,.60),0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 #ffffff35; }
.wall-frame img { display:block; width:100%; height:100%; object-fit:contain; user-select:none; background:#141214; }
.wall-frame-leaving { position:absolute; z-index:2; pointer-events:none; }
.wall-band { isolation:isolate; }
.wall-toolbar {
  position:relative; z-index:4; width:max-content; max-width:100%; margin:4px 0 8px auto;
  display:flex; align-items:center; justify-content:flex-end; gap:5px; padding:4px; border-radius:999px;
}
.wall-toolbar .btn { flex:none; }
.wall-pause { background:var(--glass-control); }
.wall-actions { display:flex; justify-content:center; padding:16px 0 6px; }
.wall-loading { min-height:clamp(180px,30vh,350px); display:grid; place-items:center; color:var(--secondary); }
.wall-empty {
  width:100%; min-height:clamp(180px,30vh,350px); display:grid; place-content:center; justify-items:center; gap:12px;
  border-radius:20px; font-size:15px; font-weight:620;
}
.wall-empty .icon { width:30px; height:30px; }


dialog.wall-viewer.wide {
  position:fixed; inset:0; margin:0; width:100%; height:100%; max-width:none; max-height:none;
  padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  border:0; border-radius:0; background:#302927; overflow:hidden; isolation:isolate; -webkit-backdrop-filter:none; backdrop-filter:none;
}
dialog.wall-viewer::before {
  content:""; position:absolute; inset:-32px; z-index:-1; pointer-events:none;
  background:linear-gradient(#151017ac,#161015d6),var(--viewer-rug) center / cover;
  filter:blur(16px);
}
dialog.wall-viewer.wide[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:8px; animation:wall-arrange-in .2s ease-out both; }
.wall-viewer .dialog-top { margin:0; }
.wall-viewer .dialog-top h2 { font-size:clamp(15px,2.2vw,20px); max-width:80%; -webkit-line-clamp:2; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.wall-view-image { min-width:0; min-height:0; display:grid; place-items:center; touch-action:pan-y pinch-zoom; }
.wall-view-image img { width:100%; height:100%; min-height:0; object-fit:contain; user-select:none; }
.wall-viewer footer,.wall-view-navigation { display:flex; align-items:center; gap:8px; }
.wall-viewer footer { justify-content:center; flex-wrap:wrap; }
.wall-view-navigation output { min-width:5ch; text-align:center; font-size:14px; color:var(--secondary); font-variant-numeric:tabular-nums; }
.wall-viewer button:disabled { opacity:.35; cursor:default; }

.dashboard,.music-grid,.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.dashboard { margin-top:24px; }
.section-space { margin-top:24px; }
.panel { min-width:0; border-radius:24px; padding:16px; }
.panel-heading,.panel-title { display:flex; align-items:center; min-width:0; gap:12px; }
.panel-heading { justify-content:space-between; padding-bottom:12px; }
.panel-title { flex:1; }
.panel-icon,.setup-icon,.auth-icon {
  display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:13px;
  border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.08); color:#fff;
}
.panel-icon .icon,.setup-icon .icon { width:20px; height:20px; }
.row {
  display:flex; align-items:center; gap:12px; min-width:0; min-height:61px;
  padding:8px 0; border-top:1px solid var(--line);
}
.row-title { color:#fff; min-width:0; font-size:15px; font-weight:600; line-height:1.32; overflow-wrap:anywhere; }
.row.done .row-title { text-decoration:line-through; color:var(--secondary); }
.row-main { flex:1; min-width:0; overflow-wrap:anywhere; }
.row-meta { display:block; margin-top:4px; font-size:13px; line-height:1.4; color:var(--secondary); }
.check { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; color:var(--secondary); }
.check .icon { width:17px; height:17px; }
.check[aria-pressed=true] { color:#0b0b0d; background:#fff; border-color:#fff; }
.priority,.tag,.section-label {
  color:var(--secondary); font-size:13px; line-height:1.25; white-space:nowrap;
}
.priority.now { color:#fff; font-weight:620; }
.priority.someday { color:var(--secondary); }
.purchase-body { display:flex; align-items:center; gap:9px; }
.purchase-body > div { flex:1; min-width:0; }
.product-photo {
  display:block; flex:none; width:42px; height:42px; padding:0; overflow:hidden; border-radius:11px;
  border:1px solid var(--glass-edge); background:rgba(255,255,255,.08); cursor:pointer;
}
.product-placeholder { display:grid; place-items:center; cursor:default; color:var(--secondary); }
.product-placeholder .icon { width:17px; height:17px; }
.product-photo img,.product-detail img { width:100%; height:100%; object-fit:cover; }
.estimate { color:#fff; font-variant-numeric:tabular-nums; }
.product-detail { border-top:1px solid var(--line); padding-top:12px; }
.product-detail h3 { font-size:15px; }
.product-detail figure { margin:12px 0; }
.product-detail img { max-width:192px; max-height:150px; border-radius:10px; }
.product-detail figcaption { font-size:12px; color:var(--secondary); }
.reference-links { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; margin:10px 0; }
.reference-links a,.travel-credit a { overflow-wrap:anywhere; white-space:normal; text-align:left; }
.purchase-meta { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; row-gap:2px; }
.purchase-meta .priority { white-space:normal; }
.comment-button { position:relative; }
.comment-button > span {
  position:absolute; top:-3px; right:-3px; display:grid; place-items:center;
  min-width:17px; height:17px; padding-inline:4px; border-radius:999px;
  background:#fff; color:#0b0b0d; font-size:10px; font-variant-numeric:tabular-nums;
}
.date-card {
  display:grid; flex:none; justify-items:center; align-content:center; width:44px; height:44px;
  border:1px solid rgba(255,255,255,.15); border-radius:12px; background:rgba(255,255,255,.08);
  color:#fff; line-height:1;
}
.date-card strong { font-size:18px; font-weight:660; }
.date-card small { margin-top:3px; font-size:11px; color:var(--secondary); }
.date-card,.section-label,.rank,.tag,.row-meta { font-variant-numeric:tabular-nums; }
.panel-actions { padding-top:12px; }
.empty { padding:24px 8px; display:grid; justify-items:center; gap:8px; color:var(--secondary); text-align:center; }
.empty strong { color:#fff; font-weight:640; font-size:16px; }
.empty p:empty { display:none; }
.empty p { font-size:14px; }
.empty .icon { width:25px; height:25px; color:var(--secondary); }
.empty .btn { margin-top:4px; }

.toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.tabs {
  display:flex; flex-wrap:wrap; gap:2px; max-width:100%; padding:3px;
  border:1px solid var(--glass-edge); border-radius:999px; background:var(--glass-control); box-shadow:var(--glass-shadow);
}
.tab {
  min-height:44px; white-space:nowrap; padding:6px 12px; border:0; border-radius:999px;
  background:transparent; color:var(--secondary); font-size:14px; font-weight:560;
  transition:background .23s var(--ease),color .23s var(--ease);
}
.tab[aria-pressed=true] { color:#fff; background:rgba(255,255,255,.14); box-shadow:inset 0 1px rgba(255,255,255,.21); }
.wall-grid,.gallery-grid { display:block; columns:3; column-gap:16px; }
.gallery-grid:has(.empty),.wall-grid:has(.empty) { columns:1; }
.photo-tile {
  display:inline-block; width:100%; min-width:0; break-inside:avoid; margin-bottom:16px; padding:0; overflow:hidden; text-align:left;
  border-radius:15px; color:#fff;
}
.photo-tile img { max-height:500px; object-fit:contain; background:#151518; }
.photo-tile-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 12px; color:var(--secondary); }
.photo-tile-meta span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.photo-tile-meta .icon { width:15px; height:15px; }
.photo-tile:hover { border-color:rgba(255,255,255,.41); }
.rug-music .page-heading p { color:var(--music-meta); }
.music-grid { align-items:start; }
.music-panel.glass-surface {
  padding:clamp(16px,2vw,24px);
}
.music-head { display:flex; align-items:center; gap:12px; }
.music-head h2 { font-size:clamp(20px,1.8vw,23px); }
.music-head p { margin-top:3px; font-size:13px; line-height:1.4; color:var(--music-meta); }
.music-avatar {
  width:40px; height:40px; font-size:16px;
  background:rgba(255,246,236,.12); box-shadow:inset 0 1px 0 rgba(255,246,236,.23);
}
.music-tracks { margin:14px 0 0; padding:0; list-style:none; }
.music-track {
  display:grid; grid-template-columns:2ch minmax(0,1fr) max-content; align-items:center; gap:10px;
  padding:6px 0; border-top:1px solid var(--line);
}
.music-rank,.music-plays { font-variant-numeric:tabular-nums; }
.music-rank { color:var(--music-meta); font-size:13px; text-align:center; }
.music-track-copy {
  display:grid; align-content:center; gap:3px; min-height:44px; min-width:0;
  overflow-wrap:anywhere; text-decoration:none;
}
.music-track-name { font-size:clamp(1.0625rem,1.35vw,1.1875rem); font-weight:680; line-height:1.25; letter-spacing:-.015em; }
a.music-track-copy { border-radius:4px; }
a.music-track-copy .music-track-name { text-decoration:underline rgba(255,246,236,.5) 1px; text-underline-offset:.18em; }
a.music-track-copy:is(:hover,:focus-visible) .music-track-name { text-decoration-color:currentColor; }
.music-track-artist { color:var(--music-meta); font-size:.875rem; line-height:1.4; }
.music-plays { padding-inline-start:4px; font-size:1.125rem; font-weight:640; line-height:1; white-space:nowrap; }
.music-plays small { margin-inline-start:2px; color:var(--music-meta); font-size:.75em; font-weight:500; }
.music-plays-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.music-empty,.music-panel :is(.row-meta,.spotify-steps) { color:var(--music-meta); }
.music-empty { margin-top:12px; font-size:14px; }
.music-controls { margin-top:10px; padding-top:12px; border-top:1px solid var(--line); }
.music-controls > .row-meta { margin:0 0 8px; }
.music-controls .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.note.music-note { color:var(--music-meta); }
.profile-grid p,.invitation-panel p { margin-top:5px; font-size:14px; color:var(--secondary); }
.spotify-handoff { display:grid; gap:12px; }
.spotify-handoff > p { margin:0; }
.spotify-handoff .btn { white-space:normal; }
.spotify-steps { display:grid; gap:6px; margin:0; padding-left:19px; color:var(--secondary); font-size:13px; }
.setup-card > .spotify-handoff { margin-top:12px; }
.profile-grid p { margin-bottom:12px; }
.rank { display:grid; place-items:center; flex:none; width:33px; height:33px; color:var(--secondary); border-radius:9px; background:rgba(255,255,255,.08); font-size:14px; }
.note {
  display:flex; align-items:flex-start; gap:8px; width:max-content; max-width:100%; margin:16px 0;
  padding:8px 12px; border:1px solid var(--glass-edge); border-radius:12px; background:var(--glass); color:var(--secondary); font-size:13px;
  -webkit-backdrop-filter:var(--surface-filter); backdrop-filter:var(--surface-filter);
}
.note .icon { width:17px; height:17px; margin-top:2px; }
.profile-grid .note { margin-bottom:0; }
.commands { font-size:14px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.invitation-panel {
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; margin-top:24px;
}
.settings-note { margin-top:24px; color:var(--tertiary); font-size:12px; }

.auth-root {
  display:grid; min-height:100svh; place-items:center;
  padding:max(24px,env(safe-area-inset-top,0px)) 16px max(24px,env(safe-area-inset-bottom,0px));
}
.auth-card { width:min(100%,520px); padding:24px; border-radius:24px; }
.auth-card h1 { margin-top:16px; }
.auth-icon { width:44px; height:44px; }
.auth-form,.setup-list { margin-top:24px; }
.fields { display:grid; gap:16px; }
.field { display:grid; gap:6px; min-width:0; font-size:14px; font-weight:590; }
.field small { color:var(--secondary); font-size:13px; font-weight:400; }
input:where(:not([type=range],[type=checkbox],[type=radio])),textarea,select {
  min-width:0; width:100%; min-height:44px; padding:8px 12px; font-size:16px;
  border:1px solid var(--glass-edge); border-radius:12px; background:var(--glass-control); box-shadow:inset 0 1px #fff2; color:#fff;
}
input[type=range],input[type=checkbox] { accent-color:#e8d5ae; }
input[type=checkbox] { width:1.2em; min-height:1.2em; }
input[type=file] { padding:6px; }
input[type=file]::file-selector-button {
  margin-right:8px; padding:5px 8px; border:0; border-radius:8px; background:var(--glass-control); box-shadow:inset 0 1px #fff4; color:#fff; font:inherit; font-size:14px;
}
textarea { min-height:88px; resize:vertical; }
.grid-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:16px; }
.auth-form .form-actions,.setup-actions { justify-content:flex-start; }
.form-error { margin-top:8px; color:#fff; font-size:14px; font-weight:650; }
.setup-list { padding:0; list-style:none; margin-bottom:0; }
.setup-row {
  display:flex; align-items:center; gap:12px; min-width:0; padding:12px 0; border-top:1px solid var(--line);
}
.setup-row:last-child { border-bottom:1px solid var(--line); }
.setup-row strong { font-size:16px; font-weight:640; }
.setup-connected { display:inline-flex; align-items:center; gap:6px; font-size:13px; white-space:nowrap; }
.setup-connected .icon { width:16px; height:16px; }

dialog {
  width:min(calc(100% - 32px),530px); max-height:calc(100svh - 32px); padding:24px;
  border:1px solid var(--glass-edge); border-radius:24px; color:#fff; background:var(--glass-sheet);
  box-shadow:var(--glass-shadow); overscroll-behavior:contain;
}
dialog[open] { animation:sheet-in .32s var(--ease) both; }
dialog::backdrop { background:rgba(12,12,16,.33); }
dialog:where(:not(.wall-viewer,.wall-arrange))::backdrop {
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); animation:glass-options-in .24s var(--ease) both;
}
dialog { -webkit-backdrop-filter:var(--sheet-filter); backdrop-filter:var(--sheet-filter); }
dialog.wide { width:min(calc(100% - 32px),820px); }
.dialog-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.dialog-top h2 { font-size:23px; font-weight:680; letter-spacing:-.024em; line-height:1.16; overflow-wrap:anywhere; }
.dialog-photo { max-height:60svh; object-fit:contain; border:1px solid var(--glass-edge); border-radius:12px; background:#111114; }
.dialog-description { color:var(--secondary); font-size:14px; margin:8px 0 12px; overflow-wrap:anywhere; }
.thread-label { font-size:14px; color:var(--secondary); margin-bottom:8px; }
.thread-empty { padding-block:8px; }
.comment-list { list-style:none; margin:0; padding:0; max-height:min(34svh,300px); overflow:auto; overscroll-behavior:contain; }
.comment-row { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; padding:12px 0; border-top:1px solid var(--line); }
.comment-byline { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; font-size:13px; }
.comment-byline time { color:var(--secondary); font-size:12px; font-variant-numeric:tabular-nums; }
.comment-row p { margin:4px 0 0; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.thread-form { margin-top:16px; }
.note-board {
  position:relative; isolation:isolate; min-height:560px; min-height:clamp(440px,65svh,680px);
  overflow:hidden; border-radius:24px;
  border:1px solid var(--glass-edge); box-shadow:var(--glass-shadow);
  background:repeating-linear-gradient(86deg,#fff1 0 1px,transparent 1px 4px),
    repeating-linear-gradient(2deg,#140f1450 0 1px,transparent 1px 4px),rgba(53,45,38,.44);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.note-board > .empty { margin:0; position:absolute; inset:0; display:grid; align-content:center; }
.board-note {
  position:absolute; top:0; left:0; width:clamp(139px,21vw,191px); height:149px; z-index:1;
  display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:3px; padding:8px 11px 9px;
  border-radius:12px 12px 19px 12px; border:1px solid rgba(255,255,255,.39);
  background:repeating-linear-gradient(8deg,#58391609 0 1px,transparent 1px 3px),
    linear-gradient(155deg,#fff5,transparent 48%,#67421a12),var(--paper,#e9d8b8); color:#23221f;
  box-shadow:inset 0 1px #fff8,0 2px 3px #20160c48,2px 9px 16px #281d1148;
}
.note-butter { --paper:#f0dcad; }
.note-mint { --paper:#c8dfcc; }
.note-sky { --paper:#c9dce8; }
.note-rose { --paper:#ebd2cf; }
.note-stone { --paper:#e2ded1; }
.board-note:focus-within,.board-note.note-moving { z-index:2; box-shadow:0 20px 34px rgba(0,0,0,.46); }
.note-top { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; }
.note-top > span,.note-time { color:#49443c; font-size:11px; font-weight:650; }
.note-handle {
  flex:none; display:grid; place-items:center; border:0; border-radius:999px; cursor:grab; color:#49443c; touch-action:none;
  width:40px; height:40px; padding:0; background:rgba(28,24,17,.08);
}
.board-note.note-moving .note-handle { cursor:grabbing; }
.note-handle .icon { width:16px; height:16px; }
.note-content {
  display:block; padding:0; border:0; border-radius:5px; background:transparent; color:inherit; font-size:14px;
  font-weight:640; line-height:1.24; text-align:start; white-space:pre-wrap; overflow:auto; overflow-wrap:anywhere; cursor:pointer;
}
.board-note button:focus-visible { outline-color:#342a19; }
.color-picker { border:0; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:10px; }
.color-picker legend { margin-bottom:8px; font-size:13px; font-weight:640; }
.color-picker label { display:grid; place-items:center; position:relative; width:43px; height:43px; cursor:pointer; }
.color-picker label > input {
  width:36px; height:36px; min-height:0; padding:0; margin:0; appearance:none; border-radius:100%;
  background:var(--paper); border:2px solid rgba(0,0,0,.45); cursor:pointer;
}
.color-picker label > input:checked { box-shadow:0 0 0 2px #fff; }
.color-picker label > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.travel-stack { display:grid; gap:16px; }
.travel-card { overflow:hidden; border-radius:24px; }
.travel-card > summary {
  padding:16px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px;
  list-style:none; cursor:pointer; min-height:83px;
}
.travel-card > summary::-webkit-details-marker { display:none; }
.travel-card summary h2,.place-card h2 { font-size:clamp(18px,3vw,23px); line-height:1.13; overflow-wrap:anywhere; }
.travel-card summary p { color:var(--secondary); margin-top:6px; font-size:13px; overflow-wrap:anywhere; }
.pin-emblem,.trip-cover { display:grid; place-items:center; width:53px; height:53px; border:1px solid var(--glass-edge); border-radius:14px; }
.pin-emblem { background:rgba(255,255,255,.08); flex:none; }
.trip-cover { object-fit:cover; }
.travel-chevron { color:var(--secondary); display:flex; align-items:center; }
.travel-card[open] .travel-chevron { transform:rotate(90deg); }
.travel-details {
  padding:0 16px 16px; display:grid; gap:14px; font-size:14px; overflow-wrap:anywhere;
}
.travel-details h3 { font-size:16px; margin-bottom:5px; }
.travel-picture { margin:0; }
.travel-picture img { width:100%; height:clamp(170px,30vw,320px); object-fit:cover; border-radius:14px; }
.travel-credit { margin-top:4px; }
.trip-summary { font-size:15px; }
.research-status { color:var(--secondary); border-top:1px solid var(--line); padding-top:10px; }
.trip-costs,.trip-ideas,.showtimes-list { list-style:none; margin:12px 0 0; padding:0; }
.trip-costs li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; padding:9px 0; border-top:1px solid var(--line); }
.trip-costs strong { font-variant-numeric:tabular-nums; }
.trip-assumptions { color:var(--secondary); padding-left:20px; margin:0; }
.trip-ideas { display:grid; gap:12px; }
.trip-ideas li { display:flex; flex-wrap:wrap; gap:12px; border-top:1px solid var(--line); padding-top:12px; }
.trip-ideas li > div { flex:1 1 190px; }
.trip-ideas figure { width:140px; margin:0; }
.trip-ideas img { width:100%; height:83px; object-fit:cover; border-radius:8px; }
.trip-ideas .btn { overflow-wrap:anywhere; white-space:normal; display:inline; font-size:11px; border:none; padding:0; }
.trip-ideas p { color:var(--secondary); margin-top:4px; }
.trip-ideas a.map-link { display:inline-flex; margin-top:6px; min-height:30px; text-decoration:underline; text-underline-offset:3px; }
.trip-ideas a.map-link + a.map-link { margin-left:12px; }
.places-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:16px; }
.place-card { display:grid; gap:12px; align-content:start; }
.place-card-top { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; }
.place-event { display:flex; align-items:center; gap:8px; padding-block:8px; border-top:1px solid var(--line); font-size:14px; }
.place-event .icon { flex:none; width:18px; height:18px; }
.card-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.showtimes-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; }
.showtimes-form .form-error { grid-column:1/-1; }
.showtimes-list li { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:9px; border-bottom:1px solid var(--line); padding:10px 0; }
.toast {
  position:fixed; z-index:20; bottom:24px; left:50%; transform:translateX(-50%);
  width:max-content; max-width:min(calc(100% - 32px),530px); padding:9px 16px; border-radius:999px;
  background:#fff; color:#0b0b0d; box-shadow:0 8px 25px rgba(0,0,0,.35); font-size:14px; font-weight:640;
}
body:has(.app) .toast { bottom:calc(80px + env(safe-area-inset-bottom,0px)); }
.toast:empty { display:none; }
@keyframes sheet-in { from { opacity:0; transform:translateY(8px) scale(.97); } to { opacity:1; transform:none; } }

.map-wrap { position:relative; height:min(56svh,510px); min-height:300px; border-radius:24px; overflow:hidden; }
.map-canvas { position:absolute; inset:0; width:100%; height:100%; cursor:grab; touch-action:none; }
.map-canvas:active { cursor:grabbing; }
.map-pins { position:absolute; inset:0; pointer-events:none; }
.map-pin { pointer-events:auto; position:absolute; top:0; left:0; width:44px; height:44px; padding:2px; border:1px solid #fff; border-radius:10px; background:#2b292a; box-shadow:0 6px 12px rgba(0,0,0,.5); }
.map-pin img { height:100%; object-fit:cover; border-radius:7px; }
.map-actions { position:absolute; top:12px; right:12px; display:grid; gap:6px; }
.map-credit,.map-help { position:absolute; border-radius:9px; background:var(--glass-control); color:#fff; border:1px solid var(--glass-edge); box-shadow:var(--glass-shadow); }
.map-credit { bottom:8px; right:12px; padding:3px 6px; font-size:11px; }
.map-help { top:12px; left:12px; max-width:calc(100% - 76px); padding:5px 8px; font-size:13px; }
.location-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.location-list .btn { max-width:100%; white-space:normal; text-align:left; overflow-wrap:anywhere; }
.pin-count { position:absolute; top:-5px; right:-5px; padding:0 4px; min-width:18px; border-radius:99px; background:#fff; color:#0b0b0d; font-size:11px; }

.carpet-roll {
  position:fixed; z-index:-2; inset:0; isolation:isolate; pointer-events:none;
  contain:layout paint; will-change:transform,opacity; animation:carpet-lift .6s var(--ease) both;
}
.carpet-shade {
  position:absolute; inset:0; background:linear-gradient(rgba(8,8,10,.47),rgba(8,8,10,.47)),var(--rug) center 45% / cover no-repeat;
  animation:carpet-back .59s var(--ease) both;
}
.carpet-edge {
  position:absolute; left:0; right:0; bottom:0; height:48px;
  background:linear-gradient(180deg,transparent 4%,rgba(0,0,0,.09) 20%,rgba(255,255,255,.12) 34%,rgba(0,0,0,.72) 57%,rgba(0,0,0,.23) 72%,transparent 100%);
  transform-origin:bottom;
}
#shell.rug-arrive::before { animation:carpet-unroll .62s var(--ease) both; }
@keyframes carpet-lift { from { opacity:1; transform:none; } to { opacity:.15; transform:translate3d(0,-100%,0); } }
@keyframes carpet-back { from { transform:translate3d(0,0,0); } to { transform:translate3d(0,-6%,0); } }
@keyframes carpet-unroll { from { transform:translate3d(0,12px,0) scale(1.015); } to { transform:none; } }

@media (max-width:760px) {
  .wrap { width:calc(100% - 32px); }
  .topbar { min-height:64px; }
  main.wrap { padding-top:16px; }
  .page-heading { align-items:start; flex-wrap:wrap; margin-bottom:16px; }
  .page-heading p { font-size:15px; }
  .hero .page-heading { margin-bottom:8px; }
  .dashboard,.music-grid,.profile-grid { grid-template-columns:1fr; gap:16px; }
  .dashboard { margin-top:24px; }
  .panel { padding:16px; }
  .gallery-grid,.wall-grid { columns:2; column-gap:12px; }
  .photo-tile { margin-bottom:12px; }
  .photo-tile-meta { padding:6px 8px; }
  .invitation-panel { grid-template-columns:auto 1fr; align-items:start; }
  .invitation-panel > .btn { width:max-content; grid-column:2; }
  .dock-shelf { padding-top:6px; padding-inline:8px; padding-bottom:max(12px,env(safe-area-inset-bottom,0px)); }
  .nav-link { min-height:49px; }
  .tabs { row-gap:3px; border-radius:20px; }
  .tab { font-size:13px; padding-inline:10px; }
}
@media (max-width:420px) {
  .setup-row { flex-wrap:wrap; }
  .setup-row .row-main { flex-basis:calc(100% - 54px); }
  .setup-row > .btn,.setup-row > .setup-connected,.setup-row > .section-label { margin-left:52px; }
  .priority { font-size:12px; }
  .nav-link { font-size:10px; padding-inline:1px; }
  .product-photo { width:34px; height:34px; }
  .board-note { height:139px; }
}
@media (max-width:600px) {
  .rug-home { --rug:url('/assets/jacquard-mobile.webp'); }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
  .carpet-roll { display:none!important; }
}
@media (prefers-contrast:more) {
  :root { --secondary:#eee; --tertiary:#d9d9db; --glass-edge:rgba(255,255,255,.5); --glass:rgba(23,23,26,.88); }
  #shell::after,#shell.rug-music::after { background:rgba(8,8,10,.73); }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .glass-surface,.dock,.map-wrap { background:rgba(28,28,32,.91); }
}
@media (prefers-reduced-transparency:reduce) {
  .glass-surface,.dock,.map-wrap,dialog { background:#1c1c20; backdrop-filter:none; }
}
@media (prefers-contrast:more),(prefers-reduced-transparency:reduce) {
  .music-panel.glass-surface,.note.music-note { background:#211916; }
  .music-panel.glass-surface { -webkit-backdrop-filter:none; backdrop-filter:none; }
}

/* Shared game and large albums */
.crossword-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:18px; align-items:start; }
.crossword-sheet,.crossword-clues { min-width:0; border-radius:24px; padding:16px; }
.crossword-meta,.crossword-controls,.crossword-date,.crossword-status > div { display:flex; align-items:center; gap:8px; }
.crossword-meta,.crossword-controls,.crossword-status > div { justify-content:space-between; }
.crossword-date time { font-size:clamp(14px,2.4vw,16px); font-weight:650; }
.crossword-date .icon-button { width:36px; min-height:36px; }
.crossword-count { font-size:14px; color:var(--secondary); font-variant-numeric:tabular-nums; white-space:nowrap; }
.crossword-area { display:grid; justify-items:center; padding:16px 0; min-height:160px; }
.crossword-grid {
  display:grid; gap:2px; grid-template-columns:repeat(var(--cross-width,11),minmax(0,1fr));
  width:var(--cross-size,100%); max-width:540px; min-width:0;
}
.crossword-loading { min-height:150px; }
.cross-block { aspect-ratio:1; border-radius:4px; background:rgba(9,9,10,.64); }
.cross-cell { position:relative; min-width:0; aspect-ratio:1; display:block; min-height:0; border-radius:5px; background:#e9e9e6; color:#15151a; overflow:hidden; }
.cross-cell.cross-active { background:#c9dcd4; }
.cross-cell.cross-selected { background:#fff; box-shadow:inset 0 0 0 2px #4c7064; z-index:1; }
.cross-cell.cross-wrong { background:#f5c2a8; }
.cross-number { position:absolute; z-index:1; left:3px; top:2px; font-size:clamp(7px,1.55vw,10px); font-weight:700; line-height:1; pointer-events:none; }
.cross-letter { box-shadow:none; position:absolute; inset:0; width:100%; min-width:0; height:100%; padding:2px 0 0; border:0; border-radius:inherit; background:none;
  color:inherit; outline:0; text-align:center; font-size:clamp(16px,2.7vw,27px); font-weight:680; line-height:1; caret-color:#335246; }
.cross-letter:focus-visible { outline:0; }
.crossword-prompt { font-size:15px; line-height:1.35; min-height:3em; font-weight:620; }
.crossword-controls { flex-wrap:wrap; margin-top:8px; }
.crossword-controls label { display:grid; grid-template-columns:auto minmax(56px,1fr); flex:1 1 152px; max-width:225px; gap:10px; align-items:center; color:var(--secondary); font-size:13px; }
.crossword-controls .btn { flex:0 0 auto; }
.crossword-controls input[type=range] {
  width:100%; min-width:0; height:28px; margin:0; padding:0; border:0; background:transparent;
  accent-color:#e8d5ae; cursor:pointer;
}
.crossword-status { display:grid; gap:5px; margin-top:12px; }
.crossword-status progress { width:100%; height:5px; accent-color:#e8d5ae; }
.crossword-status > div { align-items:flex-start; font-size:12px; color:var(--secondary); font-variant-numeric:tabular-nums; }
.crossword-status > div > span:last-child { white-space:nowrap; }
.crossword-clues { display:grid; gap:18px; }
.crossword-clues h2,.gallery-month h2 { font-size:18px; font-weight:650; letter-spacing:-.02em; }
.crossword-clues ol { list-style:none; margin:4px 0 0; padding:0; }
.cross-clue { border-bottom:1px solid rgba(255,255,255,.10); }
.cross-clue:last-child { border-bottom:0; }
.cross-clue-button { display:grid; grid-template-columns:24px 1fr; gap:3px; width:100%; padding:8px 5px;
  min-height:36px; text-align:left; color:var(--secondary); background:none; border:0; border-radius:6px; font-size:14px; line-height:1.3; }
.cross-clue-button[aria-current=true] { color:#fff; background:rgba(255,255,255,.14); box-shadow:inset 0 1px rgba(255,255,255,.20); }
.cross-clue-no { font-variant-numeric:tabular-nums; font-weight:700; }
.cross-clue-source { display:inline-block; margin:0 0 5px 32px; color:var(--secondary); font-size:11px; }
.gallery-filter {
  width:fit-content; max-width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:end; gap:8px; margin:8px 0 16px; padding:0; border:0; background:none; box-shadow:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.gallery-filter label { display:grid; gap:4px; min-width:0; max-width:250px; }
.gallery-filter label > span:first-child { padding-inline:12px; color:var(--secondary); font-size:12px; }
.gallery-filter .glass-select-control { min-width:min(146px,100%); }
@media (max-width:480px) { .gallery-filter { width:100%; } }
.gallery-month+.gallery-month { margin-top:20px; }
.gallery-month h2 { margin:0 0 8px 4px; text-transform:capitalize; }
.gallery-more { margin-top:16px; display:flex; justify-content:center; }
.map-actions { z-index:2; }
.map-actions .icon-button { background:var(--glass-control); border-color:var(--glass-edge); box-shadow:var(--glass-shadow); }
.map-pin { width:44px; height:44px; }
.map-credit { z-index:3; text-decoration:none; }
@media (max-width:760px) {
  .crossword-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
  .crossword-sheet,.crossword-clues { padding:12px; }
  .crossword-area { padding:12px 0; }
  .crossword-status > div { gap:8px; }
  .nav-link { min-height:47px; }
  .nav-link .icon { width:18px; height:18px; }
  .map-wrap { height:44svh; }
}

.scanword-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
.scanword-layout .crossword-area {
  display:block; min-width:0; overflow-x:auto; min-height:160px; margin-top:12px; padding:0 0 8px;
  scrollbar-color:rgba(255,255,255,.3) transparent; scrollbar-width:thin;
}
.scanword-layout .crossword-grid {
  grid-template-columns:repeat(var(--cross-width,11),var(--scan-size,58px));
  width:max-content; max-width:none; margin-inline:auto; gap:2px; padding:3px;
  background:#a89c87; border:1px solid #d5c6ad; border-radius:7px; box-shadow:0 3px 10px #22190c40;
}
.scanword-layout .crossword-loading { width:100%; }
.scanword-layout .cross-cell { border-radius:2px; background:#ece8dd; }
.scanword-layout .cross-cell.cross-active { background:#e4d3a7; }
.scanword-layout .cross-cell.cross-selected { background:#fff6d4; box-shadow:inset 0 0 0 2px #866627; }
.scanword-layout .cross-cell.cross-wrong { background:#f4b799; }
.scanword-layout .cross-block { border-radius:2px; background:#685e50; }
.scanword-layout .crossword-prompt {
  margin:12px 0 0; min-height:46px; padding:10px 12px; border-radius:12px;
  background:var(--glass-control); color:#fff; font-size:15px;
  display:block; width:100%; text-align:start; border:1px solid var(--glass-edge); box-shadow:inset 0 1px #fff2;
}
.scanword-layout :is(.cross-cell,.cross-block,.scanword-cell-hint) { height:var(--scan-size,66px); aspect-ratio:1; }
.scanword-cell-hint {
  overflow:hidden; display:flex; flex-direction:column; min-width:0; border-radius:2px;
  background:#e5d4b8; color:#2b2219;
}
.scanword-question {
  overflow:hidden; position:relative; flex:1 1 0; display:block; width:100%; min-width:0; min-height:0; padding:2px 3px 10px;
  background:transparent; color:inherit; border:0; text-align:left;
  font-size:clamp(10.5px,calc(var(--scan-size)*.16),14px); line-height:1.15; font-weight:650;
}
.scanword-question+.scanword-question { border-top:1px solid #ab9776; }
.scanword-question:is(:hover,[aria-current=true],:focus-visible) { background:#f6e6c6; outline-offset:-2px; }
.scanword-question-text {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; hyphens:auto; overflow-wrap:anywhere;
}
.scanword-question:not(:only-child) .scanword-question-text { -webkit-line-clamp:2; }
.scanword-arrow { position:absolute; right:1px; bottom:0; min-width:11px; border-radius:3px 0 0 0; padding:1px 2px; background:#392519; color:#fff5da; text-align:center; font-size:10px; }
.crossword-clues summary { cursor:pointer; padding:4px; font-size:16px; font-weight:650; }
.scanword-clue-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:16px; }

.moments-list { display:grid; gap:16px; }
.moment-status { padding:16px; border-radius:24px; color:var(--secondary); }
.memory-card,.envelope-card { min-width:0; padding:16px; border-radius:24px; scroll-margin-block:12px; }
.memory-card:target,.envelope-card:target { border-color:#eed6af; }
.memory-card header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.memory-card h2,.envelope-card h2 { font-size:20px; letter-spacing:-.025em; font-weight:690; }
.memory-card header p,.envelope-summary p { margin:3px 0 0; color:var(--secondary); font-size:14px; }
.moment-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.memory-photos { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); gap:8px; }
.memory-photos .photo-tile {
  display:grid; grid-template-rows:minmax(0,1fr) auto; align-self:start; min-width:0; min-height:0; aspect-ratio:4/3;
}
.memory-photos .photo-tile img { display:block; min-height:0; height:100%; max-height:none; object-fit:cover; }
.envelope-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; }
.envelope-glyph { display:grid; place-items:center; width:50px; height:50px; border-radius:15px; color:#ffe6bf; background:#5a413196; border:1px solid #dcac7359; }
.envelope-glyph .icon { width:24px; height:24px; }
.envelope-seal { color:#ffe5bd; font-size:13px; }
.envelope-letter { margin:16px 0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.envelope-photo { margin-top:12px; }
@media (max-width:525px) {
  .scanword-clue-list { grid-template-columns:minmax(0,1fr); gap:16px; }
  .memory-photos { grid-template-columns:repeat(auto-fit,minmax(min(84px,100%),1fr)); }
  .envelope-card { gap:8px; padding:12px; }
  .envelope-card h2 { font-size:17px; }
  .envelope-summary p { font-size:12px; }
  .envelope-glyph { width:38px; height:38px; border-radius:12px; }
  .envelope-seal { font-size:11px; }
}

.scanword-layout .crossword-prompt:not(:disabled):hover { background-color:rgba(255,255,255,.16); }
.scanword-detail { width:min(calc(100% - 32px),530px); padding:22px; background:var(--glass-sheet); }
.scanword-detail header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.scanword-detail header span { color:var(--secondary); font-size:14px; font-variant-numeric:tabular-nums; }
.scanword-detail h2 { margin:12px 0 24px; font-size:clamp(22px,4vw,36px); letter-spacing:-.028em; line-height:1.2; text-wrap:pretty; }
@media (max-width:525px) {
  .scanword-detail { margin:auto auto max(16px,env(safe-area-inset-bottom)); width:calc(100% - 24px); padding:16px; }
  .scanword-detail > .btn { width:100%; }
}

.glass-select { display:block; min-width:0; }
.glass-select-control {
  display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-width:0; min-height:44px;
  padding:8px 14px; border:1px solid var(--glass-edge); border-radius:999px;
  background:var(--glass-control); color:#fff;
  box-shadow:var(--glass-shadow); text-align:start; font-size:14px; font-weight:580;
  transition:background .22s var(--ease),border-color .22s var(--ease);
}
.glass-select-control:is(:hover,[aria-expanded=true]) { border-color:#ffffff72; background-color:#ffffff18; }
.glass-select-control:disabled { opacity:.5; cursor:default; }
.glass-select-value { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.glass-select-control::after {
  content:""; flex:none; width:7px; height:7px; margin:-4px 2px 0 0;
  border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg);
  transition:transform .22s var(--ease); opacity:.8;
}
.glass-select-control[aria-expanded=true]::after { transform:translateY(3px) rotate(225deg); }
.glass-select-menu {
  position:fixed; inset:auto; margin:0; padding:5px; overflow:auto; overscroll-behavior:contain;
  border:1px solid var(--glass-edge); border-radius:18px; color:#fff; background:var(--glass-sheet);
  -webkit-backdrop-filter:var(--sheet-filter); backdrop-filter:var(--sheet-filter);
  box-shadow:var(--glass-shadow);
}
.glass-select-menu:popover-open { animation:glass-options-in .2s var(--ease) both; }
@keyframes glass-options-in { from { opacity:0; } to { opacity:1; } }
.glass-select-option {
  position:relative; min-height:41px; display:flex; align-items:center;
  padding:8px 32px 8px 12px; border-radius:12px; font-size:14px; line-height:1.28; overflow-wrap:anywhere; cursor:pointer;
}
.glass-select-option:is(:hover,.is-active) { background:#ffffff19; }
.glass-select-option[aria-selected=true] { color:#fff; font-weight:680; }
.glass-select-option[aria-selected=true]::after {
  content:""; position:absolute; inset-inline-end:15px; width:6px; height:11px; top:calc(50% - 7px);
  border:solid currentColor; border-width:0 1.7px 1.7px 0; transform:rotate(42deg);
}
.glass-select-option[aria-disabled=true] { opacity:.48; cursor:default; }
@media (prefers-reduced-transparency:reduce) { .glass-select-menu { background:#222226; backdrop-filter:none; } }

@media (max-width:640px) {
  .wall-frame-feature { border-radius:8px; }
}

.scanword-current { display:flex; align-items:center; gap:8px; margin-top:12px; }
.scanword-current .crossword-prompt { min-width:0; flex:1; margin:0; }
.scanword-current > .btn { flex:none; }
.scanword-layout .cross-cell[data-writer=grisha],.scanword-answer-letter[data-writer=grisha] { color:#174d79; }
.scanword-layout .cross-cell[data-writer=karina],.scanword-answer-letter[data-writer=karina] { color:#456013; }
.scanword-layout .cross-cell[data-writer] .cross-letter { font-weight:780; }
[data-cross-people] { display:flex; gap:10px; align-items:center; }
.scanword-player { display:inline-flex; gap:4px; align-items:center; }
.scanword-player::before { content:""; width:7px; height:7px; flex:none; border-radius:100%; background:#95c4ef; }
.scanword-player[data-writer=karina]::before { background:#bad793; }
.scanword-question.has-proposal::before {
  content:""; position:absolute; inset:auto auto 2px 3px; width:5px; height:5px; border-radius:100%;
  background:#fff0d4; box-shadow:0 0 0 1px #392519;
}
.scanword-answer { display:flex; flex-wrap:wrap; gap:4px; margin:-8px 0 16px; }
.scanword-answer-letter {
  display:grid; place-items:center; min-width:24px; min-height:30px; border-radius:6px; padding:2px 4px;
  color:#524e48; background:#ece8dd; font-weight:760;
}
.scanword-detail-actions,.scanword-version-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.scanword-version { margin-bottom:12px; padding:12px; border-radius:14px; border:1px solid #ffffff22; background:#ffffff0b; }
.scanword-version-label,.scanword-stale { margin:0; color:var(--secondary); font-size:13px; }
.scanword-version-word { display:block; margin:3px 0 8px; overflow-wrap:anywhere; letter-spacing:.075em; color:#95c4ef; }
.scanword-version-word[data-writer=karina] { color:#bad793; }
.scanword-stale { margin-bottom:8px; }
.scanword-alternative { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; margin-top:16px; }
@media (max-width:525px) {
  .scanword-detail-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scanword-detail-actions:has([data-clue-argue][hidden]) { grid-template-columns:1fr; }
  .scanword-current .crossword-prompt { font-size:13px; }
  .scanword-current > .btn { padding-inline:10px; font-size:13px; }
}

@media (max-width:525px) {
  .scanword-layout .crossword-controls label { flex-basis:125px; }
  .scanword-layout [data-cross-check] { padding-inline:11px; font-size:13px; }
}

.brand-name { font-size:clamp(15px,3.8vw,21px); white-space:normal; line-height:1.04; text-wrap:balance; }
.brand { min-width:0; }
.brand-mark,.profile { flex:none; }
[data-gallery-refresh] { margin:0 0 12px; }
@media (max-width:480px) { .topbar { gap:8px; } .brand { gap:8px; } .profile { padding-right:10px; } }

.wall-slot-primary { z-index:1; }
.wall-nail {
  position:absolute; z-index:2; left:50%; top:5px; width:8px; height:8px; border-radius:50%;
  display:none; pointer-events:none; transform:translateX(-50%);
  background:radial-gradient(circle at 34% 28%,#fff5d4,#d6a86a 40%,#795135 76%,#3e2d22);
  box-shadow:0 1px 2px #160e0b,0 0 0 1px #ffffff38;
}
.wall-frame[data-pinned]:not([data-nailing]) .wall-nail { display:block; }
.wall-view-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; align-items:center; }
.wall-viewer-pinned .dialog-top h2::after { content:" · прибито"; color:#e4c393; font-weight:550; }
.wall-viewer .wall-view-actions .btn { padding-inline:12px; }
.wall-view-feedback { flex:0 0 100%; color:#ffd6b5; margin:0; text-align:center; font-size:13px; }
.wall-workshop { position:fixed; z-index:30; inset:0; pointer-events:none; overflow:hidden; }
.wall-workshop .wall-flight-frame { position:absolute; margin:0; z-index:2; pointer-events:none; }
.wall-acting-nail {
  position:absolute; z-index:4; width:12px; height:12px; margin:-6px 0 0 -6px; opacity:0;
}
.wall-nail-shank {
  position:absolute; width:3px; height:13px; left:5px; top:5px; border-radius:0 0 50% 50%;
  background:linear-gradient(90deg,#40392e,#b3a68e,#ede3ca,#534c42);
}
.wall-nail-cap {
  position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(circle at 34% 26%,#fff6d8,#dcb179 42%,#9b7955 67%,#433228);
  border:1px solid #e6d1a996; box-shadow:0 2px 3px #000b;
}
.wall-strike {
  position:absolute; z-index:3; width:31px; height:31px; margin:-15px 0 0 -15px; border-radius:50%; opacity:0;
  background:radial-gradient(circle,#fffbe9b0 0,#e5b47446 25%,#efc68b00 70%);
}
.wall-acting-tool {
  position:absolute; z-index:5; display:block; width:191px; height:177px; margin:-62px 0 0 -33px;
  transform-origin:33px 62px; opacity:0; filter:drop-shadow(4px 10px 6px #000a);
}
.wall-tool-art { display:block; position:absolute; inset:0; transform-origin:33px 62px; }
.wall-tool-mirrored { transform:scaleX(-1); }
.wall-tool-handle,.wall-tool-head,.wall-tool-grip,.wall-tool-facet,.wall-tool-rivet { position:absolute; display:block; }
.wall-tool-hammer .wall-tool-handle {
  left:85px; top:55px; width:22px; height:112px; transform:rotate(-14deg); transform-origin:50% 9px;
  border:1px solid #513624; border-radius:7px 7px 49% 45% / 8px 8px 14px 14px;
  background:repeating-linear-gradient(169deg,transparent 0 4px,#79360d48 5px 6px,transparent 8px 13px),
    linear-gradient(90deg,#674027 2%,#9d623a 20%,#e0b07b 47%,#bd8555 68%,#5f3927 100%);
  box-shadow:inset 1px 0 0 #f4cba3a0,inset -2px 0 3px #392418;
}
.wall-tool-hammer .wall-tool-grip {
  left:102px; top:132px; width:27px; height:34px; transform:rotate(-14deg);
  border-radius:5px 5px 12px 12px; border:1px solid #231b16;
  background:repeating-linear-gradient(168deg,transparent 0 5px,#14100db0 6px 7px,transparent 8px 10px),
    linear-gradient(90deg,#30211a,#5e4937 50%,#1f1815);
  box-shadow:inset 1px 1px 1px #e6ad7d5c;
}
.wall-tool-hammer .wall-tool-head {
  left:29px; top:43px; width:135px; height:38px;
  clip-path:polygon(0 10%,14% 0,23% 22%,44% 15%,65% 4%,78% 6%,94% 29%,100% 80%,92% 70%,79% 43%,70% 41%,64% 77%,40% 91%,23% 79%,14% 100%,0 87%);
  background:repeating-linear-gradient(164deg,transparent 0 4px,#ccd9e21c 5px 6px,transparent 7px 12px),
    linear-gradient(177deg,#e1e6e1 0%,#a7b3b0 15%,#485758 37%,#708587 55%,#283b3e 83%,#679092 100%);
}
.wall-tool-hammer .wall-tool-facet {
  left:27px; top:44px; width:15px; height:36px; border-radius:40%;
  border:1px solid #ced8d6;
  background:linear-gradient(165deg,#e9e9dc,#aabbb5 25%,#546d70 68%,#253b3e 88%);
  box-shadow:inset 1px 0 1px #f6f7e9,1px 0 3px #bde0dc77;
}
.wall-tool-hammer .wall-tool-rivet {
  left:92px; top:54px; width:9px; height:9px; border:1px solid #acbaba93; border-radius:100%;
  background:radial-gradient(circle at 34% 25%,#d1d9cc,#788a81 43%,#344b45 90%);
}
.wall-tool-puller .wall-tool-handle {
  left:54px; top:55px; width:124px; height:16px; transform:rotate(-28deg); transform-origin:0 50%;
  border-radius:3px 11px 11px 3px; border:1px solid #1e312f;
  background:linear-gradient(180deg,#b2bdb3 3%,#93ad9a 20%,#53776b 33%,#37564f 51%,#263d3d 72%,#718c81 97%);
  box-shadow:inset 0 1px 1px #e4e6d5bd,inset 0 -2px 2px #151e1c;
}
.wall-tool-puller .wall-tool-grip {
  left:121px; top:12px; width:48px; height:17px; transform:rotate(-28deg);
  border-radius:6px; border:1px solid #192b25;
  background:repeating-linear-gradient(90deg,#31342d19 0 4px,#273a3580 5px 6px),linear-gradient(180deg,#7a8772,#41594b 48%,#263d35);
}
.wall-tool-puller .wall-tool-head {
  left:25px; top:40px; width:64px; height:42px;
  clip-path:polygon(0 58%,19% 55%,3% 35%,13% 22%,34% 48%,49% 29%,65% 9%,92% 0,100% 27%,84% 48%,64% 83%,33% 100%,16% 83%);
  background:repeating-linear-gradient(152deg,transparent 0 4px,#c7e4d039 5px 6px,transparent 7px 10px),
    linear-gradient(155deg,#d0d5bb,#79998d 38%,#e3e1c9 52%,#466662 66%,#253f3b 84%,#879c8f);
}
.wall-tool-puller .wall-tool-facet {
  left:28px; top:51px; width:22px; height:20px;
  clip-path:polygon(0 0,100% 75%,73% 98%,46% 65%,0 32%);
  background:linear-gradient(145deg,#f6ead1,#c8d3c3 58%,#53756a);
}
.wall-tool-puller .wall-tool-rivet {
  left:65px; top:54px; width:8px; height:8px; border-radius:100%; border:1px solid #e2bc8e87;
  background:radial-gradient(circle at 34% 26%,#eed9ae,#b38954 50%,#795d42 90%);
}
@media (max-width:640px) {
  .wall-acting-tool { scale:.84; }
  .wall-viewer footer { gap:6px; }
  .wall-viewer footer .icon-button { width:44px; }
}

.wall-toolbar,.wall-viewer footer,.wall-arrange .dialog-top,.wall-editor-footer {
  color:#fff; border:1px solid var(--glass-edge); background:var(--glass-control); box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--control-filter); backdrop-filter:var(--control-filter);
}
.wall-viewer footer {
  justify-content:space-between; width:min(100%,800px); margin-inline:auto; padding:6px; border-radius:24px;
}
.wall-viewer .wall-view-navigation { padding-inline:2px; }
.wall-viewer .wall-view-actions { padding-right:2px; }
.wall-viewer .wall-view-actions .btn,.wall-viewer footer .icon-button { min-height:44px; }
.wall-viewer .wall-view-actions .btn.glass,.wall-editor-controls .btn.glass,.wall-toolbar .btn.glass {
  background:radial-gradient(ellipse at 42% 3%,rgba(255,255,255,.14),transparent 77%),rgba(18,18,21,.24);
}
.wall-viewer .wall-view-actions .btn.glass:hover,.wall-editor-controls .btn.glass:hover,.wall-toolbar .btn.glass:hover {
  background-color:rgba(255,255,255,.13);
}

dialog.wall-arrange.wide {
  position:fixed; inset:0; margin:0; width:100%; height:100%; max-width:none; max-height:none;
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  border:0; border-radius:0; overflow:hidden; background:#171418; box-shadow:none; isolation:isolate; -webkit-backdrop-filter:none; backdrop-filter:none;
}
dialog.wall-arrange[open] {
  display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:8px;
  animation:wall-arrange-in .26s var(--ease) both;
}
dialog.wall-arrange::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:
    linear-gradient(180deg,rgba(13,11,14,.62),rgba(17,14,15,.36) 38%,rgba(15,13,16,.68)),
    var(--editor-rug) center / cover;
}
@keyframes wall-arrange-in { from {opacity:0;} to {opacity:1;} }
.wall-arrange .dialog-top,.wall-editor-footer {
  width:min(100%,1100px); margin:0 auto; padding:6px 6px 6px 16px; border-radius:22px;
}
.wall-arrange .dialog-top h2 { font-size:clamp(20px,3vw,28px); }
.wall-arrange .dialog-top .icon-button,.wall-editor-footer .btn { min-height:44px; }
.wall-editor-scroll {
  min-height:0; min-width:0; display:flex; flex-direction:column; overflow:auto;
  overscroll-behavior:contain; scrollbar-width:thin;
}
.wall-editor-canvas {
  position:relative; isolation:isolate; flex:none; margin:auto; width:min(100%,calc((100dvh - 185px)*1.33333),1100px);
  aspect-ratio:4/3; border-radius:14px; overflow:hidden;
  background:linear-gradient(#14111325,#16121848),var(--editor-rug) center / cover;
  box-shadow:inset 0 0 0 1px var(--glass-edge),0 12px 40px #100a0d44;
}
.wall-editor-scroll[data-zoom] .wall-editor-canvas { width:200%; }
.wall-editor-photo {
  position:absolute; inset:0 auto auto 0; display:grid; place-items:center;
  padding:0; border:0; border-radius:4px; background:none; cursor:grab; touch-action:none;
}
.wall-editor-photo > .wall-frame {
  width:100%; height:100%; pointer-events:none; transition:transform .2s var(--ease);
}
.wall-editor-photo[aria-pressed=true] > .wall-frame { outline:2px solid #f6e4bc; outline-offset:2px; }
.wall-editor-photo[data-held] { cursor:grabbing; z-index:2; }
.wall-editor-photo[data-held] > .wall-frame { transform:scale(1.025) rotate(-.5deg); box-shadow:0 12px 22px #140b0abd; }
.wall-guide { position:absolute; top:0; left:0; z-index:3; pointer-events:none; background:#ffedd4; box-shadow:0 0 3px #241810; }
.guide-x { width:1px; height:100%; }
.guide-y { height:1px; width:100%; }
.wall-editor-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.wall-editor-footer p { max-width:48ch; font-size:14px; line-height:1.26; color:#f1ece7; }
.wall-editor-controls { display:flex; justify-content:end; align-items:center; gap:6px; flex-wrap:wrap; flex:none; }
@media (max-width:770px) {
  .wall-editor-footer { align-items:flex-start; flex-direction:column; gap:4px; padding:8px; }
  .wall-editor-footer p { padding:3px 7px; min-height:2.45em; }
  .wall-editor-controls { align-self:stretch; }
}
@media (max-width:560px) {
  .wall-viewer footer { flex-direction:column; justify-content:center; padding:5px; gap:5px; }
  .wall-viewer .wall-view-actions,.wall-viewer .wall-view-navigation { justify-content:center; gap:4px; }
  .wall-viewer .wall-view-actions .btn { padding-inline:9px; }
}
@media (max-width:345px) {
  .wall-editor-controls .btn,.wall-viewer .wall-view-actions .btn { font-size:13px; }
  .wall-viewer .wall-view-actions .btn .icon { display:none; }
}
@media (prefers-reduced-transparency:reduce) {
  .wall-toolbar,.wall-viewer footer,.wall-arrange .dialog-top,.wall-editor-footer { background:#282427; -webkit-backdrop-filter:none; backdrop-filter:none; }
}

.wall-actions {
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:clamp(16px,3vw,32px) 0 8px;
}
.wall-edit-control {
  display:inline-flex; align-items:center; gap:9px; justify-content:center;
  min-height:44px; padding:4px 15px 4px 5px;
  border:1px solid rgba(255,255,255,.24); border-radius:999px;
  color:#fff; font:inherit; font-size:14px; font-weight:610;
  background:var(--glass-control); box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--control-filter); backdrop-filter:var(--control-filter);
  cursor:pointer; transition:transform .28s var(--ease), border-color .2s, box-shadow .22s;
}
.wall-edit-mark {
  display:grid; place-items:center; width:33px; height:33px; border-radius:50%;
  border:1px solid #ffffff27; background:radial-gradient(circle at 34% 18%,#fff4,#ffffff09 68%);
  box-shadow:inset 0 1px 0 #ffffff22;
}
.wall-edit-mark .icon { width:17px; height:17px; }
@media (hover:hover) {
  .wall-edit-control:hover { border-color:#ffffff75; box-shadow:inset 0 1px 0 #fff8,0 6px 26px #0006; transform:translateY(-1px); }
}
.wall-edit-control:active { transform:scale(.97); }
.photo-preview-stage { position:relative; isolation:isolate; display:grid; place-items:center; overflow:hidden; }
.photo-preview-stage img,.photo-preview-stage canvas {
  display:block; width:100%; height:100%; min-width:0; min-height:0;
  object-fit:contain; user-select:none;
}
.photo-preview-stage .photo-preview-sharp { position:absolute; inset:0; opacity:0; pointer-events:none; }
.photo-detail-stage { height:min(60svh,650px); background:#111114; border:1px solid var(--glass-edge); border-radius:12px; }
.photo-detail-meta { padding-block-start:12px; }
@media (prefers-reduced-motion:reduce) {
  .wall-edit-control { transition:none; }
}

/* Only full-screen wall tools completely cover the underlying glass. */
body:has(dialog:is(.wall-viewer,.wall-arrange):modal) #shell { --surface-filter:none; --control-filter:none; }
.map-actions .icon-button,.map-help,.map-credit,.glass-select-control,.tabs {
  -webkit-backdrop-filter:var(--control-filter); backdrop-filter:var(--control-filter);
}
.glass-surface,.dock,.dock-more,.photo-tile-meta,.glass-select-menu,dialog {
  text-shadow:0 1px 2px rgb(0 0 0 / .48);
}
.btn:not(.glass,.secondary,.subtle,.danger),.check[aria-pressed=true],.comment-button > span,.pin-count,
.board-note,.cross-cell,.scanword-cell-hint,.scanword-answer-letter,.toast,.skip { text-shadow:none; }
@media (max-width:760px) {
  :root { --surface-filter:blur(18px) saturate(180%) brightness(1.06);
    --control-filter:blur(22px) saturate(195%) brightness(1.1); --sheet-filter:blur(24px) saturate(185%) brightness(1.05); }
  .dock-more { bottom:calc(max(12px,env(safe-area-inset-bottom)) + 65px); }
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  :root { --glass:#302c2c; --glass-control:#302d2e; --glass-sheet:#252223; --surface-filter:none; --control-filter:none; --sheet-filter:none; }
  dialog::backdrop { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
