/* 作品广场 · Sunny Arcade. User artwork keeps its own palette. */
@font-face {
  font-family: "Arcade Headline";
  src: url("assets/arcade-heading.woff2?v=3d783861dd88770a") format("woff2");
  font-style: normal; font-weight: 900; font-display: swap;
}
:root {
  --w-bg: #fffbef; --w-card: #fffefa; --w-ink: #26241e; --w-muted: #686454;
  --w-line: #eadfca; --w-line-strong: #29271f; --w-brand: #835b0a;
  --w-brand-solid: #ffd43b; --w-brand-hover: #f7c72b; --w-brand-soft: #fff1bc;
  --w-ok: #25633b; --w-warn: #8d5907; --w-danger: #b42318;
  --w-radius: 14px; --w-shadow: 0 4px 0 #b9a77d12;
}
body.site-visual[data-site-page^="works/"] {
  --w-bg: #fffbef; --w-card: #fffefa; --w-ink: #26241e; --w-muted: #686454;
  --w-line: #eadfca; --w-line-strong: #29271f; --w-brand: #835b0a;
  --w-brand-solid: #ffd43b; --w-brand-hover: #f7c72b; --w-brand-soft: #fff1bc;
  --w-input: #ffffff; --w-on-brand: #26241e;
  --w-ok: #25633b; --w-warn: #8d5907; --w-danger: #b42318;
  --w-radius: 14px; --w-shadow: 0 4px 0 #b9a77d12;
  --bg: var(--w-bg); --surface: var(--w-card); --ink: var(--w-ink); --muted: var(--w-muted);
  --accent: #946500; --accent-ink: var(--w-brand); --accent-soft: var(--w-brand-soft);
  background: var(--w-bg); color: var(--w-ink); min-height: 100dvh; color-scheme: light;
}
:is(html.theme-dark, html.dark, html[data-theme="dark"]) body.site-visual[data-site-page^="works/"],
body.site-visual.theme-dark[data-site-page^="works/"] {
  --w-bg: #1e1d19; --w-card: #292720; --w-ink: #f6f0df; --w-muted: #bdb5a0;
  --w-line: #494335; --w-line-strong: #b6a276; --w-brand: #ffdc73;
  --w-brand-soft: #42391f; --w-input: #25231d;
  --w-ok: #a1d7a2; --w-warn: #f5cf84; --w-danger: #ffb0a4;
  --w-shadow: 0 4px 0 #00000020; --accent: #ffdc73;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 80px; }
body {
  background: var(--w-bg); color: var(--w-ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.w-world {
  position: fixed; inset: 52px 0 0; pointer-events: none; z-index: 0;
  background: url("assets/arcade-world.webp?v=295ad5868a664a26") center bottom / max(1280px, 100vw) auto no-repeat;
  opacity: .8;
}
:is(html.theme-dark, html.dark, html[data-theme="dark"]) .w-world { opacity: .26; }
.w-top, .w-wrap { position: relative; z-index: 1; }
.w-icon { width: 20px; height: 20px; display: inline-block; flex: none; image-rendering: pixelated; }
.w-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  min-height: 52px; padding: 7px max(24px, calc((100vw - 1152px) / 2));
  background: var(--w-card); border-bottom: 1px solid var(--w-line);
}
.w-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.4px; white-space: nowrap; }
.w-brand span { font-weight: 750; }
.w-brand-bird { width: 38px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.w-nav { display: flex; align-items: center; gap: 8px; }
.w-nav a { padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--w-muted); white-space: nowrap; }
.w-nav a:hover { background: var(--w-brand-soft); color: var(--w-ink); }
.w-nav a[aria-current="page"] { color: var(--w-on-brand); font-weight: 750; background: var(--w-brand-solid); }
.w-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.w-ava {
  width: 32px; height: 32px; border: 1px solid #b88b24; border-radius: 50%; display: grid; place-items: center;
  background: var(--w-brand-solid); color: var(--w-on-brand); font-size: 13px; font-weight: 750; flex: none;
}
.w-theme { width: 30px; height: 30px; padding: 4px; border: 0; background: transparent; border-radius: 7px; }
.w-theme:hover { background: var(--w-brand-soft); }
:is(html.theme-dark, html.dark, html[data-theme="dark"]) .w-theme img { filter: invert(1); }
.w-wrap { max-width: 1200px; margin: 0 auto; padding: 14px 24px 80px; }
.w-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 270px; padding: 23px 30px; background: #ffdf55;
  border: 2px solid #29271f; border-radius: 6px; box-shadow: 3px 3px 0 #29271f;
  color: #26241e;
}
.w-hero-copy { position: relative; z-index: 2; width: 49%; }
.w-hero h1 { margin: 0 0 10px; font-family: "Arcade Headline", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(32px, 3.9vw, 50px); font-weight: 900; letter-spacing: -1.8px; line-height: 1.14; }
.w-hero p { margin: 0; color: #65541d; font-size: 13px; line-height: 1.7; max-width: 37em; }
.w-hero-actions { margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.w-hero-art { position: absolute; z-index: 1; width: 56%; height: auto; right: 8px; bottom: 0; object-fit: contain; object-position: right bottom; image-rendering: pixelated; }
.w-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--w-line); background: var(--w-card); color: var(--w-ink);
  padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 650;
  min-height: 40px; transition: transform .12s, background-color .15s, border-color .15s;
}
.w-btn:hover { background: var(--w-brand-soft); border-color: var(--w-brand); }
.w-btn:active { transform: translateY(2px); }
.w-btn.primary { background: var(--w-brand-solid); border-color: #29271f; color: var(--w-on-brand); box-shadow: 2px 2px 0 #29271f; }
.w-btn.primary:hover { background: var(--w-brand-hover); }
.w-btn.ghost { background: transparent; }
.w-btn.sm { min-height: 32px; padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.w-btn:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.w-hero .w-btn { min-width: 126px; min-height: 46px; padding: 9px 22px; font-size: 16px; border: 2px solid #29271f; background: #fffbed; color: #26241e; box-shadow: 2px 2px 0 #29271f; }
.w-hero .w-btn.primary { background: #ffd12f; }
.w-hero .w-btn:hover { background: #fff2b6; }
.w-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 10px 14px; }
.w-seg { display: flex; gap: 6px; flex: none; }
.w-seg button { border: 1px solid var(--w-line); background: var(--w-card); min-height: 38px; padding: 7px 15px; border-radius: 9px; font-size: 14px; color: var(--w-muted); }
.w-seg button:hover { background: var(--w-brand-soft); color: var(--w-ink); }
.w-seg button[aria-pressed="true"] { background: var(--w-brand-solid); border-color: var(--w-brand-solid); color: var(--w-on-brand); font-weight: 750; }
#sorts { padding-left: 18px; border-left: 1px solid var(--w-line); }
.w-search {
  flex: 1 1 210px; min-width: 0; display: flex; align-items: center; gap: 9px;
  background: var(--w-input); border: 1px solid var(--w-line); border-radius: 10px; padding: 0 12px; color: var(--w-muted);
}
.w-search .w-icon { opacity: .65; }
.w-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; color: var(--w-ink); outline: none; padding: 8px 0; font-size: 14px; }
.w-search input::placeholder, .w-field input::placeholder, .w-field textarea::placeholder { color: var(--w-muted); opacity: .85; }
.w-search:focus-within { border-color: var(--w-brand); box-shadow: 0 0 0 3px var(--w-brand-soft); }
.w-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.w-card {
  display: flex; flex-direction: column; min-width: 0; padding: 9px;
  background: var(--w-card); border: 1px solid var(--w-line-strong); border-radius: var(--w-radius);
  overflow: hidden; box-shadow: var(--w-shadow); transition: transform .16s, box-shadow .16s;
}
.w-card:hover { transform: translateY(-3px); box-shadow: 3px 5px 0 #a88d3d24; }
.w-cover { position: relative; aspect-ratio: 16 / 7.6; background: var(--w-brand-soft); border-radius: 8px; overflow: hidden; }
.w-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-cover .w-default-cover { image-rendering: pixelated; }
.w-cover .w-mono { display: grid; place-items: center; height: 100%; font-size: 34px; font-weight: 800; color: var(--w-muted); }
.w-badge {
  position: absolute; left: 9px; top: 9px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 750;
  background: #ffdf55; color: #26241e;
}
.w-badge img.w-icon { width: 15px; height: 15px; }
.w-card-body { padding: 12px 9px 6px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.w-card h3 { margin: 0; font-size: 19px; font-weight: 750; line-height: 1.4; letter-spacing: -.4px; overflow-wrap: anywhere; }
.w-card p { margin: 0; color: var(--w-muted); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-meta { margin-top: auto; padding-top: 5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--w-muted); }
.w-author-dot { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--w-brand-soft); border: 1px solid var(--w-line); color: var(--w-ink); font-weight: 700; }
.w-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.w-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.w-tag { font-size: 11.5px; padding: 2px 9px; border-radius: 7px; background: var(--w-brand-soft); color: var(--w-brand); }
.w-empty { text-align: center; padding: 54px 20px; color: var(--w-muted); border: 1px dashed var(--w-line-strong); border-radius: var(--w-radius); background: var(--w-card); }
.w-empty strong { display: block; color: var(--w-ink); margin-bottom: 6px; font-size: 16px; }
.w-panel { background: var(--w-card); border: 1px solid var(--w-line); border-radius: var(--w-radius); padding: 20px; box-shadow: var(--w-shadow); }
.w-field { display: flex; flex-direction: column; min-width: 0; gap: 6px; margin-bottom: 15px; }
.w-field label { font-size: 13px; font-weight: 650; color: var(--w-muted); }
.w-field input[type=text], .w-field input[type=url], .w-field textarea, .w-field select {
  min-width: 0; width: 100%; border: 1px solid var(--w-line); background: var(--w-input); border-radius: 9px;
  padding: 10px 12px; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.w-field input:focus, .w-field textarea:focus, .w-field select:focus { border-color: var(--w-brand); box-shadow: 0 0 0 3px var(--w-brand-soft); }
.w-field input[type=file] { max-width: 100%; font-size: 12px; }
.w-field input[type=file]::file-selector-button { border: 1px solid var(--w-line); background: var(--w-brand-soft); color: var(--w-ink); border-radius: 7px; padding: 6px 10px; margin-right: 8px; cursor: pointer; }
.w-field textarea { resize: vertical; min-height: 80px; }
.w-hint { font-size: 12px; color: var(--w-muted); }
.w-row { display: flex; gap: 14px; flex-wrap: wrap; }
.w-row > * { flex: 1 1 200px; }
.w-drop { border: 2px dashed #b49339; border-radius: var(--w-radius); padding: 26px 20px; text-align: center; background: var(--w-brand-soft); transition: border-color .16s, background-color .16s; }
.w-drop.over { border-color: var(--w-ink); background: var(--w-brand-solid); }
.w-drop h2 { margin: 2px 0 6px; font-size: 19px; }
.w-drop p { margin: 0 0 15px; color: var(--w-muted); font-size: 13px; }
.w-drop .w-btn { margin: 0 4px; }
.w-drop-icon { display: block; margin: 0 auto 5px; image-rendering: pixelated; }
:is(html.theme-dark, html.dark, html[data-theme="dark"]) .w-drop-icon { filter: invert(.85); }
.w-progress { height: 7px; border-radius: 4px; background: var(--w-line); overflow: hidden; margin: 12px 0; }
.w-progress > i { display: block; height: 100%; width: 0; background: var(--w-brand-solid); transition: width .2s; }
.w-note { border-radius: 9px; padding: 11px 13px; font-size: 13px; line-height: 1.6; }
.w-note.info { background: var(--w-brand-soft); color: var(--w-brand); }
.w-note.ok { background: color-mix(in srgb, var(--w-ok) 10%, var(--w-card)); color: var(--w-ok); }
.w-note.warn { background: color-mix(in srgb, var(--w-warn) 10%, var(--w-card)); color: var(--w-warn); }
.w-note.bad { background: color-mix(in srgb, var(--w-danger) 10%, var(--w-card)); color: var(--w-danger); }
.w-detail { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.w-stage { position: relative; border-radius: var(--w-radius); overflow: hidden; border: 1px solid var(--w-line-strong); background: #23221d; aspect-ratio: 16 / 9; }
.w-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #23221d; }
.w-stage-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-stage-empty { display: grid; place-items: center; height: 100%; color: #fff1c4; font-size: 14px; gap: 10px; text-align: center; padding: 20px; }
.w-detail h1 { font-size: clamp(23px, 2.6vw, 29px); margin: 18px 0 8px; letter-spacing: -.5px; line-height: 1.3; }
.w-detail .w-summary { color: var(--w-muted); font-size: 14px; margin: 0 0 12px; }
.w-actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 16px 0; }
.w-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--w-muted); margin-bottom: 12px; }
.w-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 78px; }
.w-comments { margin-top: 26px; }
.w-comment { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid var(--w-line); }
.w-comment:first-child { border-top: 0; }
.w-comment-body { flex: 1; min-width: 0; }
.w-comment-body header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--w-muted); margin-bottom: 3px; }
.w-comment-body header b { color: var(--w-ink); font-size: 13px; }
.w-comment-body p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.w-comment-del { border: 0; background: none; color: var(--w-muted); font-size: 12px; padding: 0; }
.w-comment-del:hover { color: var(--w-danger); }
.w-list { display: flex; flex-direction: column; gap: 11px; }
.w-item { display: flex; gap: 12px; align-items: center; background: var(--w-card); border: 1px solid var(--w-line); border-radius: 12px; padding: 13px; }
.w-item .w-thumb { width: 72px; height: 54px; border-radius: 7px; overflow: hidden; flex: none; background: var(--w-brand-soft); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--w-muted); }
.w-item .w-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-item-main { flex: 1; min-width: 0; }
.w-item-main h3 { margin: 0 0 3px; font-size: 15px; overflow-wrap: anywhere; }
.w-item-main p { margin: 0; font-size: 12px; color: var(--w-muted); }
.w-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.w-status { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--w-brand-soft); color: var(--w-muted); white-space: nowrap; }
.w-status.published { background: color-mix(in srgb, var(--w-ok) 10%, var(--w-card)); color: var(--w-ok); }
.w-status.reviewing { background: color-mix(in srgb, var(--w-warn) 10%, var(--w-card)); color: var(--w-warn); }
.w-status.removed, .w-status.hidden { background: color-mix(in srgb, var(--w-danger) 10%, var(--w-card)); color: var(--w-danger); }
.w-toast { position: fixed; left: 50%; bottom: 26px; max-width: calc(100vw - 32px); transform: translateX(-50%) translateY(10px); background: #29271f; color: #ffefba; padding: 11px 17px; border-radius: 9px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.w-toast.on { opacity: .98; transform: translateX(-50%) translateY(0); }
.w-filelist { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow: auto; margin-top: 12px; font-size: 12px; color: var(--w-muted); text-align: left; }
.w-filelist div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.w-filelist span { overflow-wrap: anywhere; }
.w-filelist span:last-child { flex: none; }
@media (min-width: 900px) { .w-hero { min-height: 270px; } }
@media (max-width: 1000px) {
  .w-top { gap: 14px; padding-inline: 20px; }
  .w-brand { font-size: 16px; }
  .w-nav { gap: 2px; }
  .w-nav a { padding-inline: 10px; }
  .w-hero { padding: 26px; }
  .w-hero h1 { font-size: 38px; letter-spacing: -1.5px; }
  .w-hero-copy { width: 57%; }
  .w-hero-art { width: 52%; height: 94%; }
  .w-toolbar { gap: 10px; margin-inline: 0; }
  .w-seg { gap: 5px; }
  .w-seg button { padding-inline: 12px; }
  #sorts { padding-left: 10px; }
  .w-search { flex-basis: 170px; }
  .w-card h3 { font-size: 17px; }
}
@media (max-width: 860px) {
  .w-detail { grid-template-columns: minmax(0, 1fr); }
  .w-side { position: static; }
  .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 112px; }
  .w-wrap { padding: 16px 16px 60px; }
  .w-world { background-size: 100% auto; opacity: .55; }
  .w-top { padding: 8px 16px; gap: 0 10px; flex-wrap: wrap; }
  .w-brand { font-size: 15px; gap: 6px; }
  .w-brand-bird { width: 30px; height: 30px; }
  .w-nav { order: 3; width: 100%; gap: 9px; margin-top: 5px; }
  .w-nav a { font-size: 12px; padding: 5px 10px; }
  .w-top-right { gap: 6px; }
  .w-ava { width: 29px; height: 29px; }
  .w-hero { padding: 23px 21px 0; min-height: 0; }
  .w-hero-copy { width: 100%; }
  .w-hero h1 { font-size: clamp(29px, 7.4vw, 42px); letter-spacing: -1.2px; line-height: 1.2; }
  .w-hero p { font-size: 12px; margin-top: 11px; line-height: 1.8; }
  .w-hero-actions { gap: 12px; margin-top: 18px; }
  .w-hero .w-btn { min-width: 115px; min-height: 42px; padding: 8px 15px; font-size: 14px; }
  .w-hero-art { position: relative; right: auto; bottom: auto; display: block; width: calc(100% + 34px); max-width: none; height: auto; aspect-ratio: 5 / 2.5; margin: 9px -17px 0; object-fit: contain; object-position: bottom; }
  .w-toolbar { gap: 10px 8px; margin: 22px 0 16px; }
  #cats { width: 100%; gap: 6px; }
  .w-seg button { flex: 1; padding: 7px 12px; min-height: 38px; font-size: 13px; }
  #sorts { border: 0; padding: 0; }
  .w-search { flex-basis: 160px; }
  .w-search input { font-size: 16px; }
  .w-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .w-cover { aspect-ratio: 16 / 8.7; }
  .w-card h3 { font-size: 20px; }
  .w-card-body { padding: 12px 9px 9px; }
  .w-card p { font-size: 14px; }
  .w-meta { font-size: 12px; }
  .w-field input[type=text], .w-field input[type=url], .w-field textarea, .w-field select { font-size: 16px; }
  .w-panel { padding: 17px; }
  .w-item { flex-wrap: wrap; gap: 10px; }
  .w-item .w-thumb { width: 56px; height: 44px; }
  .w-item-main { flex-basis: calc(100% - 110px); }
  .w-item-actions { width: 100%; justify-content: flex-end; }
  .w-status { margin-left: auto; }
  .w-drop { padding: 24px 14px; }
  .w-drop .w-btn { margin: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .w-card:hover { transform: none; } }

/* Compact zone shortcuts keep real projects in the first viewport. */
.w-zones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 0}
.w-zone{
  display:flex;align-items:center;gap:11px;min-width:0;padding:6px 10px;overflow:hidden;text-decoration:none;
  background:var(--w-card);border:1px solid var(--w-line);border-radius:10px;color:var(--w-ink);
  transition:background-color .14s,border-color .14s;
}
.w-zone:hover{background:var(--w-brand-soft);border-color:var(--w-brand)}
.w-zone[aria-current="true"]{background:var(--w-brand-soft);border-color:var(--w-brand)}
.w-zone-art{display:block;width:48px;height:34px;flex:none;overflow:hidden;border-radius:6px;background:var(--w-brand-soft)}
.w-zone-art img{width:100%;height:100%;object-fit:cover;display:block;image-rendering:pixelated}
.w-zone-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.w-zone-body strong{font-size:14px;font-weight:750;line-height:1.25}
.w-zone-body small{font-size:11px;line-height:1.3;color:var(--w-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w-zone-go{width:17px;height:17px;flex:none;margin-left:auto;opacity:.5;image-rendering:pixelated}
:is(html.theme-dark,html.dark,html[data-theme="dark"]) .w-zone-go{filter:invert(1)}
@media (max-width:860px){.w-zone-body small{display:none}.w-zone-go{display:none}.w-zone-art{width:44px;height:36px}.w-zone{gap:8px}}
@media (max-width:640px){.w-zones{gap:7px;margin-top:16px}.w-zone{padding:7px;gap:5px}.w-zone-art{width:31px;height:30px}.w-zone-body strong{font-size:12px}.w-toolbar{margin-top:16px}}

.w-zip-option{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:18px;font-size:12px;color:var(--w-muted)}.w-zip-option input{accent-color:var(--w-brand-solid);width:16px;height:16px}.w-filelist span:first-child{overflow-wrap:anywhere;min-width:0}.w-filelist span:last-child{white-space:nowrap}

/* Shared bottom navigation for the gallery, publishing and personal works. */
.w-dock { position: fixed; z-index: 10; bottom: max(18px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid var(--w-line-strong); border-radius: 16px; background: var(--w-card); box-shadow: 3px 4px 0 #29271f,0 8px 38px #75633c18; }
.w-dock-main { display: flex; align-items: center; justify-content: center; gap: 9px; padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid var(--w-line); }
.w-dock-main :is(a,button) { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 18px; border: 0; border-radius: 8px; background: transparent; color: var(--w-muted); font-size: 13px; white-space: nowrap; }
.w-dock-main :is(a,button)[aria-current="page"] { background: var(--w-brand-solid); color: var(--w-on-brand); font-weight: 750; }
.w-dock-main :is(a,button):hover { color: var(--w-ink); background: var(--w-brand-soft); }
.w-dock-filters { display: flex; align-items: center; justify-content: center; gap: 14px; }
.w-dock .w-seg { gap: 6px; }
.w-dock .w-seg button { min-height: 34px; padding: 5px 13px; font-size: 12px; }
.w-dock #sorts { padding-left: 14px; }
.w-dock-nav-only .w-dock-main { padding: 0; margin: 0; border: 0; }
.w-has-dock .w-wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) {
  .w-dock { width: calc(100vw - 28px); max-width: 390px; padding: 9px 10px; bottom: max(12px,env(safe-area-inset-bottom)); border-radius: 13px; }
  .w-dock-main { gap: 2px; padding-bottom: 8px; margin-bottom: 8px; }
  .w-dock-main :is(a,button) { flex: 1; min-height: 34px; padding: 5px 7px; font-size: 12px; }
  .w-dock-filters { justify-content: space-between; gap: 7px; }
  .w-dock .w-seg { gap: 4px; }
  .w-dock .w-seg button { padding: 5px 8px; font-size: 11px; min-height: 33px; flex: none; }
  .w-dock #cats { width: auto; }
  .w-dock #sorts { border-left: 1px solid var(--w-line); padding-left: 7px; }
}

.w-web-option{margin:0 0 18px;padding:13px 14px;border:1px solid var(--w-line-strong);border-radius:10px;background:var(--w-brand-soft)}
.w-web-option label{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;cursor:pointer}
.w-web-option input{width:18px;height:18px;flex:none;accent-color:var(--w-brand-solid)}
.w-web-option:has(input:disabled){background:var(--w-card);border-color:var(--w-line)}
.w-web-option:has(input:disabled) label{color:var(--w-muted);cursor:not-allowed}
.w-web-option p{margin:7px 0 0;font-size:12px;line-height:1.65;color:var(--w-muted);overflow-wrap:anywhere}

/* Hosting stays inside publish/management surfaces; plaza scroll behavior is unchanged. */
.w-hosting-publish { padding-bottom:calc(150px + env(safe-area-inset-bottom)); }
.w-hosting-publish > h1 { max-width:24em; line-height:1.35; }
.w-hosting-publish .w-drop { transition:transform 160ms ease; }
.w-hosting-publish .w-drop.over { transform:scale(1.015); }
.w-hosting { margin-top:16px; min-width:0; }
.w-hosting section + section { margin-top:16px; }
.w-hosting-summary { display:flex;align-items:center;gap:12px;animation:w-hosting-arrive 220ms ease both; }
.w-hosting-summary img { flex:none;object-fit:contain;image-rendering:pixelated;pointer-events:none; }
.w-hosting-summary p { margin:2px 0 8px;font-size:13px;color:var(--w-muted); }
.w-hosting-issues { padding-left:22px;font-size:13px;overflow-wrap:anywhere; }
.w-hosting-warnings { margin:12px 0;padding:11px 13px;border:1px solid var(--w-line);border-radius:9px;background:var(--w-brand-soft);color:var(--w-ink);font-size:13px;line-height:1.65;overflow-wrap:anywhere; }
.w-hosting-warnings ul { margin:5px 0 0;padding-left:20px; }
.w-hosting-config-field { min-width:0;margin-bottom:15px; }
.w-hosting-config-field > .w-field { margin-bottom:4px; }
.w-hosting-origin { display:block;color:var(--w-muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere; }
.w-hosting-scan-note { line-height:1.65; }
.w-hosting-advanced { margin:14px 0; }
.w-hosting summary,.w-managed-hosting > summary { cursor:pointer;font-size:13px;padding:10px 0;font-weight:650; }
.w-hosting details[open] > summary { margin-bottom:8px; }
.w-hosting input[type=password],.w-hosting input[type=number] { width:100%;padding:10px 12px;border:1px solid var(--w-line);border-radius:9px;background:var(--w-input); }
.w-hosting-phase { padding:10px 12px;border-left:3px solid var(--w-brand-solid);background:var(--w-brand-soft);border-radius:8px; }
.w-hosting-phase.new-phase { animation:w-hosting-phase 180ms ease both; }
.w-hosting-phase.w-hosting-complete { animation:w-hosting-complete 340ms ease both; }
.w-hosting-phase p { margin:4px 0 0;font-size:13px; }
.w-hosting-actions { display:flex;gap:8px;flex-wrap:wrap;align-items:center; }
.w-hosting-actions button { min-height:42px; }
.w-hosting .w-hint { overflow-wrap:anywhere; }
.w-hosting-progress > i { width:100%;transform:scaleX(0);transform-origin:left;transition:transform 160ms linear; }
.w-hosting-logs { max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--w-input);padding:12px;border:1px solid var(--w-line);border-radius:8px;font-size:12px; }
.w-hosting-rollback { margin-top:12px; }
.w-hosting-rollback select { max-width:100%;background:var(--w-input);border:1px solid var(--w-line);padding:8px;border-radius:8px; }
.w-managed-item { flex-wrap:wrap; }
.w-managed-hosting { flex-basis:100%;min-width:0;border-top:1px solid var(--w-line); }
.w-managed-hosting .w-hosting { margin:0; }
.w-hosting :focus-visible,.w-managed-hosting summary:focus-visible { outline:3px solid var(--w-brand);outline-offset:3px; }
.w-hosting-offscreen * { animation-play-state:paused!important; }
@keyframes w-hosting-arrive { from { opacity:0;transform:translateY(8px); } to { opacity:1;transform:translateY(0); } }
@keyframes w-hosting-phase { from { opacity:.45; } to { opacity:1; } }
@keyframes w-hosting-complete { 0% { opacity:.6;transform:scale(.985); } 65% { opacity:1;transform:scale(1.012); } 100% { transform:scale(1); } }
@media(max-width:600px) { .w-hosting-publish > h1 { font-size:22px!important; }.w-hosting-actions .w-btn { flex:1 1 140px; }.w-hosting input,.w-hosting select { font-size:16px!important; }.w-hosting-publish .w-panel { padding:16px; } }
@media(prefers-reduced-motion:reduce) { .w-hosting *, .w-hosting-publish .w-drop,.w-hosting-progress > i { animation:none!important;transition:none!important;transform:none; }.w-hosting-progress > i { transform:var(--upload-transform,scaleX(0)); } }

/* Billing stays within the existing mine panel and palette. */
.w-billing-balances p { margin:0 0 4px;font-size:13px;font-weight:650; }
.w-billing-panel { margin-top:12px;border-top:1px solid var(--w-line); }
.w-billing-panel > summary { display:list-item;line-height:1.6; }
.w-billing-panel > summary .w-hint { margin-left:8px;font-weight:400; }
.w-billing-plan { padding:14px;background:var(--w-brand-soft);border:1px solid var(--w-line);border-radius:10px; }
.w-billing-plan p { margin:0 0 10px; }
.w-billing-plan .w-billing-price { font-size:20px;font-weight:750;color:var(--w-brand); }
.w-billing-panel h3 { font-size:14px;margin:18px 0 8px; }
.w-billing-orders { display:grid;gap:8px; }
.w-billing-order { padding:12px 0;border-bottom:1px solid var(--w-line);min-width:0;overflow-wrap:anywhere; }
.w-billing-order h4 { margin:0 0 8px;font-size:13px; }
.w-billing-order-facts { display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px; }
.w-billing-order-facts code { font-size:11px;overflow-wrap:anywhere; }
.w-billing-order .w-hint { margin:7px 0; }
.w-billing-check { display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.7;margin:12px 0; }
.w-billing-check input { flex:none;margin-top:5px;accent-color:var(--w-brand); }
.w-billing-footer { margin-top:12px; }
.w-billing-panel select { max-width:100%; }
.w-billing-panel form { max-width:100%; }
.w-billing-panel [data-billing-instructions] { white-space:pre-wrap;overflow-wrap:anywhere; }
.w-billing-qr { display:block;width:min(224px,100%);height:auto;margin:12px 0;background:#fff; }
@media(max-width:600px) { .w-billing-panel > summary .w-hint { display:block;margin-left:0; }.w-billing-order-facts { align-items:flex-start;flex-direction:column; }.w-billing-panel .w-btn { min-height:44px; } }

/* Download actions stay outside the card link for keyboard and touch access. */
.w-card-with-downloads{min-width:0;display:flex;flex-direction:column;gap:8px}
.w-card-with-downloads>.w-card{flex:1}
.w-installers{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}
.w-installers .w-btn{flex:1 1 220px;min-height:60px;min-width:0;padding:16px 24px;border-radius:12px;font-size:16px;white-space:normal;text-align:center}
.w-installers .w-btn span{font-size:13px;opacity:.75}
.w-card-with-downloads>.w-installers{margin:0}
.w-installer-picker{margin-top:16px}
.w-installer-picker h2{font-size:16px;margin:0 0 8px}
.w-installer-picker input[type=checkbox],.w-share-option input{width:auto;accent-color:var(--w-accent)}
.w-installer-picker input[type=file]{max-width:100%}
.w-share-option{display:flex;align-items:flex-start;gap:8px;font-size:13px;margin:12px 0}

/* Creator workspace keeps projects central and resource controls alongside. */
.w-workbench{max-width:1240px;padding-top:32px;padding-bottom:140px}
.w-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.w-workspace-eyebrow{margin:0 0 7px;color:var(--w-brand);font-size:11px;font-weight:750;letter-spacing:2px}
.w-workspace-heading h1{margin:0;font-size:32px;letter-spacing:-1px;line-height:1.3}
.w-workspace-subtitle{margin:9px 0 0;font-size:13px;color:var(--w-muted)}
.w-workspace-heading>.w-btn{flex:none;min-height:44px}
.w-creator-prompt-bar{display:flex;align-items:center;gap:14px;min-height:66px;padding:10px 14px 10px 22px;margin-bottom:30px;border:1px solid #db852f;border-radius:12px;background:#ffbb75;color:#48270e;box-shadow:0 3px 0 #bf712517}
.w-creator-prompt-mark{font-size:25px;line-height:1;flex:none}
.w-creator-prompt-bar>strong{font-size:15px;font-weight:750;line-height:1.5}
.w-creator-prompt-actions{display:flex;gap:8px;margin-left:auto;flex:none}
.w-creator-prompt-actions button{min-width:62px;min-height:44px;padding:8px 13px;border:1px solid #9e5b25;border-radius:8px;background:#fff6e8;color:#48270e;font:inherit;font-size:13px;font-weight:700}
.w-creator-prompt-actions button:last-child{background:transparent}
.w-creator-prompt-actions button:hover{background:#ffe5c5}
.w-creator-prompt-actions button:focus-visible,.w-prompt-dialog :focus-visible{outline:3px solid var(--w-brand);outline-offset:3px}
.w-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:start}
.w-workspace-grid:has(>.w-workspace-resources[hidden]){grid-template-columns:minmax(0,1fr)}
.w-workspace-projects,.w-workspace-resources{min-width:0}
.w-workspace-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:28px}
.w-workspace-section-heading h2{margin:0;font-size:17px;font-weight:750}
.w-workspace-section-heading>.w-hint{padding:3px 9px;border:1px solid var(--w-line);border-radius:6px;background:var(--w-card);font-variant-numeric:tabular-nums}
.w-workspace-projects .w-list{gap:16px}
.w-workspace-projects .w-managed-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px 12px;padding:20px;border-color:var(--w-line-strong);box-shadow:0 3px 0 #9b844b0a}
.w-workspace-projects .w-item .w-thumb{width:72px;height:60px}
.w-workspace-projects .w-item-main h3{font-size:18px;margin-bottom:5px}
.w-workspace-projects .w-item-main p{font-size:12px;line-height:1.6}
.w-workspace-projects .w-item-actions,.w-workspace-projects .w-managed-hosting{grid-column:1 / -1}
.w-workspace-projects .w-item-actions{justify-content:flex-start;gap:8px}
.w-workspace-projects .w-item-actions .w-btn{min-height:40px;padding:8px 12px}
.w-workspace-projects .w-item-actions [data-delete]{margin-left:auto;color:var(--w-muted);border-color:transparent}
.w-workspace-projects .w-managed-hosting>summary{padding:13px 0 0;color:var(--w-muted);font-size:12px}
.w-workspace-resources .w-panel{padding:18px;border-radius:12px;box-shadow:none}
.w-workspace-quota h3{font-size:14px;margin:0 0 10px}
.w-workspace-quota #quotaText{font-size:12px;color:var(--w-muted);line-height:1.8;margin:0 0 10px}
.w-workspace-quota .w-progress{height:6px;margin:0}
.w-workspace-quota>.w-hint{margin:12px 0 0;font-size:11px}
.w-workspace-resources .w-hosting{margin-top:14px}
.w-workspace-resources .w-billing-balances>p{font-size:13px;line-height:1.8;margin-top:0}
.w-workspace-resources .w-billing-price{font-size:22px}
.w-workspace-resources summary{line-height:1.7}
.w-workspace-resources .w-billing-footer .w-btn{width:100%}
.w-workspace-projects .w-empty{padding:56px 24px}
.w-workspace-projects .w-empty>span{display:block;margin-top:8px;font-size:13px;line-height:1.8}
.w-creator-center .w-toast{bottom:calc(100px + env(safe-area-inset-bottom))}
.w-creator-center:has(.w-prompt-dialog[open]){overflow:hidden}
.w-prompt-dialog{width:min(820px,calc(100vw - 28px));height:min(780px,86dvh);max-height:86dvh;padding:0;border:1px solid var(--w-line-strong);border-radius:16px;background:var(--w-card);color:var(--w-ink);box-shadow:0 24px 100px #0005}
.w-prompt-dialog[open]{display:flex;flex-direction:column}
.w-prompt-dialog::backdrop{background:#211a1499;backdrop-filter:blur(4px)}
.w-prompt-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid var(--w-line)}
.w-prompt-dialog-heading h2{font-size:20px;line-height:1.5;margin:0 0 5px}
.w-prompt-dialog-heading p{font-size:12px;color:var(--w-muted);margin:0;line-height:1.8}
.w-prompt-dialog-heading form{flex:none;margin:0}
.w-prompt-dialog textarea{flex:1;min-height:0;width:100%;margin:0;padding:22px 24px;border:0;border-radius:0;background:var(--w-bg);color:var(--w-ink);resize:none;font:14px/1.9 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;overscroll-behavior:contain}
.w-prompt-dialog textarea:focus-visible{outline-offset:-3px}
.w-prompt-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--w-line)}
.w-prompt-dialog-footer p{margin:0;font-size:12px;line-height:1.6;color:var(--w-muted)}
.w-prompt-dialog-footer>.w-btn{flex:none;min-height:44px}
@media(max-width:960px){.w-workspace-grid{grid-template-columns:minmax(0,1fr)}.w-workspace-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.w-workspace-resources>.w-workspace-section-heading{grid-column:1 / -1;margin-bottom:0}.w-workspace-resources .w-hosting{margin:0}}
@media(max-width:640px){
  .w-workbench{padding-top:24px;padding-bottom:130px}
  .w-workspace-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}
  .w-workspace-heading h1{font-size:28px}
  .w-workspace-subtitle{font-size:12px}
  .w-creator-center .w-nav{gap:2px}.w-creator-center .w-nav a{padding-inline:8px}
  .w-creator-prompt-bar{padding:13px 12px;gap:9px;flex-wrap:wrap;margin-bottom:24px}
  .w-creator-prompt-bar>strong{font-size:14px;flex:1}
  .w-creator-prompt-mark{font-size:21px}
  .w-creator-prompt-actions{width:100%;margin-left:0}.w-creator-prompt-actions button{flex:1}
  .w-workspace-resources{display:block}.w-workspace-resources>.w-workspace-section-heading{margin-bottom:14px}.w-workspace-resources .w-hosting{margin-top:14px}
  .w-workspace-projects .w-managed-item{grid-template-columns:54px minmax(0,1fr) auto;padding:15px;gap:14px 9px}
  .w-workspace-projects .w-item .w-thumb{width:54px;height:48px}
  .w-workspace-projects .w-item-main h3{font-size:16px}.w-workspace-projects .w-item-main p{font-size:11px}
  .w-workspace-projects .w-item-actions .w-btn{min-height:44px;padding:8px 10px}
  .w-prompt-dialog{width:calc(100vw - 20px);height:90dvh;max-height:90dvh;border-radius:12px}
  .w-prompt-dialog-heading{padding:16px;gap:12px}.w-prompt-dialog-heading h2{font-size:17px}
  .w-prompt-dialog-heading p{font-size:11px}.w-prompt-dialog-heading .w-btn{padding:8px 10px}
  .w-prompt-dialog textarea{padding:16px;font-size:16px}
  .w-prompt-dialog-footer{padding:12px 16px;gap:12px}
}

.w-managed-card{position:relative;min-width:0;padding-bottom:38px}.w-managed-card>.w-card{height:100%}.w-manage{position:absolute;right:14px;bottom:4px;padding:6px 14px;border:1px solid currentColor;border-radius:9px;background:transparent;color:inherit;cursor:pointer}.w-metadata-editor{width:min(440px,calc(100vw - 32px));border:1px solid #888;border-radius:18px;padding:24px;background:Canvas;color:CanvasText}.w-metadata-editor::backdrop{background:#0006}.w-metadata-editor label{display:grid;gap:7px;margin:16px 0}.w-metadata-editor input,.w-metadata-editor select,.w-metadata-editor textarea{font:inherit;padding:10px;border:1px solid #aaa;border-radius:8px;max-width:100%;box-sizing:border-box}.w-metadata-editor footer{display:flex;justify-content:flex-end;gap:12px}.w-metadata-editor button{font:inherit;padding:8px 18px;border-radius:8px;cursor:pointer}.w-metadata-editor [role=status]{min-height:1.5em}
