
.market-section{padding:clamp(2rem,5vw,5rem) 0 6rem}.market-control-panel,.market-panel-head{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}.market-control-panel{padding:1.4rem;border:1px solid rgba(132,218,255,.2);background:linear-gradient(135deg,rgba(12,29,43,.94),rgba(5,15,24,.96));border-radius:18px}.market-control-panel h2,.market-panel-head h2{margin:.2rem 0}.market-account-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.2rem;margin-bottom:1.4rem;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);border-radius:14px}.market-tabs,.market-browse-switch{display:flex;gap:.5rem;overflow:auto;padding:.35rem;border:1px solid rgba(132,218,255,.14);background:rgba(3,12,20,.7);border-radius:14px}.market-tabs{margin-bottom:1.5rem}.market-browse-switch{width:max-content;margin-bottom:1rem}.market-tabs button,.market-browse-switch button{white-space:nowrap;padding:.8rem 1rem;border:0;border-radius:10px;background:transparent;color:var(--muted,#9fb5c5);font-weight:800;cursor:pointer}.market-tabs button.is-active,.market-browse-switch button.is-active{background:rgba(96,210,255,.16);color:#dff8ff;box-shadow:inset 0 0 0 1px rgba(96,210,255,.25)}.market-panel{min-height:24rem}.market-toolbar{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem}.market-toolbar .shop-search{flex:1}.market-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.market-list-row{border:1px solid rgba(120,210,255,.16);border-radius:15px;background:linear-gradient(150deg,rgba(11,27,40,.96),rgba(5,14,23,.96));overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.17)}.market-list-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem}.market-list-identity{display:flex;align-items:center;gap:.9rem;min-width:0}.market-item-names{display:grid;gap:.18rem;min-width:0}.market-item-names strong{font-size:1.05rem;overflow-wrap:anywhere}.market-item-names small,.market-meta{color:var(--muted,#9fb5c5)}.market-item-icon{display:grid;place-items:center;width:3.25rem;height:3.25rem;flex:0 0 auto;border-radius:12px;border:1px solid rgba(125,218,255,.3);background:radial-gradient(circle at 30% 25%,rgba(147,231,255,.25),rgba(43,100,130,.08));font-weight:900;color:#dff8ff}.market-list-action{display:flex;align-items:center;gap:.65rem;flex:0 0 auto}.market-type-badge{display:inline-flex;padding:.28rem .62rem;border-radius:999px;font-size:.73rem;font-weight:900;background:rgba(98,211,255,.12);color:#bfefff}.market-type-badge.is-sale{background:rgba(255,202,91,.13);color:#ffe09b}.market-list-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border-top:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.06)}.market-info-cell{display:grid;gap:.18rem;padding:.72rem 1rem;background:rgba(5,16,25,.94);min-width:0}.market-info-cell small{color:var(--muted,#9fb5c5);font-size:.72rem}.market-info-cell b{overflow-wrap:anywhere}.market-storage-list{display:grid;gap:.65rem}.market-storage-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:1rem;padding:.85rem 1rem;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025)}.market-storage-main{display:grid;gap:.15rem;min-width:0}.market-storage-main strong{overflow-wrap:anywhere}.market-storage-main small{color:var(--muted,#9fb5c5)}.market-storage-status{padding:.25rem .55rem;border-radius:999px;background:rgba(98,211,255,.11);font-size:.75rem;font-weight:800}.market-storage-actions{display:flex;gap:.5rem}.market-job-list{display:grid;gap:.45rem;margin-top:.75rem}.market-job{display:flex;justify-content:space-between;gap:1rem;padding:.65rem .8rem;border-radius:10px;background:rgba(255,255,255,.025);font-size:.86rem}.market-history{display:grid;gap:.75rem}.market-history-row{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:1rem;padding:1rem;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025)}.market-history-row small{display:block;color:var(--muted,#9fb5c5)}.market-history-row ul{margin:.5rem 0 0;padding-left:1.2rem}.market-progress-block{margin-top:1.4rem;padding-top:1rem;border-top:1px solid rgba(132,218,255,.12)}.market-empty,.state-message{padding:2rem;text-align:center;border:1px dashed rgba(132,218,255,.18);border-radius:14px;color:var(--muted,#9fb5c5)}
.market-dialog section{position:relative;width:min(920px,calc(100vw - 2rem));max-width:920px;max-height:min(90vh,860px);overflow:auto;padding:clamp(1.4rem,3vw,2.25rem)}.market-dialog-item{display:grid;gap:.25rem;padding:.8rem;margin-bottom:1rem;border-radius:10px;background:rgba(255,255,255,.04);overflow-wrap:anywhere}.market-dialog>section>label,.sale-form-grid label{display:grid;gap:.45rem;font-size:.82rem;font-weight:800;color:var(--muted,#9fb5c5)}.market-dialog .dialog-message{min-height:1.5em;color:#ffb7b7}.market-dialog .button{width:auto;margin-top:0}.market-dialog>section>.button-primary{width:100%;margin-top:.65rem}.sale-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.sale-total{padding:.8rem 1rem;border-radius:10px;background:rgba(255,202,91,.09);color:#ffe09b;font-weight:900}.requirement-builder{margin:1.2rem 0}.requirement-builder-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.85rem}.requirement-builder-head>div{flex:1;min-width:0}.requirement-row{display:grid;grid-template-columns:minmax(280px,1fr) 120px 145px 86px;align-items:end;gap:.7rem;margin-bottom:.8rem;padding:.85rem;border:1px solid rgba(125,218,255,.12);border-radius:12px;background:rgba(255,255,255,.022)}.market-form-field{display:grid;min-width:0;gap:.4rem}.market-form-field>label{font-size:.72rem;font-weight:800;color:var(--muted,#9fb5c5)}.requirement-search-wrap{position:relative;min-width:0}.requirement-results{margin-top:.35rem;max-height:240px;overflow:auto;border:1px solid rgba(105,212,255,.38);border-radius:10px;background:#081722}.requirement-results[hidden]{display:none!important}.requirement-results button{display:block;width:100%;padding:.72rem .8rem;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:#e8f8ff;text-align:left;cursor:pointer}.requirement-result-names{display:grid;gap:.15rem}.requirement-result-names small{color:var(--muted,#9fb5c5)}.requirement-results-state{padding:.8rem;color:var(--muted,#9fb5c5)}.requirement-results-state.is-error{color:#ffb7b7}.input-control.is-selected{border-color:rgba(93,232,174,.8)}
.market-loading{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:1rem;background:rgba(1,7,12,.78);backdrop-filter:blur(8px)}.market-loading[hidden]{display:none!important}.market-loading-card{display:grid;justify-items:center;gap:1rem;width:min(430px,calc(100vw - 2rem));padding:2rem;border:1px solid rgba(113,220,255,.34);border-radius:18px;background:linear-gradient(145deg,rgba(10,29,43,.98),rgba(4,14,22,.98));text-align:center}.market-loading-spinner{width:2.25rem;height:2.25rem;border:3px solid rgba(123,219,255,.18);border-top-color:#8cecff;border-radius:50%;animation:market-spin .8s linear infinite}.market-loading.is-error .market-loading-spinner{display:none}@keyframes market-spin{to{transform:rotate(360deg)}}
@media(max-width:850px){.market-control-panel,.market-panel-head{align-items:flex-start;flex-direction:column}.market-list-bottom{grid-template-columns:1fr}.market-storage-row{grid-template-columns:auto minmax(0,1fr) auto}.market-storage-actions{grid-column:2/-1}.requirement-row{grid-template-columns:1fr 1fr}.requirement-item-field{grid-column:1/-1}.market-history-row{grid-template-columns:1fr}}
@media(max-width:620px){.market-account-bar,.market-toolbar,.market-list-top{align-items:stretch;flex-direction:column}.market-list-action{justify-content:space-between}.market-storage-row{grid-template-columns:auto 1fr}.market-storage-status{justify-self:start}.market-storage-actions{grid-column:1/-1}.market-storage-actions .button{flex:1}.requirement-builder-head{align-items:stretch;flex-direction:column}.requirement-row,.sale-form-grid{grid-template-columns:1fr}.market-dialog section{width:calc(100% - 1rem);padding:1rem}}

/* v1.8.0: 利用方法ページと案内導線 */
.market-guide-banner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin:0 0 1.4rem;padding:1.25rem 1.4rem;border:1px solid rgba(113,220,255,.24);border-radius:16px;background:linear-gradient(135deg,rgba(17,50,70,.76),rgba(7,21,32,.94))}
.market-guide-banner strong{display:block;margin:.15rem 0 .35rem;font-size:1.1rem;color:#e8faff}.market-guide-banner p{margin:0;max-width:58rem;color:var(--muted,#9fb5c5)}.market-guide-banner-actions{display:flex;flex:0 0 auto;gap:.65rem}.market-guide-banner-actions .button{white-space:nowrap}.market-progress-block{margin-top:1.4rem;padding-top:1rem;border-top:1px solid rgba(132,218,255,.12)}.market-progress-block h3{margin:0 0 .7rem;font-size:.95rem}
.market-guide-section{padding:clamp(2rem,5vw,4.5rem) 0 6rem}.market-guide-layout{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:start;gap:2rem}.market-guide-nav{position:sticky;top:6rem;display:grid;gap:.2rem;padding:1rem;border:1px solid rgba(132,218,255,.16);border-radius:16px;background:rgba(4,15,24,.88)}.market-guide-nav strong{padding:.45rem .6rem;color:#e8faff}.market-guide-nav a{padding:.55rem .6rem;border-radius:9px;color:var(--muted,#a7becd)}.market-guide-nav a:hover{background:rgba(94,211,255,.1);color:#e8faff}.market-guide-content{display:grid;gap:1.35rem}.market-guide-content>section{scroll-margin-top:6rem;padding:clamp(1.25rem,3vw,2rem);border:1px solid rgba(132,218,255,.15);border-radius:18px;background:linear-gradient(145deg,rgba(11,28,41,.94),rgba(5,15,24,.96));box-shadow:0 20px 54px rgba(0,0,0,.2)}.market-guide-content h2{margin:.25rem 0 1rem}.market-guide-content ol,.market-guide-content ul{display:grid;gap:.7rem;padding-left:1.4rem;line-height:1.75}.market-guide-content li::marker{color:#79dcff;font-weight:800}.market-guide-highlight{padding:1.2rem;border:1px solid rgba(94,225,173,.28);border-radius:14px;background:rgba(75,204,151,.07)}.market-guide-highlight>strong{display:block;font-size:1.15rem;color:#bfffe3}.market-guide-highlight p{margin:.45rem 0 1rem}.market-guide-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem}.market-guide-checks article{display:flex;gap:.75rem;padding:1rem;border-radius:12px;background:rgba(255,255,255,.028)}.market-guide-checks article>span{display:grid;place-items:center;width:2rem;height:2rem;flex:0 0 auto;border-radius:999px;background:rgba(98,211,255,.13);color:#9de9ff;font-weight:900}.market-guide-checks p{margin:.25rem 0 0;color:var(--muted,#9fb5c5);line-height:1.65}.market-guide-note{margin-top:1rem;padding:1rem 1.1rem;border-left:3px solid #ffd16c;border-radius:0 12px 12px 0;background:rgba(255,196,75,.07)}.market-guide-note p{margin:.35rem 0 0;color:var(--muted,#9fb5c5)}.market-guide-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.market-guide-status-grid article{padding:1rem;border-radius:12px;background:rgba(255,255,255,.03)}.market-guide-status-grid strong{color:#bdefff}.market-guide-status-grid p{margin:.3rem 0 0;color:var(--muted,#9fb5c5)}.market-guide-warning-list{list-style:none;padding:0!important}.market-guide-warning-list li{padding:1rem 1rem 1rem 1.2rem;border-left:3px solid rgba(255,133,133,.7);border-radius:0 12px 12px 0;background:rgba(255,92,92,.055)}.market-guide-faq{display:grid;gap:.65rem}.market-guide-faq details{border:1px solid rgba(132,218,255,.12);border-radius:12px;background:rgba(255,255,255,.025)}.market-guide-faq summary{cursor:pointer;padding:1rem;font-weight:800;color:#e8faff}.market-guide-faq details p{margin:0;padding:0 1rem 1rem;color:var(--muted,#9fb5c5);line-height:1.7}.market-guide-footer-actions{display:flex;justify-content:center;gap:.75rem;padding-top:.5rem}
@media(max-width:900px){.market-guide-layout{grid-template-columns:1fr}.market-guide-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.market-guide-nav strong{grid-column:1/-1}.market-guide-checks{grid-template-columns:1fr}.market-guide-banner{align-items:flex-start;flex-direction:column}.market-guide-banner-actions{width:100%}.market-guide-banner-actions .button{flex:1}}
@media(max-width:620px){.market-guide-nav{grid-template-columns:1fr}.market-guide-status-grid{grid-template-columns:1fr}.market-guide-footer-actions,.market-guide-banner-actions{flex-direction:column}.market-guide-banner-actions .button,.market-guide-footer-actions .button{width:100%}}

/* v2.0.0: 取引所型レイアウト・デューク銀行 */
.market-page{background:
  radial-gradient(circle at 82% 12%,rgba(46,156,200,.10),transparent 27rem),
  radial-gradient(circle at 12% 42%,rgba(35,109,145,.08),transparent 34rem),
  #050c13}
.market-bank-card{position:relative;display:grid;grid-template-columns:auto minmax(260px,1fr) minmax(340px,.85fr);align-items:center;gap:1.25rem;margin:0 0 1.25rem;padding:1.35rem 1.5rem;overflow:hidden;border:1px solid rgba(99,215,255,.28);border-radius:18px;background:linear-gradient(112deg,rgba(12,35,50,.98),rgba(5,17,27,.98) 58%,rgba(11,30,42,.97));box-shadow:0 22px 60px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.035)}
.market-bank-card::after{content:"";position:absolute;right:-8rem;top:-12rem;width:28rem;height:28rem;border:1px solid rgba(112,222,255,.08);border-radius:50%;box-shadow:0 0 0 3rem rgba(105,214,255,.025),0 0 0 7rem rgba(105,214,255,.015);pointer-events:none}
.market-bank-symbol{position:relative;z-index:1;display:grid;place-items:center;width:4.6rem;height:4.6rem;border:1px solid rgba(255,213,109,.46);border-radius:50%;background:radial-gradient(circle at 34% 28%,#ffe7a3,#b67d24 58%,#563914);box-shadow:0 0 28px rgba(255,198,75,.16);color:#2e1b06;font-size:2rem;text-shadow:0 1px rgba(255,255,255,.45)}
.market-bank-balance{position:relative;z-index:1;min-width:0}.market-bank-balance .eyebrow{margin:0}.market-bank-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:.65rem;margin:.18rem 0}.market-bank-amount strong{font-size:clamp(2.2rem,5vw,4.15rem);line-height:1;color:#fff0b3;letter-spacing:-.055em;text-shadow:0 0 30px rgba(255,211,102,.16)}.market-bank-amount span{color:#d3b76d;font-size:.86rem;font-weight:900;letter-spacing:.08em}.market-bank-balance>p:last-child{margin:0;color:#8ea9b9;font-size:.78rem}
.market-bank-withdraw{position:relative;z-index:1;display:grid;gap:.55rem;padding:1rem;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(2,10,16,.48)}.market-bank-withdraw>label{font-weight:900;color:#e7f7ff}.market-bank-withdraw>div{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:.6rem}.market-bank-withdraw .button{white-space:nowrap}.market-bank-withdraw small{color:#8ea9b9;line-height:1.55}.market-bank-withdraw small strong{color:#c9f1ff}
.market-board-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1rem;align-items:start}.market-filter-panel{position:sticky;top:5.4rem;display:grid;gap:1rem;padding:1.15rem;border:1px solid rgba(104,204,244,.18);border-radius:16px;background:linear-gradient(150deg,rgba(9,26,39,.98),rgba(4,14,22,.98));box-shadow:0 16px 45px rgba(0,0,0,.2)}.market-filter-title h2{margin:.15rem 0 0}.market-filter-field{display:grid;gap:.45rem}.market-filter-field>span{color:#8ea8b8;font-size:.72rem;font-weight:900;letter-spacing:.08em}.market-browse-switch.is-vertical{display:grid;width:100%;margin:0;padding:.3rem}.market-browse-switch.is-vertical button{display:grid;gap:.15rem;text-align:left}.market-browse-switch.is-vertical button b{font-size:.94rem}.market-browse-switch.is-vertical button small{color:#6f8998;font-size:.68rem}.market-browse-switch.is-vertical button.is-active small{color:#a8dcef}.market-filter-summary{display:flex;justify-content:space-between;align-items:center;padding:.75rem .8rem;border-top:1px solid rgba(255,255,255,.07);color:#8198a6}.market-filter-summary strong{color:#d9f4ff}.market-board-main{min-width:0;padding:1rem;border:1px solid rgba(104,204,244,.13);border-radius:16px;background:rgba(3,12,20,.38)}.market-board-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding:.15rem .2rem 1rem;border-bottom:1px solid rgba(255,255,255,.07);margin-bottom:.8rem}.market-board-head h2{margin:.12rem 0 0}.market-board-head>p{max-width:30rem;margin:0;color:#809aa9;text-align:right;font-size:.8rem}
.market-grid{gap:.55rem}.market-list-row{border-radius:10px;border-color:rgba(94,189,229,.14);background:linear-gradient(100deg,rgba(11,27,39,.97),rgba(5,14,22,.98));box-shadow:none;transition:border-color .18s ease,transform .18s ease,background .18s ease}.market-list-row:hover{border-color:rgba(100,222,255,.35);background:linear-gradient(100deg,rgba(14,38,53,.98),rgba(6,17,27,.99));transform:translateY(-1px)}.market-list-top{min-height:76px;padding:.78rem .9rem}.market-item-icon{width:2.9rem;height:2.9rem;border-radius:8px}.market-list-bottom{grid-template-columns:repeat(3,minmax(0,1fr))}.market-info-cell{padding:.52rem .9rem}.market-info-cell small{font-size:.64rem;letter-spacing:.05em}.market-info-cell b{font-size:.82rem}.market-list-action .button{min-width:7.4rem}.market-type-badge{border:1px solid rgba(102,215,255,.18);border-radius:5px}.market-type-badge.is-sale{border-color:rgba(255,208,100,.2)}
.market-tabs{margin-bottom:1rem;border-radius:12px}.market-tabs button{flex:1;text-align:center}.market-storage-row{border-radius:10px;background:linear-gradient(100deg,rgba(10,25,37,.97),rgba(5,14,22,.98))}
.requirement-results{z-index:20;box-shadow:0 18px 45px rgba(0,0,0,.45)}.requirement-results button:hover{background:rgba(100,218,255,.09)}
@media(max-width:980px){.market-bank-card{grid-template-columns:auto 1fr}.market-bank-withdraw{grid-column:1/-1}.market-board-layout{grid-template-columns:1fr}.market-filter-panel{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.market-filter-title,.market-filter-summary{grid-column:1/-1}.market-browse-switch.is-vertical{grid-template-columns:1fr 1fr}.market-board-head>p{text-align:left}}
@media(max-width:680px){.market-bank-card{grid-template-columns:1fr;text-align:center}.market-bank-symbol{margin:auto}.market-bank-amount{justify-content:center}.market-bank-withdraw>div{grid-template-columns:1fr}.market-filter-panel{grid-template-columns:1fr}.market-filter-title,.market-filter-summary{grid-column:auto}.market-board-head{align-items:flex-start;flex-direction:column}.market-board-head>p{text-align:left}.market-list-bottom{grid-template-columns:1fr}.market-list-action{width:100%}.market-list-action .button{flex:1}.market-tabs button{flex:0 0 auto}}

/* v2.0.1: layout hardening */
.market-board-layout>*{min-width:0}
.market-filter-panel,.market-filter-panel *{box-sizing:border-box}
.market-filter-panel .input-control,.market-filter-panel select,.market-filter-panel input{width:100%;max-width:100%;min-width:0}
.market-board-main{width:100%;box-sizing:border-box}
.market-bank-balance{overflow:hidden}
.market-bank-amount{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);align-items:end;column-gap:.75rem;row-gap:.2rem}
.market-bank-amount strong{display:block;min-width:0;max-width:100%;font-variant-numeric:tabular-nums;line-height:1.06;overflow-wrap:anywhere}
.market-bank-amount span{display:block;align-self:end;padding-bottom:.22rem;white-space:normal;line-height:1.25}
.market-bank-balance>p:last-child{position:relative;z-index:2;padding-top:.2rem;line-height:1.45}
@media(max-width:1180px){.market-bank-card{grid-template-columns:auto minmax(0,1fr)}.market-bank-withdraw{grid-column:1/-1}.market-bank-amount strong{font-size:clamp(2rem,7vw,3.5rem)}}
@media(max-width:680px){.market-bank-amount{grid-template-columns:1fr;justify-items:center}.market-bank-amount span{padding-bottom:0}.market-board-layout{display:block}.market-filter-panel{margin-bottom:1rem}}

/* v2.0.3: 7DTD item icon integration */
.market-item-icon{position:relative;overflow:hidden;isolation:isolate}
.market-item-icon img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain;opacity:0;transition:opacity .15s ease;z-index:2;filter:drop-shadow(0 4px 8px rgba(0,0,0,.35))}
.market-item-icon.has-image img{opacity:1}
.market-item-icon-fallback{position:relative;z-index:1;display:grid;place-items:center;width:100%;height:100%}
.market-item-icon.has-image .market-item-icon-fallback{visibility:hidden}
.market-storage-row{grid-template-columns:auto auto minmax(0,1fr) auto auto}
.market-dialog-item-identity{display:flex;align-items:center;gap:.8rem;min-width:0}
.market-dialog-item-names{display:grid;gap:.16rem;min-width:0}
.market-dialog-item-names strong{overflow-wrap:anywhere}
.market-dialog-item-names small,.market-dialog-item-meta{color:var(--muted,#9fb5c5)}
.market-dialog-summary{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.market-dialog-suffix{color:var(--muted,#9fb5c5)}
.requirement-results button{display:flex;align-items:center;gap:.7rem}
.requirement-results .market-item-icon{width:2.35rem;height:2.35rem;border-radius:7px}
.market-bank-symbol{overflow:hidden}
.market-bank-symbol img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;opacity:0;z-index:2;filter:drop-shadow(0 4px 9px rgba(0,0,0,.34))}
.market-bank-symbol.has-image img{opacity:1}
.market-bank-symbol.has-image .market-bank-symbol-fallback{visibility:hidden}
.market-bank-symbol-fallback{position:relative;z-index:1}
@media(max-width:850px){.market-storage-row{grid-template-columns:auto auto minmax(0,1fr) auto}.market-storage-actions{grid-column:3/-1}}
@media(max-width:620px){.market-storage-row{grid-template-columns:auto auto minmax(0,1fr)}.market-storage-status{grid-column:3}.market-storage-actions{grid-column:1/-1}}
.market-inline-item{display:inline-flex;align-items:center;gap:.55rem;min-width:0}
.market-inline-item .market-item-icon{width:2rem;height:2rem;border-radius:6px}
.market-history-row li{margin:.3rem 0}

/* v2.0.4: token image emphasis and irreversible star-item warning */
.market-first-user-banner{
  margin-bottom:.8rem;
}

.market-critical-warning{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:1rem;
  margin:0 0 1.25rem;
  padding:1.15rem 1.25rem;
  border:1px solid rgba(255,139,148,.58);
  border-radius:15px;
  background:linear-gradient(135deg,rgba(91,25,34,.48),rgba(48,14,22,.68));
  box-shadow:0 16px 40px rgba(45,5,12,.2),inset 0 1px rgba(255,255,255,.035);
}
.market-critical-warning-icon{
  display:grid;
  place-items:center;
  width:2.5rem;
  height:2.5rem;
  border:1px solid rgba(255,160,168,.72);
  border-radius:50%;
  background:rgba(255,113,126,.13);
  color:#ffd4d8;
  font-size:1.25rem;
  font-weight:1000;
  line-height:1;
}
.market-critical-warning .eyebrow{
  margin:0 0 .18rem;
  color:#ffabb4;
}
.market-critical-warning>div>strong{
  display:block;
  color:#fff0f1;
  font-size:clamp(1.02rem,2vw,1.25rem);
  line-height:1.45;
}
.market-critical-warning p{
  margin:.45rem 0 0;
  color:#e9c9cd;
  line-height:1.72;
}
.market-critical-warning p b,
.market-critical-warning p strong{
  color:#ffe3e6;
}

.market-bank-symbol{
  width:6.5rem;
  height:6.5rem;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  color:#e8c96e;
  text-shadow:none;
}
.market-bank-symbol img{
  inset:-4%;
  width:108%;
  height:108%;
  filter:drop-shadow(0 7px 13px rgba(0,0,0,.48));
}
.market-bank-symbol-fallback{
  font-size:3rem;
}

.market-guide-critical-section{
  padding:clamp(2rem,5vw,4rem) 0 0;
}
.market-guide-critical-warning{
  margin-bottom:0;
}
.market-guide-critical-section+.market-guide-section{
  padding-top:1.25rem;
}
.market-guide-danger-note{
  margin:0 0 1rem;
  padding:1rem 1.1rem;
  border:1px solid rgba(255,139,148,.44);
  border-left:4px solid #ff8b94;
  border-radius:12px;
  background:rgba(255,92,105,.075);
}
.market-guide-danger-note strong{
  color:#ffe3e6;
}
.market-guide-danger-note p{
  margin:.4rem 0 0;
  color:#dcbfc3;
  line-height:1.7;
}

@media(max-width:680px){
  .market-critical-warning{
    grid-template-columns:1fr;
    text-align:left;
  }
  .market-critical-warning-icon{
    width:2.2rem;
    height:2.2rem;
  }
  .market-bank-symbol{
    width:5.7rem;
    height:5.7rem;
  }
}


/* v2.1.0: 販売を主役にしたマーケットUI演出 */
.market-browse-switch button[data-browse-type="sale"] { position: relative; overflow: hidden; }
.market-browse-switch button[data-browse-type="sale"].is-active::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  animation: market-active-line 2.4s ease-in-out infinite;
}
.market-listing-card,
.market-storage-row { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.market-listing-card:hover,
.market-storage-row:hover { transform: translateY(-3px); border-color: rgba(126,232,255,.32); box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.market-bank-card img { animation: market-bank-coin 3.8s ease-in-out infinite; }
@keyframes market-active-line { 50% { opacity: .35; transform: scaleX(.62); } }
@keyframes market-bank-coin { 50% { transform: translateY(-3px) rotate(2deg); filter: drop-shadow(0 8px 12px rgba(255,190,85,.18)); } }
@media (prefers-reduced-motion: reduce) {
  .market-browse-switch button[data-browse-type="sale"].is-active::after,
  .market-bank-card img { animation: none; }
}

/* v2.5.0: seller storefront directory and realtime transactions */
.market-seller-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
}
.market-seller-card{
  display:grid;
  gap:.85rem;
  min-width:0;
  padding:1rem;
  border:1px solid rgba(105,211,250,.16);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(12,30,42,.96),rgba(5,15,24,.98));
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.market-seller-card:hover,.market-seller-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(113,226,255,.42);
  box-shadow:0 18px 42px rgba(0,0,0,.25),0 0 28px rgba(86,199,240,.07);
  outline:none;
}
.market-seller-card-head,.market-seller-identity,.market-seller-card-footer,.market-featured-item,.market-featured-manager-head{
  display:flex;
  align-items:center;
}
.market-seller-card-head{justify-content:space-between;gap:.75rem}.market-seller-identity{gap:.75rem;min-width:0}.market-seller-identity>div{display:grid;min-width:0}.market-seller-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.market-seller-identity small{color:#829aaa;font-size:.72rem}.market-seller-avatar{display:grid;place-items:center;width:2.75rem;height:2.75rem;flex:0 0 2.75rem;border:1px solid rgba(123,225,255,.35);border-radius:50%;background:radial-gradient(circle,rgba(110,220,255,.18),rgba(5,15,24,.94));color:#dff9ff;font-weight:900}.market-seller-open{color:#8de8ff;font-size:1.35rem}.market-featured-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.market-featured-item,.market-featured-empty{min-width:0;min-height:4.1rem;padding:.45rem;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(2,10,17,.48)}.market-featured-item{gap:.42rem}.market-featured-item .market-item-icon{width:2.2rem;height:2.2rem;flex:0 0 2.2rem}.market-featured-item>span:last-child{display:grid;min-width:0}.market-featured-item strong,.market-featured-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.market-featured-item strong{font-size:.7rem}.market-featured-item small{color:#91a8b5;font-size:.6rem}.market-featured-empty{display:grid;place-items:center;color:#536b79}.market-seller-card-footer{justify-content:space-between;gap:1rem;padding-top:.65rem;border-top:1px solid rgba(255,255,255,.06);color:#758d9b;font-size:.68rem}.market-seller-detail-toolbar{display:flex;justify-content:flex-start;margin-bottom:.7rem}.market-seller-listings{display:grid;gap:.55rem}.market-pagination{display:grid;grid-template-columns:minmax(8rem,1fr) auto minmax(8rem,1fr);align-items:center;gap:.8rem;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.07)}.market-pagination .button:last-child{justify-self:end}.market-pagination-status{color:#829aa8;font-size:.75rem;text-align:center}.market-list-row.is-transaction-pending{position:relative;opacity:.58;pointer-events:none}.market-list-row.is-transaction-pending::after{content:attr(data-pending-label);position:absolute;inset:0;display:grid;place-items:center;background:rgba(2,10,17,.54);color:#c9f5ff;font-size:.72rem;font-weight:900;letter-spacing:.16em;backdrop-filter:blur(2px)}.market-list-row.is-realtime-removed{opacity:0;transform:translateY(-8px) scale(.985);transition:opacity .22s ease,transform .22s ease}.market-featured-manager{margin-bottom:.8rem;padding:1rem;border:1px solid rgba(255,205,101,.2);border-radius:12px;background:linear-gradient(135deg,rgba(53,40,12,.24),rgba(9,20,29,.86))}.market-featured-manager-head{justify-content:space-between;gap:1rem}.market-featured-manager-head>div{display:grid}.market-featured-manager-head small{color:#9bb0bb}.market-feature-toggle{display:grid;place-items:center;width:2.4rem;height:2.4rem;padding:0;border:1px solid rgba(255,215,116,.28);border-radius:8px;background:rgba(255,198,70,.06);color:#9ca8ae;cursor:pointer;font-size:1.2rem}.market-feature-toggle.is-active{border-color:rgba(255,218,117,.65);background:rgba(255,190,65,.16);color:#ffd86d;box-shadow:0 0 20px rgba(255,189,57,.11)}
@media(max-width:860px){.market-seller-grid{grid-template-columns:1fr}.market-featured-manager-head{align-items:flex-start;flex-direction:column}.market-featured-manager-head .button{width:100%}}
@media(max-width:600px){.market-featured-strip{grid-template-columns:1fr}.market-featured-item,.market-featured-empty{min-height:3.3rem}.market-pagination{grid-template-columns:1fr 1fr}.market-pagination-status{grid-column:1/-1;grid-row:1}.market-pagination .button{grid-row:2;width:100%}.market-pagination .button:last-child{justify-self:stretch}}
@media(prefers-reduced-motion:reduce){.market-seller-card,.market-list-row.is-realtime-removed{transition:none}}

/* v2.6.0 seller storefront category filter */
.market-category-filter {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(126, 232, 255, .14);
  background: rgba(7, 18, 27, .72);
}
.market-category-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.market-category-filter-head strong {
  font-size: .92rem;
  letter-spacing: .06em;
}
.market-category-filter-head small {
  color: var(--muted);
  font-size: .72rem;
}
.market-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.market-category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(141, 178, 194, .2);
  background: rgba(10, 27, 38, .72);
  color: #d7e7ee;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.market-category-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 232, 255, .42);
}
.market-category-chip.is-active {
  border-color: rgba(126, 232, 255, .72);
  background: rgba(27, 71, 91, .72);
  color: #f3fcff;
  box-shadow: inset 0 0 0 1px rgba(126, 232, 255, .1);
}
.market-category-chip span {
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.market-category-chip small {
  min-width: 1.65rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #b9cbd3;
  font-size: .67rem;
  text-align: center;
}
.market-item-category {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(126, 232, 255, .18);
  color: #9fcedb;
  font-size: .64rem;
  line-height: 1.4;
  letter-spacing: .03em;
}
@media (max-width: 720px) {
  .market-category-filter { padding: 13px; }
  .market-category-filter-head { display: grid; gap: 2px; }
  .market-category-chip { min-height: 36px; padding: 7px 10px; }
}


/* v2.6.1 shop guide and equal pagination controls */
.market-pagination .button {
  width: 7.75rem;
  max-width: 100%;
  justify-self: start;
}
.market-pagination .button:last-child { justify-self: end; }
.shop-guide-rate-table {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(132, 218, 255, .14);
  border-radius: 12px;
}
.shop-guide-rate-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(1, 9, 15, .32);
}
.shop-guide-rate-table th,
.shop-guide-rate-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(132, 218, 255, .11);
  text-align: left;
}
.shop-guide-rate-table th {
  color: #dff9ff;
  font-size: .72rem;
  letter-spacing: .06em;
}
.shop-guide-rate-table td { color: var(--muted, #9fb5c5); }
.shop-guide-rate-table th:last-child,
.shop-guide-rate-table td:last-child { text-align: right; }
.shop-guide-rate-table tr:last-child td { border-bottom: 0; }
.shop-guide-command-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0;
}
.shop-guide-command {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(121, 220, 255, .32);
  border-radius: 10px;
  background: rgba(2, 11, 18, .78);
  color: #c7f5ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .92rem;
  font-weight: 800;
}
.shop-guide-command-separator { color: var(--muted, #9fb5c5); }
@media (max-width: 600px) {
  .market-pagination .button { width: 100%; justify-self: stretch; }
  .market-pagination .button:last-child { justify-self: stretch; }
  .shop-guide-command-list { align-items: stretch; flex-direction: column; }
  .shop-guide-command { justify-content: center; width: 100%; }
  .shop-guide-command-separator { text-align: center; }
}

/* v2.8.0: seller URLs and completed transaction feed */
.market-seller-url,
.market-seller-detail-share {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.market-seller-url code,
.market-seller-detail-share code {
  min-width: 0;
  overflow: hidden;
  color: #9fc7d5;
  font: 600 .68rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-seller-url {
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.market-seller-url code {
  flex: 1 1 auto;
}
.market-seller-copy {
  flex: 0 0 auto;
  min-height: 2.15rem;
  padding: .42rem .7rem;
  font-size: .68rem;
}
.market-seller-detail-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.market-seller-detail-share {
  flex: 1 1 auto;
  justify-content: flex-end;
  padding: .5rem .6rem;
  border: 1px solid rgba(126,232,255,.13);
  background: rgba(3,13,21,.58);
}
.market-seller-detail-share > span {
  flex: 0 0 auto;
  color: #83a3b1;
  font-size: .67rem;
}
.market-seller-detail-share code {
  max-width: min(34rem, 48vw);
}
.market-recent-list {
  display: grid;
  gap: .65rem;
}
.market-recent-card {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) auto minmax(13rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(126,232,255,.13);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,27,39,.92), rgba(4,14,22,.96));
}
.market-recent-identity {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.market-recent-identity .market-item-names {
  min-width: 0;
}
.market-recent-identity strong,
.market-recent-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-recent-quantity {
  color: #e2f8ff;
  font-size: 1rem;
  white-space: nowrap;
}
.market-recent-payment {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.market-recent-payment > small,
.market-recent-time {
  color: #7f9ba8;
  font-size: .67rem;
}
.market-recent-payment.is-sale > strong {
  color: #ffd86d;
}
.market-recent-payment > span {
  color: #9bb4bf;
  font-size: .7rem;
}
.market-recent-barter-items {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}
.market-recent-barter-items .market-inline-item {
  max-width: 100%;
  padding: .3rem .48rem;
  border: 1px solid rgba(126,232,255,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.market-recent-barter-items .market-item-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-basis: 1.65rem;
}
.market-recent-barter-items .market-inline-item > span:last-child {
  overflow: hidden;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-recent-no-payment {
  color: #849ba6;
  font-size: .7rem;
}
.market-recent-time {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .market-seller-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .market-seller-detail-share {
    justify-content: flex-start;
  }
  .market-seller-detail-share code {
    max-width: none;
  }
  .market-recent-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .market-recent-payment {
    grid-column: 1 / -1;
  }
  .market-recent-time {
    grid-column: 1 / -1;
    text-align: left;
  }
}
@media (max-width: 560px) {
  .market-seller-detail-share {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .market-seller-detail-share > span {
    grid-column: 1 / -1;
  }
  .market-seller-url {
    align-items: stretch;
    flex-direction: column;
  }
  .market-seller-copy {
    width: 100%;
  }
  .market-recent-card {
    gap: .7rem;
    padding: .8rem;
  }
}
