/* Общие страницы платформы: каталог, «Для креаторов», авторы. Два стиля — html[data-site="blue|red"].
   Игровые экраны сюда не входят (сепия игр про Шерлока — styles.css). Классы: .sh шапка, .hero, .cat каталог,
   .gcard карточка игры, .s-cta полоса «прислать игру», .sf подвал, .s-btn кнопки, .s-page обёртка страницы. */

body.site {
  /* blue — по умолчанию */
  --s-bg: #ffffff;
  --s-ink: #0d0d12;
  --s-ink-2: #3b3b45;
  --s-muted: #6b6b76;
  --s-line: #e4e5ea;
  --s-card: #ffffff;
  --s-card-line: #e4e5ea;
  --s-chip: #f0f1f4;
  --s-chip-ink: #2a2a33;
  --s-accent: #1747e6;
  --s-accent-ink: #ffffff;
  --s-cta-bg: #1747e6;
  --s-cta-ink: #ffffff;
  --s-cta-btn: #e9f53a;
  --s-cta-btn-ink: #0d0d12;
  --s-display: 'Source Serif 4', Georgia, serif;
  --s-display-w: 700;
  --s-display-ls: -0.035em;
  --s-title: 'Source Serif 4', Georgia, serif;
  --s-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s-radius: 10px;
  --s-btn-radius: 8px;
  --s-shadow: 0 1px 2px rgba(15, 20, 40, .06), 0 6px 18px rgba(15, 20, 40, .06);
  --s-soon-bg: #ececef;
  --s-soon-ink: #9a9aa4;
  margin: 0;
  background: var(--s-bg);
  color: var(--s-ink);
  font: 16px/1.5 var(--s-body);
  -webkit-font-smoothing: antialiased;
}
html[data-site="red"] body.site {
  --s-bg: #fdf6dc;
  --s-ink: #111111;
  --s-ink-2: #2b2b2b;
  --s-muted: #5d5a50;
  --s-line: #1d1d1d;
  --s-card: #fffaf0;
  --s-card-line: #1d1d1d;
  --s-chip: transparent;
  --s-chip-ink: #1d1d1d;
  --s-accent: #e8412b;
  --s-accent-ink: #ffffff;
  --s-cta-bg: transparent;
  --s-cta-ink: #111111;
  --s-cta-btn: #e8412b;
  --s-cta-btn-ink: #ffffff;
  --s-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --s-display-w: 900;
  --s-display-ls: -0.045em;
  --s-title: 'Source Serif 4', Georgia, serif;
  --s-body: 'Source Serif 4', Georgia, serif;
  --s-radius: 2px;
  --s-btn-radius: 2px;
  --s-shadow: none;
  --s-soon-bg: #e4ddc8;
  --s-soon-ink: #8c8778;
}

body.site h1, body.site h2, body.site .s-cta h2 { font-family: var(--s-display); font-weight: var(--s-display-w); letter-spacing: var(--s-display-ls); color: var(--s-ink); margin: 0; }
body.site a { color: inherit; }
body.site button { font: inherit; }
body.site .s-page { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- кнопки ---------- */
body.site .s-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--s-btn-radius); background: var(--s-accent); color: var(--s-accent-ink) !important; font: 600 16px var(--s-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
body.site .s-btn:hover { filter: brightness(1.08); }
body.site .s-btn.ghost { background: transparent; color: var(--s-ink) !important; border-color: var(--s-line); }
body.site .s-btn[disabled], body.site .s-btn.soon { background: var(--s-soon-bg); color: var(--s-soon-ink) !important; cursor: default; filter: none; }
body.site .s-link { color: var(--s-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 15px; }

/* ---------- шапка ---------- */
body.site .sh { display: flex; align-items: center; gap: 36px; max-width: 1200px; margin: 0 auto; padding: 18px 40px; }
body.site .sh-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 23px/1 'Inter', sans-serif; letter-spacing: -.02em; text-transform: uppercase; color: var(--s-ink); }
body.site .sh-mark { width: 13px; height: 19px; fill: var(--s-accent); }
html[data-site="red"] body.site .sh-logo { font: 900 25px/1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
html[data-site="red"] body.site .sh-logo .sh-mark { order: 2; }
body.site .sh-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
html[data-site="red"] body.site .sh-nav { margin: 0 auto; font-family: 'Inter', sans-serif; }
body.site .sh-nav a { text-decoration: none; color: var(--s-ink); }
body.site .sh-nav a[aria-current="page"], body.site .sh-nav a:hover { color: var(--s-accent); }
body.site .sh-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; font-family: 'Inter', sans-serif; }
body.site .sh-account { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; border: 1px solid var(--s-line); border-radius: var(--s-btn-radius); text-decoration: none; font: 600 14px var(--s-body); white-space: nowrap; }
body.site .sh-account:hover, body.site .sh-account[aria-current="page"] { border-color: var(--s-accent); color: var(--s-accent); }
body.site .sh-account:focus-visible { outline: 3px solid var(--s-accent); outline-offset: 3px; }
html[data-site="red"] body.site .sh-tools { margin-left: 0; }
body.site .sh-lang { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
body.site .sh-lang i { font-style: normal; color: var(--s-muted); }
body.site .sh-lang button, body.site .sh-theme button { border: 0; background: none; padding: 4px 2px; cursor: pointer; color: var(--s-muted); }
body.site .sh-lang button[aria-pressed="true"] { color: var(--s-ink); }
body.site .sh-theme { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--s-line); border-radius: 999px; }
body.site .sh-theme button { display: grid; place-items: center; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; line-height: 0; }
body.site .sh-theme button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--s-ink); }
body.site .sw { display: block; width: 14px; height: 14px; border-radius: 50%; }
body.site .sw-blue { background: linear-gradient(135deg, #fff 50%, #1747e6 50%); border: 1px solid #c9ccd6; }
body.site .sw-red { background: linear-gradient(135deg, #fdf6dc 50%, #e8412b 50%); border: 1px solid #c8bf9f; }
body.site .sh-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--s-btn-radius); background: var(--s-accent); color: var(--s-accent-ink) !important; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- первый экран ---------- */
body.site .hero { max-width: 1200px; margin: 0 auto; padding: 24px 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "h art" "b art"; column-gap: 24px; align-items: end; }
body.site .hero h1 { grid-area: h; font-size: clamp(48px, 7.4vw, 104px); line-height: .92; }
body.site .hero h1 em { font-style: normal; }
body.site .hero-body { grid-area: b; align-self: start; padding-top: 22px; }
body.site .hero-body p { font-size: 20px; line-height: 1.4; color: var(--s-ink-2); margin: 0 0 26px; max-width: 470px; }
body.site .hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
body.site .hero-art { grid-area: art; align-self: center; min-width: 0; margin: 0; }
body.site .hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: multiply; }
html[data-site="red"] body.site .hero { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); grid-template-areas: "h h" "b art"; align-items: start; padding-top: 6px; }
html[data-site="red"] body.site .hero h1 { font-size: clamp(48px, 8.6vw, 124px); line-height: .95; }
html[data-site="red"] body.site .hero h1 em { color: var(--s-accent); }
html[data-site="red"] body.site .hero-body { padding-top: 14px; }
html[data-site="red"] body.site .hero-body p { font-size: 21px; color: var(--s-ink); margin-bottom: 20px; }
html[data-site="red"] body.site .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
html[data-site="red"] body.site .hero-art { margin: 0; max-width: 560px; justify-self: end; }
html[data-site="red"] body.site .hero-art img { max-height: 320px; }

/* ---------- каталог ---------- */
body.site .cat { max-width: 1200px; margin: 0 auto; padding: 22px 40px 56px; scroll-margin-top: 10px; }
body.site .cat-head { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 26px; }
body.site .cat-head h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1; }
body.site .cat-tools { display: contents; }
body.site .cat-search { position: relative; flex: 0 1 360px; }
body.site .cat-search input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--s-line); border-radius: 999px; background: var(--s-card); font: 15px var(--s-body); color: var(--s-ink); }
body.site .cat-search svg { position: absolute; left: 15px; top: 13px; width: 18px; height: 18px; stroke: var(--s-ink-2); fill: none; stroke-width: 2; }
body.site .chips { display: flex; gap: 8px; flex-wrap: wrap; flex-basis: 100%; }
body.site .chip { min-height: 36px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: var(--s-chip); color: var(--s-chip-ink); font: 500 15px var(--s-body); cursor: pointer; }
body.site .chip[aria-pressed="true"] { background: var(--s-accent); color: var(--s-accent-ink); }
html[data-site="red"] body.site .cat-head { flex-wrap: wrap; align-items: end; }
html[data-site="red"] body.site .cat-head h2 { flex: 1 1 600px; min-width: 0; }
html[data-site="red"] body.site .cat-search { flex: 0 1 320px; min-width: 220px; }
html[data-site="red"] body.site .cat-search input { border-radius: 6px; }
html[data-site="red"] body.site .cat-head > .chips,
html[data-site="red"] body.site .cat-mood { flex: 1 1 100%; min-width: 0; }
html[data-site="red"] body.site .cat-head .chips { flex-wrap: wrap; }
html[data-site="red"] body.site .chip { border-color: var(--s-line); font-family: 'Inter', sans-serif; font-size: 13px; min-height: 32px; padding: 0 14px; }
html[data-site="red"] body.site .chip[aria-pressed="true"] { background: var(--s-ink); color: #fff; border-color: var(--s-ink); }

body.site .ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
body.site .gcard { display: flex; flex-direction: column; border: 1px solid var(--s-card-line); border-radius: var(--s-radius); background: var(--s-card); overflow: hidden; box-shadow: var(--s-shadow); text-align: left; padding: 0; color: var(--s-ink); }
body.site .gcard.open { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
body.site .gcard.open:hover { transform: translateY(-2px); }
body.site .gcard-img { position: relative; aspect-ratio: 3 / 2; flex: none; overflow: hidden; background: var(--s-chip); }
html[data-site="red"] body.site .gcard-img { border-bottom: 1px solid var(--s-card-line); }
body.site .gcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
body.site .gcard-blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 36px 28px; text-align: center; color: var(--s-ink-2); background: var(--s-chip); }
body.site .gcard-blank > span { max-width: 16ch; font: 600 clamp(28px, 3vw, 38px)/1.18 var(--s-title); overflow-wrap: anywhere; }
body.site .gcard-blank small { font: 400 13px/1.5 var(--s-body); color: var(--s-muted); }
body.site .gcard-badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 6px; background: #fff; color: #111; font: 500 12px 'Inter', sans-serif; border: 1px solid rgba(0,0,0,.12); }
body.site .gcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; min-width: 0; }
body.site .gcard-body h3 { font: 600 22px/1.2 var(--s-title); letter-spacing: -.01em; margin: 0; min-height: 2.4em; overflow-wrap: anywhere; }
body.site .gcard-by { margin: 0; font: 14px/1.5 var(--s-body); color: var(--s-muted); min-height: 3em; overflow-wrap: anywhere; }
body.site .gcard-tags { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
body.site .gcard-foot { display: flex; justify-content: flex-end; align-items: center; margin-top: auto; padding-top: 12px; }
body.site .gcard-tag-details { min-width: 0; max-width: 100%; }
body.site .gcard-tag-details[open] { flex-basis: 100%; }
body.site .gcard-tag-details summary { list-style: none; cursor: pointer; display: inline-block; }
body.site .gcard-tag-details summary::-webkit-details-marker { display: none; }
body.site .gcard-tag-details summary:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 3px; }
body.site .gcard-extra-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

body.site .tag { padding: 3px 11px; border-radius: 999px; background: var(--s-chip); color: var(--s-chip-ink); font: 500 13px/1.45 var(--s-body); border: 1px solid transparent; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
body.site .gcard-foot .s-btn { margin-left: auto; min-height: 44px; padding: 0 22px; font-size: 15px; }
html[data-site="red"] body.site .tag { border-color: var(--s-line); font-family: 'Inter', sans-serif; font-size: 12px; }
html[data-site="red"] body.site .gcard-foot { padding-top: 8px; }
body.site .gcard-foot .s-btn.soon { opacity: 1; color: var(--s-ink-2) !important; background: var(--s-chip); cursor: default; }
body.site .cat-empty { color: var(--s-muted); padding: 30px 0; }
body.site .cat-mood { display: grid; gap: 9px; flex-basis: 100%; padding-top: 6px; }
body.site .cat-mood > span { color: var(--s-muted); font: 600 13px var(--s-body); text-transform: uppercase; letter-spacing: .06em; }
body.site .cat-mood .chips { flex-wrap: wrap; }
body.site .gcard-tags .tag.more { border: 1px dashed var(--s-line); color: var(--s-muted); }
body.site .gcard[role="link"]:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 3px; }

/* ---------- полоса «прислать игру» ---------- */
body.site .s-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: var(--s-cta-bg); color: var(--s-cta-ink); padding: 34px max(40px, calc((100vw - 1120px) / 2)); }
body.site .s-cta h2 { color: inherit !important; font-size: clamp(30px, 4vw, 50px); line-height: 1.02; }
body.site .s-cta p { margin: 8px 0 0; font-size: 17px; opacity: .92; }
body.site .s-cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
body.site .s-cta .s-link { color: inherit; }
body.site .s-btn-cta { background: var(--s-cta-btn); color: var(--s-cta-btn-ink) !important; }
body.site .s-contest { max-width: 1120px; margin: 28px auto 36px; padding: 26px 30px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 24px 44px; align-items: center; background: var(--s-card); border: 1px solid var(--s-card-line); border-radius: var(--s-radius); box-shadow: var(--s-shadow); }
body.site .s-contest-kicker { color: var(--s-accent); font: 700 12px/1.4 var(--s-body); letter-spacing: .08em; text-transform: uppercase; }
body.site .s-contest h2 { margin: 8px 0 10px; color: var(--s-ink); font-size: clamp(26px, 3.1vw, 39px); line-height: 1.08; }
body.site .s-contest p { margin: 0; color: var(--s-ink-2); font-size: 15px; }
body.site .s-contest .s-contest-prizes { margin: 0 0 10px; font-size: 16px; }
body.site .s-contest-actions { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
body.site .s-contest-progress { display: grid; gap: 18px; }
body.site .s-contest-meter > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font: 600 13px/1.4 var(--s-body); }
body.site .s-contest-meter strong { white-space: nowrap; }
body.site .s-contest-meter progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--s-chip); }
body.site .s-contest-meter progress::-webkit-progress-bar { background: var(--s-chip); border-radius: 999px; }
body.site .s-contest-meter progress::-webkit-progress-value { background: var(--s-accent); border-radius: 999px; }
body.site .s-contest-meter progress::-moz-progress-bar { background: var(--s-accent); border-radius: 999px; }
body.site .s-contest-progress p { font-size: 12px; color: var(--s-muted); }
html[data-site="red"] body.site .s-cta { max-width: 1120px; margin: 0 auto; padding: 26px 0; border-top: 2px solid var(--s-accent); }
html[data-site="red"] body.site .s-cta-actions { flex-direction: column; align-items: stretch; border-left: 2px solid var(--s-accent); padding-left: 32px; text-align: center; gap: 12px; }

/* ---------- подвал ---------- */
body.site .sf { max-width: 1120px; margin: 0 auto; padding: 22px 0 34px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; border-top: 1px solid var(--s-line); font: 14px 'Inter', sans-serif; }
body.site .sf-about { color: var(--s-muted); }
body.site .sf nav { margin-left: auto; display: flex; gap: 12px 28px; flex-wrap: wrap; }
body.site .sf nav a { text-decoration: none; color: var(--s-ink-2); }
body.site .sf nav a:hover { color: var(--s-accent); }
html[data-site="red"] body.site .sf { border-top: 2px solid var(--s-ink); }

/* ---------- узкие экраны ---------- */
@media (max-width: 980px) {
  body.site .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site .sh { flex-wrap: wrap; gap: 12px 22px; }
  body.site .sh-nav { order: 3; flex-basis: 100%; margin: 0 !important; }
  body.site .sh-tools { margin-left: auto !important; }
}
@media (max-width: 720px) {
  body.site .s-page, body.site .sh, body.site .hero, body.site .cat { padding-left: 16px; padding-right: 16px; }
  body.site .sh-cta { display: none; }
  body.site .sh-tools { gap: 9px; }
  body.site .sh-nav { gap: 18px; overflow-x: auto; }
  body.site .hero, html[data-site="red"] body.site .hero { grid-template-columns: 1fr; grid-template-areas: "h" "art" "b"; }
  body.site .hero-art { width: 100%; max-width: 520px; justify-self: center; margin: 16px 0 0; }
  html[data-site="red"] body.site .hero-art { margin: 14px 0 0; }
  body.site .hero-body p { font-size: 18px; }
  body.site .ggrid { grid-template-columns: 1fr; }
  body.site .cat-head, html[data-site="red"] body.site .cat-head { flex-wrap: wrap; }
  body.site .cat-search, html[data-site="red"] body.site .cat-search { flex: 1 1 100%; }
  html[data-site="red"] body.site .chips { flex-wrap: wrap; }
  body.site .s-cta { padding: 28px 16px; }
  body.site .s-contest { grid-template-columns: 1fr; margin: 20px 16px 28px; padding: 20px; }
  html[data-site="red"] body.site .s-cta { margin: 0 16px; }
  html[data-site="red"] body.site .s-cta-actions { border-left: 0; padding-left: 0; }
  body.site .sf { padding: 20px 16px 30px; }
  body.site .sf nav { margin-left: 0; }
}

/* Focused sign-in page shares the existing site and author account components. */
body.site .login-page { width: min(100%, 520px); margin: 30px auto 64px; padding: 0 20px; box-sizing: border-box; }
body.site .login-page [hidden] { display: none !important; }
body.site .login-back { display: inline-block; margin-bottom: 30px; color: var(--s-muted); font-size: 14px; text-decoration: none; }
body.site .login-back:hover { color: var(--s-accent); }
body.site .login-page h1 { font-size: clamp(36px, 6vw, 48px); line-height: 1.08; margin-bottom: 12px; }
body.site .login-lead { color: var(--s-ink-2); font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
body.site .login-page .creator-auth { margin: 0; padding: 26px; }
body.site .login-continue { display: grid; gap: 12px; margin-top: 20px; }
body.site .login-continue p { color: var(--s-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.returning-parties:not([hidden]) { display: grid; gap: 12px; margin: 24px 0; padding: 22px; border: 1px solid var(--s-line, #cbbfa8); border-radius: 12px; background: var(--s-card, #fffaf0); }
.returning-title { margin: 0; font-size: clamp(22px, 2vw, 30px); }
.returning-list { display: grid; gap: 12px; }
.returning-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 12px; border-top: 1px solid var(--s-line, #cbbfa8); }
.returning-card small { color: var(--s-muted, #716b5e); min-width: 100%; }
.returning-card strong { flex: 1 1 220px; }
.returning-card .s-btn { cursor: pointer; text-decoration: none; }
.returning-error { margin: 0; color: #a33; }
/* The home-page resume section follows the same content width as hero/catalog. */
body.site .returning-parties:not([hidden]) { max-width: 1120px; margin: 24px auto; padding: 24px; gap: 16px; border-color: var(--s-line); border-radius: var(--s-radius); background: var(--s-card); }
body.site .returning-title { font-size: 26px; line-height: 1.2; }
body.site .returning-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kind action" "title action"; gap: 4px 24px; align-items: center; padding-top: 16px; }
body.site .returning-card small { grid-area: kind; min-width: 0; font-size: 13px; line-height: 1.5; }
body.site .returning-card strong { grid-area: title; min-width: 0; font: 600 18px/1.4 var(--s-title); overflow-wrap: anywhere; }
body.site .returning-card .s-btn { grid-area: action; white-space: normal; padding: 10px 18px; text-align: center; }
@media (max-width: 1200px) { body.site .returning-parties:not([hidden]) { margin: 24px 40px; } }
@media (max-width: 720px) {
  body.site .returning-parties:not([hidden]) { margin: 20px 16px; padding: 18px; }
  body.site .returning-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kind" "title" "action"; gap: 8px; }
  body.site .returning-card .s-btn { justify-self: start; margin-top: 4px; }
}
/* A compact, translucent utility dock; the catalog stays the main surface. */
body.site:has(.returning-parties--dock:not([hidden])) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.site .returning-parties.returning-parties--dock:not([hidden]) {
  position: fixed; z-index: 1000; inset: auto 0 max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; box-sizing: border-box;
  width: max-content; max-width: min(640px, calc(100% - 48px)); max-height: min(40vh, 220px);
  margin: 0 auto; padding: 5px 6px 5px 16px;
  border: 1px solid var(--s-line); border-radius: 14px;
  background: var(--s-card); box-shadow: 0 6px 24px rgba(15, 20, 40, .1);
}
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  body.site .returning-parties.returning-parties--dock:not([hidden]) {
    background: color-mix(in srgb, var(--s-card) 90%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  }
}
body.site .returning-parties--dock .returning-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body.site .returning-parties--dock .returning-list {
  display: grid; flex: 1; min-width: 0; gap: 10px; max-height: 178px; overflow: auto;
  scrollbar-width: thin; scrollbar-color: var(--s-muted) transparent;
}
body.site .returning-parties--dock .returning-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title action"; gap: 0 16px;
  align-items: center; padding: 0; border: 0; min-width: 0;
}
body.site .returning-parties--dock .returning-card + .returning-card { padding-top: 10px; border-top: 1px solid var(--s-line); }
body.site .returning-parties--dock .returning-card strong {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 15px/1.4 var(--s-title);
}
body.site .returning-parties--dock .returning-card .s-btn {
  min-height: 44px; margin: 0; padding: 0 13px; font: 600 14px/1.2 'Inter', sans-serif; gap: 8px;
}
html[data-site="red"] body.site .returning-parties--dock .s-btn:not(.ghost) { background: #c93422; }
body.site .returning-parties--dock .s-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.site .returning-close {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--s-muted); cursor: pointer;
}
body.site .returning-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
body.site .returning-close:hover { background: var(--s-chip); color: var(--s-ink); }
body.site .returning-parties--dock :is(button,a):focus-visible { outline: 2px solid var(--s-accent); outline-offset: -3px; }
body.site .returning-parties--dock .returning-error { flex: 1; font-size: 14px; }
@media (max-width: 720px) {
  body.site .returning-parties.returning-parties--dock:not([hidden]) { width: calc(100% - 24px); max-width: 640px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 5px 6px 5px 14px; gap: 4px; }
  body.site .returning-parties--dock .returning-card { gap: 2px 10px; }
  body.site .returning-parties--dock .returning-card strong { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  body.site .returning-parties--dock .returning-card .s-btn { padding: 0 12px; font-size: 13px; }
  body.site .returning-parties--dock .s-btn svg { display: none; }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  body.site .returning-parties.returning-parties--dock:not([hidden]) { background: var(--s-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
body.site .login-status { color: var(--s-muted); font-size: 14px; }
body.site .creator-auth .auth-message[data-kind="error"] { border-left: 3px solid #a12a25; background: var(--s-chip); padding: 12px 14px; }
body.site .creator-auth .auth-message[data-kind="success"] { border-left: 3px solid var(--s-accent); background: var(--s-chip); padding: 12px 14px; }
body.site .creator-auth .auth-confirmation { display: grid; gap: 14px; }
body.site .creator-auth .auth-confirmation > p { margin: 0; }
body.site .creator-auth .auth-confirmation-title { font: 600 23px/1.2 var(--s-title); margin: 0; }
body.site .creator-auth .auth-confirmation-address { color: var(--s-accent); overflow-wrap: anywhere; font-weight: 600; }
body.site .creator-auth .auth-confirmation-steps { padding-left: 20px; color: var(--s-ink-2); margin: 0; }
body.site .creator-auth .auth-confirmation-steps li { margin: 8px 0; }
body.site .creator-auth .auth-confirmation > button:not(.primary) { justify-content: flex-start; width: fit-content; min-height: 34px; padding: 3px 0; border-color: transparent; background: transparent; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) { body.site .login-page { margin-top: 18px; padding: 0 16px; } body.site .login-page .creator-auth { padding: 20px; } body.site .login-back { margin-bottom: 24px; } }

/* Platform controls keep their geometry when hovered or focused. */
body.site :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--s-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body.site .gcard.open { transition: none; } body.site .gcard.open:hover { transform: none; } }
