:root {
  --dock-height: 68px;
  --dock-safe: env(safe-area-inset-bottom, 0px);
  --dock-space: calc(var(--dock-height) + var(--dock-safe));
}
body { padding-bottom: var(--dock-space); }
body:has(dialog[open]) { overflow: hidden; }
body:has(dialog[open]:not(#createSheet)) #navDock { display: none; }

.on-wall #wall {
  height: auto;
  min-height: 0;
  grid-template-rows: none;
  grid-auto-rows: clamp(230px, calc((100svh - var(--dock-space)) / 2), 540px);
  gap: 3px;
  padding: 0;
}
.on-wall #wall .wall-card { height: auto; order: 0; grid-column: auto; }
.on-wall #wall .wall-card:not(:first-child)::after { content: none; }
.on-wall #wall .wall-card:not(:first-child) .photo-fan { top: 10px; }
.on-wall #wall .wall-card:first-child .photo-fan { top: auto; bottom: 8px; }
@media (min-width:731px) {
  .on-wall #wall .wall-card:last-child:nth-child(3n + 1) { grid-column: span 3; }
  .on-wall #wall .wall-card:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (max-width:730px) {
  .on-wall #wall { grid-auto-rows: clamp(145px, max(45vw, calc((100svh - var(--dock-space) - 6px) / 3)), 290px); gap: 2px; }
  .on-wall #wall .wall-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  padding: 0 max(4px,env(safe-area-inset-right)) var(--dock-safe) max(4px,env(safe-area-inset-left));
  background: #002e34;
  box-shadow: 0 -1px 0 #ffffff20;
  color: #fff6ea;
  font-family: Rubik, sans-serif;
}
.nav-items { margin: auto; max-width: 760px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: end; }
.bottom-nav :is(a,button) {
  display: flex; flex-direction: column; align-items: center; justify-content: end;
  gap: 4px; height: var(--dock-height); padding: 0 1px 7px;
  border: 0; background: none; color: #fff6ea; text-decoration: none;
  font: 650 14px/1.1 Rubik, sans-serif;
}
.bottom-nav svg, #createSheet button > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav i {
  width: 47px; height: 47px; display: grid; place-items: center; flex: none;
  border-radius: 50%; background: #ff584e; color: #fffaf1;
}
#openCreate i svg { width: 25px; height: 25px; stroke-width: 3.5; }
.bottom-nav a[aria-current="page"], .bottom-nav #openCreate[aria-expanded="true"] { color: #0bedd8; }
#createSheet .bottom-nav a[aria-current] { color: #fff6ea; }
.bottom-nav :is(a,button):focus-visible, #createSheet button:focus-visible { outline: 2px solid #81ffec; outline-offset: -3px; border-radius: 7px; }
.discovery-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0; }
.discovery-links a { color: #81f6e1; }

#createSheet {
  position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: none;
  max-height: 96dvh; padding: 0; border: 0; border-radius: 0; color: #fff4e6;
  overflow: visible; background: transparent; box-shadow: none;
  font-family: Rubik,sans-serif;
}
#createSheet::backdrop { background: rgb(3 9 14 / 53%); }
#createSheet .bottom-nav { position: relative; }
.create-panel {
  --art-size: clamp(49px,15vw,66px);
  margin: 0 auto; max-width: 620px; max-height: calc(93dvh - var(--dock-space));
  overflow-y: auto; overscroll-behavior: contain; padding: 6px clamp(14px,4vw,24px) 8px;
  border: 1px solid #493947; border-bottom: 0; border-radius: 23px 23px 0 0;
  background: linear-gradient(135deg,#201522,#161019 68%,#241623);
}
.create-panel::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; margin: 1px auto 2px; background: #a3949e; }
.create-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin: 7px 0 3px; }
.create-heading h2 { font:700 clamp(43px,11vw,61px)/1.03 Rubik,sans-serif; text-transform:none; color: #ff665a; margin: 0; }
#createSheet button { cursor: pointer; }
:root:not(.nav-keyboard) #closeCreate:focus { outline: none; }
#closeCreate { display:grid; place-items:center; width:44px; height:44px; background:none; color:inherit; }
.wall-outro {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 24px; padding: 22px 16px; background: #07282c;
}
.wall-outro[hidden] { display: none; }
#wall:empty + .wall-outro { min-height: 45svh; padding-top: 96px; align-content: center; }
.wall-record, .wall-round { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.wall-record { padding: 0 18px; border-radius: 24px; background: #fff4e6; color: #14282d; font-weight: 700; }
.wall-record img { width: 22px; height: 22px; }
.wall-round { flex-wrap: wrap; justify-content: center; color: #fff4e6; }
.wall-round strong { color: #83f9e3; }
#accountDialog h2 { font:700 clamp(32px,7vw,46px)/1 Rubik,sans-serif; overflow-wrap: anywhere; }
.create-choice, .create-record {
  width: 100%; display: grid; align-items: center; text-align: start;
  grid-template-columns: var(--art-size) minmax(0,1fr) 20px; gap: 10px 12px;
  padding: 9px 0; border: 0; background: none; color: inherit; font: inherit;
}
.create-choice { border-top: 1px solid #50444d; }
.create-panel strong { display: block; color: #fff4e6; font: 700 clamp(19px,5.2vw,24px)/1.15 Rubik,sans-serif; letter-spacing:-.035em; }
.create-choice small { display:block; color:#e4d6dc; margin-top:4px; font: 500 clamp(12px,3.3vw,15px)/1.2 Rubik,sans-serif; }
.create-art { width:var(--art-size); height:var(--art-size); border-radius:8px; overflow:hidden; display:grid; place-items:center; }
.wave-art { background:#061215; color:#0ce4cc; }
.wave-art svg { width:82%; height:70%; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; }
.vinyl-art { background:radial-gradient(circle at 42% 55%, #251323 0 3%, #ffe2a9 4% 15%, transparent 16%),repeating-radial-gradient(circle at 42% 55%, #f444a7 0 2px,#d62894 3px 4px); }
.wig-art { background:radial-gradient(at 50% 15%,#9767e4,#322460); }
.wig-art img { width:100%; height:100%; object-fit:contain; }
.create-record { position: relative; grid-template-columns:var(--art-size) minmax(0,1fr); grid-template-rows:auto auto; gap:0 12px; }
.create-record .wave-art { grid-row:span 2; }
.create-record-action { grid-column:2; align-self:end; background:none; color:inherit; display:flex; align-items:center; justify-content:space-between; gap:4px; padding:7px 0 2px; text-align:start; }
.create-record-action::before { content:""; position:absolute; inset:0; }
#createSheet .create-panel button > svg { width:18px; height:18px; }
.quick-voices { position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:start; width:fit-content; }
.quick-voices button { border:0; padding:6px 7px; min-height:30px; background:none; color:#eee1e6; font:500 clamp(12px,3.1vw,14px)/1.15 Rubik,sans-serif; }
.quick-voices button:first-child { padding-left:0; }
.quick-voices button + button { background:linear-gradient(#74636f,#74636f) no-repeat left center/1px 11px; }
@media (max-height:440px) { :root { --dock-height:56px; } .bottom-nav i { height:37px; width:37px; } .create-panel { --art-size:46px; } }

.on-wall #wall .wall-card:first-child .photo-fan { top: 10px; bottom: auto; }

#profilePage .artist-disclosure, .clip-caption .artist-disclosure, .desc .artist-disclosure, .wall-caption .artist-disclosure, .share-cover .artist-disclosure {
  display: block; margin: 2px 0 3px; font: 500 12px/1.3 Rubik,sans-serif;
  letter-spacing: .01em; color: #c6ced0;
}
.clip-caption .artist-disclosure { color: #f4efef; text-shadow: 0 1px 3px #141217; }
.artist-disclosure[hidden] { display: none !important; }

img.verified-mark { display:inline-block; width:.85em; height:.85em; min-width:14px; min-height:14px; max-width:24px; max-height:24px; margin-inline-start:.27em; vertical-align:-.02em; object-fit:contain; border:0; border-radius:0; }

#openCreate:focus, #createSheet #openCreate:focus { outline: none; box-shadow:none; }
#openCreate { -webkit-tap-highlight-color: transparent; }
.nav-keyboard #openCreate:focus-visible i { outline:3px solid #a3fff1;outline-offset:3px; }
body:has(dialog[open]:not(#createSheet)) #createSheet { visibility:hidden; }
.create-heading h2 { flex:1; }
#createBack, #closeCreate { border:0;background:none;color:inherit;min-width:44px;min-height:44px;display:grid;place-items:center; }
#createBack svg { transform:rotate(180deg); }
#createSheet [hidden] { display:none; }
.create-panel { padding-bottom:16px; }
.studio-record { width:100%;min-height:58px;display:flex;gap:12px;align-items:center;padding:12px 16px;border:0;border-radius:12px;
  text-align:left;font:inherit;color:#241520;background:#ff796e; }
.create-panel .studio-record strong {color:inherit; font-size:clamp(20px,5vw,25px);}
.studio-record i { flex:none;width:23px;height:23px;border:2px solid currentColor;border-radius:50%;background:currentColor;box-shadow:inset 0 0 0 4px #ff796e; }
.studio-record > svg {margin-left:auto;}
.studio-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px;}
.studio-tile {display:flex;align-items:center;gap:9px;min-width:0;min-height:62px;border:0;border-radius:9px;padding:6px;text-align:left;color:inherit;background:#322533;}
.create-panel .studio-tile strong {font-size:clamp(15px,4vw,20px);letter-spacing:-.035em;}
.create-panel small {display:block;font:500 clamp(11px,2.9vw,14px)/1.25 Rubik,sans-serif;margin-top:3px;}
.studio-tile small {color:#e5d2de;}
.studio-art {display:grid;place-items:center;flex:none;width:clamp(31px,9vw,48px);aspect-ratio:1;overflow:hidden;border-radius:7px;background:#432e52;color:#ffb7ce;}
.studio-art img,.studio-art i,.studio-art svg {display:block;width:100%;height:100%;object-fit:cover;}
#dressUp .studio-art img {object-fit:contain;}
#startDuet .studio-art svg {width:85%;fill:none;stroke:currentColor;stroke-width:2.6;}
#createVoicePads {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0;}
#createVoicePads button,#duetSources button {min-height:44px;text-align:left;border:0;border-radius:6px;background:#362637;color:#fff4e6;padding:8px 12px;}
#createVoicePads [aria-pressed="true"] {background:#86f5dd;color:#102b2a;}
#voicePreviewStatus:empty {display:none;}
#createDuets h3 {margin:16px 0 6px;}
#duetSources {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;}
#duetSources button {display:flex;align-items:center;gap:8px;padding:5px;}
#duetSources img {width:36px;height:42px;object-fit:cover;border-radius:4px;}
#duetSources strong {font-size:14px;}
#duetSources small {font-size:12px;}
#photoBoothDialog {inset:0;margin:auto;padding:0;border:0;width:min(100%,760px);height:100dvh;max-height:100dvh;border-radius:0;background:#17131c;color:#fff4e6;}
#photoBoothDialog[open] {display:flex;flex-direction:column;}
#photoBoothDialog .create-heading {flex:none;margin:0;padding:8px 14px;}
#photoBoothTitle {font-size:32px;}
#boothMount {flex:1;min-height:0;}
#boothMount iframe {display:block;width:100%;height:100%;border:0;}
#portraitDialog {border:0;background:#201721;color:#fff4ea;border-radius:18px;padding:0;}
#portraitDialog .modal-head {padding:14px 16px 8px;}
#avatarTitle {font:700 clamp(32px,8vw,45px)/1 Rubik,sans-serif;text-transform:none;letter-spacing:0;color:#ff8276;}
#portraitDialog .avatar-art {background:#17121a;height:auto;max-height:none;}
.avatar-art #portraitImage {width:100%;height:min(36dvh,320px);object-fit:contain;}
#portraitDialog .avatar-actions button:not(.primary),#portraitDialog .photo-file {background:#392a3c;border:0;}
#portraitDescription {margin:4px 0 12px;color:#e5d6df;}
#portraitDialog #avatarStatus:empty {display:none;}
.profile-picture-wrap {position:relative;flex:none;align-self:start;}
#changePicture {position:absolute;inset:0;border:0;border-radius:50%;background:transparent;cursor:pointer;}
#changePicture svg {width:29px;height:29px;position:absolute;right:0;bottom:0;border-radius:50%;background:#201721;padding:5px;fill:none;stroke:#fff4ea;stroke-width:1.8;}
#pictureDialog {width:min(430px,96vw);padding:0;background:#201721;color:#fff4ea;border:0;border-radius:16px;}
#pictureDialog .modal-head {display:flex;align-items:center;justify-content:space-between;padding:12px 18px;}
#pictureTitle {margin:0;font:700 36px/1 Rubik,sans-serif;text-transform:none;}
#pictureDialog canvas {display:block;width:min(58vw,240px);height:auto;border-radius:50%;margin:0 auto 16px;}
#pictureDialog [hidden],.picture-camera :is(#camTime,#liveVoiceRack,#monitorControl,#camExample) {display:none!important;}
#pictureDialog .modal-body {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:14px 18px 20px;}
#pictureDialog .photo-file,#pictureDialog #pictureCamera {box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:48px;margin:0;padding:12px 16px;border-radius:10px;font:650 16px/1.25 Rubik,sans-serif;text-align:left;}
#pictureDialog .photo-file input {height:100%;margin:0;}
#pictureDialog .photo-file:focus-within {outline:2px solid #97ffea;outline-offset:2px;}
#pictureDialog canvas {margin-bottom:0;}
#pictureStatus {margin:0;}
#pictureStatus:empty {display:none;}
.portrait-progress-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
#portraitElapsed {font-variant-numeric:tabular-nums;color:#bdc8c9;}
#portraitMeter {display:block;width:100%;height:8px;margin:12px 0;accent-color:#83f0d7;}
#removePicture {justify-self:start;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#ffa59e;font:650 15px/1.2 Rubik,sans-serif;}
#outfitDrawer.live-drag header {display:flex;}
#outfitDrawer.live-drag header .close {width:auto;min-width:64px;padding:0 16px;border:0;border-radius:24px;background:#73f1cf;color:#092a28;font:700 15px/1 Rubik,sans-serif;}
#outfitDrawer.live-drag .outfit-foot {display:none;}
#outfitDrawer.live-drag .outfit-body {padding-bottom:max(10px,env(safe-area-inset-bottom));}
@media(max-height:560px){#outfitDrawer.live-drag {max-height:min(80dvh,300px);}}
#pictureCamera,#editPicture {border:0;border-radius:8px;padding:12px;background:#392a3c;color:#fff4ea;min-height:44px;}
#entry .take-tools {grid-template-columns:repeat(4,minmax(0,1fr));}
#entry .take-tools button {gap:4px;}
#captionDialog {max-height:92dvh;width:min(420px,96vw);padding:14px;background:#201721;color:#fff4ea;border:0;border-radius:14px;}
#captionDialog .modal-head {display:flex;justify-content:space-between;align-items:center;}
#captionHeading {font:700 36px/1 Rubik,sans-serif;margin:0;text-transform:none;}
#captionDialog textarea,#captionPlayer {width:100%;}#captionPlayer {max-height:24dvh;}
#captionDialog button {min-height:42px;}
#reviewSubtitle {position:absolute;bottom:12%;left:6%;right:6%;z-index:2;text-align:center;color:white;font-weight:700;text-shadow:0 1px 3px black,0 0 5px black;pointer-events:none;}
#fitPanel {margin:10px 0 4px;padding:8px 16px;min-height:44px;border:1px solid #76dfcf;border-radius:24px;background:transparent;color:#a5fff1;font-weight:700;}
#fitPanel[hidden] {display:none;}
#fitDialog {box-sizing:border-box;width:min(100vw,480px);max-height:96dvh;padding:12px 14px max(14px,env(safe-area-inset-bottom));border:0;border-radius:18px;background:#0c2024;color:#fff5e8;}
#fitDialog::backdrop {background:#051217d9;}
#fitDialog header {display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;}
#fitDialog h2 {margin:0;font:700 30px/1 Rubik,sans-serif;text-transform:none;}
#fitDone {min-height:44px;padding:0 18px;border:0;border-radius:24px;background:#8af5dc;color:#103432;font-weight:700;}
#fitCanvas {display:block;width:100%;height:min(48dvh,440px);border-radius:12px;background:#061719;object-fit:contain;touch-action:none;cursor:grab;}
#fitCanvas:active {cursor:grabbing;}
#fitCanvas.front {transform:scaleX(-1);}
#fitHint {font-size:14px;min-height:1.3em;margin:8px 0 12px;}
.fit-sliders {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;}
.fit-sliders label {font-size:12px;display:grid;gap:4px;}
.fit-sliders input {width:100%;accent-color:#78f1d5;}
.fit-sliders button {align-self:end;color:#fff5e8;background:#244248;border:0;border-radius:6px;min-height:36px;}
