:root {
    --bg: #f5f6f2;
    --surface: #ffffff;
    --ink: #171815;
    --muted: #73776e;
    --line: #e4e6df;
    --soft: #eff1eb;
    --accent: #b8f14a;
    --accent-dark: #88bf21;
    --danger: #d84c4c;
    --warning: #a26800;
    --radius: 18px;
    --shadow: 0 18px 55px rgba(25, 31, 20, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(245, 246, 242, .9);
    border-bottom: 1px solid rgba(215, 219, 209, .7);
    backdrop-filter: blur(16px);
}
.header-inner {
    width: min(1120px, calc(100% - 40px)); height: 76px; margin: auto;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    background: var(--ink); color: var(--accent); border-radius: 13px;
    font-size: 20px; font-weight: 900; transform: rotate(-4deg);
}
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 18px; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 11px; }
.desktop-nav { display: flex; align-items: center; gap: 10px; }
.desktop-nav a {
    padding: 10px 15px; color: #4f534b; border-radius: 10px;
    transition: background .2s, color .2s;
}
.desktop-nav a:hover { background: var(--surface); color: var(--ink); }
.menu-toggle, .admin-menu-toggle {
    display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer;
}
.mobile-nav { display: none; }

.hero {
    width: min(1120px, calc(100% - 40px)); min-height: 230px; margin: 42px auto 0;
    padding: 42px 46px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
    border-radius: 26px; background: var(--ink); color: white; overflow: hidden; position: relative;
}
.hero::after {
    content: ""; position: absolute; width: 350px; height: 350px; right: 12%; top: -260px;
    border: 70px solid rgba(184, 241, 74, .15); border-radius: 50%;
}
.eyebrow {
    display: block; margin-bottom: 13px; color: #75a91f; font-size: 11px;
    letter-spacing: .17em; font-weight: 800;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 49px); letter-spacing: -.045em; line-height: 1.12; }
.hero p { max-width: 650px; margin: 16px 0 0; color: #b8bbb3; line-height: 1.8; }
.hero-order {
    flex: 0 0 180px; padding: 21px 22px; border-radius: 16px;
    background: var(--accent); color: var(--ink); display: grid; gap: 5px;
    transition: transform .2s;
}
.hero-order:hover { transform: translateY(-3px); }
.hero-order span { font-size: 12px; color: #52632e; }
.hero-order strong { font-size: 16px; }

.catalog, .page-shell, .lookup-shell {
    width: min(1120px, calc(100% - 40px)); margin: 34px auto 80px;
}
.category-tabs { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a {
    flex: 0 0 auto; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: #555950; font-weight: 650;
}
.category-tabs a.active { background: var(--ink); color: white; border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card {
    min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8dbd1; }
.product-cover { display: block; position: relative; aspect-ratio: 1 / 1; padding: 10px; background: #eceee8; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cover-placeholder {
    width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 11px;
    border-radius: 12px; color: var(--ink);
    background: radial-gradient(circle at 75% 20%, rgba(184,241,74,.8), transparent 28%), linear-gradient(145deg, #f1f3ed, #dfe3d8);
}
.cover-placeholder b {
    width: 76px; height: 76px; display: grid; place-items: center; background: var(--ink);
    color: var(--accent); border-radius: 24px; font-size: 36px; transform: rotate(-5deg);
}
.cover-placeholder small { font-weight: 700; letter-spacing: .08em; color: #6c7067; }
.soldout {
    position: absolute; inset: 10px; display: grid; place-items: center; border-radius: 12px;
    color: white; font-weight: 800; background: rgba(17, 18, 16, .68); backdrop-filter: blur(3px);
}
.product-info { padding: 16px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 23px; font-weight: 850; letter-spacing: -.04em; }
.price small { font-size: 14px; margin-right: 2px; }
.stock { padding: 5px 8px; border-radius: 7px; color: var(--muted); background: var(--soft); font-size: 11px; white-space: nowrap; }
.product-info h2 { margin: 11px 0 5px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-info p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.buy-link {
    display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 14px;
    border: 1px solid #d5d8d0; border-radius: 10px; font-size: 13px; font-weight: 700;
}
.buy-link:hover { background: var(--ink); color: white; border-color: var(--ink); }
.buy-link.disabled { color: #999; pointer-events: none; }
.empty-state { padding: 56px 20px; text-align: center; background: var(--surface); border: 1px dashed #d5d8d0; border-radius: var(--radius); }
.empty-state strong { font-size: 19px; }
.empty-state p { color: var(--muted); margin-bottom: 0; }
.site-footer { padding: 35px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 7px 0 0; }

.btn {
    display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
    padding: 11px 19px; border: 1px solid transparent; border-radius: 11px;
    font-weight: 750; cursor: pointer; transition: transform .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #a9e13c; }
.btn-outline { color: var(--ink); background: white; border-color: #d5d8d0; }
.btn-light { background: white; color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.back-link { display: inline-block; margin: 6px 0 22px; color: var(--muted); }
.purchase-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.purchase-product { padding: 12px 20px 20px 0; }
.purchase-image {
    float: left; width: 190px; aspect-ratio: 1; margin: 0 25px 25px 0; padding: 9px;
    background: #e9ece5; border-radius: 20px;
}
.purchase-image img, .purchase-image .cover-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.purchase-image .cover-placeholder b { width: 62px; height: 62px; font-size: 28px; }
.purchase-product h1 { margin: 0 0 12px; font-size: 31px; letter-spacing: -.03em; }
.detail-price { font-size: 34px; font-weight: 850; margin-bottom: 16px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-stats span { background: #e9ece5; color: #62665d; border-radius: 8px; padding: 7px 10px; font-size: 12px; }
.detail-stats b { color: var(--ink); }
.product-description { clear: both; padding-top: 28px; color: #60645c; line-height: 1.85; border-top: 1px solid var(--line); }
.checkout-card {
    padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.step-label { display: inline-block; padding: 6px 9px; border-radius: 7px; background: #edf5dc; color: #648e19; font-size: 11px; font-weight: 800; }
.checkout-card h2 { margin: 12px 0 24px; font-size: 25px; }
label { display: grid; gap: 8px; color: #454840; font-weight: 650; }
label small { color: var(--muted); font-size: 11px; font-weight: 400; }
input, select, textarea {
    width: 100%; border: 1px solid #d9dcd4; background: white; color: var(--ink);
    border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: #9fca4f; box-shadow: 0 0 0 3px rgba(184, 241, 74, .2); }
textarea { resize: vertical; line-height: 1.6; }
.checkout-form { display: grid; gap: 19px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 650; margin-bottom: 9px; color: #454840; }
.pay-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.pay-options label { position: relative; display: block; cursor: pointer; }
.pay-options input { position: absolute; opacity: 0; }
.pay-options span { display: block; padding: 11px; border: 1px solid #d9dcd4; border-radius: 9px; text-align: center; }
.pay-options input:checked + span { border-color: var(--ink); background: var(--ink); color: white; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.checkout-total strong { font-size: 26px; }
.safe-tip { margin: -7px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.lookup-shell { max-width: 760px; }
.lookup-heading { margin: 60px 0 28px; }
.lookup-heading h1 { font-size: 36px; margin: 0 0 10px; }
.lookup-heading p { color: var(--muted); }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.order-result { margin-top: 20px; padding: 27px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.order-result-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-result-head div { display: grid; gap: 5px; }
.order-result-head span { color: var(--muted); font-size: 11px; }
.order-result-head strong { font-size: 17px; }
.order-result dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 25px; margin: 23px 0; }
.order-result dl div { display: grid; gap: 6px; }
.order-result dt { color: var(--muted); font-size: 11px; }
.order-result dd { margin: 0; font-weight: 650; }
.card-delivery { padding: 18px; border-radius: 13px; background: #f0f5e6; border: 1px solid #dce9c1; }
.card-delivery > div { display: flex; justify-content: space-between; align-items: center; font-weight: 750; }
.card-delivery button { border: 0; background: transparent; color: #628d15; cursor: pointer; font-weight: 750; }
.card-delivery pre { overflow-x: auto; padding: 15px; border-radius: 9px; background: var(--ink); color: var(--accent); white-space: pre-wrap; word-break: break-all; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-delivery p { color: var(--muted); font-size: 11px; margin-bottom: 0; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; font-style: normal; }
.status-success { color: #477500; background: #eaf6d5; }
.status-info { color: #245d8b; background: #e4f1fb; }
.status-warning { color: #8a5c00; background: #fff0c9; }
.status-muted { color: #70746c; background: #eceee9; }
.flash { width: min(1120px, calc(100% - 40px)); margin: 14px auto; padding: 12px 15px; border-radius: 10px; font-size: 13px; }
.admin-main > .flash { width: calc(100% - 64px); }
.flash-error { color: #9c2e2e; background: #fde7e7; border: 1px solid #f4caca; }
.flash-success { color: #426f0b; background: #eaf6d9; border: 1px solid #d5eab6; }
.flash-warning { color: #835900; background: #fff2cf; border: 1px solid #f3dfaa; }
.flash-info { color: #245d8b; background: #e4f1fb; border: 1px solid #cce4f4; }

.redirect-page, .login-page, .install-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.redirect-card { width: min(460px, 100%); padding: 45px; text-align: center; background: white; border-radius: 22px; box-shadow: var(--shadow); }
.redirect-card h1 { margin-bottom: 7px; }
.redirect-card p { color: var(--muted); }
.redirect-card form { margin-top: 25px; }
.loader { display: inline-block; width: 34px; height: 34px; border: 4px solid #e4e7df; border-top-color: var(--accent-dark); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-card { width: min(440px, 100%); padding: 36px; border: 1px solid var(--line); background: white; border-radius: 22px; box-shadow: var(--shadow); }
.login-heading { margin: 42px 0 25px; }
.login-heading h1 { margin: 0 0 8px; font-size: 34px; }
.login-heading p { color: var(--muted); }
.login-form { display: grid; gap: 18px; }
.login-card .back-link { margin: 24px 0 0; font-size: 12px; }
.install-shell { width: min(850px, 100%); }
.install-card { padding: 38px; background: white; border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); }
.install-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.install-heading h1 { margin: 0; }
.install-heading p { color: var(--muted); margin: 5px 0 0; }
.requirement-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px; margin-bottom: 25px; background: var(--soft); border-radius: 12px; }
.requirement-list span { padding: 5px 8px; background: white; border-radius: 7px; font-size: 11px; }
.requirement-list .ok { color: #54840a; }
.requirement-list .bad { color: var(--danger); }
.install-card .form-grid h2 { grid-column: 1/-1; margin: 11px 0 0; font-size: 17px; }
.install-success { padding: 40px; text-align: center; border-radius: 16px; background: #eff8df; }
.install-success strong { font-size: 25px; }
.install-success p { color: var(--muted); }
.actions, .form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* Admin */
.admin-body { background: #f4f5f1; }
.admin-sidebar {
    position: fixed; inset: 0 auto 0 0; width: 235px; padding: 24px 18px;
    background: #171815; color: white; z-index: 30;
}
.admin-brand { display: grid; gap: 3px; padding: 10px 13px 29px; font-size: 18px; font-weight: 800; }
.admin-brand small { color: #8f9389; font-size: 10px; letter-spacing: .1em; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav a { padding: 11px 13px; color: #aeb2a8; border-radius: 9px; font-size: 13px; }
.admin-sidebar nav a:hover { color: white; background: #2a2c27; }
.admin-main { margin-left: 235px; min-height: 100vh; }
.admin-topbar { height: 73px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.admin-topbar > div, .admin-topbar > a { display: flex; align-items: center; gap: 10px; }
.admin-topbar h1 { margin: 0; font-size: 18px; }
.admin-topbar > a { color: var(--muted); font-size: 12px; }
.admin-avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--accent); font-weight: 850; }
.admin-content { padding: 28px 32px 50px; }
.narrow-content { max-width: 920px; }
.welcome-card { padding: 30px 32px; display: flex; align-items: end; justify-content: space-between; gap: 25px; color: white; background: var(--ink); border-radius: 18px; }
.welcome-card h2 { margin: 0; font-size: 27px; }
.welcome-card p { color: #9ea299; margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat-grid article { display: grid; gap: 7px; padding: 21px; border: 1px solid var(--line); background: white; border-radius: 15px; }
.stat-grid article > span, .stat-grid small { color: var(--muted); font-size: 11px; }
.stat-grid strong { font-size: 25px; letter-spacing: -.03em; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); background: white; border-radius: 15px; overflow: hidden; }
.panel-head { min-height: 64px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-head a, .panel-head button { color: #618c17; border: 0; background: none; font-size: 12px; cursor: pointer; }
.stock-list { padding: 8px 17px; }
.stock-list a { display: flex; justify-content: space-between; gap: 15px; padding: 12px 2px; border-bottom: 1px solid #eceee8; }
.stock-list a:last-child { border-bottom: 0; }
.stock-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger-text, .danger-link { color: var(--danger) !important; }
.content-actions { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.content-actions h2 { margin: 0; font-size: 25px; }
.content-actions p { margin: 7px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; background: #fafbf8; color: #74786f; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-top: 1px solid #eceee8; font-size: 12px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fcfdfb; }
.data-table td > strong { display: block; }
.data-table td > small { display: block; margin-top: 5px; color: var(--muted); max-width: 270px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-product { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.table-product img, .table-product > span { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; background: var(--soft); }
.table-product > span { display: grid; place-items: center; font-weight: 850; }
.row-actions { display: flex; gap: 9px; align-items: center; }
.row-actions a, .row-actions button, .text-button { padding: 0; border: 0; background: none; color: #557d12; cursor: pointer; font-size: 12px; white-space: nowrap; }
.row-actions form { display: inline; }
.empty-cell { padding: 40px !important; color: var(--muted); text-align: center !important; }
.admin-form { padding-bottom: 22px; }
.admin-form > label, .admin-form > .form-grid, .admin-form > .settings-section, .admin-form > button, .admin-form > .form-actions { margin-left: 22px; margin-right: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.admin-form > .form-grid { padding-top: 22px; }
.span-2 { grid-column: 1/-1; }
.current-image img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.form-actions { justify-content: flex-start; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; }
.switch span { width: 38px; height: 22px; padding: 3px; border-radius: 99px; background: #d8dbd3; transition: .2s; }
.switch span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; transition: .2s; }
.switch input:checked + span { background: #84ba24; }
.switch input:checked + span::after { transform: translateX(16px); }
.inventory-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 17px; align-items: start; }
.product-stock-nav { display: grid; padding: 8px; }
.product-stock-nav a { display: grid; gap: 5px; padding: 12px; border-radius: 9px; }
.product-stock-nav a:hover, .product-stock-nav a.active { background: var(--soft); }
.product-stock-nav small { color: var(--muted); }
.product-stock-nav b { color: #5d8a12; }
.import-form { margin-bottom: 17px; }
.import-form > label { margin-top: 20px; }
.import-form > button { margin-top: 15px; }
.card-secret { max-width: 360px; font: 11px/1.5 ui-monospace, monospace; word-break: break-all; }
.filter-bar { display: grid; grid-template-columns: minmax(220px,1fr) 180px auto; gap: 10px; margin-bottom: 15px; }
.categories-layout { grid-template-columns: 310px 1fr; }
.categories-layout .admin-form { display: grid; gap: 17px; padding: 0 20px 22px; }
.categories-layout .admin-form .panel-head { margin: 0 -20px; }
.check-line { display: flex; align-items: center; grid-template-columns: auto 1fr; }
.check-line input { width: auto; }
.settings-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 18px; font-size: 14px; }
.settings-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.settings-title-row h3 { margin-bottom: 5px; }
.settings-title-row p { margin: 0; color: var(--muted); font-size: 11px; }
.callback-box { display: grid; grid-template-columns: 130px 1fr; gap: 8px; margin-top: 20px; padding: 14px; border-radius: 10px; background: var(--soft); font-size: 11px; }
.callback-box span { color: var(--muted); }
.callback-box code { overflow-wrap: anywhere; }
.settings-section + .btn { margin-top: 22px; }

@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .header-inner { width: calc(100% - 28px); height: 68px; }
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav.open { display: grid; padding: 5px 20px 14px; background: var(--bg); }
    .mobile-nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); }
    .hero { width: calc(100% - 28px); margin-top: 18px; padding: 30px 25px; min-height: 260px; align-items: flex-start; flex-direction: column; }
    .hero-order { flex: 0; width: 100%; }
    .catalog, .page-shell, .lookup-shell { width: calc(100% - 28px); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-info { padding: 12px; }
    .price { font-size: 19px; }
    .stock { padding: 4px 6px; font-size: 10px; }
    .purchase-layout { grid-template-columns: 1fr; gap: 15px; }
    .purchase-product { padding-right: 0; }
    .lookup-form { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-menu-toggle { display: block; }
    .admin-content { padding: 20px 15px 40px; }
    .admin-topbar { padding: 0 16px; }
    .admin-main > .flash { width: calc(100% - 30px); }
    .inventory-layout, .categories-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .brand small { display: none; }
    .hero h1 { font-size: 31px; }
    .hero p { font-size: 13px; }
    .product-grid { gap: 8px; }
    .product-cover { padding: 6px; }
    .product-cover img, .product-cover .cover-placeholder { border-radius: 10px; }
    .cover-placeholder b { width: 54px; height: 54px; font-size: 26px; border-radius: 17px; }
    .cover-placeholder small { font-size: 9px; }
    .product-info h2 { font-size: 13px; }
    .buy-link { padding: 9px 10px; }
    .purchase-image { width: 130px; }
    .purchase-product h1 { font-size: 25px; }
    .checkout-card { padding: 20px; }
    .pay-options { grid-template-columns: 1fr 1fr; }
    .order-result dl { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-grid article { padding: 15px; }
    .stat-grid strong { font-size: 21px; }
    .welcome-card { align-items: flex-start; flex-direction: column; }
    .welcome-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .content-actions { align-items: flex-start; flex-direction: column; }
    .filter-bar { grid-template-columns: 1fr; }
    .callback-box { grid-template-columns: 1fr; }
    .install-card, .login-card { padding: 24px; }
}

/* Refined storefront */
body {
    background:
        radial-gradient(circle at 8% 6%, rgba(184, 241, 74, .08), transparent 20rem),
        var(--bg);
}
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(134, 189, 34, .42); outline-offset: 3px; }
.top-notice { min-height: 34px; color: #a9ada3; background: #11120f; font-size: 11px; }
.top-notice > div {
    width: min(1120px, calc(100% - 40px)); min-height: 34px; margin: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.top-notice span { display: flex; align-items: center; gap: 7px; color: #d9ddd3; white-space: nowrap; }
.top-notice span i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(184,241,74,.11); }
.top-notice p { margin: 0; max-width: 680px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header { top: 0; transition: box-shadow .25s, background .25s; }
.site-header.is-scrolled { background: rgba(250, 251, 247, .94); box-shadow: 0 10px 30px rgba(31, 35, 27, .06); }
.brand-mark { position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-mark::after {
    content: ""; position: absolute; width: 28px; height: 28px; right: -15px; bottom: -14px;
    border: 6px solid var(--accent); border-radius: 50%; opacity: .65;
}
.brand-mark i { position: relative; z-index: 1; font-style: normal; }
.desktop-nav { margin-left: auto; margin-right: 8px; }
.header-order-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px;
    border: 1px solid #d9dcd4; border-radius: 10px; background: white; font-size: 13px; font-weight: 700;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.header-order-link:hover { transform: translateY(-1px); border-color: #bdc1b7; box-shadow: 0 8px 24px rgba(27,30,23,.07); }
.header-order-link span { font-size: 18px; line-height: 0; }

.hero {
    min-height: 465px; padding: 54px 58px; align-items: center;
    background:
        linear-gradient(112deg, rgba(255,255,255,.035), transparent 42%),
        #151613;
    box-shadow: 0 28px 80px rgba(26, 29, 22, .14);
}
.hero::before {
    content: ""; position: absolute; width: 480px; height: 480px; right: -110px; top: -190px;
    border-radius: 50%; background: var(--accent); filter: blur(1px); opacity: .1;
}
.hero::after { width: 330px; height: 330px; right: 78px; top: 70px; border: 1px solid rgba(255,255,255,.07); }
.hero-copy { position: relative; z-index: 3; width: 58%; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow i { width: 18px; height: 1px; background: currentColor; }
.hero h1 { max-width: 600px; font-size: clamp(43px, 5vw, 66px); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 570px; font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.hero-primary { gap: 28px; min-width: 156px; }
.hero-primary span { font-size: 18px; }
.hero-text-link { color: #e2e5dd; font-size: 13px; font-weight: 650; }
.hero-text-link span { display: inline-block; margin-left: 6px; color: var(--accent); transition: transform .2s; }
.hero-text-link:hover span { transform: translateX(4px); }
.hero-proof { display: flex; gap: 0; margin-top: 40px; }
.hero-proof > span { display: grid; gap: 3px; min-width: 112px; padding-right: 22px; margin-right: 22px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-proof > span:last-child { border-right: 0; }
.hero-proof b { color: white; font-size: 15px; }
.hero-proof small { color: #888d83; font-size: 10px; }
.hero-visual { position: relative; z-index: 2; width: 35%; min-height: 330px; display: grid; place-items: center; perspective: 900px; }
.delivery-card {
    position: relative; z-index: 2; width: 265px; min-height: 315px; padding: 22px;
    background: rgba(247,249,243,.97); color: var(--ink); border: 1px solid rgba(255,255,255,.7);
    border-radius: 23px; box-shadow: 0 30px 70px rgba(0,0,0,.28);
    transform: rotateY(-8deg) rotateX(3deg) rotate(2deg);
    animation: card-float 6s ease-in-out infinite;
}
.delivery-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.delivery-card-top i { padding: 5px 7px; border-radius: 99px; color: #517d0d; background: #e5f4ca; font-style: normal; }
.delivery-icon { width: 72px; height: 72px; margin: 42px auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: 29px; font-weight: 900; box-shadow: 0 0 0 11px rgba(184,241,74,.2); }
.delivery-card > strong, .delivery-card > p { display: block; text-align: center; }
.delivery-card > strong { font-size: 16px; }
.delivery-card > p { color: #9a9e95; font-size: 8px; letter-spacing: .17em; }
.delivery-code { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 31px; }
.delivery-code span { padding: 9px 5px; border-radius: 7px; text-align: center; background: #e9ece5; font: 11px ui-monospace, monospace; letter-spacing: .1em; }
.signal { position: absolute; border: 1px solid rgba(184,241,74,.25); border-radius: 50%; }
.signal-a { width: 330px; height: 330px; }
.signal-b { width: 405px; height: 405px; }
.float-pill {
    position: absolute; z-index: 3; padding: 9px 12px; border: 1px solid rgba(255,255,255,.13);
    border-radius: 99px; color: #dfe3da; background: rgba(37,39,34,.78); backdrop-filter: blur(9px); font-size: 10px;
}
.pill-secure { left: -6px; top: 70px; }
.pill-fast { right: -10px; bottom: 66px; }
@keyframes card-float { 0%,100% { transform: rotateY(-8deg) rotateX(3deg) rotate(2deg) translateY(0); } 50% { transform: rotateY(-5deg) rotateX(1deg) rotate(1deg) translateY(-8px); } }

.catalog { margin-top: 80px; }
.catalog.catalog-no-hero { margin-top: 52px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 31px; }
.section-kicker { display: block; margin-bottom: 10px; color: #749f28; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.catalog-heading h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
.catalog-heading p { margin: 9px 0 0; color: var(--muted); }
.product-search { position: relative; display: block; width: 230px; }
.product-search span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8d9287; font-size: 18px; }
.product-search input { padding-left: 39px; border-radius: 999px; background: rgba(255,255,255,.75); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.catalog-toolbar .category-tabs { margin-bottom: -1px; gap: 4px; }
.catalog-toolbar .category-tabs a { padding: 12px 15px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
.catalog-toolbar .category-tabs a.active { color: var(--ink); border-bottom-color: var(--ink); background: transparent; }
.catalog-toolbar .category-tabs small { margin-left: 4px; color: #91968b; font-size: 9px; }
.catalog-count { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.product-grid { gap: 18px; }
.product-card { border-color: rgba(220,223,215,.9); border-radius: 20px; box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.product-card[hidden] { display: none !important; }
.product-cover { overflow: hidden; }
.product-cover img { transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s; }
.product-card:hover .product-cover img { transform: scale(1.035); }
.product-category {
    position: absolute; left: 19px; top: 19px; z-index: 2; padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.45); border-radius: 99px; color: #30332d;
    background: rgba(250,251,247,.8); backdrop-filter: blur(8px); font-size: 9px; font-weight: 750;
}
.product-info { padding: 18px; }
.product-info h2 { margin-top: 14px; font-size: 15px; }
.product-info p { color: #91958c; font-size: 10px; }
.price { font-variant-numeric: tabular-nums; }
.buy-link { padding: 8px 8px 8px 13px; border-color: #e2e4dd; background: #fafbf8; }
.arrow-button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--ink); transition: transform .2s, background .2s; }
.buy-link:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.buy-link:hover .arrow-button { transform: rotate(45deg); background: var(--ink); }
.trust-strip {
    width: min(1120px, calc(100% - 40px)); margin: 0 auto 86px; padding: 27px 0;
    display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-strip article { display: flex; gap: 17px; padding: 4px 28px; border-right: 1px solid var(--line); }
.trust-strip article:first-child { padding-left: 0; }
.trust-strip article:last-child { border-right: 0; }
.trust-strip article > span { color: #8ab82f; font: 10px ui-monospace, monospace; }
.trust-strip strong { display: block; margin-bottom: 6px; font-size: 13px; }
.trust-strip p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.site-footer { padding: 0; text-align: left; color: #969a91; background: #151613; border: 0; }
.footer-inner, .footer-bottom { width: min(1120px, calc(100% - 40px)); margin: auto; }
.footer-inner { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: white; font-size: 17px; }
.footer-brand p { margin: 5px 0 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 17px 0 25px; display: flex; justify-content: space-between; border-top: 1px solid #292b26; font-size: 10px; }

/* Refined inner pages and admin */
.page-shell { margin-top: 44px; }
.checkout-card { position: sticky; top: 104px; border-radius: 24px; box-shadow: 0 24px 65px rgba(27,31,22,.09); }
.checkout-card .btn-primary { min-height: 50px; }
.purchase-image { box-shadow: 0 16px 38px rgba(29,33,24,.08); }
.lookup-form, .order-result { box-shadow: 0 18px 55px rgba(27,31,22,.055); }
.admin-sidebar { background: linear-gradient(180deg, #171815, #11120f); }
.admin-sidebar nav a { transition: background .18s, color .18s, transform .18s; }
.admin-sidebar nav a:hover { transform: translateX(3px); }
.admin-topbar { position: sticky; top: 0; z-index: 15; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.panel, .stat-grid article { box-shadow: 0 1px 0 rgba(255,255,255,.9); transition: box-shadow .22s, transform .22s; }
.stat-grid article:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(28,32,23,.065); }
.welcome-card { overflow: hidden; position: relative; background: #181916; }
.welcome-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -130px; border: 45px solid rgba(184,241,74,.12); border-radius: 50%; }
.welcome-card > * { position: relative; z-index: 1; }
.welcome-actions { display: flex; align-items: center; gap: 9px; }
.btn-screen { color: var(--accent); border-color: #34372f; background: #252720; }
.btn-screen:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.data-table tr { transition: background .15s; }
.reveal-item { opacity: 0; transform: translateY(14px); transition: opacity .55s ease var(--reveal-delay), transform .55s cubic-bezier(.2,.7,.2,1) var(--reveal-delay); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .hero { min-height: 420px; padding: 42px; }
    .hero-copy { width: 63%; }
    .hero-visual { width: 31%; transform: scale(.84); }
    .catalog-heading { align-items: flex-start; }
}
@media (max-width: 800px) {
    .top-notice p { display: none; }
    .top-notice > div { justify-content: center; }
    .header-order-link { display: none; }
    .hero { min-height: 620px; padding: 36px 27px; align-items: flex-start; }
    .hero-copy { width: 100%; }
    .hero h1 { font-size: 44px; }
    .hero-visual { position: absolute; width: 100%; height: 260px; left: 0; bottom: -15px; transform: scale(.76); }
    .hero-proof { margin-top: 28px; }
    .catalog { margin-top: 58px; }
    .catalog-heading { display: grid; }
    .product-search { width: 100%; }
    .trust-strip { grid-template-columns: 1fr; padding: 8px 0; }
    .trust-strip article, .trust-strip article:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-strip article:last-child { border-bottom: 0; }
    .checkout-card { position: static; }
}
@media (max-width: 520px) {
    .top-notice { min-height: 30px; }
    .top-notice > div { min-height: 30px; }
    .hero { min-height: 585px; margin-top: 12px; border-radius: 20px; }
    .hero h1 { font-size: 38px; }
    .hero h1 em { display: inline-block; white-space: nowrap; }
    .hero p { line-height: 1.65; }
    .hero-actions { display: grid; gap: 15px; }
    .hero-primary { width: 100%; }
    .hero-proof > span { min-width: 0; flex: 1; padding-right: 10px; margin-right: 10px; }
    .hero-proof small { font-size: 8px; }
    .hero-visual { bottom: -30px; transform: scale(.67); }
    .catalog-heading h2 { font-size: 29px; }
    .catalog-toolbar { align-items: flex-start; }
    .catalog-count { display: none; }
    .catalog-toolbar .category-tabs a { padding: 11px 10px; }
    .product-category { left: 12px; top: 12px; }
    .product-info { padding: 12px; }
    .product-info p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .footer-inner { padding: 34px 0; align-items: flex-start; flex-direction: column; }
    .footer-links { flex-wrap: wrap; }
    .footer-bottom { gap: 8px; flex-direction: column; }
    .settings-title-row { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
    .reveal-item { opacity: 1; transform: none; }
}

/* AI customer service */
.ai-service {
    position: fixed; right: 26px; bottom: 24px; z-index: 80;
    font-size: 13px;
}
.ai-new-message {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 238px;
    min-height: 66px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #303744;
    border: 1px solid #dce3ef;
    border-radius: 13px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 38px rgba(43,56,82,.16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .22s;
}
.ai-new-message::after {
    content: "";
    position: absolute;
    right: 25px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #dce3ef;
    border-bottom: 1px solid #dce3ef;
    transform: rotate(45deg);
}
.ai-service.has-notice .ai-new-message {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: ai-notice-nudge 4.8s 1.4s infinite;
}
.ai-service.open .ai-new-message {
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px) scale(.98);
    animation: none;
}
.ai-notice-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e5ecf9;
}
.ai-notice-icon::before {
    content: "";
    width: 16px;
    height: 12px;
    border: 2px solid #6079b0;
    border-radius: 5px;
}
.ai-notice-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 9px;
    width: 5px;
    height: 5px;
    border-left: 2px solid #6079b0;
    border-bottom: 2px solid #6079b0;
    transform: skewY(-35deg);
}
.ai-notice-icon i {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #6f86b9;
}
.ai-new-message > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
    text-align: left;
}
.ai-new-message strong { font-size: 12px; }
.ai-new-message small {
    overflow: hidden;
    color: #6d778a;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ai-new-message > b {
    margin-left: auto;
    color: #8b94a3;
    font-size: 20px;
    font-weight: 400;
}
@keyframes ai-notice-nudge {
    0%, 86%, 100% { transform: translateY(0); }
    90% { transform: translateY(-3px); }
    94% { transform: translateY(0); }
    97% { transform: translateY(-2px); }
}
.ai-launcher {
    position: relative; height: 58px; padding: 7px 18px 7px 8px;
    display: flex; align-items: center; gap: 10px;
    color: white; background: #171815; border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px; box-shadow: 0 18px 45px rgba(18,20,16,.22);
    cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.ai-launcher:hover { transform: translateY(-3px); box-shadow: 0 23px 55px rgba(18,20,16,.28); }
.ai-launcher-icon, .ai-agent-avatar {
    position: relative; width: 43px; height: 43px; flex: 0 0 auto;
    display: grid; place-items: center; overflow: hidden; color: var(--ink);
    background: var(--accent); border-radius: 13px;
}
.ai-launcher-icon i, .ai-agent-avatar > i {
    position: absolute; width: 34px; height: 34px; left: -18px; top: -17px;
    border: 7px solid rgba(23,24,21,.13); border-radius: 50%;
}
.ai-launcher-icon b, .ai-agent-avatar b { position: relative; font-size: 11px; letter-spacing: -.03em; }
.ai-launcher-label { display: grid; gap: 1px; text-align: left; font-weight: 750; }
.ai-launcher-label small { color: #94998e; font-size: 9px; font-weight: 500; }
.ai-launcher em {
    position: absolute; right: -3px; top: -5px; width: 18px; height: 18px;
    display: grid; place-items: center; color: var(--ink); background: var(--accent);
    border: 3px solid var(--bg); border-radius: 50%; font-size: 8px; font-style: normal; font-weight: 850;
}
.ai-panel {
    position: absolute; right: 0; bottom: 72px; width: min(390px, calc(100vw - 28px)); height: min(610px, calc(100vh - 120px));
    display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden;
    background: rgba(250,251,248,.98); border: 1px solid rgba(215,219,209,.95);
    border-radius: 23px; box-shadow: 0 30px 90px rgba(18,22,14,.22); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.965); transform-origin: bottom right;
    transition: opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .22s;
}
.ai-service.open .ai-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-panel-head {
    min-height: 76px; padding: 14px 17px; display: flex; align-items: center; gap: 11px;
    color: white; background: #171815;
}
.ai-agent-avatar { width: 45px; height: 45px; }
.ai-panel-head > div:nth-child(2) { display: grid; gap: 4px; }
.ai-panel-head strong { font-size: 14px; }
.ai-panel-head span { display: flex; align-items: center; gap: 6px; color: #9da299; font-size: 9px; }
.ai-panel-head span i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(184,241,74,.12); }
.ai-close {
    width: 34px; height: 34px; margin-left: auto; display: grid; place-items: center;
    border: 1px solid #343630; border-radius: 10px; color: #aeb2a9; background: #23241f;
    font-size: 20px; cursor: pointer; transition: color .18s, background .18s;
}
.ai-close:hover { color: white; background: #30322b; }
.ai-disclaimer { padding: 8px 14px; color: #7e8379; background: #eff1eb; border-bottom: 1px solid #e0e3da; text-align: center; font-size: 8px; }
.ai-messages {
    min-height: 0; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #d5d8cf transparent;
}
.ai-message { margin-bottom: 14px; display: flex; align-items: flex-end; gap: 8px; animation: ai-message-in .28s cubic-bezier(.2,.8,.2,1) both; }
.ai-message > div {
    max-width: 83%; padding: 11px 13px; border: 1px solid #e0e3db;
    border-radius: 5px 15px 15px 15px; color: #42463e; background: white;
    box-shadow: 0 5px 18px rgba(28,32,23,.04); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-message.user { justify-content: flex-end; }
.ai-message.user > div {
    color: var(--ink); background: var(--accent); border-color: var(--accent);
    border-radius: 15px 5px 15px 15px; box-shadow: none;
}
.ai-mini-avatar {
    width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center;
    color: var(--accent); background: var(--ink); border-radius: 8px; font-size: 9px; font-weight: 850;
}
.ai-message.is-typing > div { display: flex; gap: 4px; padding: 15px 16px; }
.ai-message.is-typing i { width: 5px; height: 5px; border-radius: 50%; background: #9ca196; animation: ai-dot 1.1s infinite ease-in-out; }
.ai-message.is-typing i:nth-child(2) { animation-delay: .14s; }
.ai-message.is-typing i:nth-child(3) { animation-delay: .28s; }
.ai-quick-questions { display: grid; gap: 7px; margin: 4px 0 15px 33px; }
.ai-quick-questions button {
    width: fit-content; max-width: 100%; padding: 8px 10px; display: flex; align-items: center; gap: 12px;
    border: 1px solid #dfe2d9; border-radius: 9px; color: #565b51; background: rgba(255,255,255,.75);
    font-size: 10px; text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s;
}
.ai-quick-questions button:hover { transform: translateX(3px); border-color: #b8cb92; background: white; }
.ai-quick-questions span { color: #79a729; }
.ai-input-form { padding: 12px 14px 13px; border-top: 1px solid #e0e3da; background: white; }
.ai-input-form label {
    min-height: 46px; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 12px;
    border: 1px solid #d9ddd3; border-radius: 14px; background: #f8f9f6;
}
.ai-input-form textarea {
    min-height: 32px; max-height: 96px; padding: 7px 0; border: 0; box-shadow: none; background: transparent;
    resize: none; line-height: 1.4;
}
.ai-input-form textarea:focus { box-shadow: none; }
.ai-input-form button {
    width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center;
    border: 0; border-radius: 10px; color: var(--ink); background: var(--accent);
    font-size: 18px; font-weight: 800; cursor: pointer; transition: transform .18s, opacity .18s;
}
.ai-input-form button:hover { transform: translateY(-1px); }
.ai-input-form button:disabled { opacity: .45; cursor: wait; }
.ai-input-form > small { display: block; margin-top: 6px; color: #9a9e95; text-align: center; font-size: 8px; }
@keyframes ai-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ai-dot { 0%,70%,100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 520px) {
    .ai-service { right: 14px; bottom: 13px; }
    .ai-new-message {
        right: 0;
        bottom: 67px;
        width: min(238px, calc(100vw - 28px));
    }
    .ai-launcher { width: 54px; height: 54px; padding: 6px; border-radius: 17px; }
    .ai-launcher-icon { width: 40px; height: 40px; }
    .ai-launcher-label { display: none; }
    .ai-panel {
        position: fixed; left: 8px; right: 8px; bottom: 8px;
        width: auto; height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none;
        border-radius: 22px; transform-origin: bottom center;
    }
    .ai-service.open .ai-launcher { opacity: 0; pointer-events: none; }
}

/* AI admin */
.ai-admin-state {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px;
    border: 1px solid #daddd5; border-radius: 99px; color: #777b72; background: white;
    font-size: 11px; font-weight: 700;
}
.ai-admin-state i { width: 7px; height: 7px; border-radius: 50%; background: #a4a89e; }
.ai-admin-state.is-on { color: #527d0e; border-color: #d5e8b4; background: #f1f8e5; }
.ai-admin-state.is-on i { background: #7fac26; box-shadow: 0 0 0 4px rgba(127,172,38,.12); }
.ai-admin-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr); gap: 18px; align-items: start; }
.ai-notify-settings {
    padding: 15px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    background: #f8f9fb;
}
.ai-notify-settings > div { display: grid; gap: 4px; }
.ai-notify-settings strong { font-size: 13px; }
.ai-notify-settings small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}
.ai-notify-settings .switch { white-space: nowrap; }
.ai-settings-form > .settings-section { margin-left: 22px; margin-right: 22px; }
.ai-settings-form .settings-section:first-of-type { padding-top: 22px; }
.ai-settings-form > button { margin-top: 21px; }
.ai-faq-column { display: grid; gap: 18px; }
.faq-form { display: grid; gap: 17px; }
.faq-form > label, .faq-form > .faq-form-row, .faq-form > button { margin-left: 20px; margin-right: 20px; }
.faq-form > .panel-head { margin-bottom: 3px; }
.faq-form-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
.faq-form-row .check-line { min-height: 42px; }
.faq-list article { padding: 17px 19px; border-top: 1px solid #eceee8; }
.faq-list article > div:first-child { display: flex; align-items: center; gap: 9px; }
.faq-list article strong { font-size: 13px; }
.faq-list article p { margin: 9px 0 7px; color: #60655b; font-size: 11px; line-height: 1.65; }
.faq-list article small { display: block; margin-bottom: 10px; color: #969a91; font-size: 9px; }
.faq-list .row-actions { justify-content: flex-end; }

@media (max-width: 1120px) {
    .ai-admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .ai-admin-state { align-self: flex-start; }
    .faq-form-row { grid-template-columns: 1fr; }
    .ai-notify-settings { grid-template-columns: 1fr; }
    .ai-notify-settings .switch { justify-self: start; }
}

/* Light UI system */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #242936;
    --muted: #7d8492;
    --line: #e2e7ef;
    --soft: #eff2f7;
    --accent: #d8e3f7;
    --accent-dark: #6079b0;
    --shadow: 0 18px 55px rgba(43, 56, 82, .08);
}
body {
    background:
        radial-gradient(circle at 5% 0%, rgba(144, 167, 216, .13), transparent 25rem),
        #f5f7fb;
}
.top-notice { color: #758198; background: #eef2f9; border-bottom: 1px solid #e0e6f0; }
.top-notice span { color: #58657d; }
.top-notice span i { background: #728bc2; box-shadow: 0 0 0 4px rgba(114,139,194,.12); }
.site-header { background: rgba(255,255,255,.88); }
.site-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(43,56,82,.06); }
.brand-mark { color: #536fae; background: #e4ebf9; box-shadow: inset 0 0 0 1px rgba(83,111,174,.09); }
.brand-mark::after { border-color: #8ca2d2; opacity: .5; }
.header-order-link { border-color: #dfe4ed; background: #fafbfc; box-shadow: 0 3px 12px rgba(43,56,82,.035); }
.desktop-nav a:hover { background: #f1f4f9; }

.hero {
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 12%, rgba(112,137,191,.13), transparent 21rem),
        linear-gradient(135deg, #f3f6fb, #e9eef8);
    border: 1px solid #dce4f1;
    box-shadow: 0 26px 70px rgba(43,56,82,.09);
}
.hero::before { background: #8ea5d5; opacity: .11; }
.hero::after { border-color: rgba(83,111,174,.11); }
.hero .eyebrow { color: #637db6; }
.hero h1 em { color: #5974ad; }
.hero p { color: #697287; }
.hero-text-link { color: #455168; }
.hero-proof b { color: #303746; }
.hero-proof small { color: #7d8595; }
.hero-proof > span { border-right-color: rgba(69,81,104,.13); }
.delivery-card { background: rgba(255,255,255,.96); border-color: #e3e8f1; box-shadow: 0 26px 60px rgba(43,56,82,.14); }
.delivery-icon { color: #46619d; background: #d6e1f7; box-shadow: 0 0 0 11px rgba(142,165,213,.16); }
.delivery-card-top i { color: #5871a8; background: #eaf0fb; }
.delivery-code span { background: #eff2f7; }
.signal { border-color: rgba(90,118,177,.16); }
.float-pill { color: #505b70; border-color: rgba(90,112,158,.16); background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(43,56,82,.08); }

.category-tabs a, .product-search input { background: rgba(255,255,255,.88); }
.catalog-toolbar .category-tabs a { background: transparent; }
.product-card { box-shadow: 0 8px 30px rgba(43,56,82,.04); }
.product-card:hover { box-shadow: 0 18px 46px rgba(43,56,82,.09); }
.product-cover { background: #eef1f6; }
.cover-placeholder { background: radial-gradient(circle at 75% 20%, rgba(176,194,230,.62), transparent 28%), linear-gradient(145deg,#f7f8fb,#e6ebf4); }
.cover-placeholder b { color: #5873ad; background: #e4ebf9; border: 1px solid #d0dbf0; }
.product-category { color: #53614e; background: rgba(255,255,255,.86); border-color: rgba(255,255,255,.75); }
.product-category { color: #59657a; }
.buy-link { background: #f8f9fc; }
.buy-link:hover { color: #3e568e; background: #e5ecf9; border-color: #d3def2; }
.arrow-button { color: #fff; background: #667fb8; }
.buy-link:hover .arrow-button { background: #536da8; }
.trust-strip { border-color: #dfe4ed; }
.trust-strip article { border-color: #dfe4ed; }
.trust-strip article > span { color: #6b83ba; }
.site-footer { color: #7c8492; background: #fff; border-top: 1px solid #e1e6ef; }
.footer-brand strong { color: #303642; }
.footer-bottom { border-color: #e7eaf0; }
.footer-links a:hover { color: #5c76b0; }

.checkout-card, .lookup-form, .order-result { box-shadow: 0 20px 55px rgba(43,56,82,.08); }
.card-delivery { background: #eef3fb; border-color: #d9e2f2; }
.card-delivery pre { color: #374560; background: #e4ebf7; border: 1px solid #d1dced; }

.admin-body { background: #f4f6fa; }
.admin-sidebar {
    color: #29303d; background: #ffffff; border-right: 1px solid #e1e5ed;
    box-shadow: 10px 0 34px rgba(43,56,82,.04);
}
.admin-brand { color: #29303d; }
.admin-brand small { color: #9299a6; }
.admin-sidebar nav a { color: #667083; }
.admin-sidebar nav a:hover { color: #435b93; background: #edf1f8; }
.admin-topbar { background: rgba(255,255,255,.92); }
.admin-avatar { color: #4c65a0; background: #e0e8f8; }
.welcome-card { color: #2d3443; background: linear-gradient(135deg,#eaf0fa,#f4f6fb); border: 1px solid #dae2f0; }
.welcome-card::after { border-color: rgba(94,121,176,.1); }
.welcome-card p { color: #747e92; }
.welcome-card .eyebrow { color: #637cb4; }
.btn-light { color: #3f4b63; background: white; border-color: #dce3ef; }
.btn-screen { color: #536da5; border-color: #cfd9ed; background: rgba(255,255,255,.72); }
.btn-screen:hover { color: #405991; background: #e4ebf8; border-color: #cad7ee; }
.panel, .stat-grid article { border-color: #e1e5ed; box-shadow: 0 7px 24px rgba(43,56,82,.03); }
.panel-head, .data-table td { border-color: #e7eaf0; }
.data-table th { background: #f8f9fb; }
.data-table tbody tr:hover { background: #f8faff; }
.product-stock-nav a:hover, .product-stock-nav a.active { color: #455f99; background: #edf1f8; }
.callback-box { background: #f0f3f8; }
.ai-admin-state.is-on { color: #506ba5; background: #edf2fb; border-color: #d5dff1; }

.ai-launcher {
    color: #374158; background: rgba(255,255,255,.96); border-color: #dce3ef;
    box-shadow: 0 18px 45px rgba(43,56,82,.15);
}
.ai-launcher:hover { box-shadow: 0 23px 54px rgba(43,56,82,.18); }
.ai-launcher-icon, .ai-agent-avatar { color: #4d66a0; background: #dfe8f9; }
.ai-launcher-icon i, .ai-agent-avatar > i { border-color: rgba(76,101,160,.12); }
.ai-launcher-label small { color: #7e8798; }
.ai-panel { background: rgba(252,253,255,.99); border-color: #dce3ee; box-shadow: 0 30px 80px rgba(43,56,82,.17); }
.ai-panel-head { color: #2b3240; background: #f1f4fa; border-bottom: 1px solid #dde4ef; }
.ai-panel-head span { color: #788296; }
.ai-close { color: #778196; border-color: #dae2ef; background: #fff; }
.ai-close:hover { color: #42516f; background: #eaf0fa; }
.ai-mini-avatar { color: #4d67a1; background: #e0e8f8; }
.ai-message > div { border-color: #e0e5ed; box-shadow: 0 5px 18px rgba(43,56,82,.04); }
.ai-message.user > div { color: #354361; background: #e0e8f8; border-color: #d2ddf2; }
.ai-input-form button { color: #405b94; background: #d8e3f7; }

.redirect-card, .login-card, .install-card { border-color: #dfe4ed; box-shadow: 0 24px 70px rgba(43,56,82,.08); }

/* Blue-gray accent cleanup */
:focus-visible { outline-color: rgba(96,121,176,.42); }
.eyebrow, .section-kicker { color: #637db6; }
.btn-primary { color: #35415b; background: #d8e3f7; border-color: #d8e3f7; }
.btn-primary:hover { background: #cad8f1; }
input:focus, select:focus, textarea:focus {
    border-color: #91a6d2;
    box-shadow: 0 0 0 3px rgba(112,137,191,.16);
}
.step-label { color: #536ea8; background: #e8eef9; }
.card-delivery button,
.panel-head a,
.panel-head button,
.row-actions a,
.row-actions button,
.text-button,
.product-stock-nav b { color: #5872aa; }
.status-success { color: #506ba4; background: #e7eef9; }
.flash-success { color: #455f99; background: #e9effa; border-color: #d4def1; }
.requirement-list .ok { color: #536fa8; }
.switch input:checked + span { background: #7089bf; }
.ai-admin-state.is-on i {
    background: #7089bf;
    box-shadow: 0 0 0 4px rgba(112,137,191,.12);
}
.ai-quick-questions button:hover { border-color: #b9c7e2; }
.ai-quick-questions span { color: #627db7; }

/* Restrained commerce UI */
body { background: #f6f7f9; }
.top-notice { background: #f1f3f6; }
.site-header,
.site-header.is-scrolled {
    background: rgba(255,255,255,.96);
    box-shadow: none;
}
.brand-mark {
    border-radius: 10px;
    transform: none;
    box-shadow: none;
}
.brand-mark::after { display: none; }
.eyebrow,
.section-kicker {
    margin-bottom: 8px;
    color: #7d8594;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
}
.eyebrow i { display: none; }
.catalog-heading h2 { letter-spacing: -.025em; }
.product-card {
    border-radius: 12px;
    box-shadow: none;
}
.product-card:hover {
    transform: none;
    border-color: #cbd5e5;
    box-shadow: 0 6px 18px rgba(43,56,82,.06);
}
.product-cover { background: #f1f3f6; }
.cover-placeholder {
    background: #f1f3f6;
    border-radius: 8px;
}
.cover-placeholder b {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 12px;
    transform: none;
}
.product-category {
    color: #667085;
    background: rgba(255,255,255,.9);
    backdrop-filter: none;
}
.buy-link { border-radius: 8px; }
.arrow-button { border-radius: 7px; }
.trust-strip,
.trust-strip article { border-color: #e3e6ec; }

.admin-sidebar { box-shadow: none; }
.admin-sidebar nav a:hover { transform: none; }
.welcome-card {
    padding: 24px 26px;
    color: #29303d;
    background: #fff;
    border-color: #e1e5ed;
    border-radius: 12px;
}
.welcome-card::after { display: none; }
.welcome-card h2 { font-size: 24px; }
.welcome-card p { color: #7d8492; }
.panel,
.stat-grid article {
    border-radius: 12px;
    box-shadow: none;
}
.stat-grid article:hover {
    transform: none;
    box-shadow: none;
    border-color: #d4dbe7;
}
.btn { border-radius: 8px; }
.btn:hover { transform: none; }
.admin-avatar { border-radius: 8px; }

.ai-launcher {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(43,56,82,.12);
}
.ai-launcher:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(43,56,82,.15);
}
.ai-launcher-icon,
.ai-agent-avatar { border-radius: 10px; }
.ai-panel {
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(43,56,82,.16);
}
.ai-panel-head { background: #fff; }
.ai-message > div { box-shadow: none; }
.redirect-card,
.login-card,
.install-card { border-radius: 14px; }

/* Subtle visual rhythm */
.catalog-heading > div {
    position: relative;
    padding-left: 17px;
}
.catalog-heading > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 42px;
    border-radius: 4px;
    background: #6f86b9;
}
.catalog-toolbar .category-tabs a.active {
    color: #425a91;
    border-bottom-color: #6079b0;
}
.product-card:nth-child(4n + 1) .product-cover,
.product-card:nth-child(4n + 1) .cover-placeholder { background: #edf2fa; }
.product-card:nth-child(4n + 2) .product-cover,
.product-card:nth-child(4n + 2) .cover-placeholder { background: #f2eff8; }
.product-card:nth-child(4n + 3) .product-cover,
.product-card:nth-child(4n + 3) .cover-placeholder { background: #eef2f5; }
.product-card:nth-child(4n + 4) .product-cover,
.product-card:nth-child(4n + 4) .cover-placeholder { background: #f7f1ed; }
.product-card:nth-child(4n + 1) .cover-placeholder b { color: #536fa8; background: #dce6f7; }
.product-card:nth-child(4n + 2) .cover-placeholder b { color: #745f9b; background: #e5ddf1; }
.product-card:nth-child(4n + 3) .cover-placeholder b { color: #5f7285; background: #dfe6ec; }
.product-card:nth-child(4n + 4) .cover-placeholder b { color: #956f59; background: #eee0d7; }
.product-card:nth-child(4n + 2) .arrow-button { background: #7b69a2; }
.product-card:nth-child(4n + 3) .arrow-button { background: #667b90; }
.product-card:nth-child(4n + 4) .arrow-button { background: #9b7561; }
.trust-strip article:nth-child(2) > span { color: #7b69a2; }
.trust-strip article:nth-child(3) > span { color: #8a6d5e; }

/* Product card purchase action */
.buy-link {
    min-height: 44px;
    padding: 10px 16px;
    justify-content: center;
    gap: 9px;
    color: #5278c7;
    background: #f4f7fd;
    border: 1px solid #d8e3f5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .01em;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.buy-link:hover {
    color: #4169bb;
    background: #edf3fc;
    border-color: #c7d7f0;
    box-shadow: 0 4px 12px rgba(70, 104, 170, .08);
}
.buy-link.disabled {
    color: #8e9aae;
    background: #f5f6f8;
    border-color: #e2e5ea;
    box-shadow: none;
}
.purchase-cart {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    overflow: visible;
    color: #202735;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.buy-link.disabled .purchase-cart {
    color: #8e9aae;
}

/* Subsite entry and member center */
.header-account-link {
    min-width: 58px;
    height: 36px;
    margin-right: 8px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3ef;
    border-radius: 9px;
    color: #526b9e;
    background: #f6f8fc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.header-account-link:hover {
    color: #405b94;
    background: #edf2fa;
    border-color: #cdd9ec;
}
.subsite-home {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 78px;
    padding: 34px;
    display: grid;
    grid-template-columns: .85fr 1.35fr;
    gap: 34px;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 15%, rgba(112,137,196,.11), transparent 32%),
        #fff;
    box-shadow: 0 20px 55px rgba(47,61,91,.06);
}
.subsite-home-intro h2 { margin: 8px 0 10px; font-size: clamp(25px,3vw,38px); letter-spacing: -.04em; }
.subsite-home-intro > p { margin: 0; max-width: 440px; color: #747f91; line-height: 1.8; font-size: 13px; }
.subsite-home-points { margin: 21px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.subsite-home-points span { padding: 6px 10px; border: 1px solid #dde5f2; border-radius: 99px; color: #5e6d88; background: #f7f9fc; font-size: 10px; }
.subsite-plan-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.subsite-plan-preview article { padding: 22px; border: 1px solid #e0e5ed; border-radius: 14px; background: #fafbfd; }
.subsite-plan-preview article.featured { border-color: #c8d6ef; background: #f3f6fc; box-shadow: inset 0 3px 0 #6c84ba; }
.subsite-plan-preview article > div { display: flex; align-items: center; justify-content: space-between; }
.subsite-plan-preview article > div span { font-size: 14px; font-weight: 750; }
.subsite-plan-preview article em { padding: 4px 7px; border-radius: 6px; color: #506aa4; background: #e2e9f7; font-size: 9px; font-style: normal; }
.subsite-plan-preview article > strong { margin: 18px 0 8px; display: block; font-size: 29px; }
.subsite-plan-preview article > strong small { margin-right: 3px; font-size: 13px; }
.subsite-plan-preview article p { min-height: 42px; color: #7a8494; font-size: 11px; line-height: 1.7; }
.subsite-plan-preview ul,.plan-card ul { margin: 14px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.subsite-plan-preview li,.plan-card li { color: #566276; font-size: 11px; }
.subsite-plan-preview li::before,.plan-card li::before { content: "✓"; margin-right: 7px; color: #6680b7; font-weight: 800; }

.member-auth-shell {
    width: min(980px,calc(100% - 40px));
    min-height: 630px;
    margin: 52px auto 80px;
    display: grid;
    grid-template-columns: 1fr 430px;
    align-items: center;
    gap: 80px;
}
.member-auth-copy h1 { margin: 12px 0 16px; max-width: 520px; font-size: clamp(38px,5vw,62px); line-height: 1.05; letter-spacing: -.06em; }
.member-auth-copy > p { max-width: 470px; color: #727e91; line-height: 1.8; }
.member-auth-copy > div { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.member-auth-copy > div span { padding: 8px 11px; border-radius: 8px; color: #60708d; background: #edf2fa; font-size: 11px; }
.member-auth-card { padding: 34px; display: grid; gap: 17px; border: 1px solid #dfe4ec; border-radius: 17px; background: white; box-shadow: 0 24px 65px rgba(46,58,83,.09); }
.member-auth-card label,.member-form label,.plan-card label { display: grid; gap: 7px; color: #556075; font-size: 11px; font-weight: 650; }
.member-auth-card input,.member-form input,.member-form textarea,.member-form select,.plan-card input { width: 100%; }
.auth-switch { margin: 0; color: #858d9b; text-align: center; font-size: 11px; }
.auth-switch a { color: #5875b0; font-weight: 700; }

.member-shell { width: min(1180px,calc(100% - 40px)); margin: 36px auto 90px; display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 28px; }
.member-sidebar { position: sticky; top: 28px; align-self: start; padding: 18px; border: 1px solid #e0e4eb; border-radius: 14px; background: #fff; }
.member-profile { padding: 4px 2px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f4; }
.member-profile > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #526da8; background: #e5ebf7; font-weight: 800; }
.member-profile div { min-width: 0; display: grid; gap: 3px; }
.member-profile strong,.member-profile small { overflow: hidden; text-overflow: ellipsis; }
.member-profile small { color: #89919f; font-size: 9px; }
.member-sidebar nav { padding-top: 13px; display: grid; gap: 3px; }
.member-sidebar nav a { padding: 10px 11px; border-radius: 8px; color: #667083; font-size: 12px; font-weight: 650; }
.member-sidebar nav a.active { color: #49649e; background: #edf2fa; }
.member-content { min-width: 0; }
.member-title { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.member-title h1 { margin: 6px 0 4px; font-size: 30px; letter-spacing: -.04em; }
.member-title p { margin: 0; color: #818a9a; font-size: 12px; }
.member-stat-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.member-stat-grid article { padding: 20px; display: grid; gap: 7px; border: 1px solid #e0e5ed; border-radius: 13px; background: #fff; }
.member-stat-grid article > span { color: #7e8796; font-size: 11px; }
.member-stat-grid article strong { font-size: 26px; letter-spacing: -.04em; }
.member-stat-grid article small { color: #a0a7b2; font-size: 9px; }
.member-panel { padding: 23px; border: 1px solid #e0e5ed; border-radius: 14px; background: #fff; }
.member-order-list { display: grid; }
.member-order-list article { padding: 14px 4px; display: grid; grid-template-columns: minmax(0,1.5fr) 100px 80px 42px; align-items: center; gap: 14px; border-bottom: 1px solid #edf0f4; }
.member-order-list article:last-child { border-bottom: 0; }
.member-order-list article > div { min-width: 0; display: grid; gap: 5px; }
.member-order-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.member-order-list article > div span,.member-order-list article > div small { color: #8c94a1; font-size: 9px; }
.member-order-list article > a { color: #5673ae; font-size: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.plan-card { padding: 27px; border: 1px solid #dfe5ee; border-radius: 16px; background: #fff; }
.plan-card.featured { border-color: #c5d4ee; box-shadow: 0 20px 48px rgba(66,91,143,.09); }
.plan-card > span { color: #6b7b99; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.plan-card h2 { margin: 8px 0 15px; }
.plan-card > div strong { font-size: 34px; }
.plan-card > div small { color: #526da8; }
.plan-card > div em { color: #9299a5; font-size: 10px; font-style: normal; }
.plan-card > p { min-height: 42px; color: #798393; line-height: 1.7; font-size: 11px; }
.plan-card form { margin-top: 24px; padding-top: 20px; display: grid; gap: 14px; border-top: 1px solid #edf0f4; }
.my-site-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.my-site-grid > article { padding: 22px; border: 1px solid #e0e5ed; border-radius: 14px; background: #fff; }
.my-site-head { display: flex; justify-content: space-between; }
.site-mini-logo { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: #536da6; background: #e7edf8; font-weight: 800; }
.site-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.my-site-grid h2 { margin: 20px 0 7px; font-size: 18px; }
.my-site-grid p { margin: 0 0 5px; color: #737e90; font-size: 11px; }
.my-site-grid article > small { display: block; overflow: hidden; color: #a0a6b0; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.my-site-grid article > div:last-child { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.my-site-grid article > div:last-child > a:last-child { color: #5873ad; font-size: 10px; }
.member-tabs { margin-bottom: 14px; display: flex; gap: 7px; }
.member-tabs a { padding: 9px 13px; border: 1px solid #e1e5ec; border-radius: 8px; color: #6c7687; background: #fff; font-size: 11px; font-weight: 650; }
.member-tabs a.active { color: #4c68a2; border-color: #cfdbee; background: #edf2fa; }
.member-form { display: grid; gap: 18px; }
.member-form .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.member-form .span-2 { grid-column: 1/-1; }
.sub-form-section { margin-top: 5px; padding: 20px; border: 1px solid #e6e9ef; border-radius: 11px; background: #fafbfd; }
.sub-form-section > div:first-child { margin-bottom: 16px; }
.sub-form-section h3 { margin: 0 0 5px; font-size: 14px; }
.sub-form-section p,.plan-limit-note p { margin: 0; color: #848d9d; font-size: 10px; }
.plan-limit-note { padding: 17px; border: 1px dashed #d6dde9; border-radius: 10px; background: #f8fafc; }
.member-two-columns { display: grid; grid-template-columns: minmax(290px,.72fr) minmax(0,1fr); gap: 15px; align-items: start; }
.member-product-list { display: grid; gap: 10px; }
.member-product-list article { padding: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; border: 1px solid #e6e9ef; border-radius: 10px; }
.member-product-list article > div:first-child { display: grid; gap: 5px; }
.member-product-list article > div:first-child span { color: #838c9a; font-size: 10px; }
.stock-inline-form { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.stock-inline-form textarea { min-height: 52px; resize: vertical; }
.permission-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.permission-checks label { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.site-plan-layout { grid-template-columns: minmax(300px,.7fr) minmax(0,1.3fr); }
.admin-plan-list { padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.admin-plan-list article { padding: 16px; border: 1px solid #e4e8ee; border-radius: 10px; }
.admin-plan-list article > div:first-child { display: flex; justify-content: space-between; }
.admin-plan-list p { min-height: 35px; color: #7b8494; font-size: 10px; line-height: 1.6; }
.admin-plan-list small { color: #9098a5; font-size: 9px; }
.feature-tags { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 5px; }
.feature-tags span { padding: 4px 6px; border-radius: 5px; color: #5b6f96; background: #edf2fa; font-size: 8px; }
.admin-plan-list a { color: #5672aa; font-size: 10px; }
.subsite-review-card { margin-bottom: 16px; }

@media (max-width: 850px) {
    .header-account-link { margin-left: auto; }
    .subsite-home,.member-auth-shell { grid-template-columns: 1fr; }
    .member-auth-shell { gap: 30px; }
    .member-shell { grid-template-columns: 1fr; }
    .member-sidebar { position: static; }
    .member-sidebar nav { grid-template-columns: repeat(4,1fr); }
    .member-sidebar nav a { text-align: center; }
    .member-two-columns { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .header-account-link { min-width: 52px; height: 34px; padding: 0 11px; }
    .subsite-home { width: calc(100% - 24px); padding: 22px; }
    .subsite-plan-preview,.plan-grid,.my-site-grid,.member-stat-grid { grid-template-columns: 1fr; }
    .member-shell,.member-auth-shell { width: calc(100% - 24px); }
    .member-auth-card { padding: 23px; }
    .member-title { align-items: flex-start; flex-direction: column; }
    .member-sidebar nav { grid-template-columns: repeat(2,1fr); }
    .member-order-list article { grid-template-columns: 1fr auto; }
    .member-order-list article > .status { justify-self: start; }
    .member-form .form-grid { grid-template-columns: 1fr; }
    .member-form .span-2 { grid-column: auto; }
}

.admin-sidebar nav a.active {
    position: relative;
    color: #435b93;
    background: #edf1f8;
    font-weight: 700;
}
.admin-sidebar nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: #6179af;
}
.welcome-card {
    background: #f1f4fa;
    border-color: #dbe3f0;
}
.stat-grid article {
    position: relative;
    overflow: hidden;
    border-top-width: 3px;
}
.stat-grid article:nth-child(1) { border-top-color: #657fb8; }
.stat-grid article:nth-child(2) { border-top-color: #806da7; }
.stat-grid article:nth-child(3) { border-top-color: #718597; }
.stat-grid article:nth-child(4) { border-top-color: #9b7561; }
.panel-head { background: #fbfcfe; }
.ai-launcher { border-top: 3px solid #6b83b9; }

@media (max-width: 520px) {
    .catalog-heading > div { padding-left: 13px; }
    .catalog-heading > div::before { height: 34px; }
}

/* Inventory workspace */
.inventory-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.product-stock-nav {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
    padding: 10px;
}
.stock-nav-head {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 2px 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e7eaf0;
}
.stock-nav-head strong { font-size: 14px; }
.stock-nav-head span { color: var(--muted); font-size: 11px; }
.product-stock-nav a {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e3e7ee;
    border-radius: 9px;
    background: #fff;
}
.product-stock-nav a span {
    overflow: hidden;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.product-stock-nav a small {
    display: flex;
    align-items: center;
    gap: 7px;
}
.product-stock-nav a small i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b4bbc7;
}
.product-stock-nav a:hover {
    color: #35425b;
    border-color: #cbd5e6;
    background: #f8faff;
}
.product-stock-nav a.active {
    color: #405991;
    border-color: #aebfdf;
    background: #eef3fb;
    box-shadow: inset 0 0 0 1px rgba(96,121,176,.08);
}
.inventory-main { min-width: 0; }
.import-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-bottom: 20px;
}
.import-form > .panel-head { grid-column: 1 / -1; }
.import-form > label { margin: 18px 0 0 20px; }
.import-form > label textarea { min-height: 142px; }
.import-form > button {
    min-width: 120px;
    margin: 18px 20px 0 14px;
}
.inventory-main .table-wrap { min-width: 0; }

@media (max-width: 700px) {
    .product-stock-nav {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
    .stock-nav-head { display: none; }
    .product-stock-nav a {
        width: 210px;
        flex: 0 0 210px;
        scroll-snap-align: start;
    }
    .import-form { grid-template-columns: 1fr; }
    .import-form > label { margin: 16px 15px 0; }
    .import-form > button {
        width: auto;
        margin: 12px 15px 0;
    }
}

/* Settings workspace */
.settings-page { max-width: 1180px; }
.settings-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.settings-nav {
    position: sticky;
    top: 92px;
    padding: 10px;
    display: grid;
    gap: 4px;
}
.settings-nav > strong {
    padding: 10px 11px 13px;
    color: #303744;
    border-bottom: 1px solid #e7eaf0;
    font-size: 13px;
}
.settings-nav a {
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #647084;
    font-size: 12px;
}
.settings-nav a span {
    color: #9aa2af;
    font: 9px ui-monospace, monospace;
}
.settings-nav a:hover {
    color: #405991;
    background: #eef3fb;
}
.settings-form {
    padding: 0;
    display: grid;
    gap: 16px;
    background: transparent;
}
.settings-form > .settings-section {
    margin: 0;
    padding: 22px;
    scroll-margin-top: 92px;
    border: 1px solid #e1e5ed;
    border-radius: 12px;
    background: #fff;
}
.settings-section-head {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.settings-section-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-section-head > div > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #536da6;
    background: #e9eef8;
    font: 9px ui-monospace, monospace;
}
.settings-section-head h3 {
    margin: 0;
    font-size: 16px;
}
.settings-section-head p {
    max-width: 440px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
}
.settings-form .settings-title-row {
    margin-bottom: 20px;
    align-items: center;
}
.settings-form .settings-title-row .settings-section-head {
    flex: 1;
    margin: 0;
}
.settings-form .form-grid { gap: 16px; }
.settings-form .callback-box {
    margin-top: 18px;
    border: 1px solid #e4e8ef;
    background: #f8f9fb;
}
.settings-save-bar {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    padding: 12px 14px 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #dce2ec;
    border-radius: 11px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 30px rgba(43,56,82,.09);
    backdrop-filter: blur(12px);
}
.settings-save-bar span { color: var(--muted); font-size: 11px; }
.settings-save-bar .btn { min-width: 145px; }

@media (max-width: 900px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav {
        position: static;
        display: flex;
        overflow-x: auto;
    }
    .settings-nav > strong { display: none; }
    .settings-nav a {
        flex: 0 0 auto;
        border: 1px solid #e3e7ee;
        background: #fff;
    }
}
@media (max-width: 620px) {
    .settings-form > .settings-section { padding: 17px 15px; }
    .settings-section-head {
        display: block;
    }
    .settings-section-head p {
        margin: 9px 0 0 37px;
        text-align: left;
    }
    .settings-form .settings-title-row {
        align-items: stretch;
    }
    .settings-form .settings-title-row .switch {
        align-self: flex-start;
        margin-left: 37px;
    }
    .settings-save-bar {
        bottom: 8px;
        padding: 10px;
    }
    .settings-save-bar span { display: none; }
    .settings-save-bar .btn { width: 100%; }
}

/* Configurable store logo */
.brand-mark.has-image {
    padding: 3px;
    background: #fff;
    border: 1px solid #e0e5ed;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}
.admin-brand > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.admin-brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    color: #506ba4;
    background: #e5ecf9;
    font-size: 16px;
    font-weight: 850;
}
.admin-brand-logo.has-image {
    padding: 3px;
    background: #fff;
    border: 1px solid #e1e5ed;
}
.admin-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.logo-setting-row {
    padding: 14px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    background: #f8f9fb;
}
.logo-setting-preview {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce2eb;
    border-radius: 14px;
    color: #526da6;
    background: #e7edf8;
    font-size: 27px;
    font-weight: 850;
}
.logo-setting-preview img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
    background: #fff;
}
.logo-remove-line {
    color: #747e91;
    font-size: 11px;
    white-space: nowrap;
}
@media (max-width: 680px) {
    .logo-setting-row {
        grid-template-columns: 60px minmax(0, 1fr);
    }
    .logo-setting-preview {
        width: 60px;
        height: 60px;
    }
    .logo-remove-line {
        grid-column: 1 / -1;
    }
}

/* Homepage template selector */
.template-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.template-choice {
    position: relative;
    padding: 10px;
    display: grid;
    gap: 5px;
    border: 1px solid #e0e5ed;
    border-radius: 11px;
    background: #fafbfd;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.template-choice:hover { transform: translateY(-2px); border-color: #cbd7eb; }
.template-choice:has(input:checked) { border-color: #7d96c9; box-shadow: 0 0 0 3px rgba(100,128,184,.12); }
.template-choice input { position: absolute; opacity: 0; pointer-events: none; }
.template-choice strong { margin-top: 4px; color: #30394a; font-size: 11px; }
.template-choice small { color: #858e9d; font-size: 9px; line-height: 1.5; }
.template-thumb { position: relative; height: 82px; display: block; overflow: hidden; border-radius: 8px; }
.template-thumb::before,.template-thumb::after,.template-thumb i,.template-thumb b,.template-thumb em { content: ""; position: absolute; display: block; }
.thumb-classic { background: #f3f6fb; }
.thumb-classic::before { width: 100%; height: 13px; background: #fff; box-shadow: 0 1px #dfe5ef; }
.thumb-classic::after { left: 9px; top: 22px; width: 48%; height: 7px; border-radius: 4px; background: #596d99; box-shadow: 0 12px #cbd5e7; }
.thumb-classic i { left: 9px; right: 9px; bottom: 8px; height: 24px; border-radius: 5px; background: linear-gradient(90deg,#dfe7f5 32%,transparent 32% 35%,#e9e4f3 35% 66%,transparent 66% 69%,#e5e9f0 69%); }
.thumb-midnight { background: #0b1020; }
.thumb-midnight::before { inset: 0; background: radial-gradient(circle at 75% 35%,rgba(101,99,235,.45),transparent 34%); }
.thumb-midnight::after { left: 9px; top: 16px; width: 43%; height: 8px; border-radius: 4px; background: #f4f6ff; box-shadow: 0 13px #4d5d82; }
.thumb-midnight i { right: 10px; top: 16px; width: 34%; height: 41px; border: 1px solid #454f74; border-radius: 5px; background: #121a30; }
.thumb-midnight b { left: 9px; bottom: 12px; width: 38%; height: 6px; border-radius: 4px; background: #6863ec; }
.thumb-editorial { background: #eee6d7; }
.thumb-editorial::before { left: 10px; top: 10px; width: 43%; height: 7px; background: #26251f; box-shadow: 0 12px #26251f,0 24px #b4aa99; }
.thumb-editorial::after { right: 9px; top: 10px; width: 40%; height: 61px; background: linear-gradient(135deg,#b8a797,#ead9c2); }
.thumb-editorial i { left: 10px; bottom: 10px; width: 25%; height: 3px; background: #ad765e; }
.thumb-pop { background: #ddd4ff; border: 1px solid #302e43; }
.thumb-pop::before { left: 8px; top: 13px; width: 48%; height: 10px; border-radius: 3px; background: #302e43; box-shadow: 0 15px #302e43; }
.thumb-pop::after { right: 8px; top: 11px; width: 34%; height: 48px; border: 1px solid #302e43; border-radius: 8px; background: #ffb85c; transform: rotate(4deg); }
.thumb-pop i { left: 8px; bottom: 9px; width: 35%; height: 8px; border-radius: 5px; background: #7654d8; }

/* Shared alternate-template hero */
.template-hero {
    width: min(1120px, calc(100% - 40px));
    margin: 28px auto 46px;
    position: relative;
    overflow: hidden;
}
.template-hero h1 { margin: 0; }
.template-hero h1 em { font-style: normal; }

/* Midnight template */
.template-midnight {
    --ink: #f1f4ff;
    --muted: #8b95ad;
    --line: #252c3e;
    --surface: #121827;
    --soft: #171e30;
    color: #eef2ff;
    background: #090d17;
}
.template-midnight .top-notice { color: #8994ad; background: #090d17; border-color: #202638; }
.template-midnight .site-header { background: rgba(12,17,29,.9); border-color: #242b3d; }
.template-midnight .site-header.is-scrolled { background: rgba(12,17,29,.97); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.template-midnight .brand strong { color: #f0f3fb; }
.template-midnight .brand small,.template-midnight .desktop-nav a { color: #8993a8; }
.template-midnight .brand-mark { color: #dbe3ff; background: #202a43; box-shadow: inset 0 0 0 1px #34415f; }
.template-midnight .brand-mark::after { border-color: #6676a3; }
.template-midnight .header-account-link,.template-midnight .header-order-link { color: #cdd6ec; border-color: #30394f; background: #151c2b; }
.template-midnight .desktop-nav a:hover { color: #fff; background: #181f30; }
.midnight-hero {
    min-height: 520px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr .92fr;
    align-items: center;
    gap: 55px;
    border: 1px solid #242b40;
    border-radius: 24px;
    background:
        linear-gradient(rgba(73,83,120,.07) 1px,transparent 1px),
        linear-gradient(90deg,rgba(73,83,120,.07) 1px,transparent 1px),
        radial-gradient(circle at 75% 38%,rgba(87,82,225,.19),transparent 35%),
        #0e1422;
    background-size: 32px 32px,32px 32px,auto,auto;
}
.midnight-orbit i { position: absolute; border: 1px solid rgba(115,109,239,.18); border-radius: 50%; }
.midnight-orbit i:nth-child(1) { width: 430px; height: 430px; right: -130px; top: -170px; }
.midnight-orbit i:nth-child(2) { width: 260px; height: 260px; right: -40px; top: -80px; }
.midnight-orbit i:nth-child(3) { width: 9px; height: 9px; right: 175px; top: 65px; background: #7770f0; box-shadow: 0 0 22px #7770f0; }
.template-serial { color: #777fed; font: 700 10px/1.2 monospace; letter-spacing: .18em; }
.midnight-copy h1 { margin: 20px 0; max-width: 560px; font-size: clamp(46px,6vw,76px); line-height: .98; letter-spacing: -.07em; }
.midnight-copy h1 em { display: block; color: #8984ff; }
.midnight-copy > p { max-width: 540px; color: #919bb2; font-size: 13px; line-height: 1.9; }
.midnight-primary { color: #fff; background: #665fe3; border-color: #665fe3; }
.midnight-primary:hover { color: #fff; background: #756ef1; }
.midnight-link { padding: 11px 4px; color: #aeb8cd; border-bottom: 1px solid #48516a; font-size: 12px; }
.midnight-status { margin-top: 34px; display: flex; gap: 20px; color: #77829b; font-size: 9px; font-family: monospace; }
.midnight-status span { display: flex; align-items: center; gap: 7px; }
.midnight-status i { width: 6px; height: 6px; border-radius: 50%; background: #7770ef; box-shadow: 0 0 0 4px rgba(119,112,239,.12); }
.midnight-console { padding: 24px; position: relative; border: 1px solid #303850; border-radius: 16px; background: rgba(17,24,40,.89); box-shadow: 0 35px 75px rgba(0,0,0,.28); }
.console-head { display: flex; justify-content: space-between; color: #6f7993; font: 700 9px monospace; letter-spacing: .12em; }
.console-head b { display: flex; align-items: center; gap: 6px; color: #8a85ef; }
.console-head b i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.console-main { padding: 40px 0 30px; text-align: center; border-bottom: 1px solid #293148; }
.console-main small { display: block; color: #7f899f; font-size: 10px; }
.console-main strong { margin: 8px 0 3px; display: block; color: #f7f8ff; font-size: 72px; letter-spacing: -.07em; }
.console-main span { color: #5e6984; font: 8px monospace; letter-spacing: .2em; }
.console-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #293148; }
.console-grid div { padding: 18px; display: grid; gap: 7px; }
.console-grid div:first-child { border-right: 1px solid #293148; }
.console-grid small { color: #69748c; font-size: 9px; }
.console-grid b { font-size: 19px; }
.console-flow { height: 65px; display: flex; align-items: end; gap: 7px; }
.console-flow span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#7069ea,#313956); }
.console-flow span:nth-child(1){height:24%}.console-flow span:nth-child(2){height:58%}.console-flow span:nth-child(3){height:42%}.console-flow span:nth-child(4){height:78%}.console-flow span:nth-child(5){height:94%}
.console-code { padding-top: 12px; display: flex; align-items: center; gap: 8px; color: #67728b; font-size: 8px; }
.console-code i { width: 7px; height: 7px; border: 1px solid #766fe9; transform: rotate(45deg); }
.template-midnight .catalog { padding-top: 28px; }
.template-midnight .catalog-heading h2 { color: #eef2ff; font-size: 38px; }
.template-midnight .section-kicker { color: #7d77ec; }
.template-midnight .product-search { border-color: #2d3549; background: #111827; }
.template-midnight .product-search input { color: #edf1fb; }
.template-midnight .category-tabs a { color: #838da4; border-color: transparent; }
.template-midnight .category-tabs a.active { color: #fff; border-color: #6f68e7; background: #181f31; }
.template-midnight .catalog-count { color: #68738b; }
.template-midnight .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.template-midnight .product-card { border-color: #252d40; border-radius: 15px; background: #111827; box-shadow: none; }
.template-midnight .product-cover { aspect-ratio: 16/10; background: #171e2e; }
.template-midnight .product-info { padding: 18px; }
.template-midnight .product-info h2 a,.template-midnight .price { color: #f0f3fb; }
.template-midnight .product-info p { color: #68738a; }
.template-midnight .stock { color: #8290aa; background: #1b2334; }
.template-midnight .buy-link { color: #dcdfff; border-color: #393c75; background: #22234c; }
.template-midnight .buy-link:hover { color: #fff; border-color: #5f59d5; background: #5f59d5; box-shadow: 0 8px 24px rgba(74,68,189,.22); }
.template-midnight .purchase-cart { color: currentColor; }
.template-midnight .product-category { color: #d8dcf3; border-color: #394158; background: rgba(14,20,34,.78); }
.template-midnight .trust-strip,.template-midnight .trust-strip article { border-color: #242b3d; }
.template-midnight .trust-strip article > span { color: #7770eb; }
.template-midnight .trust-strip p { color: #737e96; }
.template-midnight .subsite-home { border-color: #293148; background: #101624; box-shadow: none; }
.template-midnight .subsite-plan-preview article { border-color: #2b3349; background: #151c2b; }
.template-midnight .subsite-home-intro > p,.template-midnight .subsite-plan-preview article p,.template-midnight .subsite-plan-preview li { color: #7e899f; }
.template-midnight .site-footer { color: #d6dbea; border-color: #242b3d; background: #0c111d; }

/* Editorial template */
.template-editorial {
    --ink: #24231f;
    --muted: #7c756b;
    --line: #d8d0c3;
    --surface: #f8f4eb;
    --soft: #eee8dc;
    color: #26241f;
    background: #f1ece2;
}
.template-editorial .top-notice { color: #746d63; border-color: #d7cfc2; background: #e9e2d6; }
.template-editorial .top-notice span i { background: #a46955; box-shadow: 0 0 0 4px rgba(164,105,85,.12); }
.template-editorial .site-header { border-color: #d9d1c4; background: rgba(247,243,234,.9); }
.template-editorial .brand-mark { color: #f8f3e9; border-radius: 50%; background: #292721; box-shadow: none; }
.template-editorial .brand-mark::after { display: none; }
.template-editorial .desktop-nav a,.template-editorial .brand small { color: #716b61; }
.template-editorial .header-account-link,.template-editorial .header-order-link { color: #3f3b34; border-color: #cfc6b8; background: transparent; border-radius: 99px; }
.editorial-hero {
    min-height: 590px;
    padding: 52px 0 45px;
    display: grid;
    grid-template-columns: 1fr .9fr 150px;
    gap: 38px;
    border-top: 1px solid #37342d;
    border-bottom: 1px solid #37342d;
    overflow: visible;
}
.editorial-copy { position: relative; padding-left: 66px; display: flex; flex-direction: column; justify-content: center; }
.editorial-issue { position: absolute; left: 0; top: 12px; display: grid; border-right: 1px solid #cfc6b9; padding-right: 13px; }
.editorial-issue span { font-size: 8px; letter-spacing: .14em; }
.editorial-issue b { font: 500 32px Georgia,serif; }
.editorial-issue small { color: #8f877b; font-size: 8px; }
.editorial-kicker { color: #9b614d; font-size: 9px; font-weight: 750; letter-spacing: .17em; }
.editorial-copy h1 { margin: 20px 0; max-width: 550px; font: 500 clamp(48px,6.4vw,78px)/.98 Georgia,"Songti SC",serif; letter-spacing: -.06em; }
.editorial-copy h1 em { display: block; color: #9d644f; }
.editorial-copy > p { max-width: 500px; color: #716a60; font-size: 13px; line-height: 1.9; }
.editorial-copy .hero-actions { align-items: center; }
.editorial-primary { padding: 12px 23px; color: #f7f1e7; border-radius: 0; background: #2b2923; font-size: 11px; }
.editorial-copy .hero-actions > a:last-child { color: #6f675d; font-size: 10px; border-bottom: 1px solid #9e9588; }
.editorial-feature { position: relative; min-height: 480px; overflow: hidden; background: #ddd2c1; }
.editorial-feature img,.editorial-placeholder { width: 100%; height: 100%; object-fit: cover; }
.editorial-placeholder { display: grid; place-items: center; color: #f5eee4; background: linear-gradient(145deg,#b29e89,#756655); font: 700 90px Georgia,serif; }
.editorial-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 19px; display: grid; gap: 4px; color: #f9f5ee; background: linear-gradient(transparent,rgba(25,23,19,.86)); }
.editorial-caption span { font-size: 7px; letter-spacing: .15em; }
.editorial-caption strong { font: 500 17px Georgia,"Songti SC",serif; }
.editorial-caption small { color: #d8d0c4; font-size: 8px; }
.editorial-note { padding: 20px 0; display: flex; flex-direction: column; justify-content: space-between; border-top: 7px solid #9d644f; border-bottom: 1px solid #9b9184; }
.editorial-note > span { font-size: 8px; letter-spacing: .14em; }
.editorial-note p { font: 500 20px/1.7 Georgia,"Songti SC",serif; }
.editorial-note b { font: 500 10px Georgia,serif; }
.template-editorial .catalog { padding-top: 35px; }
.template-editorial .catalog-heading { align-items: end; border-bottom: 1px solid #302e28; padding-bottom: 20px; }
.template-editorial .catalog-heading h2 { font: 500 42px Georgia,"Songti SC",serif; letter-spacing: -.05em; }
.template-editorial .section-kicker { color: #a36550; }
.template-editorial .product-search { border: 0; border-bottom: 1px solid #8f877b; border-radius: 0; background: transparent; }
.template-editorial .catalog-toolbar { border-bottom: 1px solid #d2c9bc; }
.template-editorial .category-tabs a { border-radius: 0; color: #756e64; background: transparent; }
.template-editorial .category-tabs a.active { color: #28251f; border-color: #28251f; background: transparent; }
.template-editorial .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 18px; }
.template-editorial .product-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.template-editorial .product-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.35fr .65fr; border-top: 1px solid #2e2b25; border-bottom: 1px solid #bdb4a7; }
.template-editorial .product-card:first-child .product-cover { height: 100%; min-height: 430px; }
.template-editorial .product-cover { aspect-ratio: 4/5; border-radius: 0; background: #e3dbcf; }
.template-editorial .product-info { padding: 17px 0; }
.template-editorial .product-card:first-child .product-info { padding: 28px 22px; display: flex; flex-direction: column; justify-content: end; }
.template-editorial .product-info h2 { font: 500 18px Georgia,"Songti SC",serif; }
.template-editorial .price { font: 500 22px Georgia,serif; }
.template-editorial .stock { color: #756e64; background: #e5ddd1; }
.template-editorial .product-category { color: #433f38; border: 0; border-radius: 0; background: #eee7db; }
.template-editorial .buy-link { color: #3b3832; border: 1px solid #aaa092; border-radius: 0; background: transparent; }
.template-editorial .buy-link:hover { color: #f8f3eb; border-color: #2f2c26; background: #2f2c26; box-shadow: none; }
.template-editorial .trust-strip { border-color: #cfc6b9; }
.template-editorial .trust-strip article { border-color: #cfc6b9; }
.template-editorial .trust-strip article > span { color: #9d644f; font-family: Georgia,serif; }
.template-editorial .subsite-home { border-color: #cfc6b9; border-radius: 0; background: #e9e2d6; box-shadow: none; }
.template-editorial .subsite-plan-preview article { border-color: #cabfaf; border-radius: 0; background: #f2ece2; }
.template-editorial .subsite-home { font-family: Georgia,"Songti SC",serif; }
.template-editorial .subsite-home .section-kicker { color: #9d644f; font-family: Georgia,serif; }
.template-editorial .subsite-home-intro h2 { color: #2f2b25; font-family: Georgia,"Songti SC",serif; font-weight: 500; }
.template-editorial .subsite-home-points span {
    color: #675f54;
    border-color: #bdb2a3;
    border-radius: 0;
    background: transparent;
    font-family: Georgia,"Songti SC",serif;
}
.template-editorial .subsite-home .btn-primary {
    color: #f7f1e8;
    border-color: #2f2b25;
    border-radius: 0;
    background: #2f2b25;
    font-family: Georgia,"Songti SC",serif;
}
.template-editorial .subsite-home .btn-primary:hover { color: #2f2b25; background: transparent; }
.template-editorial .subsite-plan-preview article.featured {
    border-color: #9d644f;
    background: #efe6d9;
    box-shadow: inset 0 3px 0 #9d644f;
}
.template-editorial .subsite-plan-preview article > div span,
.template-editorial .subsite-plan-preview article > strong { color: #332f29; font-family: Georgia,"Songti SC",serif; }
.template-editorial .subsite-plan-preview article em {
    color: #f7f1e8;
    border-radius: 0;
    background: #9d644f;
    font-family: Georgia,"Songti SC",serif;
}
.template-editorial .subsite-plan-preview li::before { color: #9d644f; }
.template-editorial .site-footer { border-color: #cfc6b9; background: #e7dfd2; }

/* Pop storefront template */
.template-pop {
    --ink: #292638;
    --muted: #746e85;
    --line: #d4c9ed;
    --surface: #fff;
    --soft: #eee8fa;
    color: #292638;
    background: #f6f2ff;
}
.template-pop .top-notice { color: #615979; border-color: #cfc4eb; background: #e8e0fb; }
.template-pop .top-notice span i { background: #7655d9; box-shadow: 0 0 0 4px rgba(118,85,217,.13); }
.template-pop .site-header { border-bottom: 2px solid #332e49; background: rgba(255,255,255,.94); }
.template-pop .brand-mark { color: #312d44; border: 1.5px solid #332e49; border-radius: 12px; background: #ffbc62; box-shadow: 3px 3px 0 #332e49; }
.template-pop .brand-mark::after { display: none; }
.template-pop .header-account-link,.template-pop .header-order-link { color: #332e49; border: 1.5px solid #332e49; background: #fff; box-shadow: 2px 2px 0 #332e49; }
.pop-hero {
    min-height: 520px;
    padding: 56px 64px;
    display: grid;
    grid-template-columns: 1fr .82fr;
    align-items: center;
    gap: 40px;
    border: 2px solid #332e49;
    border-radius: 28px;
    background: #dcd2ff;
    box-shadow: 9px 9px 0 #332e49;
}
.pop-shape { position: absolute; border: 2px solid #332e49; }
.shape-a { width: 110px; height: 110px; right: 38%; top: -45px; border-radius: 50%; background: #ffbc62; }
.shape-b { width: 85px; height: 40px; left: 44%; bottom: 25px; border-radius: 99px; background: #ff8da1; transform: rotate(-14deg); }
.pop-copy { position: relative; z-index: 2; }
.pop-pill { padding: 8px 13px; display: inline-block; border: 1.5px solid #332e49; border-radius: 99px; background: #fff; box-shadow: 2px 2px 0 #332e49; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.pop-copy h1 { margin: 22px 0; max-width: 600px; font-size: clamp(48px,6vw,76px); line-height: .94; letter-spacing: -.075em; }
.pop-copy h1 em { display: block; color: #7654d8; text-shadow: 2px 2px 0 #fff; }
.pop-copy > p { max-width: 530px; color: #625b75; font-size: 13px; line-height: 1.8; }
.pop-primary,.pop-secondary { padding: 12px 21px; border: 1.5px solid #332e49; border-radius: 10px; font-size: 11px; font-weight: 800; box-shadow: 3px 3px 0 #332e49; }
.pop-primary { color: #fff; background: #7654d8; }
.pop-secondary { color: #332e49; background: #fff; }
.pop-facts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.pop-facts span { padding: 8px 10px; border: 1px solid #9e8ec7; border-radius: 8px; color: #625a76; background: rgba(255,255,255,.37); font-size: 9px; }
.pop-facts b { color: #332e49; }
.pop-showcase { min-height: 385px; position: relative; }
.pop-product { position: absolute; padding: 8px; border: 2px solid #332e49; border-radius: 18px; background: #fff; box-shadow: 7px 7px 0 #332e49; }
.pop-product img,.pop-product > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; border-radius: 10px; background: #ebe4fa; }
.pop-product b { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 8px; overflow: hidden; border: 1px solid #332e49; border-radius: 7px; background: rgba(255,255,255,.9); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pop-product-1 { width: 72%; height: 72%; left: 4%; top: 7%; transform: rotate(-5deg); }
.pop-product-2 { width: 64%; height: 67%; right: 0; bottom: 0; transform: rotate(6deg); }
.pop-sticker { position: absolute; z-index: 3; right: 11%; top: 2%; width: 76px; height: 76px; display: grid; place-items: center; border: 2px solid #332e49; border-radius: 50%; color: #332e49; background: #ffbc62; font-size: 13px; font-weight: 900; text-align: center; transform: rotate(8deg); box-shadow: 4px 4px 0 #332e49; }
.template-pop .catalog-heading h2 { font-size: 42px; text-shadow: 2px 2px 0 #e4dbff; }
.template-pop .section-kicker { color: #7654d8; }
.template-pop .product-search { border: 1.5px solid #332e49; background: #fff; box-shadow: 3px 3px 0 #332e49; }
.template-pop .category-tabs a { border: 1px solid transparent; border-radius: 99px; }
.template-pop .category-tabs a.active { color: #fff; border-color: #332e49; background: #7654d8; box-shadow: 2px 2px 0 #332e49; }
.template-pop .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.template-pop .product-card { border: 1.5px solid #332e49; border-radius: 17px; background: #fff; box-shadow: 5px 5px 0 #332e49; }
.template-pop .product-card:nth-child(3n+2) { transform: translateY(14px); }
.template-pop .product-cover { aspect-ratio: 5/4; border-bottom: 1.5px solid #332e49; background: #e7dfff; }
.template-pop .product-info { padding: 18px; }
.template-pop .stock { color: #5d5670; border: 1px solid #cabdea; background: #eee8fa; }
.template-pop .product-category { color: #332e49; border: 1px solid #332e49; background: #ffbd65; box-shadow: 2px 2px 0 #332e49; }
.template-pop .buy-link { color: #fff; border: 1.5px solid #332e49; background: #7654d8; box-shadow: 2px 2px 0 #332e49; }
.template-pop .buy-link:hover { color: #332e49; border-color: #332e49; background: #ffbc62; box-shadow: 4px 4px 0 #332e49; }
.template-pop .purchase-cart { color: currentColor; }
.template-pop .trust-strip { border: 0; gap: 12px; }
.template-pop .trust-strip article { padding: 20px; border: 1.5px solid #332e49; background: #fff; box-shadow: 4px 4px 0 #332e49; }
.template-pop .trust-strip article > span { color: #7654d8; }
.template-pop .subsite-home { border: 2px solid #332e49; background: #ffefd6; box-shadow: 7px 7px 0 #332e49; }
.template-pop .subsite-plan-preview article { border: 1.5px solid #332e49; background: #fff; box-shadow: 3px 3px 0 #332e49; }
.template-pop .subsite-home-intro h2 { color: #332e49; }
.template-pop .subsite-home-points span {
    color: #332e49;
    border: 1.5px solid #332e49;
    background: #fff;
    font-weight: 750;
    box-shadow: 2px 2px 0 #332e49;
}
.template-pop .subsite-home .btn-primary {
    color: #fff;
    border: 1.5px solid #332e49;
    border-radius: 99px;
    background: #7654d8;
    box-shadow: 3px 3px 0 #332e49;
    font-weight: 800;
}
.template-pop .subsite-home .btn-primary:hover { color: #332e49; background: #ffbd64; }
.template-pop .subsite-plan-preview article.featured {
    border-color: #332e49;
    background: #f0eaff;
    box-shadow: 4px 4px 0 #332e49,inset 0 4px 0 #7654d8;
}
.template-pop .subsite-plan-preview article > div span,
.template-pop .subsite-plan-preview article > strong { color: #332e49; }
.template-pop .subsite-plan-preview article em {
    color: #fff;
    border: 1px solid #332e49;
    border-radius: 99px;
    background: #7654d8;
    font-weight: 800;
}
.template-pop .subsite-plan-preview li::before { color: #7654d8; }
.template-pop .site-footer { border-color: #332e49; background: #e5dcfa; }

@media (max-width: 900px) {
    .template-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .midnight-hero,.pop-hero { padding: 42px 35px; grid-template-columns: 1fr; }
    .midnight-console { width: min(480px,100%); }
    .editorial-hero { grid-template-columns: 1fr .8fr; }
    .editorial-note { display: none; }
    .template-midnight .product-grid,.template-pop .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .template-editorial .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .template-hero { width: calc(100% - 24px); margin-top: 15px; }
    .midnight-hero,.pop-hero { min-height: 0; padding: 30px 22px; border-radius: 18px; }
    .midnight-copy h1,.pop-copy h1 { font-size: 45px; }
    .midnight-console { padding: 18px; }
    .console-main { padding: 28px 0 22px; }
    .console-main strong { font-size: 58px; }
    .pop-showcase { min-height: 290px; }
    .editorial-hero { padding: 25px 0; grid-template-columns: 1fr; }
    .editorial-copy { padding: 60px 10px 10px; }
    .editorial-copy h1 { font-size: 50px; }
    .editorial-feature { min-height: 390px; }
    .template-midnight .product-grid,.template-pop .product-grid,.template-editorial .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .template-editorial .product-card:first-child { grid-column: 1/-1; grid-template-columns: 1fr; }
    .template-editorial .product-card:first-child .product-cover { min-height: 340px; }
    .template-pop .product-card:nth-child(3n+2) { transform: none; }
    .template-midnight .product-info,.template-pop .product-info { padding: 12px; }
    .template-midnight .product-info p,.template-pop .product-info p,.template-editorial .product-info p { display: none; }
    .template-pop .product-card { box-shadow: 3px 3px 0 #332e49; }
}
@media (max-width: 430px) {
    .template-picker { grid-template-columns: 1fr; }
    .template-midnight .product-grid,.template-pop .product-grid,.template-editorial .product-grid { grid-template-columns: 1fr; }
}

/* Additional template thumbnails */
.thumb-mono { background: #f4f4f0; border: 1px solid #151515; }
.thumb-mono::before { left: 8px; top: 8px; width: 18px; height: 64px; border-right: 1px solid #151515; background: #151515; }
.thumb-mono::after { left: 35px; top: 11px; width: 48%; height: 10px; background: #151515; box-shadow: 0 17px #151515,0 34px #a8a8a3; }
.thumb-mono i { right: 8px; top: 8px; width: 22%; height: 64px; border: 1px solid #151515; }
.thumb-gallery { background: #dce9f6; }
.thumb-gallery::before { inset: 7px 29% 7px 7px; border-radius: 6px; background: linear-gradient(145deg,#7397bd,#1d3858); }
.thumb-gallery::after { right: 7px; top: 7px; width: 23%; height: 29px; border-radius: 5px; background: #9cb7d1; box-shadow: 0 35px #aec5db; }
.thumb-gallery i { left: 13px; bottom: 13px; width: 42%; height: 7px; border-radius: 4px; background: #fff; box-shadow: 0 -12px #fff; }
.thumb-terminal { background: #15120b; border: 1px solid #9b7424; }
.thumb-terminal::before { left: 8px; top: 8px; right: 8px; height: 8px; border-bottom: 1px solid #8d6b28; }
.thumb-terminal::after { left: 10px; top: 26px; width: 55%; height: 6px; background: #d59b2f; box-shadow: 0 12px #7f642e,0 24px #d59b2f; }
.thumb-terminal i { right: 9px; top: 24px; width: 24%; height: 39px; border: 1px solid #8d6b28; background: repeating-linear-gradient(#18130b 0 6px,#63491b 7px); }

/* Monochrome archive template */
.template-mono {
    --ink: #111;
    --muted: #696965;
    --line: #bdbdb7;
    --surface: #f8f8f4;
    --soft: #e9e9e4;
    color: #111;
    background: #f3f3ef;
}
.template-mono .top-notice { color: #333; border-color: #111; background: #e7e7e2; }
.template-mono .top-notice span i { background: #111; box-shadow: none; }
.template-mono .site-header { border-bottom: 2px solid #111; background: rgba(248,248,244,.96); backdrop-filter: none; }
.template-mono .brand-mark { color: #fff; border-radius: 0; background: #111; box-shadow: none; }
.template-mono .brand-mark::after { display: none; }
.template-mono .desktop-nav a { color: #111; border-radius: 0; }
.template-mono .header-account-link,.template-mono .header-order-link { color: #111; border: 1px solid #111; border-radius: 0; background: transparent; box-shadow: none; }
.mono-hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: 130px minmax(0,1fr) 280px;
    border: 2px solid #111;
    overflow: visible;
}
.mono-index { padding: 22px 16px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #111; }
.mono-index b { font: 800 62px/1 Arial,sans-serif; letter-spacing: -.08em; }
.mono-index span { font: 800 12px/1.3 Arial,sans-serif; letter-spacing: .08em; }
.mono-index small { writing-mode: vertical-rl; font: 700 9px monospace; }
.mono-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #111; }
.mono-copy > span { font: 700 9px monospace; letter-spacing: .18em; }
.mono-copy h1 { margin: 22px 0; max-width: 660px; font: 850 clamp(48px,7vw,90px)/.9 Arial,"PingFang SC",sans-serif; letter-spacing: -.085em; text-transform: uppercase; }
.mono-copy h1 em { display: block; -webkit-text-stroke: 1.5px #111; color: transparent; }
.mono-copy > p { max-width: 590px; color: #494945; font-size: 12px; line-height: 1.8; }
.mono-copy .hero-actions { align-items: center; }
.mono-primary { padding: 12px 18px; color: #fff; background: #111; font: 700 10px monospace; }
.mono-copy .hero-actions a:last-child { color: #111; border-bottom: 1px solid #111; font: 700 9px monospace; }
.mono-ledger { display: grid; grid-template-rows: repeat(3,1fr) 1.5fr; }
.mono-ledger > div { padding: 20px; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid #111; }
.mono-ledger span { font: 700 8px monospace; letter-spacing: .14em; }
.mono-ledger b { font: 800 31px Arial,sans-serif; }
.mono-ledger p { margin: 0; padding: 20px; align-self: end; font: 700 9px/2 monospace; }
.template-mono .catalog-heading { padding-bottom: 20px; border-bottom: 2px solid #111; }
.template-mono .catalog-heading h2 { font: 850 44px Arial,"PingFang SC",sans-serif; letter-spacing: -.06em; }
.template-mono .section-kicker { color: #111; font-family: monospace; }
.template-mono .product-search { border: 1px solid #111; border-radius: 0; background: transparent; }
.template-mono .category-tabs a { border-radius: 0; color: #555; }
.template-mono .category-tabs a.active { color: #fff; border-color: #111; background: #111; }
.template-mono .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid #111; background: #111; }
.template-mono .product-card { display: grid; grid-template-columns: 44% 56%; border: 0; border-radius: 0; background: #f7f7f3; box-shadow: none; }
.template-mono .product-cover { height: 100%; min-height: 260px; border-right: 1px solid #111; border-radius: 0; filter: grayscale(1); }
.template-mono .product-info { padding: 20px; display: flex; flex-direction: column; }
.template-mono .product-info h2 { font: 750 17px Arial,"PingFang SC",sans-serif; }
.template-mono .product-info p { color: #6b6b66; }
.template-mono .product-meta { order: 2; margin-top: auto; padding-top: 18px; border-top: 1px solid #aaa; }
.template-mono .price { color: #111; font: 800 23px Arial,sans-serif; }
.template-mono .stock { color: #111; border: 1px solid #111; border-radius: 0; background: transparent; }
.template-mono .product-category { color: #fff; border: 0; border-radius: 0; background: #111; }
.template-mono .buy-link { order: 3; color: #111; border: 1px solid #111; border-radius: 0; background: transparent; }
.template-mono .buy-link:hover { color: #fff; border-color: #111; background: #111; box-shadow: none; }
.template-mono .trust-strip { border-color: #111; }
.template-mono .trust-strip article { border-color: #111; }
.template-mono .trust-strip article > span { color: #111; font-family: monospace; }
.template-mono .subsite-home { border: 2px solid #111; border-radius: 0; background: #e8e8e3; box-shadow: none; }
.template-mono .subsite-plan-preview article { border-color: #111; border-radius: 0; background: #f8f8f4; }
.template-mono .subsite-home { font-family: monospace; }
.template-mono .subsite-home .section-kicker,
.template-mono .subsite-home-intro h2 { color: #111; font-family: monospace; }
.template-mono .subsite-home-points span {
    color: #111;
    border: 1px solid #111;
    border-radius: 0;
    background: transparent;
    font-family: monospace;
}
.template-mono .subsite-home .btn-primary {
    color: #fff;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    font-family: monospace;
}
.template-mono .subsite-home .btn-primary:hover { color: #111; background: transparent; }
.template-mono .subsite-plan-preview article.featured {
    border-color: #111;
    background: #efefea;
    box-shadow: inset 0 5px 0 #111;
}
.template-mono .subsite-plan-preview article > div span,
.template-mono .subsite-plan-preview article > strong { color: #111; font-family: monospace; }
.template-mono .subsite-plan-preview article em {
    color: #fff;
    border-radius: 0;
    background: #111;
    font-family: monospace;
}
.template-mono .subsite-plan-preview li { color: #333; font-family: monospace; }
.template-mono .subsite-plan-preview li::before { content: "+"; color: #111; }
.template-mono .site-footer { border-color: #111; background: #e6e6e1; }

/* Blue gallery template */
.template-gallery {
    --ink: #172b42;
    --muted: #6c7d90;
    --line: #cad8e6;
    --surface: #f7fbff;
    --soft: #e3edf6;
    color: #172b42;
    background: #eaf2f9;
}
.template-gallery .top-notice { color: #566d85; border-color: #c7d8e8; background: #dce9f4; }
.template-gallery .site-header { border-color: #c6d6e5; background: rgba(242,248,253,.88); }
.template-gallery .brand-mark { color: #fff; background: #31587e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.template-gallery .brand-mark::after { border-color: #83a7ca; }
.template-gallery .header-account-link,.template-gallery .header-order-link { color: #31587e; border-color: #b8ccdf; background: rgba(255,255,255,.55); }
.gallery-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 12px; }
.gallery-stage { position: relative; min-height: 620px; overflow: hidden; border-radius: 28px 4px 4px 28px; background: #a9c2d9; }
.gallery-stage > img,.gallery-placeholder { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage > img { filter: saturate(.82) contrast(.94); }
.gallery-placeholder { display: grid; place-items: center; color: #eef6fd; background: linear-gradient(145deg,#9ab7d1,#315372); font-size: 110px; font-weight: 800; }
.gallery-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(10,32,53,.76),rgba(10,32,53,.12) 68%,transparent); }
.gallery-overlay { position: absolute; z-index: 2; left: 55px; bottom: 55px; width: min(600px,70%); color: #fff; }
.gallery-overlay > span { font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.gallery-overlay h1 { margin: 17px 0; font-size: clamp(48px,6.3vw,82px); line-height: .94; letter-spacing: -.075em; }
.gallery-overlay h1 em { display: block; color: #bcd9f3; }
.gallery-overlay p { max-width: 520px; color: #d0deeb; font-size: 12px; line-height: 1.8; }
.gallery-overlay > a { margin-top: 13px; padding: 11px 16px; display: inline-flex; gap: 24px; color: #17324c; border-radius: 99px; background: #fff; font-size: 10px; font-weight: 700; }
.gallery-counter { position: absolute; z-index: 2; right: 25px; bottom: 22px; color: #fff; }
.gallery-counter b { font-size: 34px; }
.gallery-counter span { color: #d5e3ef; font-size: 10px; }
.gallery-rail { display: grid; grid-template-rows: 1fr 1fr .65fr; gap: 12px; }
.gallery-rail > a { position: relative; overflow: hidden; border-radius: 4px 20px 4px 4px; background: #c3d6e6; }
.gallery-rail img,.gallery-rail > a > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; color: #fff; background: #6587a7; font-size: 36px; }
.gallery-rail a small { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px; overflow: hidden; border-radius: 6px; color: #fff; background: rgba(14,37,59,.65); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.gallery-rail > div { padding: 18px; display: flex; flex-direction: column; justify-content: center; border-radius: 4px 4px 20px; color: #fff; background: #31587e; }
.gallery-rail > div span { font-size: 8px; letter-spacing: .12em; }
.gallery-rail > div b { margin: 5px 0; font-size: 34px; }
.gallery-rail > div small { color: #c7d9e9; font-size: 8px; }
.template-gallery .catalog-heading h2 { font-size: 43px; color: #18324b; }
.template-gallery .section-kicker { color: #547da3; }
.template-gallery .product-search { border-color: #b9ccdd; background: rgba(255,255,255,.65); }
.template-gallery .category-tabs a { border-radius: 99px; }
.template-gallery .category-tabs a.active { color: #fff; border-color: #31587e; background: #31587e; }
.template-gallery .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.template-gallery .product-card { border: 0; border-radius: 22px; background: rgba(255,255,255,.7); box-shadow: 0 12px 35px rgba(44,80,112,.08); backdrop-filter: blur(8px); }
.template-gallery .product-cover { aspect-ratio: 4/5; border-radius: 18px; }
.template-gallery .product-info { padding: 15px; }
.template-gallery .product-info h2 { font-size: 13px; }
.template-gallery .product-info p { display: none; }
.template-gallery .stock { color: #59738b; background: #e5eef6; }
.template-gallery .product-category { color: #284a69; border: 0; background: rgba(238,247,255,.87); }
.template-gallery .buy-link { color: #31587e; border-color: #bdd0e1; border-radius: 99px; background: #edf5fb; }
.template-gallery .buy-link:hover { color: #fff; border-color: #31587e; background: #31587e; box-shadow: 0 8px 22px rgba(49,88,126,.2); }
.template-gallery .trust-strip { border-color: #bfd0df; }
.template-gallery .trust-strip article { border-color: #bfd0df; }
.template-gallery .subsite-home { border-color: #bdd0e1; background: rgba(255,255,255,.58); }
.template-gallery .subsite-plan-preview article { border-color: #c1d3e3; background: #f4f9fd; }
.template-gallery .subsite-home { border-radius: 24px; box-shadow: 0 18px 50px rgba(44,80,112,.08); }
.template-gallery .subsite-home .section-kicker { color: #557896; font-family: Georgia,serif; font-style: italic; }
.template-gallery .subsite-home-intro h2 { color: #203e5a; font-family: Georgia,"Songti SC",serif; font-weight: 500; }
.template-gallery .subsite-home-points span {
    color: #466984;
    border-color: #bfd2e2;
    background: rgba(244,249,253,.8);
}
.template-gallery .subsite-home .btn-primary {
    color: #fff;
    border-color: #31587e;
    border-radius: 99px;
    background: #31587e;
    box-shadow: 0 9px 22px rgba(49,88,126,.16);
}
.template-gallery .subsite-home .btn-primary:hover { color: #31587e; background: transparent; }
.template-gallery .subsite-plan-preview article { border-radius: 18px; }
.template-gallery .subsite-plan-preview article.featured {
    border-color: #9ebbd2;
    background: #e8f2f9;
    box-shadow: inset 0 3px 0 #31587e;
}
.template-gallery .subsite-plan-preview article > div span,
.template-gallery .subsite-plan-preview article > strong { color: #274963; font-family: Georgia,"Songti SC",serif; }
.template-gallery .subsite-plan-preview article em {
    color: #fff;
    border-radius: 99px;
    background: #31587e;
}
.template-gallery .subsite-plan-preview li::before { color: #31587e; }
.template-gallery .site-footer { border-color: #bfd0df; background: #dce9f4; }

/* Retro amber terminal template */
.template-terminal {
    --ink: #f0ad37;
    --muted: #927335;
    --line: #57431f;
    --surface: #18150e;
    --soft: #211b0e;
    color: #e9a83a;
    background:
        repeating-linear-gradient(0deg,rgba(255,183,55,.018) 0 1px,transparent 1px 4px),
        #110f0a;
}
.template-terminal .top-notice { color: #9d7937; border-color: #49381c; background: #131008; }
.template-terminal .top-notice span i { background: #d99b31; box-shadow: 0 0 8px rgba(217,155,49,.75); }
.template-terminal .site-header { border-color: #5c451e; background: rgba(18,15,8,.94); backdrop-filter: none; }
.template-terminal .brand strong { color: #f1ad37; font-family: monospace; }
.template-terminal .brand small,.template-terminal .desktop-nav a { color: #8f7138; font-family: monospace; }
.template-terminal .brand-mark { color: #110f09; border-radius: 2px; background: #d89a2d; box-shadow: 0 0 16px rgba(216,154,45,.2); }
.template-terminal .brand-mark::after { display: none; }
.template-terminal .header-account-link,.template-terminal .header-order-link { color: #d99b32; border-color: #6a4d20; border-radius: 2px; background: #18130a; font-family: monospace; }
.terminal-hero { min-height: 540px; display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 14px; overflow: visible; }
.terminal-window { border: 1px solid #8c6828; background: #131009; box-shadow: 0 0 35px rgba(193,133,33,.08),inset 0 0 45px rgba(207,147,42,.025); }
.terminal-bar { padding: 11px 14px; display: flex; justify-content: space-between; border-bottom: 1px solid #6c501f; color: #8e6a2d; background: #1c160b; font: 700 9px monospace; }
.terminal-bar b { color: #d79a31; }
.terminal-screen { padding: 42px 48px; font-family: monospace; }
.terminal-screen > p { margin: 0 0 10px; color: #80612e; font-size: 10px; }
.terminal-screen > p span { color: #dda039; }
.terminal-title { margin: 55px 0 22px; }
.terminal-title small { color: #8f6e30; font-size: 9px; letter-spacing: .18em; }
.terminal-title h1 { margin-top: 13px; color: #e5a536; font: 700 clamp(43px,5.7vw,72px)/1.02 monospace; letter-spacing: -.06em; text-shadow: 0 0 11px rgba(229,165,54,.24); }
.terminal-title h1 em { display: block; color: #ffc258; }
.terminal-title h1 i { animation: terminalBlink 1s steps(1) infinite; font-style: normal; }
@keyframes terminalBlink { 50% { opacity: 0; } }
.terminal-description { max-width: 650px; color: #a47b34 !important; line-height: 1.8; }
.terminal-screen .hero-actions a { padding: 9px 0; color: #dca039; font: 700 10px monospace; }
.terminal-primary { text-shadow: 0 0 8px rgba(220,160,57,.4); }
.terminal-stats { padding: 17px; display: grid; grid-template-rows: auto repeat(3,1fr) 1.4fr; border: 1px solid #6b501f; background: #171209; font-family: monospace; }
.terminal-stats > span { color: #7f612b; font-size: 8px; letter-spacing: .14em; }
.terminal-stats > div { padding: 15px 0; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px dashed #4f3d1d; }
.terminal-stats small { color: #80632e; font-size: 8px; }
.terminal-stats b { color: #e4a436; font-size: 27px; }
.terminal-stats p { align-self: end; color: #72592b; font-size: 8px; line-height: 2; }
.template-terminal .catalog-heading { border-bottom: 1px dashed #694f21; padding-bottom: 20px; }
.template-terminal .catalog-heading h2 { color: #e3a43a; font: 700 37px monospace; letter-spacing: -.04em; }
.template-terminal .catalog-heading p,.template-terminal .catalog-count { color: #80652f; font-family: monospace; }
.template-terminal .section-kicker { color: #8c6b2d; font-family: monospace; }
.template-terminal .product-search { border-color: #61491f; border-radius: 2px; background: #18130a; }
.template-terminal .product-search input { color: #d99c32; font-family: monospace; }
.template-terminal .category-tabs a { color: #85672e; border-radius: 2px; font-family: monospace; }
.template-terminal .category-tabs a.active { color: #151007; border-color: #d79b34; background: #d79b34; }
.template-terminal .product-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.template-terminal .product-card { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: 155px; border: 1px solid #55401c; border-radius: 2px; background: #151109; box-shadow: none; }
.template-terminal .product-card:hover { border-color: #9b7228; }
.template-terminal .product-cover { height: 100%; min-height: 155px; border-right: 1px solid #55401c; border-radius: 0; filter: sepia(.72) saturate(.72) contrast(1.05); }
.template-terminal .product-info { padding: 20px 22px; display: grid; grid-template-columns: minmax(0,1fr) 180px; grid-template-rows: auto auto 1fr; gap: 7px 25px; }
.template-terminal .product-info h2 { grid-column: 1; grid-row: 1; margin: 0; font: 700 16px monospace; }
.template-terminal .product-info h2 a,.template-terminal .price { color: #e1a239; }
.template-terminal .product-info p { grid-column: 1; grid-row: 2; color: #755b2c; font-family: monospace; }
.template-terminal .product-meta { grid-column: 2; grid-row: 1; }
.template-terminal .stock { color: #927035; border: 1px solid #55411e; border-radius: 2px; background: transparent; font-family: monospace; }
.template-terminal .buy-link { grid-column: 2; grid-row: 2/4; align-self: end; color: #d99c34; border-color: #765721; border-radius: 2px; background: #21190b; font-family: monospace; }
.template-terminal .buy-link:hover { color: #140f07; border-color: #d99c34; background: #d99c34; box-shadow: 0 0 18px rgba(217,156,52,.16); }
.template-terminal .purchase-cart { color: currentColor; }
.template-terminal .product-category { color: #d99c34; border-color: #6d5020; border-radius: 2px; background: rgba(17,14,8,.84); font-family: monospace; }
.template-terminal .trust-strip { border-color: #57431f; }
.template-terminal .trust-strip article { border-color: #57431f; }
.template-terminal .trust-strip strong { color: #c48e32; font-family: monospace; }
.template-terminal .trust-strip p { color: #71592b; font-family: monospace; }
.template-terminal .trust-strip article > span { color: #d99c34; font-family: monospace; }
.template-terminal .subsite-home { border-color: #624a1e; border-radius: 2px; background: #171209; box-shadow: none; }
.template-terminal .subsite-plan-preview article { border-color: #57431f; border-radius: 2px; background: #1d170b; }
.template-terminal .subsite-home-intro h2,.template-terminal .subsite-plan-preview strong { color: #d99c34; font-family: monospace; }
.template-terminal .subsite-home-intro > p,.template-terminal .subsite-plan-preview p,.template-terminal .subsite-plan-preview li { color: #765d2e; }
.template-terminal .subsite-home {
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(0deg,rgba(217,156,52,.018) 0,rgba(217,156,52,.018) 1px,transparent 1px,transparent 5px),
        #171209;
    font-family: monospace;
}
.template-terminal .subsite-home::before {
    content: "PARTNER_NODE / CONFIG";
    position: absolute;
    right: 18px;
    top: 13px;
    color: #59441f;
    font-size: 7px;
    letter-spacing: .12em;
}
.template-terminal .subsite-home-intro {
    padding: 18px 18px 20px;
    border-left: 2px solid #b27c26;
    background: rgba(217,156,52,.025);
}
.template-terminal .subsite-home .section-kicker {
    color: #9c712e;
    font-family: monospace;
    letter-spacing: .14em;
}
.template-terminal .subsite-home-intro h2 {
    color: #d99c34;
    text-shadow: 0 0 18px rgba(217,156,52,.08);
}
.template-terminal .subsite-home-points { gap: 7px; }
.template-terminal .subsite-home-points span {
    padding: 6px 9px;
    color: #a87c34;
    border: 1px dashed #634b21;
    border-radius: 2px;
    background: #1d170c;
    font-family: monospace;
}
.template-terminal .subsite-home-points span::before { content: "[ "; color: #6d5225; }
.template-terminal .subsite-home-points span::after { content: " ]"; color: #6d5225; }
.template-terminal .subsite-home .btn-primary {
    padding: 11px 15px;
    color: #171108;
    border: 1px solid #d99c34;
    border-radius: 2px;
    background: #d99c34;
    box-shadow: 0 0 18px rgba(217,156,52,.1);
    font-family: monospace;
    font-weight: 800;
}
.template-terminal .subsite-home .btn-primary::before { content: "> "; }
.template-terminal .subsite-home .btn-primary:hover {
    color: #e0a239;
    background: #21190b;
    box-shadow: 0 0 22px rgba(217,156,52,.14);
}
.template-terminal .subsite-plan-preview { gap: 10px; }
.template-terminal .subsite-plan-preview article {
    position: relative;
    border-color: #57431f;
    background: rgba(29,23,11,.92);
}
.template-terminal .subsite-plan-preview article::before {
    content: "PLAN / BASIC";
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #3f3219;
    font-size: 7px;
}
.template-terminal .subsite-plan-preview article.featured {
    border-color: #896326;
    background: #20190c;
    box-shadow: inset 0 2px 0 #b27c26;
}
.template-terminal .subsite-plan-preview article.featured::before { content: "PLAN / ADVANCED"; }
.template-terminal .subsite-plan-preview article > div span {
    color: #c58d31;
    font-family: monospace;
}
.template-terminal .subsite-plan-preview article em {
    padding: 4px 7px;
    color: #171108;
    border: 1px solid #bd842b;
    border-radius: 2px;
    background: #bd842b;
    font-family: monospace;
}
.template-terminal .subsite-plan-preview article > strong { color: #e0a239; letter-spacing: .02em; }
.template-terminal .subsite-plan-preview article > strong small { color: #9b702e; }
.template-terminal .subsite-plan-preview article p {
    color: #7d622f;
    border-bottom: 1px dashed #47371a;
    padding-bottom: 12px;
}
.template-terminal .subsite-plan-preview li { color: #85672f; font-family: monospace; }
.template-terminal .subsite-plan-preview li::before {
    content: ">";
    color: #d99c34;
    font-weight: 400;
}
.template-terminal .site-footer { color: #a57c32; border-color: #57431f; background: #151108; }

@media (max-width: 920px) {
    .mono-hero { grid-template-columns: 100px minmax(0,1fr); }
    .mono-ledger { display: none; }
    .gallery-hero { grid-template-columns: 1fr 170px; }
    .template-gallery .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .terminal-hero { grid-template-columns: 1fr; }
    .terminal-stats { grid-template-columns: auto repeat(3,1fr); grid-template-rows: auto; }
    .terminal-stats p { display: none; }
}
@media (max-width: 680px) {
    .mono-hero { grid-template-columns: 62px minmax(0,1fr); min-height: 450px; }
    .mono-index { padding: 14px 8px; }
    .mono-index b { font-size: 37px; }
    .mono-copy { padding: 28px 19px; }
    .mono-copy h1 { font-size: 46px; }
    .template-mono .product-grid { grid-template-columns: 1fr; }
    .template-mono .product-card { grid-template-columns: 40% 60%; }
    .template-mono .product-cover { min-height: 220px; }
    .gallery-hero { grid-template-columns: 1fr; min-height: 0; }
    .gallery-stage { min-height: 520px; border-radius: 20px; }
    .gallery-overlay { left: 24px; bottom: 35px; width: calc(100% - 48px); }
    .gallery-overlay h1 { font-size: 48px; }
    .gallery-rail { display: none; }
    .template-gallery .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .terminal-screen { padding: 28px 20px; }
    .terminal-title { margin-top: 42px; }
    .terminal-title h1 { font-size: 42px; }
    .terminal-stats { grid-template-columns: repeat(3,1fr); }
    .terminal-stats > span { display: none; }
    .template-terminal .product-card { grid-template-columns: 120px minmax(0,1fr); }
    .template-terminal .product-info { padding: 13px; display: flex; flex-direction: column; }
    .template-terminal .product-meta { order: -1; }
}
@media (max-width: 430px) {
    .template-gallery .product-grid { grid-template-columns: 1fr; }
    .template-mono .product-card { grid-template-columns: 1fr; }
    .template-mono .product-cover { min-height: 270px; border-right: 0; border-bottom: 1px solid #111; }
    .template-terminal .product-card { grid-template-columns: 1fr; }
    .template-terminal .product-cover { min-height: 210px; border-right: 0; border-bottom: 1px solid #55401c; }
}

/* True template rendering layer */
.ui-icon { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.template-product-image { width: 100%; height: 100%; display: block; overflow: hidden; }
.template-product-image > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
a:hover > .template-product-image > img { transform: scale(1.035); }
.template-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 7px; color: #596d94; background: #e8eef8; }
.template-image-fallback b { font-size: 40px; }
.template-image-fallback small { font-size: 8px; letter-spacing: .12em; }
.template-search { min-width: 240px; height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.template-search .ui-icon { width: 15px; height: 15px; color: var(--muted); }
.template-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; font-size: 11px; }
.template-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.template-categories a { padding: 9px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 650; }
.template-categories a.active { color: #48649c; border-color: #cfdbed; background: #edf2fa; }
.template-assurances { width: min(1120px,calc(100% - 40px)); margin: 0 auto 80px; display: grid; grid-template-columns: repeat(3,1fr); }
.template-assurances article { padding: 24px 26px; display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.template-assurances article + article { border-left: 1px solid var(--line); }
.template-assurances article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #5873ad; background: #e9eef8; }
.template-assurances article small { color: #8993a3; font-size: 8px; }
.template-assurances article strong { margin: 2px 0 3px; display: block; font-size: 12px; }
.template-assurances article p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

/* Template-specific headers */
.night-system-bar,.editorial-topline,.pop-topline,.mono-topline,.gallery-topline,.terminal-topline {
    min-height: 34px;
    padding: 0 max(20px,calc((100% - 1120px)/2));
    display: grid;
    grid-template-columns: 1fr minmax(0,2fr) 1fr;
    align-items: center;
    gap: 20px;
    font-size: 9px;
}
.night-system-bar p,.editorial-topline p,.pop-topline p,.mono-topline p,.gallery-topline p,.terminal-topline p { margin: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.night-system-bar b,.editorial-topline b,.pop-topline b,.mono-topline b,.gallery-topline b,.terminal-topline b { justify-self: end; font-size: inherit; }
.night-system-bar { color: #68738c; border-bottom: 1px solid #20283a; background: #080c15; font-family: monospace; }
.night-system-bar span { display: flex; align-items: center; gap: 7px; }
.night-system-bar span i { width: 6px; height: 6px; border-radius: 50%; background: #7770ef; box-shadow: 0 0 9px #7770ef; }
.night-header-inner { width: min(1120px,calc(100% - 40px)); height: 82px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.night-brand { display: flex; align-items: center; gap: 12px; }
.night-brand > span:last-child { display: grid; gap: 3px; }
.night-brand small { color: #626f8b; font: 7px monospace; letter-spacing: .15em; }
.night-brand strong { color: #edf1fc; font-size: 15px; }
.night-brand-mark { width: 40px; height: 40px; border-radius: 8px; color: #cfd7fb; background: #20294a; }
.night-main-nav { display: flex; align-items: stretch; height: 50px; border: 1px solid #2a3349; border-radius: 10px; background: #121928; }
.night-main-nav a { min-width: 135px; padding: 0 18px; display: flex; align-items: center; gap: 10px; color: #77839d; border-right: 1px solid #2a3349; }
.night-main-nav a:last-child { border-right: 0; }
.night-main-nav a.active { color: #e7ebfa; background: #1a2236; }
.night-main-nav .ui-icon { width: 17px; }
.night-main-nav span { display: grid; gap: 2px; font-size: 10px; font-weight: 700; }
.night-main-nav small { color: #59647d; font: 7px monospace; }
.night-header-actions { justify-self: end; display: flex; gap: 7px; }
.night-header-actions a { min-width: 38px; height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #aeb8d0; border: 1px solid #303950; border-radius: 8px; background: #151c2b; font-size: 9px; }
.night-header-actions .ui-icon { width: 15px; }
.night-menu { color: #dfe4f5; }
.night-menu i,.gallery-menu i { width: 20px; height: 1px; display: block; background: currentColor; }
.night-menu i + i,.gallery-menu i + i { margin-top: 5px; width: 13px; margin-left: auto; }

.editorial-topline { color: #7f776c; border-bottom: 1px solid #d2c9bc; background: #e9e2d6; font-family: Georgia,serif; letter-spacing: .1em; }
.editorial-header-inner { width: min(1120px,calc(100% - 40px)); min-height: 96px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.editorial-header-left,.editorial-header-right { display: flex; gap: 22px; }
.editorial-header-left a,.editorial-header-right a { color: #5f594f; font-size: 10px; }
.editorial-header-right { justify-self: end; }
.editorial-brand { display: flex; align-items: center; gap: 10px; text-align: center; }
.editorial-brand > span:last-child { display: grid; }
.editorial-brand strong { font: 600 21px Georgia,"Songti SC",serif; letter-spacing: .03em; }
.editorial-brand small { color: #8a8175; font-size: 8px; letter-spacing: .14em; }
.editorial-brand-mark { width: 34px; height: 34px; border-radius: 50%; color: #f5eee4; background: #2f2b25; }
.editorial-menu { color: #3c3831; font: 700 9px Georgia,serif; }

.pop-topline { color: #443c58; border-bottom: 1.5px solid #332e49; background: #ffbd64; font-weight: 750; }
.pop-header-inner { width: min(1120px,calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 26px; }
.pop-header-brand { display: flex; align-items: center; gap: 10px; }
.pop-header-brand strong { font-size: 17px; }
.pop-brand-mark { width: 38px; height: 38px; border: 1.5px solid #332e49; border-radius: 11px; color: #fff; background: #7654d8; box-shadow: 3px 3px 0 #332e49; }
.pop-header-nav { margin-left: auto; display: flex; gap: 6px; }
.pop-header-nav a { padding: 9px 14px; color: #332e49; border: 1.5px solid #332e49; border-radius: 99px; background: #fff; font-size: 10px; font-weight: 750; }
.pop-header-nav a:first-child { color: #fff; background: #7654d8; }
.pop-header-icons { display: flex; gap: 7px; }
.pop-header-icons a { width: 37px; height: 37px; display: grid; place-items: center; color: #332e49; border: 1.5px solid #332e49; border-radius: 50%; background: #f5f0ff; box-shadow: 2px 2px 0 #332e49; }
.pop-header-icons .ui-icon { width: 16px; }
.pop-menu { color: #332e49; font-size: 24px; }

.mono-topline { color: #111; border-bottom: 1px solid #111; background: #e4e4df; font-family: monospace; }
.mono-header-inner { width: min(1120px,calc(100% - 40px)); min-height: 84px; margin: auto; display: flex; align-items: stretch; border-left: 1px solid #111; border-right: 1px solid #111; }
.mono-header-brand { min-width: 380px; display: flex; align-items: center; color: #111; }
.mono-header-brand > span { width: 82px; height: 100%; display: grid; place-items: center; color: #fff; background: #111; font: 800 25px Arial,sans-serif; }
.mono-header-brand div { padding: 0 18px; display: grid; align-content: center; gap: 3px; }
.mono-header-brand strong { font: 800 17px Arial,"PingFang SC",sans-serif; }
.mono-header-brand small { font: 7px monospace; letter-spacing: .15em; }
.mono-header-nav { margin-left: auto; display: flex; }
.mono-header-nav a { min-width: 130px; padding: 0 16px; display: flex; align-items: center; gap: 9px; color: #111; border-left: 1px solid #111; font: 700 9px monospace; }
.mono-header-nav b { font-size: 8px; }
.mono-header-nav a:hover { color: #fff; background: #111; }
.mono-menu { color: #111; font: 700 12px monospace; }

.gallery-topline { color: #526c84; border-bottom: 1px solid #c5d7e6; background: #dce9f4; font-family: "Helvetica Neue",sans-serif; letter-spacing: .08em; }
.gallery-header-inner { width: min(1120px,calc(100% - 40px)); min-height: 86px; margin: auto; display: flex; align-items: center; gap: 32px; }
.gallery-header-brand { display: flex; align-items: center; gap: 11px; }
.gallery-header-brand > span:last-child { display: grid; gap: 2px; }
.gallery-header-brand strong { color: #18344f; font-size: 17px; }
.gallery-header-brand small { color: #718aa1; font: 8px Georgia,serif; font-style: italic; }
.gallery-brand-mark { width: 39px; height: 39px; color: #fff; border-radius: 50% 50% 50% 12px; background: #31587e; }
.gallery-header-nav { margin-left: auto; display: flex; gap: 26px; }
.gallery-header-nav a { color: #536f88; font: 10px Georgia,serif; font-style: italic; }
.gallery-header-actions { display: flex; gap: 7px; }
.gallery-header-actions a { padding: 9px 12px; display: flex; align-items: center; gap: 7px; color: #31587e; border: 1px solid #b8ccde; border-radius: 99px; background: rgba(255,255,255,.55); font-size: 9px; }
.gallery-header-actions .ui-icon { width: 14px; }
.gallery-menu { color: #31587e; }

.terminal-topline { color: #86672e; border-bottom: 1px solid #5a441e; background: #100d07; font-family: monospace; }
.terminal-header-inner { width: min(1120px,calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 30px; font-family: monospace; }
.terminal-header-brand { display: flex; align-items: center; color: #e0a039; }
.terminal-header-brand span { color: #725627; font-size: 9px; }
.terminal-header-brand strong { margin-left: 7px; font-size: 15px; }
.terminal-header-brand i { animation: terminalBlink 1s steps(1) infinite; }
.terminal-header-nav { margin-left: auto; display: flex; }
.terminal-header-nav a { padding: 10px 14px; color: #8e6d31; border-left: 1px dashed #4b391c; font-size: 9px; }
.terminal-header-nav a:hover { color: #e2a23a; background: #1b160c; }
.terminal-menu { color: #d99c34; font: 700 9px monospace; }

/* Midnight catalogue: dashboard cards */
.night-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 1px solid #293149; }
.night-catalog-head > div:first-child > span { color: #716bea; font: 8px monospace; letter-spacing: .15em; }
.night-catalog-head h2 { margin: 9px 0 6px; color: #f0f3fd; font-size: 34px; }
.night-catalog-head p { margin: 0; color: #758097; font-size: 10px; }
.night-head-tools { display: flex; align-items: center; gap: 12px; }
.night-head-tools > span { color: #5f6981; font: 8px monospace; }
.night-search { border-color: #30384d; background: #111827; }
.night-search input { color: #e9edfa; }
.night-filter-line { padding: 14px 0; display: grid; grid-template-columns: 170px 1fr; align-items: center; border-bottom: 1px solid #293149; }
.night-filter-line > span { display: flex; align-items: center; gap: 8px; color: #5f6980; font: 8px monospace; }
.night-filter-line .ui-icon { width: 14px; }
.night-categories a { color: #747f97; border-radius: 4px; font: 9px monospace; }
.night-categories a.active { color: #f1f3fd; border-color: #514ca9; background: #24234d; }
.night-product-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.night-product-card { overflow: hidden; border: 1px solid #293148; border-radius: 11px; background: #111725; }
.night-product-card > header { height: 34px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #293148; color: #5d6880; font: 7px monospace; }
.night-product-card > header b { display: flex; align-items: center; gap: 5px; color: #7b86a0; font-size: 7px; }
.night-product-card > header b i { width: 5px; height: 5px; border-radius: 50%; background: #6e68e5; box-shadow: 0 0 7px #6e68e5; }
.night-product-card > header b.offline i { background: #5d6370; box-shadow: none; }
.night-product-visual { height: 210px; position: relative; display: block; padding: 10px; background: #171e2d; }
.night-product-visual .template-product-image { border-radius: 6px; }
.night-product-visual > span:last-child { position: absolute; left: 18px; bottom: 18px; padding: 5px 7px; color: #d3d8ea; border: 1px solid #46506a; border-radius: 4px; background: rgba(15,21,35,.78); font: 7px monospace; }
.night-product-body { padding: 16px; }
.night-product-body > div:first-child { display: flex; align-items: baseline; }
.night-product-body > div small { color: #7e87a0; font-size: 10px; }
.night-product-body > div strong { color: #f1f3fb; font-size: 23px; }
.night-product-body h3 { margin: 9px 0; color: #e5e9f5; font-size: 13px; }
.night-product-body p { display: flex; align-items: center; gap: 5px; color: #68738b; font-size: 7px; }
.night-product-body p .ui-icon { width: 11px; height: 11px; }
.night-product-body p span { width: 1px; height: 10px; margin: 0 4px; background: #333c52; }
.night-buy { height: 38px; margin-top: 14px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: #cbd1ef; border: 1px solid #3b3976; border-radius: 6px; background: #222248; font: 8px monospace; }
.night-buy .ui-icon { width: 14px; }
.night-buy:hover { color: #fff; border-color: #6862df; background: #5e58cd; }

/* Magazine catalogue: independent editorial stories */
.magazine-masthead { border-top: 1px solid #2b2822; border-bottom: 1px solid #2b2822; padding: 14px 0 20px; }
.magazine-masthead > span { font: 8px Georgia,serif; letter-spacing: .19em; }
.magazine-masthead > div { display: flex; align-items: end; justify-content: space-between; }
.magazine-masthead h2 { margin: 14px 0 0; font: 500 46px Georgia,"Songti SC",serif; }
.magazine-masthead b { font: 500 62px Georgia,serif; }
.magazine-masthead p { max-width: 530px; margin: 7px 0 0; color: #756d62; font-size: 10px; }
.magazine-tools { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #c9c0b3; }
.magazine-categories a { padding: 6px 0; margin-right: 18px; border-radius: 0; color: #776f64; font: 10px Georgia,"Songti SC",serif; }
.magazine-categories a.active { color: #9d644f; border: 0; border-bottom: 1px solid #9d644f; background: transparent; }
.magazine-search { min-width: 190px; height: 34px; border: 0; border-bottom: 1px solid #8f8679; border-radius: 0; background: transparent; }
.magazine-products { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 35px; }
.magazine-product { padding: 30px 0; display: grid; grid-template-columns: 48% 1fr; gap: 22px; border-bottom: 1px solid #c7beb1; }
.magazine-product.lead-story { grid-column: 1/-1; grid-template-columns: 57% 1fr; min-height: 500px; border-bottom-color: #2e2b25; }
.magazine-photo { min-height: 260px; position: relative; display: block; overflow: hidden; background: #ddd3c4; }
.lead-story .magazine-photo { min-height: 500px; }
.magazine-photo > span:last-child { position: absolute; right: 10px; top: 9px; color: #fff; font: 500 17px Georgia,serif; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.magazine-copy { display: flex; flex-direction: column; justify-content: end; }
.magazine-copy > span { color: #a06752; font-size: 7px; letter-spacing: .1em; }
.magazine-copy h3 { margin: 12px 0; font: 500 22px/1.25 Georgia,"Songti SC",serif; }
.lead-story .magazine-copy h3 { font-size: 38px; }
.magazine-copy p { display: -webkit-box; overflow: hidden; color: #756d62; font-size: 10px; line-height: 1.8; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.magazine-copy > div { margin-top: 20px; padding-top: 13px; display: grid; grid-template-columns: 1fr auto 38px; align-items: center; gap: 12px; border-top: 1px solid #bdb3a5; }
.magazine-copy > div strong { font: 500 20px Georgia,serif; }
.magazine-copy > div small { color: #82796d; font-size: 8px; }
.magazine-copy > div a { width: 34px; height: 34px; display: grid; place-items: center; color: #f4eee5; border-radius: 50%; background: #2e2b25; }
.magazine-copy > div a .ui-icon { width: 14px; }

/* Candy catalogue: sticker product cards */
.candy-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.candy-heading > div > span { color: #7654d8; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.candy-heading h2 { margin: 9px 0 6px; font-size: 42px; text-shadow: 2px 2px #e4dbff; }
.candy-heading p { margin: 0; color: #6d6580; font-size: 10px; }
.candy-search { border: 1.5px solid #332e49; border-radius: 99px; box-shadow: 3px 3px 0 #332e49; }
.candy-categories { margin: 18px 0 20px; }
.candy-categories a { color: #332e49; border: 1.5px solid #332e49; border-radius: 99px; background: #fff; box-shadow: 2px 2px 0 #332e49; }
.candy-categories a.active { color: #fff; background: #7654d8; }
.candy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.candy-card { position: relative; padding: 10px; border: 1.5px solid #332e49; border-radius: 20px; box-shadow: 6px 6px 0 #332e49; }
.candy-tone-1{background:#e1d7ff}.candy-tone-2{background:#ffe0c2}.candy-tone-3{background:#ffd8e0}.candy-tone-4{background:#d7e7ff}
.candy-number { position: absolute; z-index: 2; right: 18px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid #332e49; border-radius: 50%; background: #ffbd64; font-size: 9px; font-weight: 900; transform: rotate(7deg); }
.candy-picture { height: 250px; position: relative; display: block; overflow: hidden; border: 1.5px solid #332e49; border-radius: 13px; background: #fff; }
.candy-picture > b { position: absolute; left: 10px; bottom: 10px; padding: 6px 9px; color: #332e49; border: 1.5px solid #332e49; border-radius: 99px; background: #fff; font-size: 8px; }
.candy-body { padding: 15px 7px 7px; }
.candy-body > div { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.candy-body h3 { margin: 0; font-size: 14px; }
.candy-body > div span { color: #675f78; font-size: 8px; }
.candy-body > strong { margin: 12px 0; display: block; font-size: 24px; }
.candy-body > a { min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 1.5px solid #332e49; border-radius: 10px; background: #7654d8; box-shadow: 3px 3px 0 #332e49; font-size: 10px; font-weight: 800; }
.candy-body > a .ui-icon { width: 16px; }

/* Dossier catalogue: actual table rows */
.dossier-head { display: grid; grid-template-columns: 1.2fr .8fr 260px; align-items: end; gap: 30px; padding-bottom: 20px; border-bottom: 2px solid #111; }
.dossier-head span { font: 8px monospace; letter-spacing: .15em; }
.dossier-head h2 { margin: 8px 0 0; font: 850 44px Arial,"PingFang SC",sans-serif; letter-spacing: -.06em; }
.dossier-head > p { margin: 0; color: #565651; font-size: 10px; line-height: 1.7; }
.dossier-search { border: 1px solid #111; border-radius: 0; background: transparent; }
.dossier-index { min-height: 50px; display: grid; grid-template-columns: 95px 1fr auto; align-items: center; border-bottom: 1px solid #111; }
.dossier-index > span,.dossier-index > b { font: 8px monospace; }
.dossier-categories a { padding: 6px 0; margin-right: 18px; border-radius: 0; color: #555; font: 9px monospace; }
.dossier-categories a.active { color: #111; border: 0; border-bottom: 1px solid #111; background: transparent; }
.dossier-table { border-bottom: 2px solid #111; }
.dossier-table > header,.dossier-row { display: grid; grid-template-columns: 55px 105px minmax(0,1fr) 85px 110px 90px; align-items: center; }
.dossier-table > header { min-height: 34px; border-bottom: 1px solid #111; font: 7px monospace; }
.dossier-row { min-height: 115px; border-bottom: 1px solid #aaa9a3; }
.dossier-row > b:first-child { font: 800 20px Arial,sans-serif; }
.dossier-thumb { width: 82px; height: 82px; display: block; filter: grayscale(1); }
.dossier-row > div { display: grid; gap: 4px; }
.dossier-row > div small { font: 7px monospace; }
.dossier-row > div strong { font-size: 14px; }
.dossier-row > div p { margin: 0; color: #6d6d68; font-size: 8px; }
.dossier-row > span { font: 700 12px monospace; }
.dossier-row > strong { font-size: 16px; }
.dossier-row > a:last-child { display: flex; align-items: center; gap: 8px; color: #111; font: 700 9px monospace; }
.dossier-row > a:last-child .ui-icon { width: 14px; }

/* Gallery wall: masonry-like cards */
.wall-head { display: grid; grid-template-columns: 1fr .9fr; align-items: end; gap: 50px; padding-bottom: 24px; border-bottom: 1px solid #b9ccdc; }
.wall-head > div > span { color: #527b9f; font: 8px Georgia,serif; letter-spacing: .16em; }
.wall-head h2 { margin: 10px 0 6px; color: #173650; font: 500 45px Georgia,"Songti SC",serif; }
.wall-head p { margin: 0; color: #6c8092; font-size: 10px; }
.wall-head aside { display: grid; gap: 10px; }
.wall-search { width: 100%; border-color: #b8cbdb; border-radius: 99px; background: rgba(255,255,255,.55); }
.wall-categories { justify-content: flex-end; }
.wall-categories a { padding: 5px 0; margin-left: 15px; color: #607b92; border-radius: 0; font: 9px Georgia,serif; font-style: italic; }
.wall-categories a.active { color: #214867; border: 0; border-bottom: 1px solid #31587e; background: transparent; }
.product-wall { margin-top: 18px; display: grid; grid-template-columns: repeat(12,1fr); gap: 15px; }
.wall-card { grid-column: span 4; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.68); box-shadow: 0 14px 36px rgba(45,77,104,.08); }
.wall-card.wall-size-0,.wall-card.wall-size-3 { grid-column: span 6; }
.wall-image { height: 300px; position: relative; display: block; overflow: hidden; }
.wall-size-0 .wall-image,.wall-size-3 .wall-image { height: 390px; }
.wall-image > span:not(.template-product-image) { position: absolute; left: 14px; top: 14px; padding: 6px 8px; color: #234865; border-radius: 99px; background: rgba(241,248,253,.86); font: 7px Georgia,serif; }
.wall-image > div { position: absolute; right: 14px; bottom: 14px; padding: 9px 11px; display: grid; color: #fff; border-radius: 10px; background: rgba(18,48,72,.74); backdrop-filter: blur(8px); }
.wall-image > div small { font-size: 6px; }
.wall-image > div b { font-size: 17px; }
.wall-card footer { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wall-card footer > div { min-width: 0; display: grid; gap: 4px; }
.wall-card footer strong { overflow: hidden; color: #1f405c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wall-card footer small { color: #71879a; font-size: 8px; }
.wall-card footer > a { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #31587e; }
.wall-card footer .ui-icon { width: 14px; }

/* Command catalogue: true terminal rows */
.command-head { display: grid; grid-template-columns: 1fr 290px; align-items: end; gap: 30px; padding-bottom: 20px; border-bottom: 1px dashed #634b20; }
.command-head span { color: #80632d; font: 8px monospace; }
.command-head h2 { margin: 11px 0 7px; color: #e1a139; font: 700 34px monospace; }
.command-head h2 i { animation: terminalBlink 1s steps(1) infinite; }
.command-head p { margin: 0; color: #735a2d; font: 9px/1.7 monospace; }
.command-search { border-color: #674c1e; border-radius: 2px; background: #18130a; }
.command-search input { color: #d79a32; font-family: monospace; }
.command-filters { min-height: 48px; display: grid; grid-template-columns: 95px 1fr auto; align-items: center; border-bottom: 1px dashed #59431e; color: #795d2b; font: 8px monospace; }
.command-categories a { padding: 5px 8px; color: #795d2b; border-radius: 2px; font: 8px monospace; }
.command-categories a.active { color: #130f08; border-color: #d39730; background: #d39730; }
.command-list > header,.command-row { display: grid; grid-template-columns: 70px minmax(210px,1.4fr) 1fr 80px 100px 120px; align-items: center; }
.command-list > header { min-height: 35px; color: #6e562a; border-bottom: 1px solid #5a441f; font: 7px monospace; }
.command-row { min-height: 84px; color: #8c6b2f; border-bottom: 1px dashed #49381b; font: 9px monospace; }
.command-row > div { display: flex; align-items: center; gap: 12px; }
.command-row .template-product-image { width: 54px; height: 54px; flex: 0 0 auto; filter: sepia(.8) saturate(.65); }
.command-row > div strong { color: #c68f32; font-size: 10px; }
.command-row > b.ok { color: #e0a038; }
.command-row > b.zero { color: #68532d; }
.command-row > strong { color: #d09735; }
.command-row > a { display: flex; align-items: center; gap: 8px; color: #d99c34; }
.command-row > a .ui-icon { width: 14px; }
.night-buy.disabled,.magazine-copy a.disabled,.candy-body > a.disabled,.dossier-row > a.disabled,.wall-card a.disabled,.command-row > a.disabled { opacity: .42; pointer-events: none; }

/* Assurance structures are template-specific too */
.assurances-midnight { gap: 10px; }
.assurances-midnight article { border: 1px solid #293148; border-radius: 8px; background: #111725; }
.assurances-midnight article + article { border-left: 1px solid #293148; }
.assurances-midnight article > span { color: #7a74ed; background: #222248; }
.assurances-midnight strong { color: #dde2f2; }
.assurances-midnight p { color: #68738b !important; }
.assurances-editorial article { align-items: flex-start; border-color: #2e2b25; }
.assurances-editorial article > span { width: auto; height: auto; color: #9d644f; background: transparent; }
.assurances-editorial article > span .ui-icon { width: 28px; height: 28px; stroke-width: 1.2; }
.assurances-editorial article strong { font: 500 16px Georgia,"Songti SC",serif; }
.assurances-pop { gap: 14px; border: 0; }
.assurances-pop article { border: 1.5px solid #332e49; border-radius: 15px; background: #fff; box-shadow: 4px 4px 0 #332e49; }
.assurances-pop article:nth-child(2) { background: #ffead1; transform: rotate(-1deg); }
.assurances-pop article:nth-child(3) { background: #e2d9ff; transform: rotate(1deg); }
.assurances-pop article > span { color: #fff; border: 1px solid #332e49; background: #7654d8; }
.assurances-mono { border: 2px solid #111; }
.assurances-mono article { border: 0; background: transparent; }
.assurances-mono article + article { border-left: 1px solid #111; }
.assurances-mono article > span { color: #fff; border-radius: 0; background: #111; }
.assurances-mono article small,.assurances-mono article p { font-family: monospace; }
.assurances-gallery { gap: 12px; }
.assurances-gallery article { border: 1px solid #bdd0df; border-radius: 18px; background: rgba(255,255,255,.55); }
.assurances-gallery article > span { color: #31587e; border-radius: 50% 50% 50% 12px; background: #dbe9f4; }
.assurances-terminal { border-top: 1px dashed #60491f; border-bottom: 1px dashed #60491f; }
.assurances-terminal article { border: 0; font-family: monospace; }
.assurances-terminal article + article { border-left: 1px dashed #49381b; }
.assurances-terminal article > span { color: #d99c34; border: 1px solid #61491f; border-radius: 2px; background: #1d170c; }
.assurances-terminal strong { color: #c78f31; }
.assurances-terminal p { color: #70572a !important; }

/* Customer-service surface follows each template language */
.template-midnight .ai-new-message,.template-midnight .ai-launcher,.template-midnight .ai-panel { color: #dce2f2; border-color: #303950; background: #151c2b; }
.template-midnight .ai-notice-icon,.template-midnight .ai-launcher-icon,.template-midnight .ai-agent-avatar { color: #8d88f3; background: #252553; }
.template-midnight .ai-new-message small,.template-midnight .ai-launcher small { color: #758198; }
.template-editorial .ai-new-message,.template-editorial .ai-launcher,.template-editorial .ai-panel { border-color: #bdb3a5; border-radius: 0; background: #f3ede3; box-shadow: 8px 8px 0 rgba(49,45,38,.12); }
.template-editorial .ai-notice-icon,.template-editorial .ai-launcher-icon,.template-editorial .ai-agent-avatar { color: #f4eee5; border-radius: 50%; background: #9d644f; }
.template-editorial .ai-launcher-label,.template-editorial .ai-new-message strong { font-family: Georgia,"Songti SC",serif; }
.template-pop .ai-new-message,.template-pop .ai-launcher,.template-pop .ai-panel { border: 1.5px solid #332e49; background: #fff; box-shadow: 5px 5px 0 #332e49; }
.template-pop .ai-notice-icon,.template-pop .ai-launcher-icon,.template-pop .ai-agent-avatar { color: #fff; border: 1px solid #332e49; background: #7654d8; }
.template-pop .ai-launcher { border-radius: 15px; }
.template-mono .ai-new-message,.template-mono .ai-launcher,.template-mono .ai-panel { border: 1px solid #111; border-radius: 0; color: #111; background: #f5f5f1; box-shadow: 5px 5px 0 #111; }
.template-mono .ai-notice-icon,.template-mono .ai-launcher-icon,.template-mono .ai-agent-avatar { color: #fff; border-radius: 0; background: #111; }
.template-mono .ai-launcher-label,.template-mono .ai-new-message { font-family: monospace; }
.template-gallery .ai-new-message,.template-gallery .ai-launcher,.template-gallery .ai-panel { border-color: rgba(164,188,210,.85); background: rgba(244,249,253,.86); box-shadow: 0 18px 50px rgba(38,70,97,.15); backdrop-filter: blur(18px); }
.template-gallery .ai-notice-icon,.template-gallery .ai-launcher-icon,.template-gallery .ai-agent-avatar { color: #fff; border-radius: 50% 50% 50% 12px; background: #31587e; }
.template-terminal .ai-new-message,.template-terminal .ai-launcher,.template-terminal .ai-panel { color: #c99135; border: 1px solid #684d1e; border-radius: 2px; background: #18130a; box-shadow: 0 0 24px rgba(205,143,38,.1); font-family: monospace; }
.template-terminal .ai-notice-icon,.template-terminal .ai-launcher-icon,.template-terminal .ai-agent-avatar { color: #151007; border-radius: 2px; background: #d99c34; }
.template-terminal .ai-new-message small,.template-terminal .ai-launcher small { color: #755b2c; }

@media (max-width: 900px) {
    .home-template .menu-toggle { display: block; }
    .night-main-nav,.editorial-header-left,.editorial-header-right,.pop-header-nav,.mono-header-nav,.gallery-header-nav,.gallery-header-actions,.terminal-header-nav { display: none; }
    .night-header-inner,.editorial-header-inner { grid-template-columns: 1fr auto; }
    .night-header-actions { margin-left: auto; }
    .menu-toggle { margin-left: auto; }
    .mono-header-brand { min-width: 0; }
    .night-product-grid,.candy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .magazine-products { grid-template-columns: 1fr; }
    .magazine-product.lead-story { grid-column: auto; }
    .dossier-table > header { display: none; }
    .dossier-row { grid-template-columns: 45px 90px minmax(0,1fr) 65px 95px 65px; }
    .command-list > header { display: none; }
    .command-row { grid-template-columns: 50px minmax(180px,1fr) 80px 60px 90px 90px; }
}
@media (max-width: 680px) {
    .night-system-bar,.editorial-topline,.pop-topline,.mono-topline,.gallery-topline,.terminal-topline { grid-template-columns: 1fr; min-height: 27px; padding: 0 14px; }
    .night-system-bar p,.night-system-bar b,.editorial-topline p,.editorial-topline b,.pop-topline p,.pop-topline b,.mono-topline p,.mono-topline b,.gallery-topline p,.gallery-topline b,.terminal-topline p,.terminal-topline b { display: none; }
    .night-header-inner,.editorial-header-inner,.pop-header-inner,.mono-header-inner,.gallery-header-inner,.terminal-header-inner { width: calc(100% - 28px); min-height: 68px; height: 68px; }
    .night-header-actions a span { display: none; }
    .editorial-brand { justify-self: start; }
    .editorial-brand strong { font-size: 17px; }
    .mono-header-inner { border: 0; }
    .mono-header-brand > span { width: 55px; }
    .template-assurances { width: calc(100% - 28px); grid-template-columns: 1fr; }
    .template-assurances article + article { border-left: 0; }
    .night-catalog-head,.candy-heading,.magazine-tools,.wall-head { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .night-head-tools { display: grid; }
    .night-head-tools > span { display: none; }
    .night-filter-line { grid-template-columns: 1fr; gap: 10px; }
    .night-product-grid,.candy-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .night-product-visual,.candy-picture { height: 170px; }
    .night-product-body { padding: 11px; }
    .night-product-body p { display: none; }
    .magazine-masthead h2 { font-size: 36px; }
    .magazine-masthead b { font-size: 45px; }
    .magazine-product,.magazine-product.lead-story { min-height: 0; grid-template-columns: 1fr; }
    .magazine-photo,.lead-story .magazine-photo { min-height: 360px; }
    .lead-story .magazine-copy h3 { font-size: 26px; }
    .dossier-head { grid-template-columns: 1fr; }
    .dossier-head > p { display: none; }
    .dossier-index { grid-template-columns: 1fr; gap: 9px; padding: 12px 0; }
    .dossier-index > span,.dossier-index > b { display: none; }
    .dossier-row { padding: 11px 0; grid-template-columns: 35px 68px minmax(0,1fr) 65px; gap: 7px; }
    .dossier-thumb { width: 60px; height: 60px; }
    .dossier-row > span { display: none; }
    .dossier-row > strong { font-size: 13px; }
    .dossier-row > a:last-child { justify-self: end; font-size: 0; }
    .product-wall { grid-template-columns: 1fr 1fr; }
    .wall-card,.wall-card.wall-size-0,.wall-card.wall-size-3 { grid-column: auto; }
    .wall-image,.wall-size-0 .wall-image,.wall-size-3 .wall-image { height: 250px; }
    .wall-head aside { width: 100%; }
    .wall-categories { justify-content: flex-start; }
    .command-head { grid-template-columns: 1fr; }
    .command-filters { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
    .command-filters > span,.command-filters > b { display: none; }
    .command-row { padding: 12px 0; grid-template-columns: 38px minmax(0,1fr) 65px 85px; gap: 7px; }
    .command-row > span:nth-child(3),.command-row > b { display: none; }
    .template-midnight .mobile-nav.open { border-top: 1px solid #293148; background: #111725; }
    .template-midnight .mobile-nav a { color: #bdc5da; border-color: #293148; }
    .template-editorial .mobile-nav.open { border-top: 1px solid #c8bfb2; background: #eee7dc; }
    .template-editorial .mobile-nav a { border-color: #c8bfb2; font-family: Georgia,"Songti SC",serif; }
    .template-pop .mobile-nav.open { border-top: 1.5px solid #332e49; background: #f0eaff; }
    .template-pop .mobile-nav a { color: #332e49; border-color: #bdb0df; font-weight: 750; }
    .template-mono .mobile-nav.open { border-top: 1px solid #111; background: #f1f1ed; }
    .template-mono .mobile-nav a { color: #111; border-color: #111; font-family: monospace; }
    .template-gallery .mobile-nav.open { border-top: 1px solid #bdd0df; background: #e4eff7; }
    .template-gallery .mobile-nav a { color: #31587e; border-color: #bdd0df; }
    .template-terminal .mobile-nav.open { border-top: 1px solid #5b451e; background: #151108; }
    .template-terminal .mobile-nav a { color: #c78f31; border-color: #4e3b1c; font-family: monospace; }
}
@media (max-width: 430px) {
    .night-product-grid,.candy-grid,.product-wall { grid-template-columns: 1fr; }
    .night-product-visual,.candy-picture { height: 230px; }
    .dossier-row { grid-template-columns: 30px 60px minmax(0,1fr); }
    .dossier-row > strong,.dossier-row > a:last-child { display: none; }
    .command-row { grid-template-columns: 32px minmax(0,1fr) 75px; }
    .command-row > strong { font-size: 9px; }
    .command-row > a { display: none; }
}

/* Mist blue technology template
   Keeps the dashboard-style structure of "midnight", without the dark surface. */
.thumb-midnight {
    background: linear-gradient(145deg,#f8fbff,#e8f0fb);
    box-shadow: inset 0 0 0 1px #d5e0ee;
}
.thumb-midnight::before {
    inset: 0;
    background: radial-gradient(circle at 78% 28%,rgba(83,115,205,.18),transparent 35%);
}
.thumb-midnight::after {
    background: #263b66;
    box-shadow: 0 13px #8da0bd;
}
.thumb-midnight i {
    border-color: #ccd9e9;
    background: rgba(255,255,255,.82);
    box-shadow: 0 5px 12px rgba(52,78,120,.08);
}
.thumb-midnight b { background: #5877c8; }

.template-midnight {
    --ink: #192a47;
    --muted: #74829a;
    --line: #dce5f0;
    --surface: #ffffff;
    --soft: #f3f7fc;
    color: #192a47;
    background:
        radial-gradient(circle at 88% 3%,rgba(87,119,200,.08),transparent 25rem),
        linear-gradient(180deg,#f8fbff 0,#f4f8fc 48%,#f8fafc 100%);
}
.template-midnight .site-header,
.header-midnight {
    border-color: #dde6f1;
    background: rgba(250,252,255,.9);
    box-shadow: 0 1px 0 rgba(37,58,92,.03);
    backdrop-filter: blur(18px);
}
.template-midnight .site-header.is-scrolled {
    border-color: #d8e2ef;
    background: rgba(252,253,255,.96);
    box-shadow: 0 12px 35px rgba(38,62,101,.08);
}
.night-system-bar {
    color: #72819a;
    border-color: #dce6f1;
    background: #edf3fa;
}
.night-system-bar span i {
    background: #5f7dcc;
    box-shadow: 0 0 0 4px rgba(95,125,204,.1);
}
.night-system-bar b { color: #526783; }
.night-brand small { color: #7b8aa1; }
.night-brand strong { color: #1d3152; letter-spacing: -.01em; }
.night-brand-mark {
    color: #fff;
    background: linear-gradient(145deg,#6886d0,#4969bd);
    box-shadow: 0 7px 18px rgba(66,95,170,.2),inset 0 0 0 1px rgba(255,255,255,.22);
}
.night-main-nav {
    border-color: #d7e1ed;
    background: rgba(255,255,255,.72);
    box-shadow: 0 5px 18px rgba(49,72,108,.05);
}
.night-main-nav a {
    color: #77859a;
    border-color: #dfe7f1;
}
.night-main-nav a:hover { color: #304d85; background: #f2f6fc; }
.night-main-nav a.active {
    color: #31528e;
    background: #edf3fc;
    box-shadow: inset 0 -2px #5e7dcc;
}
.night-main-nav small { color: #9aa8ba; }
.night-header-actions a {
    color: #506581;
    border-color: #d6e1ed;
    background: rgba(255,255,255,.82);
    box-shadow: 0 4px 13px rgba(49,72,108,.05);
}
.night-header-actions a:hover {
    color: #31528e;
    border-color: #bfcfe5;
    background: #f1f6fc;
}
.night-menu { color: #314d79; }
.night-header-actions .night-menu {
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid #d6e1ed;
    border-radius: 10px;
    color: #40597d;
    background: rgba(255,255,255,.84);
    box-shadow: 0 4px 13px rgba(49,72,108,.05);
}
.night-header-actions .night-menu i {
    width: 17px;
    height: 1.5px;
    margin: 0;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease,opacity .2s ease;
}
.night-header-actions .night-menu i + i { margin-top: 4px; }
.night-header-actions .night-menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.night-header-actions .night-menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.night-header-actions .night-menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.midnight-hero {
    border-color: #d8e4f0;
    background:
        linear-gradient(rgba(86,112,164,.055) 1px,transparent 1px),
        linear-gradient(90deg,rgba(86,112,164,.055) 1px,transparent 1px),
        radial-gradient(circle at 76% 35%,rgba(91,121,201,.16),transparent 38%),
        #f7faff;
    background-size: 32px 32px,32px 32px,auto,auto;
    box-shadow: 0 24px 65px rgba(39,64,105,.08);
}
.midnight-orbit i { border-color: rgba(83,112,190,.15); }
.midnight-orbit i:nth-child(3) {
    background: #5877c8;
    box-shadow: 0 0 20px rgba(88,119,200,.35);
}
.template-serial { color: #5877c8; }
.midnight-copy h1 { color: #192d4f; }
.midnight-copy h1 em { color: #5675c6; }
.midnight-copy > p { color: #6f7e94; }
.midnight-primary { color: #fff; border-color: #506fbe; background: #506fbe; box-shadow: 0 10px 24px rgba(69,98,174,.2); }
.midnight-primary:hover { border-color: #405fae; background: #405fae; }
.midnight-link { color: #536986; border-color: #becce0; }
.midnight-status { color: #78869a; }
.midnight-status i {
    background: #5c7ac7;
    box-shadow: 0 0 0 4px rgba(92,122,199,.1);
}
.midnight-console {
    border-color: #d4dfed;
    background: rgba(255,255,255,.88);
    box-shadow: 0 30px 70px rgba(48,72,111,.13);
    backdrop-filter: blur(12px);
}
.console-head { color: #8290a5; }
.console-head b { color: #5575c4; }
.console-main,.console-grid { border-color: #e0e8f1; }
.console-main small,.console-grid small { color: #7d8ca2; }
.console-main strong,.console-grid b { color: #203658; }
.console-main span,.console-code { color: #8d9aad; }
.console-grid div:first-child { border-color: #e0e8f1; }
.console-flow span { background: linear-gradient(#6d88ce,#dbe4f2); }
.console-code i { border-color: #5d7bc8; }

.template-midnight .catalog { padding-top: 40px; }
.night-catalog-head {
    padding: 22px 24px;
    align-items: center;
    border: 1px solid #dae4ef;
    border-radius: 16px 16px 0 0;
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 35px rgba(42,65,100,.055);
}
.night-catalog-head > div:first-child > span { color: #5877c8; }
.night-catalog-head h2 {
    color: #1b2f50;
    letter-spacing: -.035em;
}
.night-catalog-head p { color: #77869b; }
.night-head-tools > span { color: #8190a6; }
.night-search {
    border-color: #d4dfec;
    background: #f7faff;
}
.night-search:focus-within {
    border-color: #9eb2d6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(85,117,196,.09);
}
.night-search input { color: #233858; }
.night-filter-line {
    padding: 13px 22px;
    border: 1px solid #dae4ef;
    border-top: 0;
    background: rgba(245,249,253,.82);
}
.night-filter-line > span { color: #708097; }
.night-categories a {
    color: #64758d;
    border-radius: 7px;
}
.night-categories a:hover { color: #31528e; background: #eaf1fa; }
.night-categories a.active {
    color: #31528e;
    border-color: #c5d4e8;
    background: #e8f0fb;
}
.night-product-grid { margin-top: 16px; gap: 16px; }
.night-product-card {
    border-color: #d8e3ef;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 28px rgba(40,63,99,.07);
    transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.night-product-card:hover {
    border-color: #bdcde3;
    box-shadow: 0 18px 42px rgba(40,63,99,.12);
    transform: translateY(-4px);
}
.night-product-card > header {
    border-color: #e0e8f1;
    color: #8997aa;
    background: #f7faff;
}
.night-product-card > header b { color: #667992; }
.night-product-card > header b i {
    background: #5f7dcc;
    box-shadow: 0 0 0 3px rgba(95,125,204,.11);
}
.night-product-card > header b.offline i { background: #a6b0bd; }
.night-product-visual { background: #edf3f9; }
.night-product-visual .template-product-image {
    box-shadow: 0 5px 14px rgba(43,66,100,.09);
}
.night-product-visual > span:last-child {
    color: #435b7d;
    border-color: rgba(190,205,225,.9);
    background: rgba(250,252,255,.88);
    box-shadow: 0 3px 10px rgba(38,61,96,.08);
    backdrop-filter: blur(8px);
}
.night-product-body > div small { color: #73839a; }
.night-product-body > div strong { color: #1d3356; }
.night-product-body h3 { color: #203553; }
.night-product-body p { color: #7c8ba0; }
.night-product-body p span { background: #d9e2ed; }
.night-buy {
    color: #36578f;
    border-color: #c5d4e8;
    background: #edf3fb;
}
.night-buy:hover {
    color: #fff;
    border-color: #506fbe;
    background: #506fbe;
    box-shadow: 0 9px 20px rgba(69,98,174,.2);
}

.assurances-midnight { gap: 12px; }
.assurances-midnight article {
    border-color: #d8e3ef;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 25px rgba(41,65,101,.05);
}
.assurances-midnight article + article { border-left-color: #d8e3ef; }
.assurances-midnight article > span {
    color: #496bb9;
    background: #eaf1fb;
}
.assurances-midnight strong { color: #213655; }
.assurances-midnight p { color: #75859b !important; }
.template-midnight .subsite-home {
    border-color: #d7e2ee;
    background: rgba(255,255,255,.8);
    box-shadow: 0 16px 45px rgba(40,64,100,.07);
}
.template-midnight .subsite-plan-preview article {
    border-color: #d9e4ef;
    background: #f4f8fc;
}
.template-midnight .subsite-home-intro h2,
.template-midnight .subsite-plan-preview strong { color: #203657; }
.template-midnight .subsite-home-intro > p,
.template-midnight .subsite-plan-preview article p,
.template-midnight .subsite-plan-preview li { color: #748399; }
.template-midnight .subsite-home-points span {
    color: #536a89;
    border-color: #d3dfec;
    background: #f1f6fb;
}
.template-midnight .site-footer {
    color: #77869a;
    border-color: #dbe5ef;
    background: #edf3f9;
}

.template-midnight .ai-new-message,
.template-midnight .ai-launcher,
.template-midnight .ai-panel {
    color: #233858;
    border-color: #d2deeb;
    background: rgba(252,253,255,.96);
    box-shadow: 0 18px 48px rgba(39,62,98,.14);
}
.template-midnight .ai-notice-icon,
.template-midnight .ai-launcher-icon,
.template-midnight .ai-agent-avatar {
    color: #fff;
    background: linear-gradient(145deg,#6987d0,#4d6cbb);
    box-shadow: 0 6px 16px rgba(67,96,169,.2);
}
.template-midnight .ai-new-message small,
.template-midnight .ai-launcher small { color: #78879c; }
.template-midnight .ai-panel-head {
    color: #223756;
    border-color: #dce5ef;
    background: #f1f6fb;
}
.template-midnight .ai-panel-head span { color: #78879c; }
.template-midnight .ai-panel-head span i {
    background: #5d7bc8;
    box-shadow: 0 0 0 3px rgba(93,123,200,.12);
}
.template-midnight .ai-messages { background: #fbfdff; }
.template-midnight .ai-message.ai { color: #354a68; background: #edf3fa; }
.template-midnight .ai-message.user { color: #fff; background: #5675c2; }
.template-midnight .ai-form { border-color: #dce5ef; background: #fff; }
.template-midnight .ai-form input { color: #243958; background: #f5f8fc; }
.template-midnight .ai-form button { color: #fff; background: #5675c2; }

.template-classic .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    color: #34465f;
    background: #f7f9fc;
    font-size: 20px;
}
.editorial-menu {
    min-width: 54px;
    height: 40px;
    padding: 0 7px;
    color: #3c3831;
    border-top: 1px solid #7e766b;
    border-bottom: 1px solid #7e766b;
    font: 600 9px Georgia,serif;
    letter-spacing: .12em;
}
.pop-menu {
    min-width: 58px;
    height: 38px;
    padding: 0 10px;
    color: #332e49;
    border: 1.5px solid #332e49;
    border-radius: 99px;
    background: #ffbd64;
    box-shadow: 2px 2px 0 #332e49;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
}
.gallery-menu {
    width: 40px;
    height: 40px;
    position: relative;
    border: 1px solid #b8ccde;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}
.gallery-menu i {
    position: absolute;
    left: 10px;
    width: 18px;
    height: 1px;
    margin: 0 !important;
    background: currentColor;
    transition: transform .2s ease;
}
.gallery-menu i:first-child { top: 15px; }
.gallery-menu i:last-child { top: 22px; }
.gallery-menu[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.gallery-menu[aria-expanded="true"] i:last-child { top: 19px; width: 18px; transform: rotate(-45deg); }
.terminal-menu {
    min-width: 64px;
    height: 38px;
    padding: 0 8px;
    color: #d99c34;
    border: 1px dashed #684f22;
    border-radius: 2px;
    background: #1b150a;
    font: 700 8px monospace;
}
.terminal-menu[aria-expanded="true"] { color: #171108; border-style: solid; background: #d99c34; }

@media (max-width: 900px) {
    .night-header-actions .night-menu { display: grid; }
}
@media (max-width: 680px) {
    .template-midnight .catalog { margin-top: 28px; padding-top: 0; }
    .template-midnight .mobile-nav.open {
        border-color: #d9e4ef;
        background: rgba(250,252,255,.98);
        box-shadow: 0 18px 35px rgba(39,62,98,.1);
    }
    .template-midnight .mobile-nav a {
        color: #405979;
        border-color: #e0e8f1;
    }
    .night-catalog-head { padding: 18px; border-radius: 13px 13px 0 0; }
    .night-filter-line { padding: 12px 14px; }
    .night-product-card:hover { transform: none; }
}
