:root {
  color-scheme: light;
  --bg: #fff; --paper: #fff; --ink: #141414; --ink-2: #4a4a4a; --muted: #696969;
  --stroke: #e6e4df; --soft: #f7f6f3; --hero: #fff3df; --herotext: #141414;
  --action: #ffa110; --onaction: #141414; --accent: #a35a00;
  --site-header-height:64px; --site-gutter:clamp(20px,4vw,40px); --section-nav-height:66px;
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button { color: inherit; cursor: pointer; }
button[disabled] { cursor: default; opacity: .6; }
button:active:not([disabled]), .button:active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width:100%;max-width:calc(1200px + 2 * var(--site-gutter));padding-inline:var(--site-gutter);margin-inline:auto; }
.mast { position:sticky;top:0;z-index:50;height:var(--site-header-height);border-bottom:1px solid var(--stroke);background:rgb(255 255 255 / .9);backdrop-filter:blur(16px) saturate(180%); }
.site-header-inner { width:100%;max-width:calc(1200px + 2 * var(--site-gutter));height:100%;padding-inline:var(--site-gutter);margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:20px; }
.community-mast .brand { gap:9px;font-size:16px;font-weight:700; }
.community-mast .brand img { width:30px;height:30px;border-radius:0; }
.community-mast .actions { flex-wrap:nowrap;gap:20px; }
.publish-entry { display:flex;align-items:center;gap:16px; }
.publish-entry>.button { white-space:nowrap; }
.publish-entry>a.button { color:var(--onaction); }
.publish-hint { font-size:12px;color:var(--muted);white-space:nowrap; }
.site-footer>.shell>a { font-size:13px;color:var(--muted);text-decoration:none; }
.bar, .row, .actions { display: flex; align-items: center; gap: 12px; }
.bar { min-height: 72px; justify-content: space-between; }
.brand { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -.025em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.actions { gap: 24px; flex-wrap: wrap; }
.actions a { font-size: 14px; text-decoration: none; color: var(--muted); }
.actions a:hover, .actions a[aria-current=page] { color: var(--ink); }
.actions a[aria-current=page] { font-weight: 650; }
main { min-height: 60vh; padding-block: 48px 80px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.25; letter-spacing: -.025em; }
h2 { font-size: 24px; letter-spacing: -.015em; line-height: 1.4; }
h3 { font-size: 19px; line-height: 1.5; }
p { text-wrap: pretty; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--stroke); margin-bottom: 28px; }
.catalog-intro { padding-block: 16px 32px; max-width: 680px; }
.catalog-intro h1 { margin-block: 12px 16px; }
.catalog-intro > p:last-child { font-size: 18px; color: var(--ink-2); }
.field { display: block; margin: 12px 0; }
.field input, .field textarea, textarea.field, select.field, input.field, .search input, dialog input { background: var(--soft); border: 1px solid var(--stroke); border-radius: 10px; min-height: 44px; padding: 10px 14px; width: 100%; color: var(--ink); font: inherit; }
.search { display: flex; gap: 8px; width: min(100%, 360px); }
.search input { font-size: 14px; }
.button, .secondary, .pill { border: 1px solid transparent; border-radius: 10px; min-height: 44px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1.5; }
.button { background: var(--action); color: var(--onaction); }
.button:hover:not(:disabled) { background: #f29400; }
.secondary, .pill { background: var(--paper); border-color: var(--stroke); }
.secondary:hover:not(:disabled) { background: var(--soft); }
.hero { display: flex; align-items: center; gap: 32px; padding: 36px; min-height: 224px; border-radius: 16px; background: var(--soft); color: var(--herotext); text-decoration: none; }
.hero .featured-mark { width: 120px; height: 120px; flex: none; border-radius: 24px; background: var(--paper); }
.hero h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; overflow-wrap: anywhere; }
.hero p { margin: 12px 0; color: var(--ink-2); overflow-wrap: anywhere; }
.hero .featured-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.hero .featured-cta { color: var(--accent); font-size: 14px; font-weight: 600; }
.card-mark, .featured-mark { display: grid; place-items: center; object-fit: contain; color: var(--accent); background: var(--hero); font-size: 28px; font-weight: 600; }
.card-mark { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 12px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.muted, .metric span { color: var(--muted); font-size: 14px; }
.section-title { margin: 32px 0 20px; font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card, .panel, .empty { background: var(--paper); border: 1px solid var(--stroke); border-radius: 14px; padding: 24px; overflow-wrap: anywhere; }
.card { display: flex; flex-direction: column; text-decoration: none; gap: 8px; }
.card:hover { border-color: #b9b4aa; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.card .fine { margin-top: auto; padding-top: 20px; }
.fine { color: var(--muted); font-size: 13px; }
.empty { padding: 56px 24px; text-align: center; background: var(--soft); border-color: transparent; }
.empty p { margin: 12px 0 20px; color: var(--muted); }
.more { margin: 28px auto; display: block; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 24px; color: var(--muted); font-size: 13px; text-decoration: none; }
.back:hover { color: var(--ink); }
.intro { display: grid; gap: 8px; overflow-wrap: anywhere; }
.detail-title { align-items: flex-start; }
.notice { font-size: 14px; color: var(--muted); margin: 12px 0; }
.metrics { display: flex; gap: 40px; padding: 24px; flex-wrap: wrap; margin: 24px 0; }
.metric { display: grid; gap: 8px; }
.prose { margin-top: 28px; overflow-wrap: anywhere; }
.prose > * { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 24px; }
.prose code, .prose pre { background: var(--soft); border-radius: 4px; padding: 2px 4px; }
.prose pre { padding: 16px; white-space: pre-wrap; }
.prose blockquote { border-left: 3px solid var(--stroke); margin-left: 0; padding-left: 16px; color: var(--muted); }
.role { white-space: pre-wrap; }
dialog { max-width: min(440px, calc(100% - 32px)); width: 100%; border: 1px solid var(--stroke); border-radius: 20px; background: var(--paper); padding: 28px; color: var(--ink); box-shadow: 0 24px 60px #1414141f; }
dialog::backdrop { background: #14141466; }
dialog h2 { margin-bottom: 16px; font-size: 22px; }
dialog .actions { justify-content: flex-end; gap: 8px; margin-top: 24px; }
dialog form.provider button { width: 100%; margin-top: 12px; }
.login-explanation { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.error { color: #a43d30; margin: 12px 0; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--stroke); }
.tabs .secondary { border: 0; border-radius: 0; background: none; padding-inline: 0; color: var(--muted); }
.tabs [aria-pressed=true] { color: var(--ink); box-shadow: inset 0 -2px var(--action); }
#feedback:not(:empty) { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: 12px; max-width: calc(100% - 32px); }
.claim-recipe { display: grid; gap: 4px; margin: 0 0 20px; overflow-wrap: anywhere; }
.claim-recipe strong { font-size: 15px; }
.claim-recipe span { color: var(--muted); font-size: 13px; }
.additional-notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--stroke); font-size: 14px; }
.additional-notes summary { color: var(--muted); cursor: pointer; }
.additional-notes article { margin-top: 20px; overflow-wrap: anywhere; }
.additional-notes h3 { font-size: 16px; margin: 0 0 8px; }
.additional-notes p { white-space: pre-wrap; }
.setup-list { margin: 0; padding: 0 24px 0 48px; background: var(--paper); border: 1px solid var(--stroke); border-radius: 14px; }
.setup-list li { padding: 20px 0; overflow-wrap: anywhere; }
.setup-list li + li { border-top: 1px solid var(--stroke); }
.setup-list small { display: block; color: var(--muted); }
.setup-list p { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--stroke); background: var(--soft); padding-block: 32px; }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.skip { position: absolute; top: -100px; left: 20px; padding: 8px 16px; background: var(--ink); color: var(--paper); z-index: 1; }
.skip:focus { top: 12px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .actions { gap: 16px; } }
@media (max-width: 700px) {
  .bar { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 16px; }
  .bar .actions { width: 100%; gap: 8px 20px; }
  .bar .actions a { min-height: 40px; display: inline-flex; align-items: center; }
  .bar .secondary { margin-left: auto; }
  main { padding-block: 32px 56px; }
  .catalog-intro { padding-top: 0; }
  .catalog-intro > p:last-child { font-size: 16px; }
  .search { width: 100%; }
  .hero { padding: 24px; gap: 20px; align-items: flex-start; }
  .hero .featured-mark { width: 56px; height: 56px; border-radius: 14px; }
  .hero .intro { min-width: 0; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
  .page-top { margin-bottom: 24px; }
  .detail-title { align-items: stretch; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; }
}

.community-nav, .community-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; }
.community-nav a, .community-tabs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; }
.community-nav a[aria-current=page], .community-tabs a[aria-current=page] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px var(--action); }
.community-tabs { border-bottom: 1px solid var(--stroke); }
.card-main { display: flex; flex: 1; flex-direction: column; gap: 8px; text-decoration: none; }
.featured-main { color: inherit; text-decoration: none; }
.card-meta, .featured-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.author-link { color: var(--ink-2); text-decoration: none; text-underline-offset: 4px; }
.author-link:hover { color: var(--accent); text-decoration: underline; }

.catalog-welcome { max-width: 800px; margin-inline: auto; padding-top: 28px; padding-bottom: 0; text-align: center; }
.catalog-welcome h1 { margin-block: 16px; font-size: clamp(30px, 4vw, 44px); }
.catalog-welcome > p:last-of-type { font-size: 17px; }
.catalog-search-dock { position:sticky;top:var(--site-header-height);z-index:30;display:flex;align-items:center;gap:32px;margin-top:20px;margin-bottom:36px;padding-block:12px;background:var(--paper); }
.catalog-search { align-items:center;gap:12px;flex:1;min-width:0;width:auto;max-width:720px;margin-left:auto;padding:8px 8px 8px 20px;border:1px solid var(--stroke);border-radius:14px;background:var(--soft);box-shadow:0 2px 8px #14141404; }
.catalog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hero); }
.catalog-search > svg { flex: none; color: var(--muted); }
.catalog-search input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; }
.catalog-search input:focus-visible { outline: none; }
.catalog-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.catalog-search .search-submit { min-width: 76px; flex: none; }
.search-clear { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 24px; }
.search-clear:hover { color: var(--ink); background: var(--stroke); }
.community-nav { align-items:center;gap:24px;flex:none;padding:0;background:var(--paper); }
.catalog-search-dock .community-nav { flex-wrap:nowrap;margin:0; }
.community-rental { display:flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;color:var(--muted);white-space:nowrap;font-size:14px; }
.community-rental:disabled { opacity:1; }
.community-rental small { font-size:10px;font-weight:400; }
.community-nav a.community-create { margin-left: auto; padding-inline: 16px; background: var(--action); color: var(--onaction); font-weight: 600; }
.community-nav a.community-create:hover { background: #f29400; }
.community-nav a.community-library { margin-left:auto;padding-inline:16px;color:var(--ink);border:1px solid var(--stroke);box-shadow:none; }
.library-heading {display:flex;justify-content:space-between;align-items:center;gap:24px;margin:12px 0 32px}
.library-heading>.button {flex:none}.library-heading h1{font-size:clamp(30px,4vw,40px)}
.library-filters {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.library-filter {min-height:40px;padding:8px 16px;border:1px solid transparent;border-radius:20px;background:transparent;color:var(--muted);font-size:14px}
.library-filter[aria-pressed=true] {background:var(--ink);color:var(--paper)}
.library-filter:hover:not([aria-pressed=true]) {background:var(--soft);color:var(--ink)}
.library-state {align-self:flex-start;border-radius:6px;padding:3px 8px;font-size:12px;line-height:1.5;background:var(--soft);color:var(--muted)}
.library-state-drafts {background:var(--hero);color:var(--accent)}
.library-state-published {background:#edf5ef;color:#356047}
.library-cards .card>h3 {overflow-wrap:anywhere}
.library-version-toggle{justify-content:space-between;width:100%;font-size:13px}
.library-version-panel{padding:10px;border:1px solid var(--stroke);border-radius:10px;background:var(--soft)}
.library-version-options{display:grid;gap:4px;max-height:220px;overflow-y:auto;overscroll-behavior:contain}
.library-version-option{width:100%;justify-content:flex-start;min-height:40px;text-align:left;font-size:13px;border-color:transparent;background:transparent}
.library-version-option[aria-pressed=true]{background:var(--hero);color:var(--accent);border-color:#ffd89c}
.library-version-panel .library-version-count{margin:8px 0 0;font-size:12px}
.library-version-more{width:100%;margin-top:8px;font-size:13px}
@media(max-width:560px){.library-heading{align-items:flex-start;flex-direction:column;gap:20px}.library-filters{gap:4px}.library-filter{padding-inline:13px}}
.catalog-results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.catalog-results-heading h2 { font-size: 22px; overflow-wrap: anywhere; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.catalog-status { padding: 40px 0; color: var(--muted); text-align: center; }
.studio-create { display: grid; justify-items: start; gap: 12px; margin-bottom: 32px; }
.creation-dialog > p { margin-top: 16px; }
.creation-dialog .actions a { font-size: 14px; color: inherit; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary > span:last-child { max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-menu-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--hero); font-size: 12px; color: var(--accent); }
.account-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 192px; display: grid; padding: 8px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 32px #14141414; }
.account-menu nav a, .account-menu nav button { display: block; width: 100%; padding: 10px 12px; text-align: left; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.account-menu nav a:hover, .account-menu nav button:hover { background: var(--soft); }
.account-menu nav a[aria-disabled=true] { color: var(--muted); cursor: default; background: none; }
@media (max-width: 700px) {
  .catalog-welcome { padding-top: 20px; }
  .catalog-welcome > p:last-of-type { font-size: 15px; }
  .catalog-search-dock { margin-top: 12px; margin-bottom: 20px; }
  .catalog-search { gap: 8px; padding-left: 12px; }
  .catalog-search .search-submit { min-width: 60px; padding-inline: 12px; }
  .catalog-search-dock { gap:16px; }
  .community-nav { gap:16px; }
  .community-nav a.community-create { padding-inline: 12px; font-size: 13px; }
  .catalog-results-heading { gap: 16px; align-items: center; }
  .catalog-results-heading h2 { font-size: 19px; }
  .catalog-results-heading .text-button { flex: none; }
}
@media(max-width:900px){.publish-hint{display:none}}
@media(max-width:760px){
  :root{--site-header-height:56px}
  .site-header-inner{gap:12px}
  .community-mast .actions{gap:10px}
  .community-mast .account-menu summary>span:last-child{display:none}
}
@media(max-width:560px){
  .community-mast .brand{font-size:15px}
  .community-mast .actions{gap:8px}
  .community-mast .button,.community-mast .secondary{padding-inline:10px;font-size:13px}
  .catalog-search-dock{gap:12px}
  .community-nav{gap:12px}
  .community-nav a{font-size:13px;white-space:nowrap}
  .community-rental{display:flex;gap:4px;font-size:13px;line-height:1.4}
  .community-rental small{font-size:9px;line-height:1.3}
  .catalog-search{gap:8px;padding:4px 8px 4px 10px}
  .catalog-search .search-submit{display:none}
  .catalog-search input{font-size:14px;min-height:40px}
  .catalog-search>svg{width:16px;height:16px}
  .search-clear{width:28px;height:36px;font-size:22px}
}
@media(max-width:380px){
  .community-mast .brand{gap:7px;font-size:14px}
  .community-mast .brand img{width:26px;height:26px}
  .site-header-inner{gap:8px}
  .community-mast .button,.community-mast .secondary{padding-inline:8px}
  .catalog-search>svg{display:none}
}

html:has(.catalog-header) {--site-header-height:86px;}
.community-mast .catalog-header {display:grid; grid-template-columns:minmax(0,1fr) clamp(240px,35vw,500px) minmax(0,1fr); grid-template-rows:1fr auto; height:100%; gap:0 18px;padding-block:10px 5px;}
.catalog-header .brand {grid-area:1/1;justify-self:start;}
.catalog-header .community-nav {grid-area:2/1;justify-self:start;position:static;display:flex;align-items:center;width:auto;gap:16px;border:0;background:none;margin:0 0 0 40px;padding:0;}
.catalog-header .community-nav > * {min-height:26px;white-space:nowrap;font-size:12px;padding-block:2px;}
.catalog-header .catalog-search {grid-area:1/2/3/3;align-self:center;width:100%;margin:0;height:44px;min-height:0;padding:0 12px;border:0;border-radius:10px;background:#f5f5f7;gap:8px;}
.catalog-header .catalog-search input {font-size:13px;}
.catalog-header .catalog-search .search-submit {min-height:26px;font-size:12px;background:transparent;border:1px solid var(--stroke);border-radius:6px;padding:0 6px;color:var(--muted);cursor:pointer;}
.catalog-header .actions {grid-area:1/3/3/4;justify-self:end;}
.catalog-welcome {text-align:left;padding:16px 0 20px;width:100%;max-width:none;margin:0;}
.catalog-welcome h1 {font-size:30px;line-height:1.2;margin:0 0 8px;}
.catalog-welcome p {font-size:14px!important; margin:0;}
main.shell {max-width:1248px;padding-top:32px;}
@media(max-width:700px) {
  html:has(.catalog-header) {--site-header-height:123px;}
  .community-mast .catalog-header {grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto auto;gap:3px 8px;}
  .catalog-header .brand {grid-area:1/1;}
  .catalog-header .actions {grid-area:1/2;}
  .catalog-header .community-nav {grid-area:2/1/3/3; margin:0;}
  .catalog-header .catalog-search {grid-area:3/1/4/3;height:34px;}
}
