/* Shared presentation layer for legacy functional screens. The home tokens in
   site.css remain the visual source of truth. */
body{background:var(--white)!important;color:var(--ink)!important;font-family:Inter,"Segoe UI",Arial,sans-serif!important;margin:0!important}
.legacy-page{min-height:52vh;padding-block:32px 72px}
.legacy-page>.container,.legacy-page>.wrap,.legacy-page>.box,.legacy-page>.page,.legacy-page>.admin-container,.legacy-page>.cart-container,.legacy-page>.cabinet-container{width:100%!important;max-width:1180px!important;margin:0 auto!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow)!important;padding:clamp(20px,4vw,42px)!important}.legacy-page>.topbar{display:none!important}
.legacy-page>.auth-container{width:min(100%,460px)!important;max-width:460px!important}
.legacy-page h1,.legacy-page h2,.legacy-page h3{color:var(--ink)!important;line-height:1.15}.legacy-page h1{font-size:clamp(2rem,4vw,3.2rem)!important}.legacy-page p,.legacy-page .muted{color:var(--muted)!important}
.legacy-page input,.legacy-page select,.legacy-page textarea{border:1px solid #d7dbe1!important;border-radius:9px!important;background:#fff!important;color:var(--ink)!important;min-height:42px;padding:9px 11px!important;max-width:100%}
.legacy-page input:focus,.legacy-page select:focus,.legacy-page textarea:focus{outline:3px solid rgba(166,43,47,.14)!important;border-color:var(--brand)!important}
.legacy-page button,.legacy-page .btn,.legacy-page input[type=submit],.legacy-page a.button{border:1px solid var(--brand)!important;border-radius:10px!important;background:var(--brand)!important;color:#fff!important;min-height:42px;padding:9px 16px!important;font-weight:700!important;cursor:pointer}
.legacy-page button:hover,.legacy-page .btn:hover{background:var(--brand-dark)!important}.legacy-page a{color:var(--brand)}
.legacy-page table{width:100%;border-collapse:separate!important;border-spacing:0!important;border:1px solid var(--line)!important;border-radius:12px!important;overflow:hidden;background:#fff!important}.legacy-page th{background:var(--paper)!important;color:var(--ink)!important}.legacy-page th,.legacy-page td{padding:11px 12px!important;border-color:var(--line)!important}
.legacy-page .card,.legacy-page .section,.legacy-page .panel,.legacy-page .order,.legacy-page .cart-item,.legacy-page fieldset{border:1px solid var(--line)!important;border-radius:var(--radius)!important;background:#fff!important;box-shadow:none!important;padding:18px!important}
.legacy-page .modal-content{border-radius:var(--radius)!important;box-shadow:var(--shadow)!important}.legacy-site-footer{margin-top:0}
.filter-drawer{margin-bottom:24px}.filter-drawer>summary{display:none;font-weight:800;padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper);cursor:pointer}.filter-drawer .filters{margin-bottom:0}.mega-label{grid-column:1/-1;padding:10px 10px 4px;color:var(--muted);font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
@media(max-width:720px){.legacy-page{padding-block:20px 48px}.legacy-page>.container,.legacy-page>.wrap,.legacy-page>.box,.legacy-page>.page,.legacy-page>.admin-container,.legacy-page>.cart-container,.legacy-page>.cabinet-container{padding:20px 14px!important;border-radius:14px!important;overflow-x:auto}.legacy-page table{min-width:620px}.filter-drawer>summary{display:block}.filter-drawer:not([open]) .filters{display:none}.filter-drawer .filters{margin-top:10px}.legacy-page .row,.legacy-page .form-row{flex-direction:column!important;grid-template-columns:1fr!important}}
