/* Starlight's seal: one ink per skin (青花 cobalt / 胭脂 berry) on its own paper, nothing else competing.
   Loaded last; the artwork and the two pattern modes keep their own colours (fixed roles in style.css). */
:root{--shop-shadow:0 8px 30px rgb(var(--ink-rgb) / .03)}
body{background:var(--paper)}
::selection{background:var(--accent-soft);color:var(--accent-strong)}
.shop-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* The logo files (app/static/brand/<skin>/) are inlined by the server once per skin and only the current
   skin's copy shows, so the first paint has the right seal and a switch never waits for a download. */
.brand-seal{display:block;flex:none}
.brand-seal>.brand-art{display:none;width:100%;height:100%}
html[data-theme=qinghua] .brand-art--qinghua,html[data-theme=rouge] .brand-art--rouge,html:not([data-theme]) .brand-art--qinghua{display:block}
.brand-icon{display:block}
/* Wordmark: the seal carries the character, so the type stays plain — one system face at 600, wide
   tracking, and an English line justified to exactly the width of the five characters. */
.brand{gap:12px;font-family:var(--font-sans);font-weight:600;letter-spacing:0}
.brand-mark{width:44px;height:44px}
.brand-mark>.brand-art{transition:transform .25s ease}
.brand:hover .brand-mark>.brand-art{transform:rotate(-4deg)}
.brand-name{display:inline-grid;font-size:24px;line-height:1.2;letter-spacing:.125em;margin-right:-.125em}
.brand .brand-name small{display:block;margin:5px 3px 0 0;font:500 10px/1.1 var(--font-latin);letter-spacing:.06em;color:var(--muted);text-align:justify;text-align-last:justify}
/* Skin switch: two real toggle buttons (aria-pressed, printed by the server, kept in step by app.js), each
   showing its seal in its own ink — style.css gives [data-skin] that skin's roles, so a button previews its
   skin on hover. The current one is framed and named; the other's name stays for screen readers. */
.skin-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.skin-option{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:36px;min-height:36px;padding:0 8px;border-radius:999px;color:var(--muted);font-size:12px;letter-spacing:.08em;white-space:nowrap;transition:background .18s,color .18s}
.skin-seal{display:grid;place-items:center;width:22px;height:22px;flex:none;border-radius:6px;transition:box-shadow .18s}
.skin-seal .brand-icon{width:16px;height:16px}
.skin-option:hover{background:var(--accent-tint);color:var(--accent-strong)}
.skin-option[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-strong);padding-right:12px;cursor:default}
.skin-option[aria-pressed=true] .skin-seal{box-shadow:inset 0 0 0 1.5px var(--accent)}
.skin-option[aria-pressed=false] .skin-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skin-option:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* One short cross-fade when the ink changes (app.js skips it for reduced motion). */
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
.site-header{padding-top:22px;padding-bottom:22px}
.site-header nav a{position:relative;border-bottom:0;min-height:40px;display:flex;align-items:center}
.site-header nav a.active:after{content:'';position:absolute;left:calc(50% - 3px);bottom:0;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.wallet-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-variant-numeric:tabular-nums}
.wallet-link .shop-icon{width:17px;height:17px;color:var(--accent)}
.login-button{min-height:42px;border-color:var(--line-strong);background:var(--surface);transition:background .18s,border-color .18s}
.login-button:hover{background:var(--accent-tint);border-color:var(--accent)}
.announcement{background:var(--accent-tint);color:var(--accent-strong);letter-spacing:.12em}
main:focus{outline:none}
.primary{box-shadow:0 3px 9px rgb(var(--accent-rgb) / .07);min-height:44px}
.secondary{min-height:42px;transition:background .18s,border-color .18s}
.secondary:hover{border-color:var(--line-strong);background:var(--accent-tint)}
button:disabled{box-shadow:none}
input,select,textarea{transition:border-color .15s}
input:hover,select:hover,textarea:hover{border-color:var(--line-strong)}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
:where(button,a){scroll-margin:20px}
.site-footer{padding-top:28px;padding-bottom:28px}
.footer-brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:600;letter-spacing:1px}
.footer-mark{width:32px;height:32px}
.site-footer p{font-size:12px;margin:6px 0 0}
.site-footer>div:last-child{column-gap:22px;row-gap:0;align-content:center}
.site-footer>div:last-child a{display:inline-flex;align-items:center;min-height:36px}
.site-footer>div:last-child>span{align-self:center}
/* A compact catalogue header, with a clear search line and visible licence filters. */
.catalog-page .site-header{padding-top:20px;padding-bottom:20px}
.gallery-sidebar nav a.active{background:var(--accent-soft);box-shadow:inset 2px 0 var(--accent)}
.gallery-sidebar nav a{border-radius:10px}
.gallery-sidebar-bottom{border-top-color:var(--line)}
.gallery-sidebar-bottom a{min-height:40px}
.gallery-banner{background:var(--paper-deep);border-color:var(--line);border-radius:17px}
.gallery-banner h1{font-weight:600;letter-spacing:.035em}
.gallery-banner p{color:var(--muted)}
.gallery-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;margin-top:22px}
.gallery-section-title{grid-column:1;grid-row:1;align-self:center;font-size:17px;font-weight:600;letter-spacing:.05em;margin:0;display:flex;align-items:center;gap:12px}
.gallery-section-title span{font:500 9px/1.4 system-ui,sans-serif;letter-spacing:.13em;color:var(--muted)}
.gallery-actions{grid-column:2;grid-row:1;min-width:0;margin:0}
.gallery-actions .search input{background:var(--surface);border-color:var(--line);border-radius:12px;min-height:42px}
.gallery-actions .search button{display:grid;place-items:center;min-height:42px;min-width:42px}
.gallery-actions .search .shop-icon{width:17px;height:17px;color:var(--muted)}
.gallery-filters{grid-column:1/-1;grid-row:2;row-gap:6px}
.filter-chip{font-weight:400;border-radius:7px;color:var(--muted);min-height:38px}
.filter-chip.active{background:var(--accent-soft);color:var(--accent-strong)}
.catalog-page .catalog-result-line{margin:10px 0 13px}
.catalog-card .art-image{border:1px solid var(--line);background:var(--card);border-radius:13px;box-shadow:0 2px 4px rgb(var(--ink-rgb) / .01)}
.catalog-card .art-image>img{border-radius:inherit}
.catalog-card>a:focus-visible{border-radius:13px;outline-offset:4px}
.catalog-card h3{font-weight:550;margin-top:9px;line-height:1.5;letter-spacing:.01em}
.catalog-card .card-meta{align-items:center;gap:4px}
.catalog-card .card-prices{font-size:11px;color:var(--accent)}
.catalog-card .favorite-button{min-width:32px;min-height:32px;border-radius:50%;margin-right:-5px;flex:none}
.catalog-card .favorite-button svg{width:18px;height:18px}
.catalog-card .sold-tag{background:rgb(var(--surface-rgb) / .94);backdrop-filter:blur(6px);border:1px solid var(--line);box-shadow:0 2px 8px rgb(var(--ink-rgb) / .06);border-radius:6px;padding:3px 7px;font-size:10px;color:var(--accent-strong)}
.catalog-card .new-badge{background:var(--accent-tint);color:var(--accent-strong);border:1px solid var(--line);box-shadow:none;border-radius:5px;font:600 10px/1.5 system-ui,sans-serif;padding:3px 7px}
#catalog-grid[aria-busy=true]{opacity:.55;transition:opacity .15s}
.pagination{gap:20px}
.pagination button{min-height:40px;border-radius:11px;background:var(--surface)}
.pagination button:not(:disabled):hover{background:var(--accent-tint);border-color:var(--line-strong)}
.catalog-page .shop-note{background:transparent;border-style:solid;border-width:1px 0 0;border-radius:0;padding:23px 0;margin-top:34px}
/* Shared blank states are small stationery illustrations, with useful actions. */
.empty{border-style:solid;border-color:var(--line);padding:44px 24px;background:var(--surface);box-shadow:var(--shop-shadow)}
.empty-illustration{display:block;width:160px;height:120px;margin:0 auto 20px;stroke-linecap:round;stroke-linejoin:round}
.es-shadow{fill:var(--ink);opacity:.06}
.es-card{fill:var(--accent-tint);stroke:var(--line-strong);stroke-width:1.5}
.es-sheet{fill:var(--surface);stroke:var(--line-strong);stroke-width:2}
.es-dash{fill:none;stroke:var(--line-strong);stroke-width:1.5;stroke-dasharray:4 4}
.es-heart{fill:none;stroke:var(--accent);stroke-width:2.5}
.es-seal{fill:var(--accent)}
.es-seal-cut{fill:none;stroke:var(--on-accent);stroke-width:1.5;stroke-linecap:square;stroke-linejoin:miter}
.empty h2{font-size:23px;font-weight:600;letter-spacing:.02em;margin-bottom:10px}
.empty p{max-width:440px;margin:0 auto 24px;font-size:13px;line-height:1.9}
.loading{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;min-height:44vh;padding:70px 20px}
.loading-brand{width:56px;height:56px;animation:shop-breathe 1.8s ease-in-out infinite}
.modal-brand{width:64px;height:64px;margin:0 auto 14px}
.modal-eyebrow{text-align:center;color:var(--muted);font-size:11px;letter-spacing:.13em;margin-bottom:9px}
#modal:has(#login-form){padding:30px 32px;border-radius:24px;background:var(--surface)}
#modal:has(#login-form) h2{text-align:center;font-size:23px;letter-spacing:.02em;margin-bottom:10px}
#modal:has(#login-form) #modal-body>p{text-align:center;font-size:12px;margin-bottom:25px}
#login-form label:not(.agree){font-size:12px;font-weight:500;color:var(--muted)}
#login-form input:not([type=checkbox]){background:var(--paper);border-color:var(--line);min-height:46px}
#login-form .agree{font-weight:400;font-size:12px}
#login-form .code-row button{border-radius:10px;color:var(--accent);font-size:12px}
#login-form .form-message:empty{display:none}
.modal-close{width:40px;height:40px;display:grid;place-items:center;line-height:1;right:10px;top:10px;border-radius:50%}
.modal-close:hover{background:var(--accent-tint);color:var(--accent)}
/* Purchases, saved work and settings share the same paper and ink treatment. */
.surface,.order-card{box-shadow:var(--shop-shadow);border-color:var(--line)}
.page-heading{padding:27px 0}
.page-heading h1{font-weight:600;font-size:29px;letter-spacing:.035em}
.page-heading p{font-size:13px;line-height:1.85}
.account-tabs{gap:6px;border-bottom:1px solid var(--line);padding-bottom:8px;margin:22px 0;flex-wrap:wrap}
.account-tabs a{padding:8px 16px;border:0;border-radius:9px;color:var(--muted);font-size:13px}
.account-tabs a.active{background:var(--accent-soft);color:var(--accent)}
.account-tabs a:hover{background:var(--accent-tint)}
.account-bar{background:var(--accent-tint);border:1px solid var(--line)}
.wallet-card{position:relative;isolation:isolate;overflow:hidden;background:var(--paper-deep);border-color:var(--line)}
.wallet-brand{position:absolute;width:90px;height:90px;right:20px;bottom:20px;opacity:.13;z-index:-1;transform:rotate(8deg)}
.wallet-card .amount{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.product-preview{background:var(--sunk);border-color:var(--line)}
.product-info h1{line-height:1.5;overflow-wrap:anywhere}
main>.product-layout>.product-info{padding-top:8px}
main>.product-layout .product-specs{margin:18px 0;padding:13px 0}
main>.product-layout .fieldset-label{margin:18px 0 10px}
main>.product-layout .license-option{padding:14px 16px}
main>.product-layout .license-option:has(input:checked){padding:13.5px 15.5px}
[data-purchase-message]:empty{display:none}
.product-tags span{background:var(--accent-tint);color:var(--muted)}
.license-option{border-radius:13px}
.license-option:has(input:checked){box-shadow:0 3px 12px rgb(var(--accent-rgb) / .03)}
.pattern-entry{border-radius:14px}
.pattern-locked{border-color:var(--line);background:var(--surface);padding:35px}
.pattern-locked>img{padding:10px;background:var(--sunk);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shop-shadow)}
/* A readable guide: quick links, real steps, and field-specific license colors. */
.guide{max-width:960px}
.guide>h1{font-size:32px;font-weight:600;margin:14px 0 22px;letter-spacing:.03em}
.guide-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:27px}
.guide-nav a{display:flex;align-items:center;min-height:40px;padding:8px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--accent-strong);font-size:12px}
.guide-nav a:hover{border-color:var(--line-strong);background:var(--accent-tint)}
.guide section{scroll-margin-top:25px}
.guide .surface{padding:28px 30px}
.guide h2{font-size:20px;font-weight:600;letter-spacing:.015em}
.guide p,.guide li{font-size:13px;line-height:2;color:var(--muted)}
.guide .surface p:last-child{margin-bottom:0}
.guide-steps ol{list-style:none;padding:0;counter-reset:shop-step;display:grid;gap:15px;margin:20px 0}
.guide-steps li{counter-increment:shop-step;position:relative;padding-left:39px;min-height:28px}
.guide-steps li:before{content:counter(shop-step,decimal-leading-zero);position:absolute;left:0;top:0;display:grid;place-items:center;width:27px;height:27px;background:var(--accent-soft);border-radius:9px;color:var(--accent);font:500 11px/1 system-ui,sans-serif}
.guide-grid .surface{border-top:3px solid var(--accent)}
.guide-grid .surface:last-child{border-top-color:var(--ink)}
.guide .contact{border:1px solid var(--line);background:var(--accent-tint);padding:32px}
.guide .contact .eyebrow{justify-content:center}
.guide .contact strong{display:inline-block;font-size:25px;letter-spacing:.06em;margin:0 0 13px}
.guide .contact p{line-height:1.9}
/* The banner's one primary action is the draw: a solid ink button beside the price line. */
.gallery-banner{gap:16px 28px;min-height:92px;padding:16px 26px}
.banner-copy{min-width:0}
.banner-draw{display:flex;align-items:center;gap:14px;margin-left:auto;margin-right:calc(31% - 26px)}
.banner-draw-lead{font-size:13px;color:var(--muted);white-space:nowrap}
.draw-button,.banner-draw .draw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:0 20px;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:var(--on-accent);font-size:14px;font-weight:600;letter-spacing:.04em;white-space:nowrap;box-shadow:0 4px 14px rgb(var(--accent-rgb) / .24);transition:background .18s,border-color .18s,transform .12s}
.draw-button:hover,.draw-button:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong);box-shadow:0 4px 14px rgb(var(--accent-rgb) / .24)}
.draw-button:active:not(:disabled){transform:scale(.97)}
.draw-button:disabled,.banner-draw .draw-button:disabled{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent-strong);box-shadow:none;cursor:progress}
.draw-button>span{font-size:15px;line-height:1;color:var(--star)}
.draw-button:disabled>span{color:var(--accent)}
.draw-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#discovery-results{scroll-margin-top:14px}
/* Phones: once the banner and its button scroll away, a small 抽 seal floats in at the lower left, like the
   corner seal on a painting, cut like the shop mark (solid ink, the character left as paper). At 52px it stays
   inside the first column's left edge: every card's heart sits at the column's right end, so none is covered.
   It leaves again when the list ends (pagination, notes and footer stay tappable). It is a pointer / touch alias of
   the banner button (aria-hidden, never in the Tab order); app.js sets .is-shown, :disabled while a filter loads
   or a draw deals, and body.has-draw-fab so a toast rises above it. */
.draw-fab{position:fixed;z-index:30;left:calc(16px + env(safe-area-inset-left,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));display:none;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:52px;height:52px;padding:0;border-radius:7px;background:var(--accent);color:var(--on-accent);box-shadow:0 8px 22px rgb(var(--ink-rgb) / .24);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(16px) rotate(-6deg) scale(.86);transition:opacity .18s,transform .3s cubic-bezier(.2,.7,.2,1),visibility 0s .3s}
.draw-fab.is-shown{opacity:1;visibility:visible;pointer-events:auto;transform:rotate(-6deg);transition:opacity .18s,transform .3s cubic-bezier(.34,1.4,.64,1),visibility 0s}
@media(hover:hover){.draw-fab:hover{background:var(--accent-strong)}}
.draw-fab:active:not(:disabled){transform:rotate(-6deg) scale(.94)}
/* Busy (a filter is loading or a draw is dealing), in step with the banner button. */
.draw-fab:disabled{background:var(--accent-soft);color:var(--accent-strong);box-shadow:0 6px 16px rgb(var(--ink-rgb) / .14);cursor:progress}
.draw-fab:disabled .draw-fab-char{animation:twinkle 1s infinite}
.draw-fab-char{font:800 21px/1 var(--font-sans)}
.draw-fab-sub{font-size:10px;line-height:1;letter-spacing:.06em}
@media(max-width:900px){
  .catalog-page .draw-fab{display:flex}
  .has-draw-fab #toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
/* Hints are supplementary; touch retains the normal button action. */
@media(hover:hover) and (pointer:fine){
  [data-hint]{position:relative}
  [data-hint]:after{content:attr(data-hint);position:absolute;bottom:calc(100% + 10px);right:0;width:max-content;max-width:260px;padding:8px 12px;border-radius:8px;background:var(--ink);color:var(--surface);font-size:11px;font-weight:400;line-height:1.7;box-shadow:0 5px 16px rgb(var(--ink-rgb) / .13);opacity:0;transform:translateY(3px);pointer-events:none;z-index:8;transition:opacity .15s,transform .15s}
  [data-hint]:is(:hover,:focus-visible):after{opacity:1;transform:translateY(0);transition-delay:.3s}
}
@keyframes shop-breathe{50%{opacity:.55;transform:translateY(-3px)}}
@media(max-width:1150px){.header-actions .wallet-link{display:none}}
@media(max-width:1200px){.gallery-section-title span{display:none}.site-header nav{gap:20px}.gallery-actions .search{width:230px}}
@media(max-width:900px){
  .gallery-toolbar{grid-template-columns:1fr;gap:9px;margin-top:16px}
  .gallery-section-title{position:absolute;display:block;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .gallery-actions{grid-column:1;grid-row:1;width:100%}
  .gallery-actions .search{width:auto;flex:1}
  .gallery-filters{grid-column:1}
  .gallery-sidebar nav a.active{box-shadow:none}
  .catalog-page .site-header{padding-top:17px;padding-bottom:16px}
}
@media(max-width:600px){
  .site-header .brand,.catalog-page .brand{font-size:19px;letter-spacing:0;gap:9px}
  .site-header .brand-name,.catalog-page .brand-name{font-size:20px;letter-spacing:.1em}
  .brand-mark,.catalog-page .brand-mark{width:36px;height:36px}
  /* A 10px English line cannot share the width of a 20px wordmark; phones show the Chinese name only. */
  .site-header .brand small,.catalog-page .brand small{display:none}
  /* Phones keep both seals and drop the name; the pressed one is still framed. */
  .header-actions{gap:0}.skin-switch{margin-right:8px;padding:2px}.skin-option,.skin-option[aria-pressed=true]{min-width:34px;min-height:34px;padding:0}
  .skin-option .skin-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .banner-draw{margin:0 0 0 auto}.banner-draw-lead{display:none}
  .banner-draw .draw-button{min-height:38px;padding:0 12px;font-size:12px;border-radius:10px;gap:5px;letter-spacing:.02em}
  .banner-draw .draw-button>span{font-size:12px}
  .site-header .login-button,.catalog-page .login-button{min-height:40px;padding:7px 12px;font-size:11px}
  .catalog-page .site-header{padding:15px 16px 13px}
  .catalog-page .gallery-sidebar{padding-bottom:12px}
  .gallery-sidebar nav a{min-height:42px}
  .gallery-banner{min-height:68px;border-radius:12px}
  .gallery-banner h1{font-size:18px;letter-spacing:.015em}
  .gallery-toolbar{margin-top:12px;row-gap:7px}
  .gallery-actions .search input{font-size:16px;min-height:42px}
  .gallery-filters{display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow:visible;margin:0;padding:0}
  .filter-group{max-width:100%;min-width:0;flex:none;overflow-x:auto;scrollbar-width:none}
  .filter-group::-webkit-scrollbar{display:none}
  .filter-group+.filter-group:before{display:none}
  .filter-group:last-child{flex-wrap:wrap;overflow:visible;border-top:1px solid var(--line);padding-top:4px;column-gap:1px}
  .filter-chip{min-height:36px;padding:0 8px;font-size:11px;flex:none}
  .filter-group:last-child .filter-chip{font-size:10px;padding:0 7px}
  .catalog-page .catalog-result-line{margin:5px 0 8px}
  .catalog-card .art-image{border-radius:10px}
  .catalog-card .card-prices{font-size:10px}
  .catalog-card .favorite-button{min-width:36px;min-height:36px}
  .catalog-card h3{margin-top:7px}
  .page-heading{padding:23px 0;gap:12px}
  .page-heading h1{font-size:25px}
  .page-heading p{font-size:12px}
  .empty{padding:30px 19px}
  .empty-illustration{width:144px;height:108px;margin-bottom:16px}
  .empty h2{font-size:21px}
  .empty p{font-size:12px;line-height:1.9}
  .account-tabs{gap:2px}.account-tabs a{font-size:12px;padding:8px 10px}
  #modal:has(#login-form){padding:27px 23px}
  #modal:has(#login-form) h2{font-size:21px}
  .modal-brand{width:56px;height:56px}
  .guide>h1{font-size:28px;margin:12px 0 20px}
  .guide-nav{gap:6px;margin-bottom:21px}.guide-nav a{padding:7px 10px;font-size:11px}
  .guide .surface{padding:22px 20px}.guide h2{font-size:19px}.guide p,.guide li{font-size:12px}
  .guide .contact{padding:27px 18px}
  .pattern-locked{padding:24px}
  .site-footer>div:last-child{gap:0 18px}
}
@media(max-width:360px){
  /* Room for the wordmark, both seals and the login button on the narrowest phones (targets stay ≥ 24px). */
  .skin-switch{margin-right:4px;padding:1px}.skin-option,.skin-option[aria-pressed=true]{min-width:28px;min-height:30px}.skin-seal{width:20px;height:20px}
  .site-header{column-gap:6px}.site-header .login-button{padding:7px 9px}
  .site-header .brand-name,.catalog-page .brand-name{font-size:17px;letter-spacing:.06em}
  .brand-mark,.catalog-page .brand-mark{width:32px;height:32px}
  .catalog-page .login-button{padding:7px 9px}
  .gallery-sidebar nav a{font-size:10px;gap:4px}
  .filter-group:last-child .filter-chip{padding:0 5px;font-size:10px}
  .catalog-card .card-prices{font-size:9px}.catalog-card h3{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .loading-brand{animation:none}
  .brand-mark>.brand-art,.secondary,.login-button,input,select,textarea,#catalog-grid,[data-hint]:after,.skin-option,.skin-seal,.brand-icon,.draw-fab,.draw-fab.is-shown,.draw-button{transition:none}
  .brand:hover .brand-mark>.brand-art{transform:none}
  .draw-fab.is-shown:active:not(:disabled){transform:rotate(-6deg)}
}
/* Printing: no floating or interactive chrome. An open dialog prints once as a plain sheet at its full height:
   absolute (a fixed dialog repeats on every page), without the dimmed, blurred page or the close button, and,
   where :has() exists, without the page behind it. */
@media print{
  .draw-fab,.skin-switch,#toast,.dl-quest,.dl-ghost,.skip{display:none!important}
  body:has(dialog[open])>:not(dialog[open]){display:none!important}
  dialog::backdrop{background:none;backdrop-filter:none}
  dialog[open]{position:absolute;inset:0 0 auto;margin:0 auto;max-height:none;box-shadow:none;animation:none}
  .art-preview-dialog{height:auto;overflow:visible}
  .art-preview-content,.art-preview-dialog .product-preview,.art-preview-dialog .product-info{overflow:visible}
  .art-preview-close,.modal-close{display:none}
}
