body { display: flex; flex-direction: column; min-height: 100dvh; }
.site-main { flex: 1; width: 100%; }
input, textarea, select { accent-color: var(--accent); caret-color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px var(--page) inset; caret-color: var(--text); }
:root { scrollbar-color: var(--muted) var(--page); }
.appearance-moon, .appearance-rose { display: none; }
:root:is([data-theme="dark"], [data-theme="rose-gold"]) .appearance-sun { display: none; }
:root[data-theme="dark"] .appearance-moon { display: flex; }
:root[data-theme="rose-gold"] .appearance-rose { display: flex; color: var(--accent); }
.appearance-panel { width: min(360px, calc(100% - 24px)); }
.appearance-options { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.appearance-options legend { margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.appearance-panel .appearance-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.appearance-choices { display: flex; gap: 6px; }
.appearance-choices label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.appearance-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.appearance-choices label > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 6px; border: 1px solid var(--input-border); border-radius: 6px; color: var(--muted); background: var(--page); font-size: 12px; }
.appearance-choices label:hover > span { color: var(--text); background: var(--surface); }
.appearance-choices input:checked + span { border-color: var(--accent); background: var(--selected-bg); color: var(--selected-text); }
.appearance-choices input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.appearance-status { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.appearance-status:empty { display: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--text); }
.footer-inner { max-width: var(--content-width); margin: 0 auto; padding: 24px 24px 8px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 12px; }
.footer-brand { flex: 0 0 auto; }
.footer-brand > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand .site-logo { width: 90px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom p { margin: 0; line-height: 1.6; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; }
.woocommerce :is(input.input-text, textarea, select) { background: var(--page); color: var(--text); border: 1px solid var(--input-border); }
.woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { background: var(--surface); color: var(--text); border-color: var(--line); padding: 16px; margin-bottom: 24px; }
.woocommerce :is(table, th, td, fieldset) { border-color: var(--line); }
.woocommerce :is(.woocommerce-orders-table, .woocommerce-table, .woocommerce-order-details, .woocommerce-customer-details) { color: var(--text); }
.woocommerce :is(.woocommerce-button, .button) { background: var(--button-bg); color: var(--button-text); }
.woocommerce :is(.woocommerce-button, .button):hover { background: var(--button-hover); }
@media (max-width: 640px) {
    .footer-inner { padding: 16px 12px 4px; }
    .footer-main { gap: 20px; }
    .footer-brand .site-logo { width: 72px; }
    .footer-links { display: grid; grid-template-columns: auto auto; gap: 0 16px; }
    .footer-links a { font-size: 12px; }
    .footer-bottom { font-size: 11px; }
}
