.shop-layout {display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;align-items:start}
.shop-shell,.shop-side-box {background:var(--paper);border:1px solid var(--border);border-radius:14px;padding:24px;min-width:0}
.shop-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.shop-heading h1 {font-size:28px;letter-spacing:-.035em;line-height:1.2;margin:0}
.shop-heading .button {flex-shrink:0}
.shop-breadcrumb {display:flex;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:13px;margin:18px 0 24px}
.shop-breadcrumb a:hover {color:var(--accent);text-decoration:underline}
.shop-intro {font-size:15px;color:var(--muted);line-height:1.6;margin:0 0 20px}
.shop-categories {display:grid;gap:14px}
.shop-category {display:flex;align-items:center;gap:22px;min-height:140px;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:22px;transition:background .15s,border-color .15s}
.shop-category:hover,.shop-server:hover {border-color:var(--accent);background:var(--site-inset-hover)}
.shop-category h2 {font-size:19px;margin:0 0 7px}
.shop-category p {color:var(--muted);font-size:15px;line-height:1.5;margin:0}
.shop-category-icon {display:grid;place-items:center;background:var(--paper);border-radius:50%;width:80px;height:80px;flex:none}
.shop-category-icon :is(img,svg) {width:58px;height:58px;object-fit:contain;image-rendering:pixelated}
.shop-category[data-category=rubies] .shop-category-icon {background:color-mix(in srgb,#f44 12%,var(--paper))}
.shop-chevron {margin-left:auto;font-size:26px;color:var(--muted)}
.shop-sidebar {display:grid;gap:18px}
.shop-side-box {padding:20px}
.shop-side-box h2 {font-size:17px;margin:0 0 18px}
.shop-side-box>p {font-size:14px;color:var(--muted);margin-bottom:15px}
.shop-side-box dl {margin:0 0 20px}
.shop-side-box dl>div {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px}
.shop-side-box dd {margin:0;font-weight:800}
.shop-side-box .button {width:100%;margin-bottom:12px;text-align:center}
.shop-side-box>.text-link {font-size:14px}
.shop-picker-title {font-size:19px;text-align:center;margin:5px 0 25px}
.shop-version {margin-bottom:26px}
.shop-version h3 {font-size:15px;color:var(--muted);margin:0 0 12px}
.shop-servers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.shop-server {display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--border);border-radius:8px;background:var(--card);padding:17px;min-width:0}
.shop-server>span:first-child {min-width:0}
.shop-server strong {display:block;font-size:16px;overflow-wrap:anywhere}
.shop-server small {display:block;font-size:12px;color:var(--muted);margin:6px 0}
.shop-server>span>span {font-size:12px;color:var(--accent)}
.shop-server-art {width:66px;height:66px;flex:none}
.shop-server-art :is(img,svg) {width:100%;height:100%;object-fit:contain}
.shop-tabs,.shop-periods {display:flex;gap:10px;margin:20px 0}
.shop-tabs a,.shop-periods a {background:var(--card);border:1px solid var(--border);border-radius:7px;font-size:14px;font-weight:700;text-align:center;padding:11px 14px}
.shop-tabs a {flex:1}
.shop-tabs [aria-current=page],.shop-periods [aria-current=page] {background:var(--site-primary);border-color:var(--site-primary);color:#fff}
.shop-products {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:22px}
.shop-product {display:flex;align-items:center;flex-direction:column;text-align:center;min-width:0;padding:16px 12px;background:var(--card);border:1px solid var(--border);border-radius:8px}
.shop-product-art {display:flex;align-items:center;justify-content:center;width:100%;height:130px;margin:0 0 10px}
.shop-product-art :is(img,svg) {width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.shop-product-art img:not(.currency-gem) {border-radius:5px}
.shop-product-art .currency-gem {width:80px;height:80px}
.shop-product-art .shop-rank-badge {width:128px;height:128px;image-rendering:pixelated}
.shop-detail-art .shop-rank-badge {max-width:168px;max-height:168px;image-rendering:pixelated}
.shop-product h2 {font-size:16px;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}
.shop-product>p {color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 14px;overflow-wrap:anywhere}
.shop-product>.button {margin-top:auto;font-size:12px;padding:8px 12px}
.shop-price {display:block;font-size:14px;margin:12px 0 7px;line-height:1.5}
.shop-price .currency-inline {justify-content:center}
.shop-product>small {font-size:12px;color:var(--muted);line-height:1.5}
.shop-detail {display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px;align-items:center;margin:25px 0}
.shop-detail-art {width:100%;height:230px;display:flex;align-items:center;justify-content:center;background:var(--card);border-radius:10px;padding:18px}
.shop-detail-art :is(img,svg) {width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.shop-detail h2 {font-size:30px;margin:0 0 12px}
.shop-detail p {font-size:15px;line-height:1.7;color:var(--muted)}
.shop-detail .shop-detail-price {font-size:22px;font-weight:800;color:var(--text);margin:10px 0}
.shop-eligibility {margin:15px 0;padding:12px;background:var(--card);border:1px solid var(--border);border-radius:7px}
.shop-availability {background:var(--card);border:1px solid var(--border);border-radius:8px;font-size:14px;line-height:1.7;color:var(--muted);padding:16px;margin:20px 0 0}
.shop-empty {padding:45px 20px;text-align:center;background:var(--card);border:1px dashed var(--border);border-radius:9px;margin:20px 0}
.shop-empty h2 {font-size:20px;margin:0 0 10px}
.shop-empty p {color:var(--muted);font-size:15px;line-height:1.7;margin:0}
.shop-exchanges {grid-template-columns:repeat(4,minmax(0,1fr));max-width:800px;gap:12px}
.shop-exchanges .shop-product-art img:not(.currency-gem) {image-rendering:auto}
.shop-exchanges .shop-exchange-card {position:relative;overflow:hidden;min-height:225px;padding:15px 10px 12px;border-radius:6px}
.shop-exchanges .shop-product-art {height:95px;margin:0 0 9px}
.shop-exchanges .shop-product h2 {font-size:14px;line-height:1.45;min-height:36px;margin:0 0 8px;display:flex;align-items:center;justify-content:center}
.shop-exchanges .shop-product>.button {font-size:12px;padding:4px 12px;min-height:28px;height:28px;line-height:18px}
.shop-discount {position:absolute;right:-22px;top:11px;width:80px;line-height:22px;background:#cf3548;color:white;font-size:11px;font-weight:800;text-align:center;transform:rotate(45deg);z-index:1}
.shop-exchange-price {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;font-size:13px;margin-top:9px;line-height:1.5}
.shop-exchange-price del {color:var(--muted);font-size:12px}
.shop-exchange-price .currency-gem {width:16px;height:16px}
.shop-exchange-dialog {padding:24px;max-width:440px;width:calc(100% - 32px)}
.shop-exchange-dialog h2 {font-size:23px;margin:0 0 15px}
.shop-exchange-dialog [data-confirm-exchange] {width:100%;margin-bottom:10px}
.shop-exchange-dialog .feedback {line-height:1.7;color:var(--text);margin-bottom:15px}
.shop-exchange-dialog-art {display:flex;align-items:center;justify-content:center;height:140px;margin-bottom:18px}
.shop-exchange-dialog-art img {width:140px;height:140px;object-fit:contain}
.shop-exchange-summary {margin:20px 0}
.shop-exchange-summary>div {display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid var(--border);font-size:14px}
.shop-exchange-summary dd {margin:0;font-weight:750}
.shop-shell>.shop-offer-note {font-size:12px;color:var(--muted);margin:18px 0 0}
.exchange-price-preview {padding:12px;border:1px solid var(--border);border-radius:7px;background:var(--card);font-weight:750;margin:10px 0 18px}
.shop-exchange-value {display:grid;justify-items:center;gap:6px;margin:7px 0 14px;font-size:15px;font-weight:750}
.shop-exchange-value>span:not(.currency-inline) {color:var(--muted);font-size:12px;font-weight:500}
.shop-product>.shop-offer-note {font-size:12px;margin-top:auto;margin-bottom:0}
[data-rank] {--book-main:#277c5e;--book-light:#53b78a;--book-dark:#163e35;--book-gem:#a4e15c}
[data-rank=vote] {--book-main:#ab2e43;--book-light:#e95b6a;--book-dark:#511b32;--book-gem:#ffb9b4}
[data-rank=rover] {--book-main:#2d619f;--book-light:#5b93d2;--book-dark:#1c345e;--book-gem:#a1d9f7}
[data-rank=adept] {--book-main:#764eaa;--book-light:#b68bde;--book-dark:#422a68;--book-gem:#e6bcff}
[data-rank=mythic] {--book-main:#a14a76;--book-light:#dd80b2;--book-dark:#552744;--book-gem:#f7becf}
[data-rank=linker] {--book-main:#247d86;--book-light:#63c8c6;--book-dark:#17454e;--book-gem:#c6fff6}
[data-rank=nexus] {--book-main:#a65a24;--book-light:#e6a856;--book-dark:#67341e;--book-gem:#b4e0ff}
[data-rank=sponsor] {--book-main:#9f7928;--book-light:#f1cd5e;--book-dark:#614a24;--book-gem:#ce8bff}
.shop-privilege-detail {display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;margin:24px 0}
.shop-privilege-summary {text-align:center;min-width:0;border-right:1px solid var(--border);padding-right:22px}
.shop-privilege-summary .shop-detail-art {height:190px;margin:16px 0}
.shop-privilege-summary h2 {font-size:23px;margin:15px 0}
.shop-privilege-summary>p {font-size:14px;line-height:1.7;color:var(--muted)}
.shop-privilege-summary .shop-detail-price {font-size:19px;font-weight:800;color:var(--text)}
.shop-privilege-summary .shop-detail-price .currency-inline {justify-content:center}
.shop-privilege-summary .shop-periods {justify-content:center;flex-wrap:wrap}
.shop-privilege-description {min-width:0}
.shop-privilege-description>header {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.shop-privilege-description h2 {font-size:21px;margin:0}
.shop-privilege-description>header .button {font-size:12px}
.rich-content {font-size:16px;line-height:1.8;overflow-wrap:anywhere;min-width:0;color:var(--text)}
.rich-content p {font:inherit;color:inherit;white-space:pre-wrap;margin:0 0 14px;min-height:1em}
.rich-content strong {font-weight:800}
.rich-content figure {margin:18px 0;max-width:100%}
.rich-content img {display:block;max-width:100%;height:auto;border-radius:6px;object-fit:contain}
.rich-content .button {margin-top:8px}
.shop-description-empty {color:var(--muted)!important;padding:18px;border:1px dashed var(--border);border-radius:8px}
.privilege-editor {max-width:1100px}
.rich-toolbar {display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px;background:var(--card);border:1px solid var(--border);border-radius:8px 8px 0 0}
.rich-toolbar label {display:flex;align-items:center;gap:8px;font-size:13px;margin:0}
.rich-colors {display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1 1 460px}
.rich-colors>span {font-size:13px;margin-right:4px;color:var(--muted)}
.rich-color {display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--border);border-radius:6px;background:var(--control);color:var(--text);font-size:12px;cursor:pointer}
.rich-color-dot {width:13px;height:13px;border:1px solid #8994a3;border-radius:3px;flex:none}
.rich-color:hover {border-color:var(--accent)}
.rich-toolbar [aria-pressed=true] {outline:2px solid var(--accent);outline-offset:1px;background:var(--card)}
.rich-editor {min-height:360px;max-height:70vh;overflow:auto;padding:20px;border:1px solid var(--border);border-top:0;border-radius:0 0 8px 8px;background:var(--control);outline-offset:2px}
.rich-editor:focus {outline:2px solid var(--accent)}
.rich-editor figure {padding:8px;border:1px dashed var(--border);border-radius:8px}
.rich-editor figure img {max-height:400px}
.rich-content .rich-inline-image {position:relative;display:inline-flex;align-items:center;vertical-align:middle;margin:0 4px;line-height:1;white-space:normal}
.rich-content .rich-inline-image img {display:inline-block;height:1.5em;width:auto;max-width:200px;border-radius:2px;vertical-align:middle}
.rich-editor .rich-inline-image {outline:1px dashed var(--border);outline-offset:2px}
.rich-content .rich-inline-image button {display:none;position:absolute;right:-8px;top:-12px;margin:0;padding:0;width:18px;height:18px;min-height:0;line-height:16px;font-size:13px;border-radius:50%;z-index:1}
.rich-inline-image:hover button,.rich-inline-image:focus-within button {display:block}
@media(max-width:1150px){.shop-products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}.shop-shell{padding:20px}}
@media(max-width:900px){.shop-layout{grid-template-columns:1fr}.shop-sidebar{grid-template-columns:1fr}.shop-detail{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:700px){.shop-privilege-detail{grid-template-columns:1fr;gap:22px}.shop-privilege-summary{border-right:0;border-bottom:1px solid var(--border);padding:0 0 22px}.shop-privilege-summary .shop-detail-art{max-width:220px;margin-inline:auto}.rich-editor{padding:12px;min-height:300px}.rich-toolbar{padding:9px}}
@media(max-width:600px){.shop-heading{align-items:flex-start;flex-direction:column}.shop-heading h1{font-size:25px}.shop-shell{padding:17px}.shop-products,.shop-exchanges{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-servers{grid-template-columns:1fr}.shop-tabs{gap:6px}.shop-tabs a{padding:9px 5px;font-size:12px}.shop-detail{grid-template-columns:1fr;gap:20px}.shop-detail-art{height:200px}.shop-detail h2{font-size:26px}.shop-category{padding:16px;gap:14px;min-height:140px}.shop-category-icon{width:55px;height:55px}.shop-category-icon :is(img,svg){width:42px;height:42px}.shop-category h2{font-size:17px}.shop-category p{font-size:14px}.shop-sidebar{grid-template-columns:1fr}.shop-product-art{height:110px}.shop-product h2{font-size:15px}.shop-price{font-size:13px}}
