:root {
  --ink: #371b0d;
  --muted: #765738;
  --green: #3b510c;
  --gold: #e9b83e;
  --line: #c79c60;
  --paper: #f6e2bd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: #3f2213 url('/static/images/wood-background.png') center top/650px repeat; font: 18px/1.5 Georgia, 'Times New Roman', serif; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { color: #6d380e; }
button, input { font: inherit; }
button, .button, input[type=submit] { cursor: pointer; }
:focus-visible { outline: 3px solid #b36a15; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 3.3vw, 52px); line-height: 1.12; margin-bottom: 22px; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 22px; }
.store-frame { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 38px; min-height: 100vh; }
.store-frame.shutter-impact { animation: shutter-impact 180ms ease-out; }
@keyframes shutter-impact { 0%, 100% { transform: translateY(0); } 20% { transform: translateY(2px); } 45% { transform: translateY(-1.5px); } 70% { transform: translateY(1px); } 85% { transform: translateY(-.5px); } }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2vw, 32px); min-height: 142px; margin: 0 -38px; padding: 0 38px 8px; background: url('/static/images/header-slab.png') center/100% 200% no-repeat; filter: drop-shadow(0 5px 5px #16090488); position: relative; z-index: 3; }
.timber-rail { position: absolute; left: 0; width: 100%; height: 32px; pointer-events: none; z-index: 4; filter: drop-shadow(0 2px 2px #14090588); }
.bottom-rail { bottom: 0; }
.inner-frame { position: relative; display: flow-root; padding: 24px 0; }
.inner-frame > .timber-rail { left: -30px; width: calc(100% + 60px); }
.inner-frame > .top-rail { top: 24px; }
.inner-frame > .bottom-rail { bottom: 24px; }
.wood-sign { position: relative; transform: translateY(30px); isolation: isolate; display: block; flex: 0 0 clamp(420px, 42vw, 720px); height: 126px; }
.wood-sign::before { content: ''; position: absolute; inset: -30px 0 0; z-index: -1; background: url('/static/images/hanging-sign-lettered.png') center bottom/100% 196px no-repeat; transform: scaleX(.95); filter: drop-shadow(0 5px 3px #16090488); }
.wood-sign:hover::before { filter: brightness(1.06) drop-shadow(0 5px 3px #16090488); }
.header-links { flex: 1; min-width: 0; padding-right: 12px; }
nav { display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1vw, 18px); }
nav a { color: #f9e5bd; text-decoration: none; font-size: clamp(16px, 1.3vw, 21px); font-weight: bold; white-space: nowrap; padding: 12px 0; position: relative; text-shadow: 0 2px 2px #1c0b05, 0 3px 5px #16090480; }
nav a:hover { color: #ffce53; }
.nav-logout { margin: 0; }
nav .nav-logout button.nav-button { border: 0; border-radius: 0; padding: 12px 0; background: transparent; box-shadow: none; color: #f9e5bd; font-size: clamp(16px, 1.3vw, 21px); font-weight: bold; white-space: nowrap; text-shadow: 0 2px 2px #1c0b05, 0 3px 5px #16090480; }
nav .nav-logout button.nav-button:hover { color: #ffce53; background: transparent; }
nav a[aria-current=page]::after { content: ''; position: absolute; height: 3px; background: var(--gold); left: 0; right: 0; bottom: 4px; border-radius: 4px; }
.signed-in { display: block; text-align: right; color: #dbc297; font-size: 13px; margin-top: 2px; }
.shop-page { position: relative; isolation: isolate; z-index: 0; margin: 0 -32px; padding: 0 32px 28px; background: #482612 url('/static/images/wood-background.png') center top/650px; box-shadow: inset 0 -4px 3px #190b09aa, 0 6px 14px #16090499; }
.shop-page::before, .shop-page::after { content: ''; position: absolute; top: -28px; bottom: -6px; width: 40px; z-index: 3; pointer-events: none; background: url('/static/images/timber-post.png') center/184% 100% no-repeat; clip-path: inset(20px -8px -8px); filter: drop-shadow(2px 1px 3px #14090588); }
.shop-page::before { left: 0; }
.shop-page::after { right: 0; filter: drop-shadow(-2px 1px 3px #14090588); }
.shop-scene { height: calc(clamp(340px, 31vw, 470px) + 30px); position: relative; isolation: isolate; overflow: hidden; background: #3c2415 url('/static/images/shop-interior.png') center/cover; }
.shop-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #130b0555, transparent 75%); z-index: -1; }
.shop-title { position: absolute; left: 20px; top: calc(50% - 35px); width: 43%; padding: 24px 26px; background: var(--paper) url('/static/images/parchment-background.png') center/580px; box-shadow: 0 5px 14px #160b07a6; border-radius: 16px 6px 20px 8px; transform: translateY(-50%) rotate(-1deg); }
.shop-title h1 { font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -2px; margin-bottom: 22px; }
.tagline { background: #516124; color: #fff0c8; font-style: italic; font-weight: bold; padding: 8px 10px; font-size: clamp(14px, 1.5vw, 22px); line-height: 1.3; margin: 0 -10px; text-align: center; box-shadow: 0 2px 1px #8b6d32; }
.welcome-gruk { position: absolute; right: -2%; bottom: 36px; height: clamp(343.4px, 31.31vw, 474.7px); width: 52%; object-fit: contain; object-position: bottom right; transform: scaleX(1.13904); transform-origin: right bottom; z-index: 1; clip-path: inset(0 0 7% 0); filter: drop-shadow(-8px 4px 5px #160a0440); }
.gruk-hands { z-index: 3; clip-path: none; pointer-events: none; filter: none; }
@media (min-width: 1700px) {
  .welcome-gruk { transform: scaleX(1.26); }
}
.speech-bubble { position: absolute; z-index: 2; left: 40%; top: 8px; width: 23%; height: 160px; padding: 20px 0; display: flex; align-items: center; justify-content: center; background: #fae9c7 url('/static/images/parchment-background.png') center/400px; border-radius: 50%; box-shadow: 0 3px 8px #2c110b33; text-align: center; }
.speech-bubble::after { content: ''; position: absolute; left: calc(100% - 30px); top: 58%; width: 52px; height: 36px; background: #fae9c7 url('/static/images/parchment-background.png') center/400px; clip-path: polygon(0 0, 100% 100%, 0 78%); }
#gruk-quote { width: 72%; position: relative; z-index: 1; font-weight: bold; font-style: italic; font-size: clamp(18px, 1.6vw, 25px); line-height: 1.2; margin: 0; }
.quote-word { display: inline-block; white-space: nowrap; }
.quote-letter { display: inline-block; animation: letter-jitter 650ms steps(2, end) infinite; animation-delay: var(--delay); }
@keyframes letter-jitter { 0%,100% { transform: translate(0, 0) rotate(-.4deg); } 35% { transform: translate(.35px, -.6px) rotate(.5deg); } 70% { transform: translate(-.4px, .4px); } }
.speech-bubble.paused .quote-letter { animation: none; }
.counter { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 70px; background: url('/static/images/counter-plank.png') center/100% 200% no-repeat; filter: drop-shadow(0 4px 4px #190b08aa); }
.shop-stock, .content-panel { background: var(--paper) url('/static/images/parchment-background.png') repeat; background-size: 800px; border: 2px solid #bd873f; box-shadow: inset 0 0 22px #b67c2540, 0 4px 10px #0005; }
/* Isolate the textured panel's repaint to prevent diagonal seams during dialogue hover. */
.shop-stock { padding: 25px 28px 30px; border-radius: 0 0 6px 6px; box-shadow: inset 0 14px 14px -9px #351508bb, inset 0 0 22px #b67c2540; transform: translateZ(0); }
.shop-filters { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 28px); margin-bottom: 25px; }
.search-box { display: flex; flex: 1; min-width: 0; gap: 8px; max-width: 490px; }
input:not([type=submit]) { padding: 9px 13px; color: var(--ink); background: #fffaf0b8; border: 1px solid #b39777; border-radius: 6px; max-width: 100%; }
.search-box input { min-width: 120px; width: 100%; }
.category-buttons { display: flex; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.category-button { padding: 8px clamp(10px, 1.3vw, 22px); background: #ead0a0a1; border: 1px solid #c79c60; border-radius: 6px; color: var(--ink); font-weight: bold; }
.category-button.selected { background: var(--green); color: #fff1d0; border-color: var(--green); }
.category-button:hover { box-shadow: inset 0 0 8px #85652655; }
.reset-search { font-size: 15px; }
.talk-to-gruk { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; margin-left: auto; padding: 8px 16px; border: 2px solid #95641d; border-radius: 28px; background: var(--paper) url('/static/images/parchment-background.png') center/400px; color: var(--ink); font-size: clamp(16px, 1.2vw, 19px); font-weight: bold; white-space: nowrap; box-shadow: inset 0 0 0 2px #f8d781, 0 2px 4px #60401f40; }
.talk-to-gruk::after { content: ''; position: absolute; left: 20px; bottom: -7px; width: 11px; height: 11px; background: var(--paper); border-left: 2px solid #95641d; border-bottom: 2px solid #95641d; transform: skewY(-30deg); }
.talk-to-gruk svg { fill: currentColor; flex: none; }
.talk-to-gruk:hover, .talk-to-gruk[aria-expanded=true] { box-shadow: inset 0 0 0 2px #ffe5a1, 0 0 9px #bd881d99; }
.talk-to-gruk.is-unseen { border-color: #bd7d16; box-shadow: inset 0 0 0 2px #ffe5a1, 0 0 0 2px #edb94766, 0 0 16px #e2ad43c9; animation: gruk-invitation 1800ms ease-in-out infinite; }
@keyframes gruk-invitation {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: translateY(-2px) scale(1.07); filter: brightness(1.13); box-shadow: inset 0 0 0 2px #fff5cb, 0 0 0 5px #f5c34e88, 0 0 28px #eab235ee; }
  70% { transform: scale(1.025); filter: brightness(1.04); }
}
.gruk-dialogue { min-height: 345px; padding: 20px 12px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.dialogue-option { position: relative; max-width: 100%; padding: 7px 32px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font-size: clamp(22px, 2.2vw, 32px); font-weight: bold; line-height: 1.3; }
.dialogue-option[data-gruk-topic=backroom] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.dialogue-unlock-icon { order: 1; flex: none; width: .85em; height: .85em; color: #94611f; }
.dialogue-option:hover .dialogue-unlock-icon, .dialogue-option:focus-visible .dialogue-unlock-icon { color: inherit; }
.dialogue-option::before { content: ''; position: absolute; left: 8px; top: 50%; width: 10px; height: 10px; border-top: 3px solid #8b5508; border-right: 3px solid #8b5508; transform: translateY(-50%) rotate(45deg); opacity: 0; }
.dialogue-option:hover, .dialogue-option:focus-visible, .dialogue-option[aria-pressed=true] { color: #60204f; }
.dialogue-option:hover::before, .dialogue-option:focus-visible::before, .dialogue-option[aria-pressed=true]::before { opacity: 1; }
.dialogue-return { padding: 8px 14px; margin-top: 12px; border: 0; background: transparent; color: var(--ink); font-style: italic; text-decoration: underline; text-underline-offset: 4px; }
.dialogue-return:hover { color: #60204f; }
.dialogue-options { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gruk-dialogue[aria-busy=true] { cursor: progress; }
.entry-error { max-width: 540px; margin: 12px auto; color: #842b20; font-size: 16px; }
.auction-link { min-width: 82px; text-align: center; }
.auction-lock { position: absolute; inset: 3px -5px; display: flex; align-items: center; justify-content: center; color: #f1c565; border: 2px solid #6e451c; border-radius: 3px; background: #613b20 url('/static/images/wood-background.png') center/260px; box-shadow: inset 0 0 0 1px #b4803b, 0 3px 5px #170b05a6; transform: rotate(-3deg); transform-origin: 12% 15%; }
.auction-lock::before, .auction-lock::after { content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #b49a6a; box-shadow: 0 1px 2px #170b05; }
.auction-lock::before { left: 6px; } .auction-lock::after { right: 6px; }
.auction-link.is-unlocked .auction-lock { display: none; }
.auction-link.is-unlocking .auction-lock { display: flex; animation: lock-board-fall 850ms ease-in forwards; pointer-events: none; }
.auction-link.auction-ready { color: #ffe096; text-shadow: 0 0 12px #efaf37, 0 2px 2px #1c0b05; animation: auction-invitation 850ms ease-in-out 3; }
@keyframes lock-board-fall { 0% { transform: rotate(-3deg); opacity: 1; } 35% { transform: translateY(8px) rotate(18deg); opacity: 1; } 100% { transform: translateY(150px) rotate(38deg); opacity: 0; } }
@keyframes auction-invitation { 50% { transform: scale(1.12); text-shadow: 0 0 18px #ffd45c; } }
.shop-shutter { --shutter-board-pitch: 64px; --shutter-bolt-center: calc((var(--shutter-board-pitch) + 5px) / 2); position: absolute; inset: 0; z-index: 6; transform: translateY(-103%); transition: transform 850ms cubic-bezier(.45,0,.75,1); border: 8px solid #4d2b13; background: repeating-linear-gradient(to bottom, #120903b3 0 3px, #cf944e4d 3px 5px, transparent 5px var(--shutter-board-pitch)), url('/static/images/wood-background.png') center/650px; box-shadow: 0 8px 10px #120904aa, inset 0 0 18px #140b06; }
/* Boards and bolt tiles share a top origin and pitch, so fasteners stay centered on each plank. */
.shop-shutter::before, .shop-shutter::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 0; width: 32px; pointer-events: none;
  background:
    radial-gradient(circle 7px at calc(50% - 1px) calc(var(--shutter-bolt-center) - 1px), #efca8e 0, #c08b48 2px, #895627 4px, #59351d 5.5px, #2c1c14 6px, transparent 7px) 0 0 / 100% var(--shutter-board-pitch) repeat-y,
    radial-gradient(circle 9px at 50% calc(var(--shutter-bolt-center) + 1px), #100a08e6 0 7px, transparent 9px) 0 0 / 100% var(--shutter-board-pitch) repeat-y,
    radial-gradient(ellipse 2px 1px at 23% 37%, #d5b39820, transparent) 0 0 / 11px 17px,
    radial-gradient(ellipse 3px 2px at 61% 73%, #170d0b33, transparent) 0 0 / 19px 13px,
    repeating-linear-gradient(119deg, transparent 0 21px, #c49a7126 21px 22px, transparent 22px 47px),
    linear-gradient(90deg, #2b1c16, #a1794e 5%, #665046 10%, #443b39 23%, #382f2d 77%, #65472f 91%, #241813);
  box-shadow: inset 1px 0 #dcad6e88, inset -1px 0 #120b08, 2px 1px 3px #100b0799;
}
.shop-shutter::before { left: calc(10% - 16px); } .shop-shutter::after { right: calc(10% - 16px); }
.shop-shutter.is-closed { transform: translateY(0); }
.shutter-handle { position: absolute; bottom: 32px; left: 50%; z-index: 2; transform: translateX(-50%); width: clamp(140px, 10vw, 180px); height: 60px; background: url('/static/images/auction/shutter-handle-v1.png') center/contain no-repeat; filter: drop-shadow(0 4px 3px #1f100caa); pointer-events: none; }
.shutter-bottom-rail { position: absolute; bottom: -3px; left: 0; right: 0; z-index: 1; height: 32px; border-top: 3px solid #98622e; border-bottom: 5px solid #2c180d; background: #4d2b13 url('/static/images/wood-background.png') center bottom/650px; box-shadow: inset 0 3px 3px #d59b3c44, inset 0 -6px 5px #13090599, 0 -3px 4px #13090566; }
.shutter-header-slot { position: absolute; top: 0; left: 0; right: 0; height: 12px; z-index: 8; pointer-events: none; background: linear-gradient(#160b05, #160b05e6 35%, #160b0500); }
.auction-name-dialog { position: fixed; left: 50%; top: var(--name-dialog-top, 50%); right: auto; bottom: auto; transform: translateX(-50%); margin: 0; width: min(500px, calc(100vw - 64px)); max-height: calc(100vh - 32px); padding: 25px 30px; border: 5px solid #765024; border-radius: 10px; color: var(--ink); background: var(--paper) url('/static/images/parchment-background.png') center/600px; box-shadow: 0 8px 35px #10070299, inset 0 0 0 2px #d9aa59; }
.auction-name-dialog::backdrop { background: #10070230; }
.auction-name-dialog h2 { margin-bottom: 16px; font-size: 26px; }
.auction-name-dialog label { display: block; font-weight: bold; }
.auction-name-dialog input { width: 100%; margin: 6px 0 8px; }
.auction-name-dialog input[aria-invalid=true] { border-color: #842b20; }
.auction-name-dialog p { font-size: 15px; margin-bottom: 12px; }
.name-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.name-actions .dialogue-return { margin: 0; }
.shop-closed { position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center; padding: 32px; background: #12070335; }
.closed-notice { text-align: center; padding: 20px 36px; background: var(--paper) url('/static/images/parchment-background.png') center/400px; border: 3px solid #745021; border-radius: 8px; box-shadow: 0 4px 22px #14080380; }
.closed-notice h2, .closed-notice p { margin-bottom: 10px; }
.auction-transition { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #070504; color: #f4e0be; opacity: 0; transition: opacity 350ms ease; text-align: center; }
.auction-transition.is-visible { opacity: 1; }
.transition-controls { display: flex; gap: 24px; }
.utility-controls { position: fixed; right: 20px; bottom: 16px; z-index: 25; display: flex; align-items: flex-end; gap: 8px; }
.utility-button { display: block; padding: 7px 12px; border: 1px solid #b89962; border-radius: 5px; background: #241b12; color: #f4e0be; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 6px #16090466; cursor: pointer; }
.utility-button:hover { background: #49351f; }
.auction-transition button { padding: 10px 16px; border: 1px solid #b89962; border-radius: 5px; background: #241b12; color: #f4e0be; }
.auction-transition button:hover { background: #49351f; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; align-items: center; padding: 14px 14px 18px; border: 1px solid #bd925a; border-radius: 12px; background: linear-gradient(#fff6df55, #f5d9a744); box-shadow: inset 0 0 10px #c38c3320; text-align: center; }
.product-art { display: flex; justify-content: center; align-items: center; width: 100%; height: clamp(175px, 19vw, 275px); }
.product-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 5px #51331622); transition: transform 150ms ease; }
.product-art:hover img { transform: translateY(-3px); }
.product-category { margin: 8px 0 5px; color: #866740; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; }
.product-card h2 { margin: 0 0 8px; font-size: clamp(19px, 1.8vw, 27px); min-height: 2.4em; display: flex; align-items: center; }
.product-card h2 a { color: var(--ink); text-decoration: none; }
.product-card h2 a:hover { text-decoration: underline; }
.price { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--green); font-weight: bold; }
.ear-icon { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; }
.product-card > .price { font-size: 32px; font-style: italic; margin: auto 0 10px; }
.button, button[type=submit]:not(.category-button), input[type=submit] { display: inline-block; background: linear-gradient(#506514, #334506); color: #fff7df; text-decoration: none; font-weight: bold; border: 1px solid #526319; border-radius: 7px; padding: 10px 22px; box-shadow: inset 0 1px 0 #a8ad5a55, 0 2px 1px #3b290b22; }
.button:hover, button[type=submit]:not(.category-button):hover, input[type=submit]:hover { background: #526b12; color: #fff; }
.product-card .button { width: 100%; font-size: 21px; padding: 9px 5px; }
.add-cart-form { margin: 0; }
.product-card .add-cart-form { width: 100%; }
.content-panel { margin: 0 -30px; padding: 30px 42px 38px; min-height: 520px; border: 32px solid transparent; border-radius: 6px; background: url('/static/images/parchment-background.png') center/800px padding-box, url('/static/images/timber-post.png') left -13px top/60px 100% no-repeat border-box, url('/static/images/timber-post.png') right -13px top/60px 100% no-repeat border-box, url('/static/images/wood-background.png') center/650px border-box; box-shadow: inset 0 0 0 2px #a77943, inset 0 3px 12px #56301944, 0 6px 14px #16090499; overflow-x: auto; }
.shop-label { font-size: 20px; font-weight: bold; margin-bottom: 25px; }
.shop-label a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.shop-label a:hover { color: var(--green); }
.back-arrow { flex: none; fill: currentColor; stroke: #bc873a; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 1px 1px #68412344); }
.product-detail { display: grid; grid-template-columns: 39% 1fr; gap: 42px; }
.product-images { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-right: 30px; border-right: 1px solid var(--line); }
.main-product { width: 100%; height: 330px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff4db44; }
.gruk-product { width: 190px; height: 195px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff4db44; }
.product-info { padding-top: 12px; }
.product-meta { font-size: 16px; color: var(--muted); margin-bottom: 26px; }
.product-description { font-size: 22px; max-width: 650px; margin-bottom: 24px; }
.detail-price { margin: 15px 0 20px; font-size: 42px; }
.detail-price .ear-icon { width: 41.6px; height: 41.6px; }
.product-info .button { min-width: 290px; text-align: center; font-size: 25px; }
.gruk-aside { margin-top: 32px; font-style: italic; color: #684123; }
table { width: 100%; border-collapse: collapse; border: 0; margin: 20px 0 28px; }
th, td { border: 0; padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #d9a65755; font-size: 19px; }
td { font-size: 18px; }
table .price { font-size: 20px; }
.cart-product { display: flex; align-items: center; gap: 20px; }
.cart-product img { width: 90px; height: 96px; object-fit: contain; }
.cart-product a { color: var(--ink); font-size: 22px; font-weight: bold; text-decoration: none; }
.cart-product small { display: block; color: var(--muted); font-size: 12px; }
.cart-total th, .cart-total td { border: 0; background: transparent; padding-top: 24px; font-size: 25px; }
.cart-total .price { font-size: 30px; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.cart-actions .button { min-width: 240px; text-align: center; font-size: 24px; }
.empty-message { padding: 65px 20px; text-align: center; }
.no-art { color: var(--muted); font-style: italic; padding: 30px; }
.content-panel form { margin: 24px 0; }
.content-panel form label { display: block; font-weight: bold; }
.content-panel form label input { display: block; margin-top: 8px; min-width: 280px; }
.content-panel hr { border: 0; border-top: 1px solid var(--line); margin: 35px 0; }
footer { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 4px 68px; color: #d1b78c; font-size: 13px; gap: 20px; }
footer a { color: #f0d6a5; margin-left: 15px; } footer a:hover { color: white; }
.tools-menu { position: relative; }
.tools-menu summary { list-style: none; }
.tools-menu summary::-webkit-details-marker { display: none; }
.tools-menu[open] > summary { background: #49351f; border-color: #e5bc75; }
.tools-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: 290px; max-height: calc(100vh - 100px); overflow: auto; padding: 10px; border: 1px solid #b89962; border-radius: 7px; background: #241b12; color: #f4e0be; box-shadow: 0 6px 24px #10070399; }
.tools-panel .tools-action, .tools-panel button.tools-action { display: block; width: 100%; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: #f4e0be; box-shadow: none; font-size: 16px; font-weight: normal; line-height: 1.4; text-align: left; text-decoration: none; }
.tools-panel .tools-action:hover, .tools-panel button.tools-action:hover { background: #49351f; color: #fff0ca; }
.tools-panel form { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid #715639; }
.tools-panel small { display: block; padding: 0 10px; color: #ccb995; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 10px; top: -80px; z-index: 10; padding: 8px 15px; background: var(--paper); }
.skip-link:focus { top: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
