.market-page{width:min(1120px,100%);margin:0 auto;padding:clamp(18px,4vw,46px) clamp(12px,4vw,42px) 55px;color:#33251a}
.market-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.market-head h1{font-family:Georgia,serif;font-size:clamp(2rem,6vw,3.15rem);margin:0;line-height:1.05}
.market-head p{margin:.45rem 0 0;color:#645445}
.market-nav{display:flex;align-items:center;gap:8px;overflow:auto;padding:3px 2px 9px;margin-bottom:13px}
.market-nav a{flex:none;border:1px solid #e5d8c5;background:#fffcf6;border-radius:9px;padding:.55em .75em;color:#57412c;text-decoration:none}
.market-nav a[aria-current=page],.market-page button[aria-pressed=true]{background:#f0e1c8;border-color:#ad8b5d}
.market-status{display:block;color:#73513b;margin:0 0 10px;font-weight:600;overflow-wrap:anywhere}.market-status:empty{display:none}
.market-panel{background:#fffdf7;border:1px solid #e9ddca;border-radius:15px;padding:clamp(13px,3vw,25px);margin-bottom:14px;min-width:0;overflow-wrap:anywhere}
.market-panel h2,.market-card h2{margin:0 0 7px;font-size:1.18rem}
.market-form,.market-form [data-asset-fields]{display:grid;gap:10px}
.market-form label,.market-filters label,.market-panel:has(>form) label{display:grid;align-content:start;gap:3px;min-width:0}
.market-form label.market-check{display:flex;align-items:center;gap:8px}.market-form [hidden]{display:none}
.market-form input:not([type=checkbox]),.market-form select,.market-form textarea,.market-filters input,.market-filters select,.market-modal select{
  width:100%;min-width:0;min-height:39px;color:inherit;background:#fffaf2;border:1px solid #dfceb3;border-radius:8px;padding:8px;font:inherit}
.market-form textarea{min-height:65px;resize:vertical}
.market-filters{display:grid;grid-template-columns:2fr 1.2fr 1.2fr .75fr .75fr auto;gap:10px;align-items:end;margin-bottom:16px}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:13px}
.market-card{display:flex;flex-direction:column;border:1px solid #e4d6bc;border-radius:16px;overflow:hidden;background:#fffdf6;box-shadow:0 3px 15px #6543220b;min-width:0}
.market-card:hover,.market-card:focus-within{box-shadow:0 6px 19px #65432224}
.market-art{background:linear-gradient(145deg,var(--gem-light),var(--gem-edge));color:var(--gem-ink);aspect-ratio:3/2;display:grid;place-items:center;font-size:3rem;overflow:hidden}
.market-art img,.market-previews img{width:100%;height:100%;object-fit:cover;display:block}
.market-card-body{display:grid;gap:5px;padding:13px;align-items:start;overflow-wrap:anywhere}
.market-card-body p,.market-list p,.market-card-body small{margin:0}
.market-card-body small,.market-meta,.market-list small{display:block;color:#65533e}
.market-studio,.market-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.75fr);gap:14px;align-items:start}
.market-detail{grid-template-columns:1fr 1.3fr}.market-detail>.market-art{border-radius:14px}
.market-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.market-quick{margin:0 0 15px}
.featured-shelf{border-inline-start:3px solid #ac8244;background:#fcf2db}
.featured-shelf a:hover{background:#ead9b7}
.visual-pulse{height:6px;max-width:200px;margin-block:14px;background:linear-gradient(90deg,#eae0c8,#a47b38,#eae0c8);background-size:220% 100%;border-radius:9px}
html[data-motion=full] .visual-pulse{animation:visual-scan 1.3s ease-in-out infinite}
html[data-in-background=true] .visual-pulse{animation-play-state:paused}
@keyframes visual-scan{to{background-position:-200% 0}}
.visual-result{width:min(100%,512px);border-radius:12px}.visual-thumb{width:80px;max-width:20vw;border-radius:7px}
.live-overview{width:min(1120px,100%);margin:auto}
.telemetry-summary,.telemetry-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
.telemetry-summary>div,.telemetry-charts>div{display:grid;align-content:start;gap:4px;min-width:0;padding:9px;border:1px solid #ebdfc9;border-radius:9px;background:#fcf7ee}
.telemetry-summary small{color:#68513d}.telemetry-charts svg{width:100%}
.live-overview [data-state=operational]{background:#e2ebdc;color:#365637}
.live-overview [data-state=critical]{background:#f2d5ce;color:#782e21}
.live-overview [data-state=maintenance]{background:#e3e8ef;color:#3c4d64}
.live-overview details:not([open]) .bars i{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){html .visual-pulse{animation:none}}
.market-list{display:grid;gap:4px;margin-top:10px}
.market-list>article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #eee4d5}
.market-list>article:last-child{border-bottom:0}.market-list>article>div{min-width:0}
.market-note{white-space:pre-wrap}
.market-previews{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}
.market-previews img{width:clamp(68px,12vw,125px);aspect-ratio:3/2;border-radius:8px}
.market-modal{border:1px solid #ccba9e;border-radius:16px;width:min(92vw,460px);padding:0;background:#fffdf7;color:#33251a}
.market-modal::backdrop{background:#33251a66}.market-modal .market-panel{margin:0}
.market-confirm dl,.wallet-stats{display:flex;flex-wrap:wrap;gap:10px 15px;margin:12px 0}
.market-confirm dt,.wallet-stats dt{font-size:.85em;color:#65533e}
.market-confirm dd,.wallet-stats dd{margin:3px 0 0;font-weight:700}
.market-confirm output{display:block;margin-top:6px}
.market-balance{display:inline-flex;padding:9px 12px;border-radius:999px;background:#f1e1bc;color:#5e431e;white-space:nowrap}
.gem-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.gem-day{display:grid;text-align:center;gap:6px;padding:8px 2px;border-radius:10px;background:#fcf3e2;border:1px solid #e9d7b8;font-size:.86rem}
.gem-day[data-claimed=true]{background:#edebd3;border-color:#c1b676}.gem-day[data-reward=gold]{background:#f6e1a9}
.gem-diamond{font-size:1.5rem;color:#916822;line-height:1}
.market-swatch{display:grid;place-items:center;flex:none;width:2rem;height:2rem;border-radius:8px;background:var(--gem-light);color:var(--gem-ink)}
.gem-flash{animation:dorium-gem .5s ease-out}
@keyframes dorium-gem{40%{box-shadow:0 0 0 5px #ddbd7266;transform:scale(1.035)}}
.market-art,.market-swatch,[data-palette=gold],[data-dorium-chat=gold],[data-dorium-story=gold],[data-profile-palette=gold]{--gem-light:#f4e3b7;--gem-edge:#cba960;--gem-ink:#65491e}
[data-palette=rose],[data-dorium-chat=rose],[data-dorium-story=rose],[data-profile-palette=rose]{--gem-light:#f2d8d5;--gem-edge:#cc9294;--gem-ink:#663d40}
[data-palette=sage],[data-dorium-chat=sage],[data-dorium-story=sage],[data-profile-palette=sage]{--gem-light:#e0e9d6;--gem-edge:#a1bb93;--gem-ink:#354e35}
[data-palette=indigo],[data-dorium-chat=indigo],[data-dorium-story=indigo],[data-profile-palette=indigo]{--gem-light:#e0e4f4;--gem-edge:#a3a9d1;--gem-ink:#3d4169}
[data-palette=sand],[data-dorium-chat=sand],[data-dorium-story=sand],[data-profile-palette=sand]{--gem-light:#f2e8d4;--gem-edge:#c9b897;--gem-ink:#5a4935}
.social-profile[data-profile-palette]{box-shadow:0 0 0 2px var(--gem-edge),0 3px 16px #65432218}
.social-profile[data-profile-palette] .profile-banner{background:linear-gradient(120deg,var(--gem-light),var(--gem-edge))}
html[data-dorium-chat] #ai,html[data-dorium-chat] .account-chat,html[data-dorium-chat] .character-chat-shell{
  background-color:color-mix(in srgb,var(--bg) 52%,var(--gem-light))
}
html[data-account-appearance=dark][data-dorium-chat] .account-chat{
  background-color:color-mix(in srgb,#24211e 82%,var(--gem-ink))
}
html[data-dorium-story] .reading-paper{border-color:var(--gem-edge);box-shadow:0 0 0 1px var(--gem-edge)}
html[data-dorium-story] .story-reader:not([data-theme=dark]) .reading-paper{
  background:color-mix(in srgb,var(--paper) 72%,var(--gem-light))
}
.gem.gem-flash{border-radius:9px}
.profile-sparkle{margin-inline-start:.35em;color:#a36f23}
.social-profile[data-profile-frame]{border:2px solid #bc914d}
.social-profile[data-profile-effect] .profile-banner{border-bottom:4px solid #99b386;background:linear-gradient(130deg,#e0e9d6,#a1bb93)}
html[data-chat-bubble] .account-transcript p[data-role=user],html[data-chat-bubble] .bot-transcript p[data-role=user]{border-color:#cd8d91;background:#f2d8d5;color:#462e30}
html[data-chat-background] .account-chat,html[data-chat-background] .character-chat-shell{background-image:radial-gradient(ellipse at top,#d5e1cb99,transparent 62%)}
html[data-chat-typing] .ai-state .state-art i,html[data-chat-typing] .typing-dots i{background:#6b6aab}
html[data-motion=full] .social-profile[data-profile-frame]:hover{animation:dorium-gem .5s ease-out}
html[data-motion=full][data-page-transition] .reading-paper .story-page{animation:creator-fade .38s ease-out}
html[data-motion=full][data-chapter-opening] .reading-paper>header{animation:creator-fade .44s ease-out}
@keyframes creator-fade{from{opacity:.5;translate:0 6px}}
@media(prefers-reduced-motion:reduce){
  html[data-page-transition] .reading-paper .story-page,html[data-chapter-opening] .reading-paper>header{animation:none}
}
.gem[href]{text-decoration:none}
@media(max-width:760px){.market-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.gem-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:520px){.market-studio,.market-detail{grid-template-columns:minmax(0,1fr)}.market-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){
  .header .section-trigger{padding-inline:7px;gap:4px}
  .header .gem{font-size:.74rem;gap:3px}
  .header .gem svg{width:15px;height:15px}
  .header .actions .icon-button{min-width:38px}
}
@media(max-width:350px){.header .brand>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.gem-flash{animation:none}}html[data-motion=reduced] .gem-flash{animation:none}
