/* RisingJoy Script Market. Visuals follow Docs/20261027.html.
   Page background matches the prototype (#070808).
   Content width matches the prototype: min(1400px, 90%).
   Every selector is scoped to .script-market. */

.script-market{color-scheme:dark;--bg:#070808;--panel:#111313;--line:#292d2a;--muted:#a0a6a0;--lime:#d0ff29;--mint:#61d8b1;--ink:#f5f7f2}.script-market *{box-sizing:border-box}.script-market{scroll-behavior:smooth}.script-market{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 Arial,Helvetica,"Microsoft YaHei",sans-serif}.script-market button, .script-market input, .script-market select, .script-market textarea{font:inherit}.script-market button, .script-market a, .script-market input, .script-market select, .script-market textarea{-webkit-tap-highlight-color:transparent}.script-market button, .script-market a{touch-action:manipulation}.script-market button{cursor:pointer}.script-market a{color:inherit;text-decoration:none}.script-market button{color:inherit;border:0;background:none}.script-market button:disabled{opacity:.4;cursor:not-allowed}.script-market button:focus-visible, .script-market a:focus-visible, .script-market input:focus-visible, .script-market textarea:focus-visible, .script-market select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}.script-market h1, .script-market h2, .script-market h3, .script-market p{margin:0}.script-market h1, .script-market h2, .script-market h3{line-height:1.1;letter-spacing:-.035em}.script-market input, .script-market textarea, .script-market select{min-width:0;width:100%;padding:13px 15px;border:1px solid #383d38;border-radius:8px;background:#0b0d0c;color:white}.script-market input:focus, .script-market textarea:focus{border-color:var(--lime)}.script-market label{display:block;font-size:14px;color:#c9cec7;margin:16px 0 7px}.script-market .wrap{width:var(--rjx-container);margin:auto}.script-market .header{height:112px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-bottom:1px solid var(--line)}.script-market .brand{display:flex;align-items:center;gap:16px}.script-market .brand img{width:125px;height:150px;object-fit:contain}.script-market .brand span{font-size:14px;line-height:1.5;letter-spacing:.035em;color:#969d91;border-left:1px solid #353b31;padding-left:18px}.script-market .nav{display:flex;align-items:center;gap:8px}.script-market .nav a{padding:10px 21px;border-radius:30px;font-size:14px;color:#c4c9c1}.script-market .nav a.active{background:#252f17;color:var(--lime)}.script-market .utility{display:flex;justify-content:flex-end;padding-top:20px}.script-market .header-right{display:flex;gap:18px;align-items:center}.script-market .small{font-size:13px;color:var(--muted)}.script-market .cart-button{display:flex;align-items:center;gap:8px}.script-market .count{border-radius:50%;background:var(--lime);color:black;font-size:12px;min-width:23px;height:23px;display:grid;place-items:center;font-weight:bold}.script-market .icon{width:21px;height:21px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6}.script-market .hero{padding:60px 0 42px;display:grid;grid-template-columns:1fr .7fr;gap:50px;align-items:end}.script-market .eyebrow{font-size:12px;font-weight:700;letter-spacing:.2em;color:var(--mint);margin-bottom:18px}.script-market .hero h1{font-size:clamp(34px,3.4vw,49px);font-weight:800;line-height:1.13}.script-market .hero h1 em{display:block;margin-top:10px}.script-market .footer-tagline{margin-left:auto;text-align:right}.script-market .hero h1 em{font-style:normal;color:var(--lime)}.script-market .hero p{color:var(--muted);margin:18px 0 0;max-width:510px}.script-market .searchbox{border:1px solid #465132;border-radius:10px;display:flex;align-items:center;padding:6px 7px 6px 16px;background:#10130e}.script-market .searchbox input{border:0;background:none;padding:10px;outline:none}.script-market .searchbox button{background:var(--lime);color:#111;padding:10px 16px;border-radius:6px;font-weight:700}.script-market .search-hint{font-size:12px;color:#737c70;margin-top:10px}.script-market .section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0}.script-market .section-head h2{font-size:23px;letter-spacing:.025em}.script-market .section-head h2 span{color:var(--lime);margin-right:12px;font-size:16px}.script-market .text-link{color:var(--lime);font-size:14px}.script-market .grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}.script-market .card{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;text-align:left;padding:0;min-width:0;width:100%;transition:transform .2s}.script-market .card:hover{transform:none}.script-market .card-genre{min-height:21px;line-height:21px;flex:none;display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:12px;color:#dce3d5}.script-market .card-genre span:last-child{font-size:12px;color:#6c7665}.script-market .poster{width:100%;flex:none;aspect-ratio:3/4;background:#111;overflow:hidden;border-radius:9px;border:1px solid #292f27}.script-market .poster > img.poster-art{width:100%;height:100%;object-fit:contain;display:block}@supports not (aspect-ratio:1/1){.script-market .poster{position:relative;height:0;padding-top:133.333%;aspect-ratio:auto}.script-market .poster > img.poster-art{position:absolute;inset:0;top:0;right:0;bottom:0;left:0;width:100%;height:100%}}.script-market .card:hover .poster{border-color:var(--lime)}.script-market .card h3{font-size:18px;letter-spacing:-.01em;margin-top:17px;line-height:1.3;min-height:47px}.script-market .card .cn{color:#878f84;font-size:13px;margin-top:6px}.script-market .card-foot{color:#9ca793;font-size:12px;margin-top:12px;padding-top:12px;border-top:1px solid #252b22;display:flex;justify-content:space-between}.script-market .guidance{margin:64px 0 60px;border:1px solid #37422a;border-radius:15px;padding:38px 42px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:radial-gradient(ellipse at 100% 20%,#20352a55,transparent 65%),linear-gradient(100deg,#171d0f,#0d110e)}.script-market .guidance h2{font-size:clamp(22px,2.4vw,35px);max-width:660px;line-height:1.22}.script-market .guidance p{color:var(--muted);margin-top:10px;font-size:14px}.script-market .primary, .script-market .secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:47px;padding:11px 22px;border-radius:7px;font-weight:700;font-size:14px;line-height:1.4}.script-market .primary{background:var(--lime);color:#12170b}.script-market .primary:hover{background:#e0ff75}.script-market .secondary{border:1px solid #424d38;color:#e5edde;background:#151a11}.script-market .full{width:100%}.script-market .footer{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:#7d8876;font-size:12px}.script-market .page-title{padding:40px 0 27px}.script-market .page-title h1{font-size:42px;margin:20px 0 12px}.script-market .back{font-size:14px;color:#aab99c}.script-market .detail{display:grid;grid-template-columns:340px 1fr;gap:65px;margin:35px 0 60px}.script-market .detail-poster{width:100%;height:auto;display:block;border-radius:10px}.script-market .detail h1{font-size:clamp(32px,4vw,55px);margin:16px 0}.script-market .pill{font-size:12px;border:1px solid #435234;border-radius:30px;padding:5px 13px;color:var(--lime);display:inline-block}.script-market .meta{display:flex;gap:35px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-block:1px solid var(--line);padding:22px 0;margin:25px 0}.script-market .meta strong{display:block;font-size:16px;margin-top:3px}.script-market .prose{color:#c1c9bb;line-height:1.85;white-space:pre-wrap;overflow-wrap:break-word;overflow-wrap:anywhere;word-break:break-word}.script-market .detail h2{font-size:21px;margin:28px 0 14px}.script-market .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.script-market .reader{border:1px solid var(--line);border-radius:12px;padding:30px;margin:30px 0 60px;background:#11140f}.script-market .reader h2{font-size:25px;margin-bottom:20px}.script-market .script{font-family:Georgia,"Times New Roman",serif;font-size:17px;color:#d1d8cb;margin:auto;white-space:pre-wrap;line-height:1.85}.script-market .filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:30px}.script-market .filters button{border:1px solid #333d2d;border-radius:25px;padding:8px 18px;font-size:14px}.script-market .filters .active{background:var(--lime);color:#152005;border-color:var(--lime)}.script-market .empty{text-align:center;padding:65px 20px;border:1px dashed #394133;border-radius:12px;grid-column:1/-1;color:#adb5a6}.script-market .empty h2{margin-bottom:15px;color:white}.script-market .empty .primary{margin-top:25px}.script-market .notice{font-size:13px;color:#b2bea5;padding:13px 16px;background:#1c2415;border:1px solid #37452c;border-radius:8px;margin-top:18px}.script-market .cart-row{display:grid;grid-template-columns:70px 1fr 130px 35px;gap:22px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.script-market .cart-row img{width:70px;height:94px;object-fit:contain}.script-market .cart-row h3{font-size:19px;line-height:1.3}.script-market .quantity{display:flex;border:1px solid #3a4532;border-radius:6px;align-items:center;justify-content:space-between}.script-market .quantity button{padding:8px 13px}.script-market .cart-bottom{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:30px 0 65px}.script-market .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.script-market .sheet{background:#10140e;color:#e5eddf;border:1px solid #35432b;border-radius:12px;padding:40px;margin:30px 0}.script-market .sheet-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #7d9c55;padding-bottom:22px}.script-market .sheet-logo{width:110.5px;height:149.5px;background:transparent;object-fit:contain}.script-market .sheet h2{font-size:28px;margin:12px 0}.script-market .sheet .small{color:#a8b79b}.script-market .sheet dl{display:grid;grid-template-columns:155px 1fr;gap:9px;margin:25px 0;font-size:14px}.script-market .sheet dt{color:#a0b18f}.script-market .sheet dd{margin:0;overflow-wrap:break-word;overflow-wrap:anywhere;word-break:break-word}.script-market .table-wrap{overflow-x:auto}.script-market .sheet table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.script-market .sheet th{background:#25301e;padding:12px}.script-market .sheet td{padding:15px 12px;border-bottom:1px solid #35432b}.script-market .sheet-note{font-size:13px;line-height:1.8;margin-top:28px}.script-market .check{display:flex;gap:12px;align-items:flex-start;font-size:14px}.script-market .check input{width:18px;min-width:18px;height:18px;margin-top:4px;accent-color:var(--lime)}.script-market dialog{width:min(490px,92vw);max-height:92vh;max-height:92dvh;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid #465139;border-radius:17px;padding:36px;color:white;background:#11150e;box-shadow:0 35px 120px #000b}.script-market dialog::backdrop{background:#000b;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.script-market dialog h2{font-size:31px;margin:14px 0 10px}.script-market dialog p{font-size:14px;color:#a3af99}.script-market .close{float:right;font-size:34px;line-height:1;padding:0 4px;border:0;background:transparent;color:inherit;box-shadow:none;-webkit-appearance:none;appearance:none}.script-market .close:focus,.script-market .close:focus-visible,.script-market .close:active{outline:none;box-shadow:none;border:0}.script-market .close:hover{color:var(--lime)}.script-market .tabbar{display:flex;gap:24px;border-bottom:1px solid #333c2b;margin:24px 0}.script-market .tabbar button{padding:10px 0;color:#8f9b84}.script-market .tabbar button.active{color:var(--lime);border-bottom:2px solid var(--lime)}.script-market .error{font-size:13px;color:var(--rjx-form-error,#ffb5a5);min-height:22px;margin-top:12px}.script-market .code-row{display:flex;gap:8px}.script-market .code-row button{white-space:nowrap}.script-market{--market-wrap:min(1400px,90vw);--market-header-h:112px;--market-toast-gap:16px}.script-market .toast{position:fixed;top:calc(var(--market-header-h) + var(--market-toast-gap));right:max(12px,calc((100vw - var(--market-wrap)) / 2));left:auto;bottom:auto;transform:translate3d(0,0,0);background:rgba(14,18,12,.94);color:var(--ink);border:1px solid #3a4630;border-left:3px solid var(--lime);border-radius:10px;padding:13px 16px;box-shadow:0 16px 48px rgba(0,0,0,.5);z-index:80;width:max-content;max-width:min(360px,calc(100vw - 24px));font-size:14px;line-height:1.45;letter-spacing:.01em;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:1;visibility:visible;pointer-events:none;transition:opacity .2s ease-out,transform .2s ease-out,visibility .2s}.script-market .toast.hide{display:block!important;opacity:0;visibility:hidden;transform:translate3d(0,-10px,0)}.script-market .toast:not(.hide){transform:translate3d(0,0,0)}@media(max-width:600px){.script-market{--market-header-h:90px;--market-toast-gap:12px;--market-wrap:90vw}.script-market .toast{max-width:calc(100vw - 24px)}}@media(prefers-reduced-motion:reduce){.script-market .toast,.script-market .toast.hide{transition:none;transform:none}}.script-market .hide{display:none!important}.script-market .about{max-width:850px;padding:60px 0 90px}.script-market .about h1{font-size:70px}.script-market .about h2{font-size:35px;color:var(--lime);line-height:1.3;margin:30px 0}.script-market .about p{color:#a8b49d}.script-market .settings{margin-top:28px;padding:20px;border:1px solid var(--line);border-radius:10px}.script-market .settings summary{cursor:pointer;color:var(--lime);font-size:14px}.script-market .mail-status{padding:24px;border:1px solid #475736;border-radius:10px;background:#182210;margin-top:25px}.script-market .mail-status h2{font-size:22px;margin-bottom:12px}@media(min-width:1600px){.script-market .hero{padding-top:75px}}@media(max-width:1000px){.script-market .nav{display:none}.script-market .hero{grid-template-columns:1fr;gap:25px;padding-top:40px}.script-market .hero h1{font-size:42px}.script-market .grid{gap:15px;grid-template-columns:repeat(3,minmax(0,1fr))}.script-market .detail{grid-template-columns:260px 1fr;gap:30px}.script-market .guidance{padding:30px}.script-market .card h3{font-size:17px}}@media(max-width:600px){.script-market .header{height:90px;gap:8px}.script-market .brand img{width:95px;height:125px}.script-market .brand span{display:block;font-size:12px;padding-left:14px}.script-market .header-right{gap:12px}.script-market .header-right button{font-size:13px}.script-market .hero{padding:32px 0 20px}.script-market .hero h1{font-size:34px}.script-market .hero p{font-size:14px}.script-market .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.script-market .section-head h2{font-size:19px}.script-market .card h3{font-size:16px}.script-market .card .cn{font-size:12px}.script-market .card-foot{font-size:11px}.script-market .guidance{display:block;margin:40px 0;padding:25px}.script-market .guidance .secondary{margin-top:22px}.script-market .detail{grid-template-columns:1fr;margin-top:25px;gap:30px}.script-market .detail>aside{max-width:255px;margin:auto}.script-market .meta{gap:23px}.script-market .detail h1{font-size:35px}.script-market .reader{padding:20px}.script-market .cart-row{grid-template-columns:50px 1fr 88px 22px;gap:9px}.script-market .cart-row img{width:50px;height:68px}.script-market .cart-row h3{font-size:14px}.script-market .quantity button{padding:8px}.script-market .cart-bottom{align-items:stretch;flex-direction:column}.script-market .form-grid{grid-template-columns:1fr}.script-market .sheet{padding:20px}.script-market .sheet h2{font-size:22px}.script-market .sheet dl{grid-template-columns:110px 1fr;font-size:12px}.script-market .sheet table{font-size:12px}.script-market .sheet th, .script-market .sheet td{padding:9px}.script-market .sheet-logo{width:78px;height:117px}.script-market .about h1{font-size:47px}.script-market .about h2{font-size:28px}.script-market dialog{padding:25px}}@media(prefers-reduced-motion:reduce){.script-market *{scroll-behavior:auto!important;transition:none!important}}@media print{body.client-portal .rjx-cosmos,body.client-portal .rjx-site-chrome,body.client-portal .rjx-footer,body.client-portal .rjx-back-to-top,body.client-portal .client-sidebar,body.client-portal .rjx-preloader{display:none!important}body.client-portal .client-shell{display:block}body.client-portal .client-main__container{max-width:none}body.client-portal .client-content{padding:0}.script-market{background:white;color:black}.script-market .header, .script-market .footer, .script-market .no-print, .script-market dialog, .script-market .toast{display:none!important}.script-market .wrap{width:100%}.script-market .sheet{margin:0;padding:15px;border-radius:0;background:white;color:#1c231b;border:0}.script-market .sheet .small, .script-market .sheet dt{color:#596751}.script-market .sheet th{background:#e1e8d8}.script-market .sheet-logo{filter:brightness(0)}.script-market .sheet, .script-market .sheet *{print-color-adjust:exact;-webkit-print-color-adjust:exact}.script-market .sheet table{break-inside:avoid}.script-market .page-title{display:none}}

/* Three-line editorial headline with a smaller italic accent. */
.script-market .hero{grid-template-columns:minmax(0,1fr);gap:28px;container-type:inline-size}.script-market .hero>div{min-width:0}.script-market .hero h1{font-size:min(88px,9vw);font-size:min(88px,10cqw);line-height:1.06;letter-spacing:-.045em;font-weight:800}.script-market .hero .hero-line{display:block;white-space:nowrap}@media(max-width:1000px){.script-market .hero .hero-line{white-space:normal}}.script-market .hero h1 .hero-accent{font-size:min(46px,4.14vw);font-size:min(46px,4.6cqw);font-style:italic;font-weight:600;letter-spacing:-.025em;line-height:1.25;margin-top:22px}.script-market .hero-search{width:min(100%,520px);justify-self:end}.script-market .header-right{flex-shrink:0}.script-market .brand{min-width:0}
@media(max-width:600px){.script-market .header{gap:8px}.script-market .brand{gap:4px}.script-market .brand img{width:57px;height:90px}.script-market .brand span{font-size:10px;line-height:1.45;letter-spacing:0;padding-left:8px;max-width:116px}.script-market .header-right{gap:7px}.script-market .header-right button{font-size:12px;padding-inline:2px}.script-market .header-right #account{max-width:104px}.script-market .cart-button{gap:4px}.script-market .count{min-width:20px;height:20px}.script-market .hero h1 .hero-accent{margin-top:16px}}

/* Original poster files are displayed in full, at their original aspect ratios. */
.script-market .brand span{color:var(--lime);font-size:clamp(23px,2.4vw,34px);font-weight:800;white-space:nowrap;letter-spacing:-.02em;max-width:none;border-left:1px solid #353b31;padding-left:18px}.script-market .grid{row-gap:38px}.script-market .poster-only{cursor:default}.script-market .poster-only:hover{transform:none}.script-market .poster-only:hover .poster{border-color:#292f27}.script-market .card-genre span:first-child{font-size:13px;color:#dce3d5}
@media(max-width:600px){.script-market .brand span{font-size:19px;max-width:none;padding-left:6px}.script-market .brand img{width:47px}.script-market .header-right #account{max-width:91px}.script-market .header-right{gap:5px}}

/* Auth / status pages (no portal chrome) */
.script-market .market-auth-page,.script-market .market-status-page{max-width:480px;margin:48px auto 72px;padding:28px;border:1px solid var(--line);background:var(--panel);border-radius:18px}
.script-market .market-auth-page h1,.script-market .market-status-page h1{margin:8px 0 12px;font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.03em}
.script-market .market-auth-page p,.script-market .market-status-page p{color:var(--muted);margin:0 0 18px}
.script-market .market-auth-page label{display:block;margin:14px 0 6px;font-size:13px;color:#dce3d5}
.script-market .market-auth-page input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0c0e0c;color:var(--ink)}
.script-market .market-auth-page .code-row{display:flex;gap:10px;align-items:stretch}
.script-market .market-auth-page .code-row input{flex:1}
.script-market .market-auth-page .code-row .secondary{flex:0 0 auto;min-width:120px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#171a17}
.script-market #auth .code-row .secondary:disabled,
.script-market #auth .code-row .secondary.is-unavailable,
.script-market .market-auth-page .code-row .secondary:disabled,
.script-market .market-auth-page .code-row .secondary.is-unavailable{opacity:1;cursor:not-allowed;color:#6e756e;background:#0c0e0c;border-color:#242824;box-shadow:none}
.script-market .market-auth-page .error{min-height:1.4em;margin:12px 0;color:var(--rjx-form-error,#ffb5a5)}.script-market .small.is-error{color:var(--rjx-form-error,#ffb5a5)}
.script-market .market-auth-page .primary.full,.script-market .market-status-page .primary{display:inline-flex;align-items:center;justify-content:center;width:100%;margin-top:8px;padding:14px 18px;border-radius:999px;background:var(--lime);color:#111;font-weight:700}
.script-market .market-status-page .primary{width:auto}

.script-market .header-right{display:flex;align-items:center;gap:18px}
.script-market .header-right .cart-button{gap:8px}
.script-market .header-right .account-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:600}
.script-market .header-right .account-name:hover{color:var(--lime)}
.script-market .header-right #logout{display:inline-flex;align-items:center;gap:6px;margin-left:8px;opacity:.85}
.script-market .header-right #logout .icon{width:18px;height:18px;flex:0 0 18px;stroke-width:2.4}
.script-market .header-right #logout:hover{opacity:1;color:var(--lime)}
@media(max-width:600px){.script-market .header-right .account-name{max-width:88px;font-size:12px}.script-market .header-right #logout{margin-left:4px;font-size:12px;padding-inline:2px}.script-market .header-right #logout .icon{width:16px;height:16px;flex-basis:16px}}

/* Viewport scrollbar lives on the root, not body. Always reserve it so a long
   homepage and a short inner page keep the same content width (no sideways jump). */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
/* Page column matches the prototype: min(1400px, 90%), 90% under 600px. */
.script-market > header.header.wrap,
.script-market > footer.footer.wrap,
.script-market > main.wrap {
  width: min(1400px, 90%) !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
.script-market > header.header {
  height: 112px !important;
  min-height: 112px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.script-market > main.wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.script-market > header.header {
  font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.script-market > footer.footer {
  font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #7d8876;
}
.script-market > header.header .brand img {
  max-width: none;
  width: 88px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .script-market > header.header .brand img { width: 88px; height: auto; }
}
@media (max-width: 600px) {
  .script-market > header.header.wrap,
  .script-market > footer.footer.wrap,
  .script-market > main.wrap {
    width: 90% !important;
    max-width: none !important;
  }
  .script-market > header.header {
    height: 90px !important;
    min-height: 90px !important;
  }
  .script-market > header.header .brand img { width: 88px; height: auto; }
}

.script-market .header-right .account-auth{display:inline-flex;align-items:center;gap:6px}
.script-market .header-right .account-auth-sep{opacity:.45;user-select:none}
.script-market .header-right .account-auth button:hover{color:var(--lime)}
@media(max-width:600px){.script-market .header-right .account-auth{gap:4px}.script-market .header-right .account-auth button{font-size:12px;padding-inline:2px}}
.script-market .catalog-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 70px}
.script-market .catalog-pager a,
.script-market .catalog-pager span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;border:1px solid #333d2d;border-radius:25px;font-size:14px}
.script-market .catalog-pager a:hover{border-color:var(--lime);color:var(--lime)}
.script-market .catalog-pager .is-current{background:var(--lime);color:#152005;border-color:var(--lime);font-weight:700}
.script-market .catalog-pager .is-disabled{opacity:.4}
.script-market .catalog-pager .is-gap{border:0;min-width:24px;padding:0;opacity:.7}
.script-market .home-scripts .catalog-pager{margin-bottom:0}
.script-market .inquiry-table-wrap{overflow-x:auto;margin:8px 0 70px}
.script-market .inquiry-table{width:100%;border-collapse:collapse;min-width:640px}
.script-market .inquiry-table th,
.script-market .inquiry-table td{padding:16px 12px;border-bottom:1px solid #292d2a;text-align:left;vertical-align:middle}
.script-market .inquiry-table th{color:var(--muted);font-size:12px;letter-spacing:.08em;font-weight:700}
.script-market .inquiry-table td{font-size:15px}
.script-market .inquiry-table a:hover{color:var(--lime)}
.script-market .inquiry-table .is-confirmed{color:var(--lime)}

/* Browser compatibility fallbacks (Safari / older Chromium / CN WebViews). */
.script-market dialog .close{-webkit-tap-highlight-color:transparent}
.script-market .sheet dd,.script-market .prose{word-wrap:break-word}
.script-market .reader .script{white-space:pre-wrap;overflow-wrap:anywhere}

/* Poster corner logo. Sits inside the artwork, inset from the top-right. */
.script-market .poster,
.script-market .detail-poster-frame,
.script-market .cart-poster{position:relative}
.script-market .poster > img.poster-logo,
.script-market .detail-poster-frame > img.poster-logo,
.script-market .cart-poster > img.poster-logo{
  position:absolute;
  inset:auto;
  top:10px;
  right:10px;
  width:13.5%;
  height:auto;
  object-fit:contain;
  pointer-events:none;
  z-index:2;
  display:block
}
.script-market .detail-poster-frame{width:100%}
.script-market .cart-poster{width:70px;height:94px}
.script-market .cart-poster > img.poster-art{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
@media(max-width:600px){
  .script-market .cart-poster{width:50px;height:68px}
}

/* Fill every poster frame. The frame stays 3:4; the bitmap is center-cropped to that ratio. */
.script-market .poster > img.poster-art,
.script-market .detail-poster-frame > img.detail-poster,
.script-market .cart-poster > img.poster-art{
  object-fit:cover;
  object-position:center center;
  z-index:1;
  transition:opacity .28s ease
}
@supports (aspect-ratio:1/1){
  .script-market .poster{
    height:auto;
    aspect-ratio:3/4
  }
  .script-market .poster > img.poster-art{
    position:absolute;
    inset:0;
    width:100%;
    height:100%
  }
}
.script-market .detail-poster-frame{
  aspect-ratio:3/4;
  overflow:hidden;
  background:#111;
  border-radius:10px
}
.script-market .detail-poster-frame > img.detail-poster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block
}
.script-market .poster.is-loading::before,
.script-market .detail-poster-frame.is-loading::before,
.script-market .cart-poster.is-loading::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(100deg,#1b1f1b 12%,#3d4438 42%,#1b1f1b 72%);
  background-size:220% 100%;
  animation:rj-poster-shimmer 1.15s ease-in-out infinite
}
.script-market .poster.is-loading > img.poster-art,
.script-market .detail-poster-frame.is-loading > img.detail-poster,
.script-market .cart-poster.is-loading > img.poster-art{opacity:0}
.script-market .poster.is-ready > img.poster-art,
.script-market .detail-poster-frame.is-ready > img.detail-poster,
.script-market .cart-poster.is-ready > img.poster-art{
  opacity:1;
  transition:opacity .28s ease
}
.script-market .poster.is-error > img.poster-art,
.script-market .detail-poster-frame.is-error > img.detail-poster,
.script-market .cart-poster.is-error > img.poster-art{visibility:hidden}
@keyframes rj-poster-shimmer{
  0%{background-position:100% 0}
  100%{background-position:-100% 0}
}
@media (prefers-reduced-motion:reduce){
  .script-market .poster.is-loading::before,
  .script-market .detail-poster-frame.is-loading::before,
  .script-market .cart-poster.is-loading::before{animation:none;background:#2a3128}
}

/* Click feedback. One spinner, centered, until the request or the next page finishes. */
@keyframes rjx-click-spin{to{transform:rotate(360deg)}}
.script-market :is(a, button).is-loading:not(.rjx-btn){
  position:relative;
  color:transparent!important;
  pointer-events:none;
  cursor:wait
}
.script-market button.is-loading:not(.rjx-btn):disabled{opacity:1;cursor:wait}
.script-market :is(a, button).is-loading:not(.rjx-btn):not(.card) :is(img, svg, span){visibility:hidden}
.script-market a.brand.is-loading img{visibility:visible}
.script-market :is(a, button).is-loading:not(.rjx-btn)::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  z-index:3;
  width:16px;
  height:16px;
  margin:-8px 0 0 -8px;
  box-sizing:border-box;
  border:2px solid rgba(208,255,41,.28);
  border-top-color:var(--lime);
  border-radius:50%;
  animation:rjx-click-spin .7s linear infinite
}
.script-market :is(.primary, .searchbox button, .filters button.active).is-loading::after{
  border-color:rgba(18,23,11,.22);
  border-top-color:#12170b
}
.script-market a.card.is-loading::after{
  width:22px;
  height:22px;
  margin:-11px 0 0 -11px;
  background:rgba(7,8,8,.82);
  box-shadow:0 0 0 6px rgba(7,8,8,.55)
}
@media (prefers-reduced-motion:reduce){
  .script-market :is(a, button).is-loading:not(.rjx-btn)::after{animation:none}
}
