@charset "UTF-8";
:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #211c35;
  background: #f7f7fb;
  --muted: #655e78;
  --purple: #5b36bc;
  --line: #e6e2ed;
  --soft: #f0eafd;
  --surface: #fff;
  --shadow: 0 14px 42px #2922440a;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .47; }
:focus-visible { outline: 3px solid #8960f0; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell, .header-inner { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
#main { flex: 1; }
.site-header { background: #fff; border-bottom: 1px solid #ebe8f2; }
.header-inner { height: 75px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 21px; font-weight: 750; letter-spacing: -.05em; }
.brand strong { color: var(--purple); }
.brand-icon { width: 36px; height: 36px; display: grid; grid-template-columns: 7px 7px; grid-auto-rows: 7px; place-content: center; gap: 2px; border-radius: 11px; background: #5f3ac1; box-shadow: 0 5px 14px #5f3ac13b; }
.brand-icon b { background: white; border-radius: 1.5px; }
.brand-icon b:nth-child(2) { opacity: .6; transform: translate(1px,-1px); }
.header-link { color: var(--muted); padding: 9px 14px; border-radius: 9px; font-weight: 650; font-size: .9rem; white-space: nowrap; }
.header-link:hover, .header-link[aria-current] { background: var(--soft); color: var(--purple); }
.admin-shell .site-header, .admin-shell .footer { display: none; }
.admin-login-shell #main { min-height: 100vh; display: grid; place-items: center; padding-block: 26px; }
.admin-login-panel { width: min(100%, 420px); padding: clamp(20px, 4vw, 32px); border-radius: 20px; }
.admin-login-panel h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 20px; }
.admin-login-form { display: grid; gap: 14px; }
.admin-login-form input { min-height: 42px; }
.admin-login-form .primary { margin-top: 3px; }
.admin-form-error { margin: 0; }
.admin-form-error:empty { display: none; }
.admin-back-link { display: inline-block; margin-top: 16px; color: var(--purple); font-size: .92rem; }
.admin-back-link:hover { text-decoration: underline; }
.admin-signed-in { margin-top: 3px; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.admin-header-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.staff-account-form { display: grid; align-items: end; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin: 14px 0 20px; }
.staff-account-form .form-error { grid-column: 1 / -1; }
.account-panel { max-width: 760px; }
.account-panel h2 { font-size: 1.06rem; }
.staff-account-list { display: grid; gap: 7px; list-style: none; padding: 0; margin: 10px 0 0; }
.staff-account-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.staff-account-list time { color: var(--muted); font-size: .8rem; }
.staff-account-actions, .order-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-head-actions { justify-content: flex-end; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 310px; display: grid; align-items: center; margin: 33px 0 37px; border-radius: 24px; background: radial-gradient(ellipse at 77% 72%, #5837a8 4%, #312257 37%, transparent 64%), linear-gradient(110deg,#1c142f 25%, #2a1a49 76%, #251540); color: #fff; box-shadow: 0 16px 32px #24133d1a; }
.hero-content { z-index: 1; position: relative; padding: 35px 52px; }
.hero-label { font-size: .84rem; color: #e0d3ff; letter-spacing: .14em; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.hero-label i { width: 7px; height: 7px; background: #bc9bff; display: block; border-radius: 50%; box-shadow: 0 0 13px #bf9fff; }
.hero h1 { margin: 13px 0 13px; letter-spacing: -.067em; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.12; }
.hero-description { color: #e0d7ee; line-height: 1.65; }
.hero-cta { display: inline-flex; margin-top: 24px; padding: 11px 21px; border-radius: 9px; background: #eee5ff; color: #302050; font-weight: 750; font-size: .9rem; }
.hero-cta:hover { background: white; }
.hero-art { position: absolute; inset: 0 0 0 49%; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent 0 29px,#ddcaff12 30px 31px), repeating-linear-gradient(90deg,transparent 0 29px,#ddcaff12 30px 31px); mask-image: radial-gradient(ellipse,#000 0%, transparent 75%); }
.hero-orbit { position: absolute; top: 50%; left: 51%; width: 94%; height: 64%; border-radius: 50%; border: 1px solid #c8a4ff55; transform: translate(-50%, -50%) rotate(-22deg); box-shadow: inset 0 0 18px #ae83ff10; }
.hero-orbit.two { width: 78%; height: 72%; transform: translate(-50%, -50%) rotate(20deg); }
.hero-orbit.three { width: 69%; height: 53%; transform: translate(-50%, -50%) rotate(-20deg); border-style: dashed; opacity: .5; }
.hero-tile { position: absolute; width: clamp(132px, 17vw, 215px); aspect-ratio: 1; top: 48%; left: 51%; transform: translate(-50%, -50%) rotate(-17deg) skew(6deg,3deg); border-radius: 24%; padding: 10px; background: linear-gradient(145deg,#faf4ff 1%,#bc9aff 23%,#9263ed 60%,#6742ac 82%,#c5aaff); box-shadow: -8px 14px 0 #714bb4, -11px 22px 0 #4c3280, -22px 36px 40px #12082396, 10px -9px 44px #b78bff85, inset 1px 2px 3px #fff9; }
.hero-tile-inner { height: 100%; border-radius: 21%; background: linear-gradient(145deg,#d0b9ff,#8b60da 55%,#a779ff); border: 1px solid #f3e6ff9c; box-shadow: inset 1px 1px 22px #e0caff9c; display: grid; align-content: center; justify-content: center; grid-template-columns: 28% 28%; grid-template-rows: 28% 28%; gap: 6%; }
.hero-tile-inner i { border-radius: 16%; background: linear-gradient(145deg,#ffffff,#e0ccff 70%,#ad87ef); box-shadow: 0 5px 2px #5e3b9b9e, inset 0 1px 2px white; }
.hero-tile-inner i:nth-child(2) { transform: translate(12%, -12%); background: linear-gradient(145deg,#fff,#b897ff); }
.hero-star { position: absolute; font-style: normal; color: #e0c9ff; text-shadow: 0 0 16px #d8b0ff; }
.star-one { top: 21%; left: 18%; font-size: 1.5rem; }
.star-two { bottom: 22%; right: 18%; font-size: 2.2rem; }
.star-three { top: 16%; right: 20%; font-size: 1rem; }
.shop-layout { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 28px; align-items: start; scroll-margin-top: 18px; }
.categories { background: white; border-radius: 16px; border: 1px solid var(--line); padding: 16px 12px; box-shadow: var(--shadow); }
.categories h2 { font-size: 1rem; padding: 3px 8px 13px; }
.category-button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; color: #4f4760; text-align: left; padding: 7px; font-size: .87rem; font-weight: 650; border-radius: 10px; margin: 3px 0; min-height: 47px; }
.category-button:hover, .category-button[aria-pressed="true"] { background: var(--soft); color: #50309c; border-color: #e7dcfd; }
.category-button span { min-width: 0; overflow-wrap: anywhere; }
.category-button small { margin-left: auto; font-size: .75rem; color: #59516d; background: #f2eff7; border-radius: 6px; padding: 2px 6px; }
.category-button[aria-pressed="true"] small { background: white; color: #5b36bc; }
.category-icon { border-radius: 7px; height: 29px; width: 29px; flex: 0 0 29px; display: grid; place-items: center; overflow: hidden;
  isolation: isolate; font-style: normal; font-weight: 800; font-size: .9rem; background: #e6d8ff; color: #633db3; }
.category-icon.blue { background: #e2ebff; color: #385bae; }
.category-icon.mint { background: #def8ed; color: #167a62; }
.category-icon img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
img.blend-white-background { mix-blend-mode: multiply; }
.category-mark { position: relative; display: grid; place-items: center; width: 15px; height: 15px; line-height: 1; }
.category-mark::before, .category-mark::after { position: absolute; pointer-events: none; }
.mark-terminal { font: 800 13px/1 ui-monospace, monospace; letter-spacing: -.11em; }
.mark-gemini { font-size: 16px; }
.mark-ai { font-size: 12px; justify-items: start; align-items: end; }
.mark-ai::after { content: '✦'; top: -1px; right: 0; font-size: 9px; }
.mark-install { align-items: start; font-size: 14px; line-height: 12px; }
.mark-install::after { content: ''; inset: auto 2px 1px; height: 4px; border: 1px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
.mark-network { border: 1px solid currentColor; border-radius: 50%; }
.mark-network::before { content: ''; inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.mark-network::after { content: ''; left: 0; right: 0; top: 6px; border-top: 1px solid currentColor; }
.mark-chat { width: 13px; height: 10px; margin-top: -2px; border: 1px solid currentColor; border-radius: 4px; }
.mark-chat::after { content: ''; width: 3px; height: 3px; bottom: -3px; left: 2px; border-left: 1px solid currentColor; transform: skewY(-28deg); }
.mark-grid::before { content: ''; width: 4px; height: 4px; top: 2px; left: 2px; background: currentColor; border-radius: 1px;
  box-shadow: 7px 0 currentColor, 0 7px currentColor, 7px 7px currentColor; }
.category-icon[data-category-color] {
  background: color-mix(in srgb, var(--category-color) 19%, white);
  color: color-mix(in srgb, var(--category-color) 43%, #211c35);
}
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.catalog-head h2 { font-size: 1.7rem; letter-spacing: -.045em; overflow-wrap: anywhere; }
.catalog-head p { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.search { min-width: 0; display: flex; align-items: center; gap: 11px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; }
.search span { display: block; width: 13px; height: 13px; border: 1.7px solid #6c647d; border-radius: 50%; position: relative; flex: 0 0 13px; }
.search span::after { content: ""; position: absolute; width: 6px; height: 1.7px; background: #6c647d; transform: rotate(45deg); right: -5px; bottom: -2px; }
.search input { width: 182px; min-width: 0; height: 42px; border: 0; background: transparent; color: inherit; outline: none; font-size: .9rem; }
.search:focus-within { outline: 2px solid #9b75e8; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.product-card { background: white; padding: 10px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); border-color: #bc9af4; box-shadow: 0 15px 36px #552d8a17; }
.product-art { --art-a:#eee1ff; --art-b:#ceb5fb; --art-ink:#4b2c80; --art-light:#fdf5ff; --art-med:#ad85f3; --art-edge:#8565be; display: block; position: relative; overflow: hidden; isolation: isolate; min-height: 128px; border-radius: 10px; background: radial-gradient(circle at 76% 35%,var(--art-light),transparent 54%),linear-gradient(130deg,var(--art-a),var(--art-b)); color: var(--art-ink); }
.product-art.blue { --art-a:#dfecff; --art-b:#aec9ff; --art-ink:#274885; --art-light:#f3faff; --art-med:#829cf3; --art-edge:#5674bc; }
.product-art.mint { --art-a:#def9f3; --art-b:#a5e2d5; --art-ink:#145e55; --art-light:#f0fff7; --art-med:#69cdbb; --art-edge:#389786; }
.product-art[data-category-color] {
  --art-a: color-mix(in srgb, var(--category-color) 20%, white);
  --art-b: color-mix(in srgb, var(--category-color) 44%, white);
  --art-ink: color-mix(in srgb, var(--category-color) 34%, #211c35);
  --art-light: color-mix(in srgb, var(--category-color) 8%, white);
  --art-med: color-mix(in srgb, var(--category-color) 72%, white);
  --art-edge: color-mix(in srgb, var(--category-color) 70%, #211c35);
}
.art-grid { position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent 0 15px,#47336b17 16px 17px), repeating-linear-gradient(90deg,transparent 0 15px,#47336b17 16px 17px); mask-image: linear-gradient(100deg,transparent 9%, black); }
.art-orbit { position: absolute; left: 44%; top: 22%; width: 58%; height: 59%; border-radius: 50%; border: 1px solid #fff8; transform: rotate(-24deg); }
.art-orbit::after { content: ""; position: absolute; inset: 10%; border: 1px solid #fff9; border-radius: inherit; }
.edition { position: absolute; z-index: 1; left: 8%; top: 50%; transform: translateY(-50%); font-size: clamp(.9rem,1.6vw,1.17rem); font-weight: 850; letter-spacing: -.015em; max-width: 55%; overflow-wrap: anywhere; }
.art-core { position: absolute; left: 72%; top: 49%; width: 31%; aspect-ratio: 1; transform: translate(-50%,-50%) rotate(-20deg); }
.art-custom-icon { position: absolute; left: 72%; top: 49%; width: 32%; height: 72%; transform: translate(-50%,-50%); object-fit: contain; }
.art-core i { position: absolute; inset: 11%; border-radius: 27%; border: 1px solid var(--art-light); background: linear-gradient(130deg,var(--art-light),var(--art-med)); box-shadow: 0 4px 0 var(--art-edge), 0 9px 14px #39247143; }
.art-core i:nth-child(1) { transform: translate(19%, 14%); opacity: .52; }
.art-core i:nth-child(2) { transform: translate(3%, 3%); opacity: .82; }
.art-core i:nth-child(3) { transform: translate(-13%, -13%); }
.art-core i:nth-child(3)::after { content: ""; position: absolute; inset: 31%; background: var(--art-light); border-radius: 24%; transform: rotate(45deg); box-shadow: 0 0 11px var(--art-light); }
.product-content { flex: 1; padding: 12px 6px 5px; display: flex; flex-direction: column; min-width: 0; }
.card-meta, .card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.card-meta { color: var(--muted); font-size: .77rem; }
.availability { display: inline-block; color: #635a71; background: #f2eff5; white-space: nowrap; font-size: .75rem; font-weight: 650; border-radius: 6px; padding: 3px 6px; }
.in-stock { color: #17644c; background: #e7f7ef; }
.product-content h3 { font-size: .97rem; line-height: 1.45; margin: 8px 0 12px; overflow-wrap: anywhere; }
.card-bottom { border-top: 1px solid #eeeaf4; padding-top: 9px; margin-top: auto; }
.card-price { color: #4f299d; font-weight: 800; letter-spacing: -.035em; font-size: 1.18rem; }
.card-price small { font-size: .72rem; color: var(--muted); margin-left: 5px; font-weight: 500; }
.sold { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.footer { border-top: 1px solid var(--line); color: var(--muted); margin-top: 55px; }
.footer .shell { padding: 22px 0; display: flex; align-items: center; gap: 14px; font-size: .82rem; }
.footer strong { color: #30234b; }
.loading, .empty { margin-top: 22px; padding: 28px; border: 1px dashed #d9d1e9; color: var(--muted); background: #fff; border-radius: 13px; grid-column: 1/-1; text-align: center; }
.empty a { color: var(--purple); text-decoration: underline; display: inline-block; margin-top: 12px; }
.plain { border: 0; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; font-size: .88rem; color: var(--muted); padding: 23px 0 16px; }
.breadcrumbs a:hover { color: var(--purple); text-decoration: underline; }
.detail, .description, .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.detail { display: grid; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); overflow: hidden; }
.detail-media { padding: 25px; background: #faf8fd; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.detail-media .product-art { width: 100%; min-height: 320px; aspect-ratio: 1; border-radius: 14px; }
.detail-media .edition { font-size: clamp(1.4rem,3.1vw,2.9rem); }
.detail-link { color: var(--purple); font-size: .88rem; font-weight: 650; }
.detail-link:hover { text-decoration: underline; }
.detail-info { padding: 29px; }
.section-label { font-weight: 750; color: var(--purple); font-size: .9rem; margin-bottom: 6px; }
.detail-info h1 { font-size: clamp(1.4rem, 2.5vw, 2.2rem); line-height: 1.3; letter-spacing: -.04em; overflow-wrap: anywhere; }
.detail-price { color: #562cae; margin-top: 11px; font-size: 2rem; font-weight: 840; letter-spacing: -.04em; }
.field-heading { margin: 21px 0 9px; font-size: .93rem; }
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.variant { text-align: left; padding: 11px; min-width: 0; background: #fff; color: inherit; border: 1px solid #dfd9e9; border-radius: 10px; }
.variant:hover { border-color: #a786e1; }
.variant[aria-pressed="true"] { border-color: #8556da; background: #f3edff; box-shadow: inset 0 0 0 1px #8556da; }
.variant strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.variant-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.variant-meta span:first-child { color: #5430a4; font-weight: 650; }
.quantity-row { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .86rem; }
.quantity { display: inline-flex; align-items: center; border: 1px solid #e6dfef; border-radius: 9px; overflow: hidden; }
.quantity button { width: 42px; height: 39px; border: 0; background: #f4effa; font-size: 1.2rem; color: #442a79; }
.quantity button:hover:not(:disabled) { background: #e9dbff; }
.quantity output { min-width: 52px; color: #29213e; font-size: 1rem; font-weight: 700; text-align: center; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; margin-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.total strong { color: #342353; font-size: 1.35rem; }
.primary, .secondary { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 8px 14px; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.primary { background: #6037c4; color: #fff; box-shadow: 0 5px 15px #5e36bd24; }
.primary:hover:not(:disabled) { background: #5127b2; }
.primary.full { width: 100%; min-height: 44px; }
.secondary { background: #f7f4fc; border-color: #e7e0f0; color: #533390; }
.secondary:hover:not(:disabled) { background: #eee5ff; }
.description { margin-top: 20px; padding: 24px 29px; scroll-margin-top: 20px; }
.description h2 { font-size: 1.23rem; margin-bottom: 11px; }
.description h3 { font-size: .95rem; color: var(--purple); margin-bottom: 7px; overflow-wrap: anywhere; }
.detail-text { line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: #332b45; }
.detail-size-14, .detail-editable font[size="2"] { font-size: .875rem; }
.detail-size-16, .detail-editable font[size="3"] { font-size: 1rem; }
.detail-size-18, .detail-editable font[size="4"] { font-size: 1.125rem; }
.detail-size-22, .detail-editable font[size="5"] { font-size: 1.375rem; }
.detail-size-28, .detail-editable font[size="6"] { font-size: 1.75rem; }
dialog { width: min(460px, calc(100% - 30px)); padding: 25px; border-radius: 17px; border: 1px solid var(--line); color: inherit; box-shadow: 0 20px 85px #1b0e4066; }
dialog::backdrop { background: #1e1538a1; }
.dialog-heading, .section-top, .admin-title, .order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-heading h2, .success h2 { font-size: 1.33rem; }
.close-button { border: 0; border-radius: 8px; background: #f3effa; width: 34px; height: 34px; color: var(--purple); font-size: 1.32rem; }
.order-summary { background: #f3edf9; margin: 12px 0 15px; border-radius: 9px; padding: 10px 12px; color: #4e357b; font-size: .9rem; }
form label { color: #3e3453; display: block; font-size: .85rem; font-weight: 630; min-width: 0; }
form label small { color: var(--muted); font-weight: 400; }
form label input, form label textarea, form label select { display: block; width: 100%; min-width: 0; margin-top: 5px; border: 1px solid #ddd5ea; border-radius: 8px; padding: 9px 10px; background: white; color: inherit; font-size: .94rem; }
form label textarea { resize: vertical; }
dialog label + label { margin-top: 11px; }
.checkout-note-hint { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.form-error { color: #a32647; margin: 10px 0; font-size: .87rem; }
.form-error:empty { margin-top: 15px; }
.success { text-align: center; }
.success-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; margin: 0 auto 10px; color: #186f56; background: #e0f7ec; font-size: 1.45rem; }
.success p { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.success .order-id { margin: 12px 0 17px; padding: 10px; background: #f4eefb; border-radius: 9px; overflow-wrap: anywhere; font-size: .86rem; }
.admin-title { margin: 29px 0 15px; }
.admin-title h1 { font-size: 1.8rem; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.admin-tabs button { border: 1px solid transparent; border-radius: 9px; color: var(--muted); padding: 9px 14px; font-weight: 700; background: transparent; }
.admin-tabs button[aria-pressed="true"] { color: var(--purple); background: var(--soft); border-color: #e7ddf8; }
.admin-columns { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 15px; align-items: start; }
.catalog-navigator { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.admin-category-list { display: grid; gap: 5px; margin-top: 12px; }
.admin-category { color: inherit; display: grid; width: 100%; grid-template-columns: 20px minmax(0,1fr) auto;
  align-items: center; gap: 6px; padding: 7px 9px; text-align: left; border: 1px solid var(--line);
  border-radius: 9px; background: white; }
.admin-category span { overflow-wrap: anywhere; }
.admin-category:hover, .admin-category[aria-pressed="true"] { background: var(--soft); color: var(--purple); border-color: #ded0f7; }
.admin-category small { padding: 2px 6px; color: var(--muted); background: #f4f0f8; border-radius: 6px; }
.drag-grip { cursor: grab; color: var(--muted); }
.category-dragging { opacity: .5; }
.category-tools { display: flex; gap: 5px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.category-tools span { flex: 1 1 95px; font-size: .78rem; color: var(--muted); }
.category-tools button { min-height: 28px; font-size: .78rem; padding: 3px 7px; }
.category-settings { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.category-settings summary { cursor: pointer; color: #523494; font-size: .87rem; font-weight: 650; }
.product-admin-heading p, .navigator-empty { margin: 4px 0 0; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.navigator-empty { margin-top: 10px; }
.product-admin-heading .secondary { white-space: normal; text-align: center; }
.admin-panel { padding: 17px; min-width: 0; }
.section-top h2 { font-size: 1.06rem; }
.category-edit { display: grid; grid-template-columns: minmax(0,1fr) minmax(84px,.46fr) auto; gap: 7px; align-items: end; margin-top: 11px; }
.icon-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 7px; background: #f8f5fc;
  border: 1px solid var(--line); border-radius: 8px; }
.category-edit .icon-picker { grid-column: 1 / -1; margin-bottom: 3px; }
.icon-preview { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: .72rem; }
.icon-preview img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.icon-picker label { flex: 1 1 124px; }
.icon-picker input[type="file"] { width: 100%; max-width: 245px; margin-top: 2px; padding: 3px; border: 0;
  background: transparent; font-size: .78rem; }
.icon-picker input::file-selector-button { cursor: pointer; margin-right: 5px; padding: 3px 6px; border: 1px solid #ddd5ea;
  border-radius: 5px; background: #fff; color: var(--purple); }
.icon-picker button { min-height: 28px; padding: 3px 6px; font-size: .76rem; }
.icon-picker button[hidden] { display: none; }
.icon-status { color: var(--muted); font-size: .78rem; }
.text-danger { color: #a3324e; background: transparent; border: 0; border-radius: 6px; padding: 8px 4px; font-size: .82rem; white-space: nowrap; }
.text-danger:hover { background: #fff0f4; }
.product-admin-heading, .variants-heading { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-product { display: block; width: 100%; text-align: left; border-radius: 8px; padding: 8px 9px; margin-top: 5px; color: inherit; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-product:hover, .admin-product[aria-pressed="true"] { background: var(--soft); color: var(--purple); }
.product-edit { display: grid; gap: 10px; margin-top: 13px; }
.checkout-text-settings { display: grid; min-width: 0; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.checkout-text-settings legend { padding: 0 5px; font-size: .9rem; font-weight: 650; }
.checkout-text-settings p { margin: 0; color: var(--muted); font-size: .8rem; }
.field-pair, .field-trio { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field-trio { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 9px; }
.variant-edit { padding: 11px; background: #faf8fd; border: 1px solid var(--line); border-radius: 10px; margin-top: 9px; }
.variant-edit-name { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.variant-description-field { margin-top: 9px; }
.detail-editor-label { display: block; margin-bottom: 5px; color: #3e3453; font-size: .85rem; font-weight: 630; }
.detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; padding: 7px; border: 1px solid #ddd5ea;
  border-bottom: 0; border-radius: 8px 8px 0 0; background: #f5f1fa; }
.detail-toolbar label { display: flex; align-items: center; gap: 5px; }
.detail-toolbar select { width: auto; margin: 0; padding: 4px 6px; border-radius: 6px; font-size: .82rem; }
.detail-toolbar button { min-width: 29px; height: 29px; border: 1px solid #ddd5ea; border-radius: 6px; background: #fff; color: #442a79; }
.detail-toolbar button:hover { background: #eee5ff; }
.detail-toolbar .detail-file-control { position: relative; min-height: 29px; padding: 3px 7px;
  border: 1px solid #ddd5ea; border-radius: 6px; background: #fff; color: #442a79; font-size: .82rem; cursor: pointer; }
.detail-file-control input[type="file"] { opacity: 0; position: absolute; inset: 0; margin: 0; padding: 0; cursor: pointer; }
.detail-file-control:focus-within { outline: 2px solid #8960f0; outline-offset: 2px; }
.detail-upload-status { color: var(--muted); font-size: .78rem; }
.detail-attachment { display: block; margin: 12px 0; max-width: min(100%, 860px); }
.detail-attachment img, .detail-attachment video { display: block; max-width: 100%; max-height: 70vh;
  border-radius: 10px; }
.detail-attachment video { width: 100%; background: #241d31; }
.detail-editable .detail-attachment img, .detail-editable .detail-attachment video { max-height: 200px; width: auto; }
.detail-editable .detail-attachment button { margin-top: 5px; min-height: 28px; }
.detail-color-picker { position: relative; }
.detail-toolbar .detail-palette-toggle { display: flex; align-items: center; gap: 6px; padding: 0 7px; font-size: .82rem; }
.detail-current-color { width: 13px; height: 13px; border-radius: 3px; border: 1px solid #1e16383d; }
.detail-palette { position: absolute; z-index: 3; top: calc(100% + 5px); left: -30px; width: min(254px, calc(100vw - 94px));
  padding: 9px; background: #fff; border: 1px solid #ddd5ea; border-radius: 10px; box-shadow: 0 8px 24px #2d1d4b26; }
.detail-swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.detail-color-picker .detail-swatch { min-width: 0; width: 100%; height: auto; aspect-ratio: 1; padding: 0;
  border: 1px solid #1e163826; border-radius: 4px; }
.detail-swatch:hover { outline: 2px solid #5c3d9e; outline-offset: 1px; }
.detail-custom-color { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 5px;
  align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.detail-custom-color input { min-width: 0; width: 100%; height: 29px; border: 1px solid #ddd5ea; border-radius: 6px;
  background: white; color: inherit; padding: 3px 5px; font-size: .78rem; }
.detail-custom-color input[type="color"] { padding: 2px; cursor: pointer; }
.detail-color-picker .detail-color-apply { min-height: 29px; padding: 3px 6px; border: 1px solid #ddd5ea;
  border-radius: 6px; background: #fff; color: #442a79; font-size: .78rem; }
.detail-editable { min-height: 82px; padding: 9px 10px; border: 1px solid #ddd5ea; border-radius: 0 0 8px 8px; background: #fff; }
.common-detail-editor .detail-editable { min-height: 108px; }
.detail-editable:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.admin-save { display: flex; justify-content: end; align-items: center; gap: 10px; margin-top: 14px; }
#save-state { color: var(--muted); font-size: .87rem; }
.orders { display: grid; gap: 11px; margin-top: 12px; }
.order { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.order-head { align-items: flex-start; }
.order-head h3 { font-size: .99rem; }
.order-head p { font-size: .86rem; color: var(--muted); margin: 4px 0 0; }
.order dl { margin: 10px 0 0; display: grid; gap: 6px; }
.order dl > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.order dt { font-size: .85rem; font-weight: 650; min-width: 69px; color: var(--muted); }
.order dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.buyer-note-content { flex: 1 1 16rem; }
.order-note { line-height: 1.5; white-space: pre-wrap; }
.order-note:not(.is-expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 3em;
  overflow: hidden;
}
.order-note.is-expanded {
  max-height: min(14rem, 40vh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f5fc;
}
.order-update, .admin-order-search { display: grid; gap: 8px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }
.admin-order-search { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; max-width: 620px; }
.order-update { grid-template-columns: minmax(115px,.28fr) minmax(0,1fr) auto; align-items: end; }
.order-update .primary { box-shadow: none; }
.order-update textarea { min-height: 39px; }
.order-history { margin-top: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; }
.order-history summary { cursor: pointer; color: #523494; font-weight: 650; font-size: .86rem; }
.order-history summary span { margin-left: 5px; padding: 1px 6px; border-radius: 6px; background: var(--soft); }
.order-history-list { display: grid; gap: 8px; list-style: none; margin: 8px 0; padding: 0; }
.order-history-list li { background: #f8f5fc; border-radius: 7px; padding: 8px; }
.order-note-heading { display: flex; align-items: center; justify-content: space-between; column-gap: 8px; }
.order-note-heading time, .order-note-heading span, .order-history [data-note-status] { color: var(--muted); font-size: .78rem; }
.order-note-delete { border: 0; padding: 4px 7px; border-radius: 6px; background: transparent; color: #a3324e; font-size: .78rem; }
.order-note-delete:hover { background: #fff0f4; }
.order-history-list p { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.order-history button[hidden] { display: none; }
.pending-card { display: grid; gap: 5px; text-align: left; width: min(100%, 250px); margin-bottom: 12px; color: inherit; }
.pending-card:hover { border-color: #b89be8; }
.pending-card span { color: var(--muted); font-size: .91rem; }
.pending-card strong { font-size: 1.8rem; line-height: 1.05; }
.buyer-note-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.buyer-note-actions button[hidden] { display: none; }
.receipt-actions { display: flex; justify-content: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.order .secondary { min-height: 29px; padding: 3px 8px; font-size: .79rem; }
.pagination { display: flex; margin-top: 12px; justify-content: end; align-items: center; gap: 8px; }
#toast { display: none; position: fixed; z-index: 5; right: 20px; bottom: 20px; max-width: min(480px,calc(100% - 40px)); background: #2f2150; color: white; border-radius: 10px; padding: 10px 15px; box-shadow: var(--shadow); }
#toast.visible { display: block; }
@media (max-width: 1000px) {
  .shell, .header-inner { width: calc(100% - 48px); }
  .shop-layout { grid-template-columns: 177px minmax(0,1fr); gap: 16px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-content { padding-inline: 34px; }
  .detail-media .product-art { min-height: 260px; }
}
@media (max-width: 720px) {
  .shell, .header-inner { width: calc(100% - 28px); }
  .header-inner { height: 59px; gap: 9px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-icon { width: 29px; height: 29px; }
  .header-link { font-size: .8rem; padding: 7px 8px; }
  .hero { min-height: 230px; margin: 17px 0 19px; border-radius: 15px; }
  .hero-content { padding: 20px; }
  .hero-description { max-width: 215px; font-size: .9rem; }
  .hero-art { inset: 8% -9% 0 51%; opacity: .59; }
  .hero-tile { width: clamp(82px, 23vw, 140px); padding: 6px; }
  .shop-layout, .detail, .admin-columns { grid-template-columns: minmax(0,1fr); }
  .catalog-navigator { position: static; max-height: none; }
  .order-update { grid-template-columns: minmax(0,1fr); }
  .staff-account-form { grid-template-columns: minmax(0,1fr); }
  .categories { padding: 8px; }
  .categories h2 { padding: 3px 4px; font-size: .91rem; }
  #categories { display: flex; flex-wrap: wrap; gap: 4px; }
  .category-button { width: auto; min-height: 36px; font-size: .8rem; padding: 4px; gap: 4px; margin: 0; }
  .category-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .category-button small { padding: 1px 4px; }
  .catalog-head { gap: 8px; margin-bottom: 11px; }
  .catalog-head h2 { font-size: 1.4rem; }
  .search input { width: min(31vw,160px); }
  .product-grid { gap: 8px; }
  .product-card { padding: 6px; border-radius: 11px; }
  .product-art { min-height: 91px; border-radius: 7px; }
  .product-content { padding: 7px 3px 3px; }
  .product-content h3 { font-size: .88rem; margin: 5px 0 8px; }
  .card-price { font-size: 1.02rem; }
  .card-bottom { padding-top: 5px; }
  .detail-media { padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); gap: 8px; }
  .detail-media .product-art { min-height: 160px; aspect-ratio: 2.15; }
  .detail-media .art-core { width: min(28%,126px); }
  .detail-info, .description { padding: 16px; }
  .breadcrumbs { padding: 13px 0 9px; }
  .footer { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
