/* The classic look's page components, COPIED from site.css for the stage look (see
   web/redesign/.scratch/extract_parts.py). The stage retunes them through tokens and stage-pages.css. */

.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 7px; }
.panel { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px; overflow: hidden; }
.panel.washed { background: linear-gradient(180deg, var(--wash), rgba(255, 107, 107, 0) 120px), var(--panel); }

/* a setting card, as in the app: glyph, title and description, then a control or a picture */
.set { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 13px 16px; min-height: 66px; margin-bottom: 4px; }
.set > .i { width: 20px; height: 20px; justify-self: center; color: var(--text); }
.set b { display: block; font-weight: 400; font-size: 14px; }
.set span.d { display: block; font-size: 12.5px; color: var(--text-2); }
.set .ctl { justify-self: end; display: flex; gap: 8px; align-items: center; }
.set.media { grid-template-columns: 28px minmax(0, 1fr); }
.set.media .shot { grid-column: 2; margin-top: 10px; }
.group { margin: 0 0 30px; }
.group-title { font: 600 14px var(--f-text); margin: 0 0 8px 2px; }

/* the app's toggle switch */
.toggle { position: relative; width: 40px; height: 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .63); background: rgba(255, 255, 255, .04); cursor: pointer; padding: 0; flex: none; }
.toggle::after { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 6px; background: rgba(255, 255, 255, .8); transition: transform .16s cubic-bezier(.2, .8, .2, 1), width .16s; }
.toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.toggle[aria-pressed="true"]::after { transform: translateX(19px); background: var(--on-accent); }
.toggle:active::after { width: 15px; }

/* tiles to pick a style, like the ones under the progress bar page */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tile { height: 40px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); color: var(--text); font-size: 13px; cursor: pointer; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover { background: rgba(255, 255, 255, .1); }
.tile[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

.screen { background: var(--screen); border-radius: 8px; overflow: hidden; position: relative; }
.screen video, .screen img, .screen canvas { width: 100%; height: 100%; object-fit: cover; }


/* ------------------------------------------------------------------ gallery cards (home, gallery, item) */

.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.look { position: relative; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.look:hover { background: rgba(255, 255, 255, .075); }
/* the strip sits like a taskbar at the bottom of a little desk, lit by a blur of its own picture */
.desk { position: relative; aspect-ratio: 16 / 7; background: var(--screen); overflow: hidden; }
.desk::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 100%; background: var(--shot, radial-gradient(60% 80% at 50% 100%, var(--glow, #FF6B6B), transparent)) center bottom / 100% 100% no-repeat; filter: blur(18px) saturate(1.3); opacity: .5; transform: scaleY(2.4); transform-origin: 50% 100%; }
.desk .strip { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 760 / 84; }
/* A skin that draws above the taskbar: its preview (760 x 332) is the bar with the desktop over it, the whole desk. */
.desk .strip.tall { aspect-ratio: auto; top: 0; }
.fresh-badge.needs-badge { left: auto; right: 8px; background: rgba(14, 14, 16, .72); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.desk .strip img, .desk .strip canvas, .desk .strip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desk .strip video { opacity: 0; transition: opacity .2s; }
.desk .strip video.on { opacity: 1; }
.desk .noprev { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.look-body { display: grid; gap: 1px; padding: 10px 12px 12px; min-width: 0; }
.look-name { font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-name::after { content: ""; position: absolute; inset: 0; }
.look-by { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.look-dl { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.look-dl .i { width: 14px; height: 14px; }
.look-foot .btn { position: relative; z-index: 1; }
/* Newly added: what came into the gallery in the last three days opens it, each with a small badge. */
.fresh { margin-bottom: 22px; }
.fresh-d { margin: -4px 2px 10px; font-size: 13px; }
.fresh-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 1px 8px; border-radius: 7px;
  background: var(--accent); color: var(--on-accent); font: 600 11.5px/18px var(--f-text); pointer-events: none; }

/* a look up close, over the gallery: the strip on its desk, a few words, Apply */
.dlg { position: fixed; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - var(--tb-h) - 32px); padding: 0; border: 1px solid var(--panel-edge); border-radius: 14px; background: #17171B; color: var(--text); overflow: auto; }
.dlg::backdrop { background: rgba(0, 0, 0, .55); }
.dlg .desk { aspect-ratio: 16 / 6; }
.dlg-body { position: relative; display: grid; gap: 4px; padding: 18px 20px 20px; background: linear-gradient(180deg, var(--wash), rgba(255, 107, 107, 0) 90px); }
.dlg-body h2 { font-size: 26px; padding-right: 90px; }
.dlg-by { color: var(--text-2); font-size: 13.5px; margin: 0; }
.dlg-about { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
.dlg-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.dlg-facts .look-dl .i { width: 15px; height: 15px; }
.dlg-acts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 18px; }
.dlg-acts .more { display: flex; gap: 16px; font-size: 13px; margin-left: auto; }
.dlg-nav { position: absolute; top: 14px; right: 16px; display: flex; gap: 6px; }


.bar-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-line); }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a, .seg button { white-space: nowrap; padding: 6px 14px; border-radius: 5px; text-decoration: none; font-size: 13.5px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.seg a:hover, .seg button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.seg [aria-current="true"], .seg [aria-current="page"], .seg [aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: var(--text); font-weight: 600; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.input, select.input { height: 34px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .09); border-bottom-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); padding: 0 11px; font-size: 13.5px; }
.input:focus { outline: 0; border-bottom: 2px solid var(--accent); background: rgba(0, 0, 0, .3); }
.input::placeholder { color: var(--text-3); }
select.input option { background: #2B2B30; }
.pager { display: flex; gap: 4px; justify-content: center; margin: 22px 0 0; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; text-decoration: none; font-size: 13.5px; }
.pager a:hover { background: rgba(255, 255, 255, .06); }
.pager span[aria-current] { background: rgba(255, 255, 255, .1); font-weight: 600; }
.empty { padding: 34px 16px; color: var(--text-2); }

/* ------------------------------------------------------------------ item */

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); margin: 4px 0 14px; }
.crumbs a { text-decoration: none; }
.crumbs .rot { width: 12px; height: 12px; transform: rotate(90deg); opacity: .6; }
.release .top > .i { width: 34px; height: 34px; color: var(--accent); }
.release > p { color: var(--text-2); }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.item-head { padding: 16px; margin-bottom: 18px; }
.item-head .screen { aspect-ratio: 760 / 84; margin-bottom: 16px; }
.item-head .screen.tall { aspect-ratio: 760 / 332; max-width: 760px; margin-inline: auto; }
.item-needs { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); }
.item-head .line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.item-head h1 { font-size: clamp(28px, 3vw, 40px); }
.item-head .by { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.item-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.item-about { color: var(--text-2); margin: 12px 0 0; max-width: 46em; }
.more-info { margin-top: 12px; }
.more-info summary { padding: 14px 16px; cursor: pointer; font-size: 14px; }
.more-info summary:hover { background: rgba(255, 255, 255, .03); }
.more-body { padding: 0 16px 16px; display: grid; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.more-body .hash { display: flex; gap: 10px; align-items: center; }
.swatch { display: inline-flex; gap: 4px; vertical-align: middle; }
.swatch i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .2); display: block; }
.hash { font-family: var(--f-code); font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
pre.source { margin: 0; padding: 14px 16px; background: var(--screen); border-radius: 8px; overflow: auto; max-height: 420px; font: 12.5px/1.6 var(--f-code); color: #E6E6EA; }

/* ------------------------------------------------------------------ download */

.release { padding: 22px 22px 18px; margin-bottom: 26px; }
.release .top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.release .top img { width: 44px; height: 44px; }
.release .top b { display: block; font: 600 22px var(--f-display); }
.release .top span { color: var(--text-2); font-size: 13.5px; }
.release .film { border-radius: 10px; overflow: hidden; margin: 0 0 18px; background: var(--screen); }
.release .film video, .release .film img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.release .set { background: rgba(255, 255, 255, .04); }
.release .fine { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.notes { padding: 18px 20px; }
.notes h3 { font-size: 16px; margin: 18px 0 6px; }
.notes h3:first-child { margin-top: 0; }
.notes ul { margin: 0 0 8px; padding-left: 20px; }
.notes li { margin: 4px 0; color: var(--text-2); }
.notes p { color: var(--text-2); }
.notes code { font-family: var(--f-code); font-size: .9em; background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 4px; }

/* ------------------------------------------------------------------ forms (submit, admin) */

.form { display: grid; gap: 4px; max-width: 760px; }
.fld { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(220px, 300px); gap: 4px 16px; align-items: center; padding: 13px 16px; min-height: 66px; background: var(--card); border: 1px solid var(--card-line); border-radius: 7px; }
.fld > .i { width: 20px; height: 20px; justify-self: center; }
.fld b { display: block; font-weight: 400; font-size: 14px; }
.fld span.d { display: block; font-size: 12.5px; color: var(--text-2); }
.fld input[type=text], .fld select { width: 100%; height: 34px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .09); border-bottom-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); padding: 0 11px; font-size: 13.5px; }
.fld input[type=text]:focus, .fld select:focus { outline: 0; border-bottom: 2px solid var(--accent); background: rgba(0, 0, 0, .3); }
.fld select option { background: #2B2B30; }
.drop { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 18px 16px; border-radius: 7px; border: 1px dashed rgba(255, 255, 255, .3); background: var(--card); cursor: pointer; }
.drop.over { border-color: var(--accent); background: rgba(255, 107, 107, .06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .i { width: 22px; height: 22px; justify-self: center; }
.drop b { font-weight: 600; font-size: 14px; }
.drop span { font-size: 12.5px; color: var(--text-2); grid-column: 2; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: 13.5px; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.findings { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.findings li { padding: 11px 14px; background: var(--card); border: 1px solid var(--card-line); border-radius: 7px; font-size: 13.5px; }
.v-block { color: #FF9A9A; font-weight: 600; }
.v-warn { color: #FFD27A; font-weight: 600; }
.v-ok, .v-clean { color: #8FE3A0; font-weight: 600; }
.aside-note { max-width: 760px; margin-top: 26px; }


/* ------------------------------------------------------------------ accounts (Sign in with Google) */

/* A person's picture: round, the first letter of their name under it for when there is none. */
.avatar { position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: rgba(255, 107, 107, .18); color: var(--accent); font: 600 14px/1 var(--f-display); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.btn-google .g-mark { width: 18px; height: 18px; }
/* The account in the side's foot, where Start keeps it: the picture and name, a menu that opens upwards. */
.me-menu { position: relative; }
.me-menu > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 5px; cursor: pointer; list-style: none; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu > summary:hover, .me-menu[open] > summary { background: rgba(255, 255, 255, .045); }
.me-name { display: grid; min-width: 0; }
.me-name b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 4px; border-radius: 8px; background: var(--panel); border: 1px solid var(--panel-edge); }
.me-pop form { margin: 0; }
.me-pop button { display: flex; align-items: center; gap: 14px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 5px; background: none; font-size: 14px; text-align: left; cursor: pointer; }
.me-pop button .i { font-size: 18px; }
.me-pop button:hover { background: rgba(255, 255, 255, .045); }
.start-foot a.me { text-decoration: none; color: inherit; }
/* The account page */
.acct-head { display: flex; gap: 18px; align-items: center; padding: 20px 22px; margin-bottom: 26px; max-width: 760px; }
.acct-head b { display: block; font: 600 22px var(--f-display); }
.acct-head span { display: block; font-size: 13.5px; color: var(--text-2); }
.acct-head .via { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.acct-head .via .g-mark { width: 13px; height: 13px; }
.set > .avatar { justify-self: center; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 0 0 4px; border-radius: 7px; background: rgba(143, 227, 160, .10); color: #BFF0C9; font-size: 13.5px; }
.flash.bad { background: rgba(230, 103, 103, .14); color: #FFB0B0; }
.flash .i { width: 16px; height: 16px; margin-top: 2px; }
.flash ul { margin: 4px 0 0; padding-left: 18px; }
.mine { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 16px; margin-bottom: 4px; max-width: 980px; }
.mine .screen { height: 34px; }
.mine .noprev, .finish-look .noprev { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.mine-body { display: grid; gap: 4px; min-width: 0; }
.mine-body > b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mine-meta .d { font-size: 12.5px; color: var(--text-2); }
.mine-note { margin: 2px 0 0; padding: 8px 10px; border-radius: 7px; background: rgba(255, 255, 255, .04); border: 1px solid var(--card-line); font-size: 13px; color: var(--text-2); }
.mine-note b { color: var(--text); font-weight: 600; }
.mine .ctl { display: flex; gap: 8px; align-items: center; justify-self: end; }
.mine .ctl form { margin: 0; }
.chip.st-pending { background: rgba(255, 210, 122, .14); color: #FFD27A; }
.chip.st-approved { background: rgba(143, 227, 160, .14); color: #8FE3A0; }
.chip.st-rejected { background: rgba(255, 107, 107, .16); color: #FF9A9A; }
.chip.st-hidden { color: var(--text-3); }
/* Deleting the account: opening it is the first step, its button the second. */
.danger { max-width: 760px; }
.danger > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 13px 16px; min-height: 66px; cursor: pointer; list-style: none; }
.danger > summary::-webkit-details-marker { display: none; }
.danger > summary > .i { width: 20px; height: 20px; justify-self: center; color: #FF9A9A; }
.danger > summary b { display: block; font-weight: 400; font-size: 14px; }
.danger > summary span.d { display: block; font-size: 12.5px; color: var(--text-2); }
.danger[open] { border-color: rgba(255, 107, 107, .3); }
.danger form { display: grid; gap: 8px; padding: 0 16px 16px 60px; }
.danger .check { padding: 6px 0; }
/* A look from the app, finished on the web; short notices; the privacy page */
.finish-look { padding: 16px; margin-bottom: 18px; max-width: 760px; }
.finish-look .screen { aspect-ratio: 760 / 84; margin-bottom: 12px; }
.notice-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.fine-print { font-size: 12.5px; margin: 6px 2px 0; }
.privacy { max-width: 860px; }
.privacy a { color: var(--text); }
.sign-in-cta { max-width: 760px; }
@media (max-width: 900px) {
  /* Only the picture shows in the top row; the name is still read out. */
  .me-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .me-menu > summary { min-height: 34px; padding: 0 6px; }
  .me-pop { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; min-width: 210px; }
  .mine { grid-template-columns: minmax(0, 1fr); }
  .mine .ctl { justify-self: start; }
  .acct-head { padding: 16px; }
  .danger form { padding: 0 16px 16px; }
}


/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; min-width: 0; padding: 12px 14px 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .brand { padding: 4px 4px 4px 0; margin-right: auto; }
  .side-foot.nav { margin: 0; order: 2; width: auto; display: flex; }
  .lang-pick { order: 2; padding: 0; }
  .lang-pick > .i { display: none; }
  .side-foot.nav a { height: 34px; }
  .nav { order: 3; width: 100%; min-width: 0; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .nav a { height: 36px; }
  .nav a[aria-current="page"]::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; }
  .pane { padding: 18px 16px 30px; }
  .outfits .scene-in, .clear .scene-in, .facescene .scene-in, .kara-foot { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .scene-in { min-height: 0; padding: 40px 0; }
  .face-stage { height: 240px; }
  .mini-face { --s: .5; }
  .mini-apps { gap: 10px; }
  .mini-apps .i, .mini-apps img { width: 15px; height: 15px; }
  .face.big { --s: 3; }
  .shelf-track .look { width: 240px; }
  .looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .look-body { padding: 8px 10px 10px; }
  .look-foot { flex-wrap: wrap; }
  .fld { grid-template-columns: 28px minmax(0, 1fr); }
  .fld > input, .fld > select { grid-column: 1 / -1; }
  .item-grid { grid-template-columns: 1fr; }
}


/* ------------------------------------------------------------------ the gallery's community side */

.g-lead { color: var(--text-2); margin: -10px 0 14px; max-width: 46em; }
/* The filters stay at hand while the looks scroll under them: the one place on the page that floats over content. */
.g-tools { position: sticky; top: 0; z-index: 30; margin: 0 -34px 18px -22px; padding: 10px 34px 10px 22px; display: grid; gap: 8px;
  background: rgba(28, 28, 32, .86); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--card-line); }
.g-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.g-search { position: relative; flex: 1 1 260px; min-width: 0; display: block; }
.g-search .i { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-3); pointer-events: none; }
.g-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .09); border-bottom-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); font-size: 14px; }
.g-search input:focus { outline: 0; border-bottom: 2px solid var(--accent); background: rgba(0, 0, 0, .3); }
.g-search input::placeholder { color: var(--text-3); }
.seg a .i, .seg button .i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.seg [aria-current="true"] .i { color: var(--accent); }
#browse { transition: opacity .15s; }
#browse.loading, .gshelf.loading { opacity: .5; pointer-events: none; }

/* Shelves: the hot one washed in coral, the community's on a plain panel. */
.gshelf { margin: 0 0 26px; padding: 18px; border-radius: 14px; border: 1px solid var(--card-line); background: rgba(255, 255, 255, .025); transition: opacity .15s; }
.gshelf.hot { border-color: rgba(255, 107, 107, .22); background: linear-gradient(180deg, rgba(255, 107, 107, .12), rgba(255, 107, 107, 0) 180px), rgba(255, 255, 255, .025); }
.gshelf-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.gshelf-t { display: flex; gap: 10px; align-items: center; font: 600 20px/1.25 var(--f-display); margin: 0; }
.gshelf-t > .i { width: 22px; height: 22px; color: var(--accent); flex: none; }
.gshelf-t .count { font: 400 14px var(--f-text); color: var(--text-3); margin-left: 2px; }
.gshelf-d { color: var(--text-2); font-size: 13.5px; margin: 4px 0 0; max-width: 48em; }
.gshelf-ctl { display: flex; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.gshelf-note { font-size: 12.5px; color: var(--text-3); margin: 12px 2px 0; }
.all-t { margin: 6px 0 10px; }

/* The hot gshelf: the first look big, four beside it. */
.hot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)); gap: 8px; }
.look.big { grid-row: span 2; }
.look.big .desk { flex: 1 1 auto; aspect-ratio: auto; min-height: 190px; }
.look.big .look-name { font-size: 18px; }
/* The first look's desk is big: its light fills the room. */
.look.big .desk::before { opacity: .9; filter: blur(30px) saturate(1.7); }
.look-about { margin: 6px 0 2px; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; gap: 4px; align-items: center; padding: 1px 9px; border-radius: 7px;
  background: rgba(14, 14, 16, .74); color: var(--text); font: 600 12.5px/20px var(--f-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none; }
.rank.podium { box-shadow: inset 0 0 0 1px var(--accent); }
.rank.first { background: var(--accent); color: var(--on-accent); box-shadow: none; padding-left: 7px; }
.rank .i { width: 14px; height: 14px; }
.look-win { display: flex; gap: 5px; align-items: center; font-size: 12px; color: var(--text-2); margin-top: 3px; min-width: 0; }
.look-win .i { width: 13px; height: 13px; color: var(--accent); flex: none; }
.look-win span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Who made it: a link above the card's own, and a seal on ours. */
.look-by a.by, .dlg-by a.by, .item-head a.by { position: relative; z-index: 1; color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.look-by a.by:hover, .dlg-by a.by:hover, .item-head a.by:hover { text-decoration-color: var(--accent); }
.seal .i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; color: var(--accent); }
.look-stats { display: inline-flex; gap: 12px; align-items: center; }

/* The heart: outline, filled coral once given, a small pop when given. */
.heart { position: relative; z-index: 1; display: inline-flex; gap: 5px; align-items: center; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.heart:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.heart .i { width: 15px; height: 15px; }
.heart .h-on { display: none; color: var(--accent); }
.heart[aria-pressed="true"] .h-on { display: block; }
.heart[aria-pressed="true"] .h-off { display: none; }
.heart[aria-pressed="true"] { color: var(--text); }
.heart.pop .h-on { animation: heart-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heart-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.heart.in-quick { margin: 0; padding: 5px 10px; background: rgba(255, 255, 255, .06); font-size: 13.5px; }
.heart.in-quick .i { width: 17px; height: 17px; }
.heart.in-quick[aria-pressed="true"] { background: rgba(255, 107, 107, .16); }

/* The community's creators, a row of makers to visit. */
.makers-t { font: 600 14px var(--f-text); margin: 2px 2px 8px; }
.makers { list-style: none; margin: 0 0 16px; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.makers > li { flex: none; }
.maker { display: flex; gap: 10px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 7px; background: var(--card); border: 1px solid var(--card-line); text-decoration: none; white-space: nowrap; }
.maker:hover { background: rgba(255, 255, 255, .09); }
.maker .avatar { width: 38px; height: 38px; font-size: 16px; }
.maker-t b { display: block; font-size: 13.5px; font-weight: 600; }
.maker-t span { display: block; font-size: 12px; color: var(--text-2); }
.maker.join { background: none; border-style: dashed; border-color: rgba(255, 255, 255, .2); }
.maker.join .avatar { background: var(--soft); color: var(--accent); }
.maker.join .avatar .i { width: 18px; height: 18px; }
.results-head { display: flex; gap: 14px; align-items: baseline; font-size: 13px; color: var(--text-2); margin: 0 2px 10px; }
.more-row { display: flex; justify-content: center; margin: 18px 0 0; }
.more-row .muted { font-weight: 400; }
.more-row [aria-busy="true"] { opacity: .6; }

/* ------------------------------------------------------------------ a creator's page */

.cr-head.panel { padding: 0 0 20px; margin-bottom: 8px; }
.cr-cover { position: relative; aspect-ratio: 3 / 1; max-height: 340px; width: 100%; background: var(--screen); overflow: hidden; }
.cr-cover::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 100%; background: var(--shot, radial-gradient(60% 80% at 50% 100%, var(--glow, #FF6B6B), transparent)) center bottom / 100% 100% no-repeat; filter: blur(22px) saturate(1.3); opacity: .55; transform: scaleY(2.4); transform-origin: 50% 100%; }
.cr-cover.own::before { display: none; }
.cr-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-cover .strip { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 760 / 84; }
.cr-cover .strip.tall { aspect-ratio: auto; top: 0; }
.cr-cover .strip img, .cr-cover .strip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-cover .strip video { opacity: 0; transition: opacity .3s; }
.cr-cover .strip video.on { opacity: 1; }
.avatar.xl { width: 108px; height: 108px; font-size: 42px; border: 4px solid #151519; background-clip: padding-box; }
.avatar.xl.official { background: #1C1C20; }
.avatar.xl.official img { object-fit: contain; padding: 18px; }
.cr-id { position: relative; display: flex; gap: 16px; align-items: flex-end; padding: 0 22px; margin-top: -46px; }
.cr-name { min-width: 0; padding-bottom: 4px; }
.cr-name h1 { display: flex; gap: 8px; align-items: center; font: 600 28px/1.2 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.cr-name h1 .seal .i { width: 22px; height: 22px; margin: 0; }
.cr-handle { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.cr-since { display: inline-flex; gap: 5px; align-items: center; }
.cr-since .i { width: 14px; height: 14px; }
.cr-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.cr-bio { margin: 16px 0 0; padding: 0 22px; max-width: 62em; font-size: 15px; overflow-wrap: anywhere; }
.cr-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0 22px; }
.cr-links a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 11px; border-radius: 7px; background: var(--soft); border: 1px solid var(--soft-line); font-size: 13px; text-decoration: none; }
.cr-links a:hover { background: var(--soft-hover); }
.cr-links .i { width: 15px; height: 15px; }
.cr-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0 22px; }
.cr-stats > div { display: flex; flex-direction: column-reverse; min-width: 110px; padding: 10px 16px; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-line); }
.cr-stats dt { font-size: 12.5px; color: var(--text-2); }
.cr-stats dd { margin: 0; font: 600 22px/1.2 var(--f-display); }
.cr-stats dd small { font: 400 14px var(--f-text); color: var(--text-3); }
.cr-section { margin-top: 30px; }
.cr-section > .gshelf-t { margin-bottom: 12px; }

/* Achievements: the ring gets richer with the tier (outline, soft, full); a locked one is a dashed ring and how far along. */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--card-line); }
.ach-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--accent); border: 2px solid var(--accent); }
.ach-ico .i { width: 24px; height: 24px; }
.ach.t2 .ach-ico { background: rgba(255, 107, 107, .18); border-color: rgba(255, 107, 107, .6); }
.ach.t3 { background: linear-gradient(135deg, rgba(255, 107, 107, .12), rgba(255, 107, 107, 0) 60%), var(--card); border-color: rgba(255, 107, 107, .22); }
.ach.t3 .ach-ico { background: radial-gradient(circle at 35% 30%, #FFA394, var(--accent) 58%, #D9474F); color: var(--on-accent); border-color: transparent; outline: 3px solid rgba(255, 107, 107, .25); outline-offset: 2px; }
.ach.locked { background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .05); }
.ach.locked .ach-ico { background: none; color: var(--text-3); border: 2px dashed rgba(255, 255, 255, .22); outline: 0; }
.ach.locked b { color: var(--text-2); }
.ach-txt { min-width: 0; }
.ach-txt b { display: block; font-size: 14px; font-weight: 600; }
.ach-line { display: block; font-size: 12.5px; color: var(--text-2); }
.ach-when { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.ach-bar { display: block; height: 4px; margin-top: 7px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ach-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); border-radius: 2px; }
.ach-more { margin-top: 12px; }
.ach-more > summary { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 7px; background: var(--soft); border: 1px solid var(--soft-line); font-size: 13.5px; cursor: pointer; list-style: none; }
.ach-more > summary::-webkit-details-marker { display: none; }
.ach-more > summary .i { width: 15px; height: 15px; }
.ach-more[open] > summary .chev { transform: rotate(180deg); }
.ach-group { font: 600 13px var(--f-text); color: var(--text-2); margin: 18px 2px 8px; }
.ach-new { max-width: 980px; margin-bottom: 26px; padding: 18px 20px; }
.ach-new-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ach-new-head b { display: block; font: 600 19px var(--f-display); }
.ach-new-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: ach-hello .9s cubic-bezier(.3, 1.5, .5, 1) .2s both; }
.ach-new-ico .i { width: 24px; height: 24px; }
@keyframes ach-hello { 0% { transform: scale(.3) rotate(-30deg); } 100% { transform: none; } }

/* A creator's page, from their account. */
.group-d { color: var(--text-2); font-size: 13.5px; margin: -2px 2px 12px; max-width: 54em; }
.group > .flash { max-width: 760px; margin-bottom: 10px; }
.cr-edit-look { position: relative; max-width: 760px; margin-bottom: 52px; }
.cr-edit-look .cr-cover { border-radius: 14px; border: 1px solid var(--card-line); }
.cr-edit-look .avatar.xl { position: absolute; left: 20px; bottom: -44px; width: 92px; height: 92px; font-size: 36px; border-color: var(--ground); }
.fld input[type=url], .fld textarea { width: 100%; height: 34px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .09); border-bottom-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); padding: 0 11px; font-size: 13.5px; }
.fld textarea { height: auto; min-height: 84px; padding: 8px 11px; resize: vertical; line-height: 1.45; }
.fld input[type=url]:focus, .fld textarea:focus { outline: 0; border-bottom: 2px solid var(--accent); background: rgba(0, 0, 0, .3); }
.fld.tall { align-items: start; }
.fld.tall > .i { margin-top: 2px; }
.fld.pic .ctl { display: flex; gap: 12px; align-items: center; justify-self: end; }
.fld.pic .ctl form { margin: 0; }
.handle-in { display: flex; gap: 6px; align-items: center; min-width: 0; }
.handle-in .muted { font-size: 13px; }
.links-in { display: grid; gap: 6px; }
.file-btn { overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn.busy { opacity: .6; pointer-events: none; }
.file-btn:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.cr-words { margin-top: 4px; }
.cover-pick { max-width: 760px; }
.cover-pick > summary { display: flex; gap: 12px; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; font-size: 14px; }
.cover-pick > summary::-webkit-details-marker { display: none; }
.cover-pick > summary .i { width: 20px; height: 20px; }
.cover-pick > summary .chev { margin-left: auto; width: 16px; height: 16px; }
.cover-pick[open] > summary .chev { transform: rotate(180deg); }
.cover-list { display: grid; gap: 6px; padding: 0 12px 12px; }
.cover-opt { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; margin: 0; border-radius: 7px; background: rgba(255, 255, 255, .03); }
.cover-opt.on { box-shadow: inset 0 0 0 1px var(--accent); }
.cover-opt .screen { aspect-ratio: 760 / 84; }
.cover-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 980px; }
.order-row { display: grid; grid-template-columns: 22px 22px 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; cursor: grab; }
.order-row.dragging { opacity: .5; border-color: var(--accent); }
.order-row .screen { aspect-ratio: 760 / 84; }
.grip .i { width: 18px; height: 18px; color: var(--text-3); }
.order-n { font: 600 14px var(--f-text); color: var(--text-2); text-align: center; }
.order-name { min-width: 0; }
.order-name b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-name .d { font-size: 12.5px; color: var(--text-2); }
.order-btns { display: flex; gap: 4px; }
.order-btns .round { width: 32px; height: 32px; }
.order-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.order-ok { margin: 0; padding: 7px 12px; }

@media (max-width: 1100px) {
  .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .look.big { grid-row: auto; grid-column: 1 / -1; }
  .look.big .desk { aspect-ratio: 16 / 6; min-height: 0; }
}
@media (max-width: 900px) {
  /* On a phone the filters would cover a third of the screen: they stay at the top of the page instead. */
  .g-tools { position: static; margin: 0 0 14px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .g-row { display: grid; gap: 8px; }
  .g-row .seg { width: 100%; }
  .gshelf { padding: 14px 12px; margin-left: -4px; margin-right: -4px; }
  .gshelf-ctl { overflow-x: auto; scrollbar-width: none; }
  .hot-grid { gap: 6px; }
  .cr-id { flex-wrap: wrap; padding: 0 16px; margin-top: -40px; }
  .avatar.xl { width: 88px; height: 88px; font-size: 34px; }
  .cr-acts { margin-left: 0; width: 100%; }
  .cr-name h1 { font-size: 24px; }
  .cr-bio, .cr-links, .cr-stats { padding: 0 16px; }
  .cr-stats > div { min-width: 0; flex: 1 1 40%; }
  .fld.pic .ctl { grid-column: 1 / -1; justify-self: start; }
  .fld .handle-in, .fld .links-in, .fld textarea { grid-column: 1 / -1; }
  .order-row { grid-template-columns: 18px 18px minmax(0, 1fr) auto; gap: 8px; }
  .order-row .screen { display: none; }
  .cover-opt { grid-template-columns: 110px minmax(0, 1fr); }
  .cover-opt .btn, .cover-opt .chip { grid-column: 1 / -1; justify-self: start; }
}
