.order-alerts-card { margin: 0 0 22px; }
.order-alerts-card h3 { margin: 0; }
.order-recipient-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; margin: 18px 0; }
.order-recipient-form .button { min-height: 48px; }
.order-recipient-list { display: grid; gap: 8px; }
.order-recipient-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.order-recipient-row strong, .order-recipient-row small { display: block; }
.order-recipient-row strong { color: var(--ink); font-size: 12px; }
.order-recipient-row small { margin-top: 4px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; }
.order-notifications-page-card { max-width: 900px; padding: 32px; }
.order-notifications-page-card .newsletter-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px; }
.order-notifications-page-card .newsletter-card-head > div { min-width: 0; }
.order-notifications-page-card .newsletter-card-head h3 { margin: 10px 0 0; line-height: 1.25; overflow-wrap: anywhere; }
.order-notifications-page-card > .section-intro { max-width: 680px; margin: 18px 0 24px; line-height: 1.65; overflow-wrap: anywhere; }
.order-notice-history-heading { margin-top: 42px; }
.order-notice-history-heading .section-intro { margin: 12px 0 0; }
.order-notice-history-table { min-width: 900px; }
.order-notice-description { max-width: 360px; color: #c8bbaa; line-height: 1.5; white-space: normal !important; overflow-wrap: anywhere; }
.order-notice-history-item { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(240, 200, 117, .14); border-radius: var(--radius-sm); background: rgba(42, 29, 22, .68); }
.order-notice-history-item strong { display: block; color: #f0c875; font-size: 12px; }
.order-notice-history-item small { display: block; margin-top: 5px; color: #b9a98f; font-family: 'DM Mono', monospace; font-size: 9px; }
.order-notice-history-item p { margin: 10px 0 0; color: #f5f1e8; font-size: 12px; line-height: 1.6; white-space: pre-line; }
#order-notifications-view > .section-heading .section-intro { max-width: 680px; margin: 12px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.order-customer-notice { margin-top: 28px; padding: 24px; border: 1px solid rgba(240, 200, 117, .18); border-radius: var(--radius-md); background: rgba(42, 29, 22, .72); }
.order-customer-notice .section-label { margin-bottom: 10px; }.order-customer-notice .section-label h3 { color: #f5f1e8; }.order-customer-notice .field-hint { margin: 0 0 18px; }.order-customer-notice .form-error { margin-top: 8px; }
:root {
    --ink: #171717;
    --muted: #7f807c;
    --line: #e5e4df;
    --paper: #f7f7f3;
    --card: #ffffff;
    --accent: #d8f36b;
    --accent-dark: #b9db44;
    --red: #e66559;
    --green: #7eb481;
    --yellow: #e7b84c;
    --shadow: 0 18px 50px rgba(31, 34, 20, .08);
}

* { box-sizing: border-box; }

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(216, 243, 107, .72) rgba(23, 23, 23, .12);
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(23, 23, 23, .08); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #efffa9, var(--accent)); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

.sidebar, .influencer-profile-card, .order-dialog .dialog-body, .cookie-modal-dialog {
    scrollbar-color: rgba(240, 200, 117, .72) rgba(42, 33, 27, .72);
}

.sidebar::-webkit-scrollbar-track, .influencer-profile-card::-webkit-scrollbar-track, .order-dialog .dialog-body::-webkit-scrollbar-track, .cookie-modal-dialog::-webkit-scrollbar-track { background: rgba(42, 33, 27, .72); }
.sidebar::-webkit-scrollbar-thumb, .influencer-profile-card::-webkit-scrollbar-thumb, .order-dialog .dialog-body::-webkit-scrollbar-thumb, .cookie-modal-dialog::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f0c875, #b98a38); border-color: rgba(42, 33, 27, .72); background-clip: padding-box; }

body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Manrope', sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 10%, #edf7bf 0, transparent 28%), var(--paper); }
.login-card { width: min(100%, 430px); padding: 52px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-mark { font-size: 28px; font-weight: 800; letter-spacing: -.12em; }
.brand-mark span { color: var(--accent-dark); }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; }
.login-card .brand-mark { margin-bottom: 70px; }
.login-card h1, .topbar h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.06em; }
.login-copy { color: var(--muted); line-height: 1.6; margin: 16px 0 34px; }
.login-card input { border-color: #303030; background: #171717; color: #fff; }
.login-card input::placeholder { color: #858585; }
.login-card input:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(216,243,107,.25); }
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #171717 inset; box-shadow: 0 0 0 1000px #171717 inset; caret-color: #fff; transition: background-color 9999s ease-out 0s; }
.login-card input:autofill { color: #fff; background: #171717; caret-color: #fff; }
.stack-form, .stack-form label { display: grid; gap: 8px; }
.stack-form { gap: 18px; }
label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
input, select { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 13px 14px; outline: none; border-radius: 2px; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216,243,107,.35); }
.button { border: 0; padding: 13px 17px; font-weight: 800; border-radius: 2px; display: inline-flex; gap: 16px; align-items: center; justify-content: center; }
.button-dark { color: #fff; background: var(--ink); }
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent:hover { background: var(--accent-dark); }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-danger { color: var(--red); background: #fae7e4; }
.dialog-actions { display: flex; gap: 10px; }
.button-full { width: 100%; }
.login-hint { margin: 25px 0 0; color: #aaa; font-size: 10px; line-height: 1.5; }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: 12px; }

.app-view { display: flex; min-height: 100vh; }
.sidebar { width: 245px; flex: 0 0 245px; display: flex; flex-direction: column; padding: 29px 22px 20px; background: var(--ink); color: #fff; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 65px; }
.admin-label { color: var(--accent); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; padding: 13px 12px; display: flex; gap: 12px; align-items: center; color: #8c8d87; background: transparent; text-align: left; font-weight: 700; font-size: 12px; }
.nav-item:hover, .nav-item.is-active { color: var(--ink); background: var(--accent); }
.nav-icon { width: 20px; font-size: 17px; text-align: center; }
.nav-icon, .stat-icon, .reference-icon, .newsletter-stat-icon, .empty-state > span, .close-button, .icon-button, .logout-button, .mini-button, .remove-row {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    font-variant-emoji: text;
}
.nav-count { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; color: #fff; font-family: 'Space Grotesk', 'Manrope', sans-serif; line-height: 1; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #353535; padding: 18px 5px 0; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.user-chip strong, .user-chip small { display: block; }
.user-chip small { color: #888; font-size: 9px; margin-top: 3px; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; color: var(--ink); background: var(--accent); border-radius: 50%; font-weight: 800; }
.logout-button { border: 0; background: transparent; color: #999; font-size: 20px; }
.workspace { min-width: 0; flex: 1; padding: 35px clamp(22px, 4vw, 64px) 60px; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 42px; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.save-state { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 20px; background: #fff; border: 1px solid var(--line); }
.stat-card strong { display: block; font-size: 28px; letter-spacing: -.05em; }
.stat-card small { color: var(--muted); font-size: 10px; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #879c22; background: #f1f9ce; border-radius: 50%; font-size: 16px; }
.stat-green { color: var(--green); background: #e7f2e4; }.stat-red { color: var(--red); background: #fae7e4; }.stat-yellow { color: var(--yellow); background: #fbf0d7; }
.toolbar { display: flex; gap: 9px; margin-bottom: 22px; }
.search-box { position: relative; display: block; flex: 0 0 280px; width: 280px; height: 52px; min-width: 0; margin: 0; padding: 0; }.search-icon { position: absolute; left: 15px; top: 50%; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-60%); pointer-events: none; }.search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: var(--muted); transform: rotate(45deg); transform-origin: left center; }.search-box input { display: block; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 13px 14px 13px 43px; }
.toolbar select { max-width: 185px; padding-right: 30px; }.icon-button, .close-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }.icon-button { width: 48px; font-size: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.product-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-thumb { position: relative; aspect-ratio: 1.1; background: #eeeeea; overflow: hidden; }.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }.placeholder { display: grid; place-items: center; height: 100%; color: #aaa; font-size: 32px; }
.product-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 5px; }.badge { padding: 5px 7px; background: #fff; font-family: 'DM Mono', monospace; font-size: 9px; }.badge.sale { color: var(--red); }.badge.new { color: #6f8417; }.product-details { padding: 15px; }.product-details h3 { margin: 0 0 5px; font-size: 15px; letter-spacing: -.03em; }.product-id { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }.product-meta { display: flex; justify-content: space-between; align-items: end; margin-top: 17px; }.price { font-size: 16px; font-weight: 800; }.stock { color: var(--green); font-size: 10px; font-weight: 700; }.stock.low { color: var(--yellow); }.stock.empty { color: var(--red); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }.empty-state span { font-size: 34px; }.empty-state h2 { color: var(--ink); margin: 12px 0 5px; }.empty-state p { font-size: 12px; }
.order-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.order-stats-grid .stat-card strong { font-size: clamp(25px, 3vw, 34px); }
.orders-toolbar { justify-content: space-between; }
.orders-toolbar select { width: 190px; border-color: #d6d8ce; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.orders-toolbar select:hover { border-color: var(--accent-dark); background: #fcfef4; }
.orders-toolbar select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(216, 243, 107, .28); outline: none; }
.orders-toolbar select option { color: var(--ink); background: #fff; }
.orders-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
.orders-table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
.orders-table th, .orders-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 12px; }
.orders-table th { color: var(--muted); background: #fbfbf8; font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.orders-table tbody tr { transition: background .2s; }.orders-table tbody tr:hover { background: #fbfdea; }.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table td small { display: block; max-width: 190px; overflow: hidden; margin-top: 5px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-status { display: inline-flex; padding: 5px 8px; border-radius: 2px; color: #526016; background: #eef7c9; font-family: 'DM Mono', monospace; font-size: 9px; white-space: nowrap; }.status-processing { color: #866318; background: #fbf0d7; }.status-shipped { color: #315b73; background: #dceef6; }.status-completed { color: #3d6843; background: #e2f1e3; }.status-cancelled, .status-refunded { color: #9a4038; background: #fae7e4; }
.table-action { border: 1px solid var(--line); padding: 8px 11px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; }.table-action:hover { border-color: var(--ink); }
.order-dialog { width: min(720px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: hidden; }
.order-dialog .dialog-body { max-height: calc(100vh - 210px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(240, 200, 117, .65) rgba(42, 33, 27, .7); }
.order-dialog .dialog-body::-webkit-scrollbar { width: 8px; }
.order-dialog .dialog-body::-webkit-scrollbar-track { background: rgba(42, 33, 27, .7); border-radius: 999px; }
.order-dialog .dialog-body::-webkit-scrollbar-thumb { background: rgba(240, 200, 117, .65); border: 2px solid rgba(42, 33, 27, .7); border-radius: 999px; }
.order-dialog .dialog-body::-webkit-scrollbar-thumb:hover { background: #f0c875; }
.order-detail-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }.order-system-label { margin: 0 0 6px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }.order-system-number { display: block; color: var(--ink); font-size: 22px; letter-spacing: -.04em; }.order-summary-line { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 11px; }.order-summary-line strong { margin-left: auto; color: var(--ink); font-size: 18px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0 28px; }.order-detail-grid > div { display: grid; gap: 6px; padding: 16px 18px; background: #fbfbf8; border-left: 3px solid var(--accent-dark); }.order-detail-grid small, .order-note-field, .order-status-field { color: var(--muted); font-size: 10px; font-weight: 700; }.order-detail-grid span { overflow: hidden; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.order-dialog h3 { margin: 26px 0 12px; font-size: 13px; }.order-items { border-top: 1px solid var(--line); }.order-detail-item { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }.order-detail-item small { display: block; margin-top: 5px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }.order-note-field, .order-status-field { display: grid; gap: 7px; margin-top: 20px; }.order-note-field textarea { width: 100%; resize: vertical; border: 1px solid var(--line); padding: 12px; font: inherit; font-size: 12px; outline: none; }.order-note-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216,243,107,.35); }.order-dialog-error { flex: 1; }
.order-detail-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.order-detail-section h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }.order-address { color: var(--ink); font-size: 13px; line-height: 1.7; }.order-identifiers strong { display: block; color: var(--ink); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }.order-identifiers small, .order-detail-section > small { display: block; margin: 4px 0 15px; color: var(--muted); font-size: 9px; }.order-identifiers h3:not(:first-child) { margin-top: 18px; }
.order-product-link { width: 48px; height: 48px; flex: 0 0 48px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #f1f1ed; cursor: pointer; }.order-product-link img { display: block; width: 100%; height: 100%; object-fit: cover; }.order-product-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 18px; }.order-detail-item { align-items: center; }.order-detail-item > span:first-of-type { flex: 1; }
.section-heading { margin-bottom: 27px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }.section-heading h2 { margin: 0; letter-spacing: -.05em; }.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.reference-card { padding: 26px; border: 1px solid var(--line); background: #fff; }.reference-icon { font-size: 25px; color: var(--accent-dark); }.reference-card h3 { margin: 15px 0 20px; }.reference-row { padding: 13px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }.reference-row span { color: var(--ink); font-size: 12px; }.reference-row small { display: block; margin-top: 4px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; }.delete-reference { width: 28px; height: 28px; border: 1px solid var(--line); color: var(--red); background: #fff; font-size: 18px; }
.newsletter-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: -8px 0 22px; }
.newsletter-stat { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 18px 20px; border: 1px solid rgba(240, 200, 117, .14); border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(43, 33, 25, .95), rgba(28, 22, 18, .95)); box-shadow: 0 18px 45px rgba(0, 0, 0, .16); }
.newsletter-stat strong, .newsletter-stat small { display: block; }.newsletter-stat strong { color: #f5f1e8; font-size: 28px; letter-spacing: -.06em; }.newsletter-stat small { margin-top: 4px; color: var(--muted); font-size: 10px; }.newsletter-stat-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 50%; color: var(--accent); background: rgba(232, 184, 92, .13); }.newsletter-stat-icon.is-green { color: var(--green); background: rgba(141, 187, 140, .13); }.newsletter-stat-icon.is-gold { color: var(--gold-soft); background: rgba(240, 200, 117, .13); }
.newsletter-grid { align-items: start; }.newsletter-editor-card, .newsletter-subscribers-card { min-width: 0; }.newsletter-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.newsletter-editor-heading > div { min-width: 0; }.newsletter-editor-heading h3 { margin-bottom: 20px; }.newsletter-editor-heading .button { min-height: 38px; flex: 0 0 auto; padding: 0 10px; font-size: 10px; }.newsletter-card-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }.newsletter-card-head h3 { margin-bottom: 0; }.newsletter-result-count { flex: 0 0 auto; padding: 7px 9px; color: var(--accent); border: 1px solid rgba(240, 200, 117, .2); border-radius: 999px; font-family: 'DM Mono', monospace; font-size: 9px; }.newsletter-search { position: relative; margin: 22px 0 6px; }.newsletter-search input { min-height: 44px; padding-left: 42px; }.newsletter-search .search-icon { left: 15px; }.newsletter-subscriber-list { max-height: 360px; overflow-y: auto; padding-right: 4px; }.newsletter-subscriber-list .reference-row { gap: 14px; }.newsletter-subscriber-list .reference-row > span { min-width: 0; overflow-wrap: anywhere; }.newsletter-subscriber-list .table-action { flex: 0 0 auto; color: var(--red); }.newsletter-empty-result { margin: 22px 0 8px; color: var(--muted); font-size: 11px; text-align: center; }.newsletter-campaigns-heading { margin-top: 42px; }.newsletter-campaigns-heading .section-intro { margin: 8px 0 0; }
.newsletter-test-tools { margin-top: 4px; padding: 18px 0 4px; border-top: 1px solid var(--line); }.newsletter-test-tools > div:first-child strong { display: block; font-size: 12px; }.newsletter-test-tools .field-hint { margin-top: 4px; }.newsletter-test-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; }.newsletter-test-row label { min-width: 0; }.newsletter-test-row input { width: 100%; }.newsletter-test-row .button { min-height: 44px; white-space: nowrap; }.newsletter-test-result { min-height: 14px; margin: 8px 0 0; font-size: 10px; line-height: 1.5; }.newsletter-test-result.is-success { color: var(--green); }.newsletter-test-result.is-error { color: var(--red); }
.section-intro { margin: -12px 0 24px; color: var(--muted); font-size: 12px; }.employees-table { min-width: 720px; }.permissions-cell { max-width: 300px !important; white-space: normal !important; line-height: 1.5; }.employee-active-row { margin-top: 15px; max-width: 360px; }.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 500; }
.monitoring-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 42px 0 18px; }.monitoring-heading h2 { margin: 0; letter-spacing: -.05em; }.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.health-card { display: flex; align-items: center; gap: 11px; min-height: 78px; padding: 14px; background: #fff; border: 1px solid var(--line); }.health-card.is-error { border-color: #efc0ba; background: #fff8f7; }.health-indicator { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; color: #3d6843; background: #e2f1e3; border-radius: 50%; font-weight: 800; }.health-card.is-error .health-indicator { color: #9a4038; background: #fae7e4; }.health-card strong, .health-card small { display: block; }.health-card strong { font-size: 11px; }.health-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }.health-runtime { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }.audit-table { min-width: 720px; }.audit-action { color: #65751b; font-family: 'DM Mono', monospace; font-size: 10px; }
.audit-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 14px; }.audit-stat { padding: 16px 18px; background: #fff; border: 1px solid var(--line); }.audit-stat strong, .audit-stat small { display: block; }.audit-stat strong { font-size: 25px; letter-spacing: -.05em; }.audit-stat small { margin-top: 4px; color: var(--muted); font-size: 10px; }.audit-stat-alert strong { color: var(--red); }.audit-toolbar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }.audit-toolbar .search-box { flex: 1 1 250px; width: auto; }.audit-toolbar select { flex: 0 1 180px; }.audit-table td small { display: block; margin-top: 4px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }.audit-action.is-alert { color: var(--red); }.audit-details { min-width: 110px; color: var(--muted); font-size: 10px; }.audit-details summary { cursor: pointer; color: var(--ink); font-weight: 800; }.audit-details span { display: block; max-width: 230px; margin-top: 6px; line-height: 1.5; overflow-wrap: anywhere; }.table-action.is-disabled, .table-action:disabled { color: var(--muted); background: #f0f0eb; cursor: not-allowed; }
.employee-security-actions { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }.employee-security-actions label { flex: 1 1 180px; }.employee-security-actions .button { min-height: 45px; }.employee-security-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.promotion-dates { margin-top: 15px; }
.promotion-limit-field { position: relative; }
.promotion-limit-field input:disabled { color: var(--muted); background: #f0f0eb; cursor: not-allowed; }
.promotion-limit-field.is-locked::after { content: 'AUTO'; position: absolute; top: 27px; right: 10px; padding: 4px 5px; color: #65751b; background: #eef7c9; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .08em; }
.promotion-field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; }
.promotions-table td small { max-width: none; white-space: normal; }
.promotion-history-heading { margin-top: 42px; }
.influencer-profiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.influencer-profile-card { padding: 20px; background: rgba(33, 27, 23, .92); border: 1px solid var(--line); box-shadow: var(--shadow); }
.influencer-profile-card h3, .influencer-profile-card strong, .influencer-detail h2, .influencer-detail strong, .influencer-detail td, .influencer-detail p { color: #f5f1e8; }
.influencer-profile-card, #influencer-detail-content { color: #f5f1e8; }
.influencer-profile-card h3, .influencer-profile-card strong, #influencer-detail-content h2, #influencer-detail-content h3, #influencer-detail-content strong, #influencer-detail-content td, #influencer-detail-content p { color: #f5f1e8; }
.influencer-profile-card small, .influencer-profile-card span, #influencer-detail-content small, #influencer-detail-content .field-hint { color: #c8bbaa; }
.influencer-profile-card a, #influencer-detail-content a { color: #f0c875; }
.influencer-profile-card .table-action, #influencer-detail-content .table-action { color: #f5f1e8; border-color: rgba(245, 241, 232, .28); }
.influencer-profile-card .influencer-profile-stats div, #influencer-detail-content .influencer-detail-grid div { color: #f5f1e8; background: rgba(255, 255, 255, .08); border: 1px solid rgba(245, 241, 232, .12); }
.influencer-profile-head { display: flex; align-items: center; gap: 12px; }.influencer-profile-head h3 { margin: 0; font-size: 15px; }.influencer-profile-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.influencer-avatar { flex: 0 0 36px; width: 36px; height: 36px; }
.repeat-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }.influencer-link-row input { min-width: 0; }.influencer-link-label { flex: 0 1 190px; }.influencer-link-url { flex: 1 1 260px; }.influencer-agreement-row { color: #f5f1e8; }.agreement-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 11px; }.influencer-agreements { display: grid; gap: 8px; margin: 16px 0 22px; }.agreement-link { display: block; color: var(--accent); font-size: 11px; overflow-wrap: anywhere; }
.influencer-profile-stats, .influencer-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }.influencer-profile-stats div, .influencer-detail-grid div { padding: 12px; background: rgba(255,255,255,.04); }.influencer-profile-stats strong, .influencer-profile-stats small, .influencer-detail-grid strong, .influencer-detail-grid small { display: block; }.influencer-profile-stats strong, .influencer-detail-grid strong { font-size: 14px; }.influencer-profile-stats small, .influencer-detail-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; }.influencer-profile-links { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }.influencer-detail-dialog { width: min(850px, calc(100% - 30px)); }.influencer-detail-head { display: flex; justify-content: space-between; align-items: start; }
.influencer-detail-head h2 { margin: 0; }
.influencer-detail-head p { color: var(--muted); }
.influencer-management {
    display: grid;
    gap: 8px;
    margin: 16px 0 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(245, 241, 232, .16);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.influencer-management strong {
    display: block;
    color: #f0c875;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.influencer-management span {
    display: block;
    color: #f5f1e8;
    line-height: 1.6;
    word-break: break-word;
}
.influencer-contact-links {
    display: grid;
    gap: 10px;
    margin: 16px 0 22px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(245, 241, 232, .12);
    border-radius: 10px;
}
.influencer-contact-links strong {
    display: block;
    color: #f0c875;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.influencer-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 10px;
    overflow-wrap: anywhere;
    line-height: 1.5;
}
.product-dialog { width: min(930px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; background: var(--paper); box-shadow: 0 30px 100px #0003; }.product-dialog::backdrop { background: #171717aa; backdrop-filter: blur(4px); }.product-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 30px); }.dialog-head, .dialog-foot { padding: 25px 30px; background: #fff; display: flex; justify-content: space-between; align-items: start; }.dialog-head h2 { margin: 0; letter-spacing: -.05em; }.close-button { width: 34px; height: 34px; font-size: 24px; line-height: 1; }.dialog-body { overflow: auto; padding: 25px 30px; }.form-columns { display: grid; gap: 18px; }.form-section { padding: 23px; background: #fff; border: 1px solid var(--line); }.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }.section-label span { color: var(--accent-dark); font-family: 'DM Mono', monospace; font-size: 11px; }.section-label h3 { flex: 1; margin: 0; font-size: 13px; }.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }.span-2 { grid-column: span 2; }.toggle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.toggle-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); cursor: pointer; }.toggle-row input { display: none; }.toggle { width: 28px; height: 16px; flex: 0 0 28px; position: relative; background: #ddd; border-radius: 20px; }.toggle::after { content: ''; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; background: #fff; border-radius: 50%; transition: transform .2s; }.toggle-row input:checked + .toggle { background: var(--accent-dark); }.toggle-row input:checked + .toggle::after { transform: translateX(12px); }.toggle-row strong, .toggle-row small { display: block; }.toggle-row strong { color: var(--ink); font-size: 11px; }.toggle-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }.discount-field { grid-column: span 2; max-width: 180px; margin-top: 4px; }.mini-button { border: 0; color: var(--ink); background: var(--accent); padding: 7px 10px; font-size: 10px; font-weight: 800; }.repeat-list { display: grid; gap: 8px; }.repeat-row { display: flex; gap: 8px; align-items: center; }.repeat-row input { flex: 1; }.repeat-row input:first-child { max-width: 130px; }.remove-row { width: 42px; height: 42px; border: 1px solid var(--line); color: var(--red); background: #fff; font-size: 18px; }.empty-repeat { color: var(--muted); font-size: 11px; }.form-error-dialog { padding: 0 30px 10px; }
.upload-note { margin: -8px 0 14px; color: var(--muted); font-size: 10px; }.upload-row { align-items: stretch; }.upload-row .repeat-value { min-width: 0; }.file-button { position: relative; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; }.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.upload-preview { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--line); }.site-content-preview { display: block; width: 100%; max-height: 260px; object-fit: cover; border: 1px solid var(--line); }.table-editor { overflow-x: auto; }.table-editor table { width: 100%; min-width: 500px; border-collapse: collapse; }.table-editor th, .table-editor td { padding: 5px; border-bottom: 1px solid var(--line); }.table-editor th { color: var(--muted); font-size: 10px; text-align: left; }.table-editor td input { padding: 9px; }.size-table-dialog { width: min(980px, calc(100% - 30px)); }
.hero-editor-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 22px 0 16px; }.hero-editor-toolbar label { width: 210px; }.hero-editor-toolbar .button { min-height: 45px; }
.hero-slides-editor { display: grid; gap: 14px; }
.hero-slide-card { padding: 18px; border: 1px solid rgba(240, 200, 117, .16); border-radius: 14px; background: rgba(24, 19, 16, .72); }
.hero-slide-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }.hero-slide-number { color: var(--accent); font-family: 'DM Mono', monospace; font-size: 12px; }.hero-slide-enabled { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }.hero-slide-enabled input { width: auto; accent-color: var(--accent); }.hero-slide-actions { display: flex; gap: 6px; margin-left: auto; }.hero-slide-actions .icon-button { width: 34px; height: 34px; padding: 0; border-radius: 8px; }
.hero-slide-actions .icon-button:disabled { opacity: .3; cursor: not-allowed; }
.hero-slide-fields { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }.hero-slide-copy { display: grid; gap: 12px; }.hero-slide-copy label { display: grid; gap: 7px; }.hero-slide-preview-wrap { min-height: 132px; overflow: hidden; border: 1px solid rgba(240, 200, 117, .16); border-radius: 10px; background: rgba(0, 0, 0, .2); }.hero-slide-preview { display: block; width: 100%; height: 100%; min-height: 132px; object-fit: cover; }.hero-file-label input { padding: 9px; }
.toast { position: fixed; z-index: 5; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; color: #fff; background: var(--ink); box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; font-size: 12px; }.toast.is-visible { transform: translateY(0); opacity: 1; }.toast.error { background: var(--red); }
.remove-row { position: relative; display: inline-grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(230, 101, 89, .24); border-radius: 10px; color: #b34c43; background: linear-gradient(145deg, #fff, #fff8f7); box-shadow: 0 5px 14px rgba(230, 101, 89, .08); font-size: 0; transition: border-color .2s, color .2s, background .2s, transform .2s, box-shadow .2s; }
.remove-row::before, .remove-row::after { position: absolute; width: 14px; height: 2px; border-radius: 2px; background: currentColor; content: ''; transition: transform .2s; }
.remove-row::before { transform: rotate(45deg); }.remove-row::after { transform: rotate(-45deg); }
.remove-row:hover, .remove-row:focus-visible { border-color: var(--red); color: #fff; background: linear-gradient(145deg, #e66559, #bd4d45); box-shadow: 0 8px 18px rgba(230, 101, 89, .24); outline: none; transform: translateY(-1px); }
.remove-row:focus-visible { box-shadow: 0 0 0 3px rgba(230, 101, 89, .2), 0 8px 18px rgba(230, 101, 89, .24); }
.nav-count strong { color: var(--accent); font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; letter-spacing: 0; text-shadow: none; }
.nav-count.has-new strong { animation: order-count-pulse 1.7s ease-in-out infinite; }
@keyframes order-count-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (max-width: 900px) { .toolbar { flex-wrap: wrap; } .search-box { flex: 1 1 240px; width: auto; } .toolbar select { flex: 1 1 160px; max-width: none; } .top-actions { flex-wrap: wrap; justify-content: flex-end; } .dialog-foot { flex-wrap: wrap; gap: 14px; } .dialog-actions { flex-wrap: wrap; justify-content: flex-end; } }
@media (max-width: 900px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav-count { background: transparent !important; color: var(--accent) !important; }
@media (max-width: 900px) { .sidebar { width: 190px; flex-basis: 190px; }.stats-grid, .order-stats-grid { grid-template-columns: repeat(2, 1fr); }.field-grid { grid-template-columns: repeat(2, 1fr); }.span-2 { grid-column: span 2; } }
@media (max-width: 650px) { .app-view { display: block; }.sidebar { width: auto; padding: 16px; }.sidebar-head { padding: 0 4px 16px; }.side-nav { display: flex; overflow-x: auto; }.nav-item { flex: 1 0 auto; justify-content: center; }.nav-count { margin-left: 0; }.sidebar-foot { display: none; }.workspace { padding: 24px 15px 40px; }.topbar { align-items: start; flex-direction: column; margin-bottom: 28px; }.top-actions { width: 100%; justify-content: space-between; }.toolbar { flex-wrap: wrap; }.search-box { flex: 1 1 100%; width: auto; }.toolbar select { flex: 1; max-width: none; }.stats-grid, .order-stats-grid { gap: 8px; }.stat-card { min-height: 90px; padding: 12px; gap: 8px; }.stat-card strong { font-size: 22px; }.stat-icon { width: 28px; height: 28px; }.reference-grid, .toggle-grid, .health-grid { grid-template-columns: 1fr; }.dialog-head, .dialog-foot, .dialog-body { padding-left: 17px; padding-right: 17px; }.field-grid { grid-template-columns: 1fr; }.span-2, .discount-field { grid-column: auto; max-width: none; }.form-section { padding: 16px; }.order-detail-grid { grid-template-columns: 1fr; }.order-detail-head { display: block; }.order-detail-head > strong { display: block; margin-top: 18px; }.order-detail-item { display: block; }.order-detail-item > span:last-child { display: block; margin-top: 8px; } }
@media (max-width: 650px) { .newsletter-stats { grid-template-columns: 1fr; gap: 8px; }.newsletter-stat { min-height: 78px; padding: 14px 16px; }.newsletter-stat strong { font-size: 24px; }.newsletter-card-head { align-items: center; }.newsletter-subscriber-list { max-height: 300px; }.newsletter-subscriber-list .reference-row { align-items: flex-start; }.newsletter-subscriber-list .table-action { padding: 7px 8px; } }
@media (max-width: 650px) { .order-recipient-form { grid-template-columns: 1fr; }.order-recipient-row { align-items: flex-start; }.order-recipient-row .table-action { flex: 0 0 auto; } }

/* PREEXIST dark studio theme */
:root {
    --ink: #f5f1e8;
    --muted: #aa9f91;
    --line: rgba(245, 241, 232, .13);
    --paper: #15120f;
    --card: #211b17;
    --accent: #e8b85c;
    --accent-dark: #c9923e;
    --red: #e47d6f;
    --green: #8dbb8c;
    --yellow: #e8b85c;
    --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

body { background: radial-gradient(circle at 82% 0, #3b3024 0, transparent 27%), var(--paper); }
body::before { position: fixed; inset: 0; z-index: -1; background: linear-gradient(135deg, transparent 48%, rgba(232, 184, 92, .035) 49%, transparent 50%); background-size: 38px 38px; content: ''; pointer-events: none; }
.login-view { background: radial-gradient(circle at 50% 0, #413426 0, transparent 42%), var(--paper); }
.login-card, .stat-card, .product-card, .reference-card, .health-card, .audit-stat, .orders-table-wrap { background: rgba(33, 27, 23, .92); border-color: var(--line); box-shadow: var(--shadow); }
.login-card { position: relative; overflow: hidden; }
.login-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); content: ''; }
.brand-mark span, .admin-label, .section-label span, .reference-icon { color: var(--accent); }
.eyebrow { color: #b9a98f; }
.login-copy, .section-intro, .save-state, .stat-card small, .product-id, .field-hint, .upload-note, .promotion-field-hint { color: var(--muted); }
input, select, textarea, .order-note-field textarea { border-color: var(--line); background: #171310; color: #f5f1e8; caret-color: #f5f1e8; }
select option { color: #f5f1e8; background: #211b17; }
input::placeholder, textarea::placeholder { color: #b9a98f; opacity: 1; }
input:focus, select:focus, .order-note-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 184, 92, .16); }
.button-dark, .sidebar { background: #211b17; }
.button-accent, .nav-item:hover, .nav-item.is-active { background: var(--accent); color: #17120d; }
.button-accent:hover { background: #f0c875; }
.button-ghost, .icon-button, .close-button, .table-action, .delete-reference, .file-button { border-color: var(--line); background: transparent; color: var(--ink); }
.button-ghost:hover, .icon-button:hover, .close-button:hover, .table-action:hover { border-color: var(--accent); color: var(--accent); }
.button-danger { color: var(--red); background: rgba(228, 125, 111, .12); }
.sidebar { border-right: 1px solid rgba(232, 184, 92, .14); }
.sidebar-head { border-bottom: 1px solid var(--line); }
.nav-item { color: #a99e91; }
.nav-item:hover, .nav-item.is-active { box-shadow: 0 8px 22px rgba(232, 184, 92, .12); }
.nav-count, .avatar { background: var(--accent); color: #17120d; }
.sidebar-foot { border-color: var(--line); }
.user-chip small, .logout-button { color: #887e72; }
.workspace { background: linear-gradient(180deg, rgba(21, 18, 15, .5), transparent 35%); }
.stat-icon { color: var(--accent); background: rgba(232, 184, 92, .13); }
.stat-green { color: var(--green); background: rgba(141, 187, 140, .13); }
.stat-red { color: var(--red); background: rgba(228, 125, 111, .13); }
.stat-yellow { color: var(--yellow); background: rgba(232, 184, 92, .13); }
.product-card:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .38); }
.product-thumb, .order-product-link { background: #171310; }
.badge { background: #2b221c; color: var(--ink); }
.badge.new { color: var(--accent); }
.stock { color: var(--green); }.stock.low { color: var(--yellow); }.stock.empty { color: var(--red); }
.orders-table th { color: #b9a98f; background: #2a211b; border-color: var(--line); }
.orders-table td { border-color: var(--line); }
.orders-table tbody tr:hover { background: rgba(232, 184, 92, .06); }
.order-status { color: #b9d9a5; background: rgba(141, 187, 140, .14); }.status-processing { color: var(--yellow); background: rgba(232, 184, 92, .14); }.status-shipped { color: #9bc4d7; background: rgba(100, 160, 190, .14); }.status-completed { color: var(--green); background: rgba(141, 187, 140, .14); }.status-cancelled, .status-refunded { color: var(--red); background: rgba(228, 125, 111, .14); }
.order-detail-grid > div, .promotion-limit-field input:disabled, .table-action.is-disabled, .table-action:disabled { background: #2a211b; }
.order-detail-grid > div { border-left-color: var(--accent); }
.dialog-head, .dialog-foot, .form-section { background: #211b17; border-color: var(--line); }
.product-dialog { background: var(--paper); }
.product-dialog::backdrop { background: rgba(8, 6, 5, .82); }
.toggle-row { border-color: var(--line); background: rgba(255, 255, 255, .015); }
.toggle-row input:checked + .toggle { background: var(--accent-dark); }
.toggle { background: #4a4036; }
.toggle-row strong, .dialog-head h2, .section-heading h2, .monitoring-heading h2, .empty-state h2, .section-label h3 { color: #f5f1e8; }
.health-card.is-error { border-color: rgba(228, 125, 111, .4); background: rgba(228, 125, 111, .08); }
.toast { color: #17120d; background: var(--accent); box-shadow: var(--shadow); }.toast.error { color: #fff; background: #873f38; }

/* Luxury finish */
:root {
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --gold-soft: #f0c875;
    --surface-raised: rgba(40, 31, 24, .88);
}

body {
    letter-spacing: .005em;
}

.login-view {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: 32px 20px;
    background: radial-gradient(circle at 50% -12%, rgba(240, 200, 117, .2), transparent 38%), radial-gradient(circle at 7% 95%, rgba(124, 87, 50, .2), transparent 30%), var(--paper);
}

.login-card {
    width: min(100%, 460px);
    padding: clamp(34px, 6vw, 62px);
    text-align: center;
    border: 1px solid rgba(240, 200, 117, .2);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(48, 37, 28, .96), rgba(29, 23, 19, .96));
    box-shadow: 0 30px 100px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.login-card::before {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.login-card .brand-mark {
    margin-bottom: 56px;
    font-size: 34px;
    letter-spacing: -.14em;
}

.login-card h1 {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.02;
}

.login-copy {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    color: #c8bbaa;
}

.stack-form {
    gap: 16px;
}

.stack-form label {
    gap: 9px;
    color: #c8bbaa;
    text-align: left;
}

input, select, textarea, .order-note-field textarea {
    min-height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(15, 12, 10, .58);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

input:hover, select:hover, textarea:hover {
    border-color: rgba(240, 200, 117, .34);
}

input:focus, select:focus, textarea:focus, .order-note-field textarea:focus {
    background: rgba(15, 12, 10, .8);
    border-color: var(--gold-soft);
    box-shadow: 0 0 0 4px rgba(240, 200, 117, .12), 0 8px 25px rgba(0, 0, 0, .16);
}

.button {
    min-height: 46px;
    border-radius: var(--radius-sm);
    transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-accent {
    box-shadow: 0 9px 24px rgba(232, 184, 92, .16);
}

.button-dark, .button-ghost, .icon-button, .close-button, .table-action, .delete-reference, .file-button {
    border-radius: var(--radius-sm);
}

.icon-button {
    width: 46px;
    min-height: 46px;
}

.sidebar {
    position: relative;
    z-index: 1;
    padding: 30px 20px 22px;
    background: linear-gradient(180deg, rgba(38, 29, 23, .98), rgba(24, 19, 16, .98));
    box-shadow: 12px 0 40px rgba(0, 0, 0, .16);
}

.sidebar-head {
    padding: 0 10px 52px;
}

.nav-item {
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s, transform .2s;
}

.nav-item:hover, .nav-item.is-active {
    transform: translateX(2px);
}

.workspace {
    padding-top: clamp(28px, 5vw, 54px);
}

.topbar, .section-heading, .monitoring-heading {
    margin-bottom: 32px;
}

.stat-card, .product-card, .reference-card, .health-card, .audit-stat, .orders-table-wrap, .influencer-profile-card {
    border-radius: var(--radius-md);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.stat-card, .audit-stat {
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.stat-card:hover, .audit-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 200, 117, .28);
}

.product-card, .reference-card, .health-card, .audit-stat, .orders-table-wrap {
    overflow: hidden;
}

.product-thumb {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.orders-table-wrap {
    border-color: rgba(240, 200, 117, .14);
}

.orders-table th:first-child, .orders-table td:first-child {
    padding-left: 22px;
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-action:hover, .icon-button:hover, .close-button:hover {
    transform: translateY(-1px);
    background: rgba(240, 200, 117, .08);
}

dialog {
    border: 1px solid rgba(240, 200, 117, .2);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 120px rgba(0, 0, 0, .55);
}

.dialog-head, .dialog-foot {
    border-color: var(--line);
}

.form-section {
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.toast {
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-sm);
    padding: 15px 19px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

@media (max-width: 650px) {
    .login-view {
        padding: 18px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: var(--radius-md);
    }

    .login-card .brand-mark {
        margin-bottom: 42px;
    }

    .sidebar {
        box-shadow: 0 10px 35px rgba(0, 0, 0, .22);
    }

    .nav-item:hover, .nav-item.is-active {
        transform: none;
    }

    .toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        max-width: none;
    }
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 42px;
    margin: 12px 0 28px;
}

.pagination-button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: rgba(255, 255, 255, .035);
    font-size: 11px;
    font-weight: 800;
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.pagination-button:hover:not(:disabled) {
    transform: translateY(-1px);
    color: var(--gold-soft);
    border-color: var(--gold-soft);
    background: rgba(240, 200, 117, .08);
}

.pagination-button.is-active {
    color: #17120d;
    border-color: var(--gold-soft);
    background: var(--gold-soft);
}

.pagination-button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.pagination-label {
    margin-left: 8px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .sidebar {
        position: sticky;
        height: auto;
        max-height: 76px;
        overflow: hidden;
    }

    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 650px) {
    .workspace {
        width: 100%;
        min-width: 0;
        padding: 22px 14px 42px;
    }

    .sidebar {
        padding: 12px 14px;
    }

    .sidebar-head {
        padding: 0 4px 12px;
    }

    .side-nav {
        gap: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(240, 200, 117, .72) rgba(42, 33, 27, .72);
    }

    .side-nav::-webkit-scrollbar { display: block; width: 6px; height: 6px; }

    .nav-item {
        padding: 10px 11px;
        font-size: 10px;
    }

    .nav-icon {
        width: 16px;
        font-size: 15px;
    }

    .topbar {
        align-items: stretch;
        gap: 18px;
        margin-bottom: 28px;
    }

    .topbar h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .top-actions {
        align-items: stretch;
        gap: 9px;
    }

    .top-actions .save-state {
        align-self: center;
        font-size: 9px;
    }

    .top-actions .button {
        flex: 1;
    }

    .section-heading, .monitoring-heading {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 22px;
    }

    .section-heading h2, .monitoring-heading h2 {
        font-size: 24px;
        line-height: 1.1;
    }

    .section-heading .button, .monitoring-heading .button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 10px;
    }

    .stats-grid, .order-stats-grid, .audit-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 22px;
    }

    .stat-card {
        min-height: 88px;
        padding: 14px;
        gap: 9px;
    }

    .stat-card strong, .audit-stat strong {
        font-size: 21px;
    }

    .stat-card small, .audit-stat small {
        font-size: 9px;
        line-height: 1.35;
    }

    .audit-stat {
        min-width: 0;
        padding: 14px;
    }

    .toolbar, .audit-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 18px;
    }

    .toolbar .search-box, .audit-toolbar .search-box,
    .toolbar select, .audit-toolbar select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .toolbar .icon-button {
        width: 100%;
    }

    .product-grid, .influencer-profiles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .influencer-profile-card {
        padding: 17px;
    }

    .influencer-profile-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .reference-grid {
        gap: 12px;
    }

    .reference-card {
        padding: 19px;
    }

    .orders-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table {
        min-width: 720px;
    }

    .promotions-table {
        min-width: 820px;
    }

    .audit-table {
        min-width: 660px;
    }

    .orders-table th, .orders-table td {
        padding: 12px 13px;
        font-size: 11px;
    }

    .orders-table th:first-child, .orders-table td:first-child {
        padding-left: 15px;
    }

    .dialog-actions {
        width: 100%;
        gap: 8px;
    }

    .dialog-actions .button, .dialog-actions .icon-button {
        flex: 1;
    }

    dialog, .product-dialog, .order-dialog, .influencer-detail-dialog {
        width: calc(100% - 24px);
        max-width: none;
        max-height: calc(100svh - 24px);
        margin: 12px auto;
        border-radius: var(--radius-md);
    }

    .dialog-head, .dialog-foot, .dialog-body {
        padding: 18px;
    }

    .dialog-head h2 {
        font-size: 22px;
    }

    .dialog-foot {
        gap: 10px;
    }

    .dialog-foot .button {
        flex: 1 1 140px;
    }

    .influencer-detail-grid, .influencer-profile-stats {
        gap: 6px;
    }

    .influencer-detail-grid div, .influencer-profile-stats div {
        padding: 10px;
        min-width: 0;
    }

    .influencer-detail-head h2 {
        font-size: 24px;
    }

    .influencer-contact-links, .influencer-management {
        padding: 13px 14px;
    }

    .pagination {
        margin-top: 9px;
        margin-bottom: 22px;
    }

    .pagination-button {
        min-width: 32px;
        height: 32px;
    }
}

@media (max-width: 420px) {
    .stats-grid, .order-stats-grid, .audit-stats-grid {
        grid-template-columns: 1fr;
    }

    .top-actions {
        flex-direction: column;
    }

    .top-actions .button {
        width: 100%;
    }

    .section-heading .button, .monitoring-heading .button {
        padding-left: 9px;
        padding-right: 9px;
    }

    .field-grid, .toggle-grid {
        grid-template-columns: 1fr;
    }

    .toggle-row {
        min-height: 54px;
    }

    .influencer-detail-grid, .influencer-profile-stats {
        grid-template-columns: 1fr;
    }

    .pagination-label {
        width: 100%;
        margin: 3px 0 0;
        text-align: center;
    }
}

.sidebar-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: rgba(255, 255, 255, .04);
    font-size: 18px;
    line-height: 1;
}

.luxury-cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 9997;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.luxury-cursor-dot {
    position: fixed;
    z-index: 9998;
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ff2a2a 38%, transparent 42%),
        radial-gradient(circle at center, #111111 68%, transparent 72%),
        radial-gradient(circle at center, #ffffff 100%, transparent 100%);
    box-shadow: 0 1px 3px rgba(17, 17, 17, .35);
    transition: opacity .3s ease;
}

.luxury-cursor-dot.is-visible {
    opacity: 1;
}

@media (pointer: fine) {
    body, body * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='%23ffffff' stroke='%23111111' stroke-width='2'/%3E%3Ccircle cx='9' cy='9' r='3' fill='%23ff2a2a'/%3E%3C/svg%3E") 9 9, auto !important;
    }
}

@media (max-width: 650px) {
    .mobile-menu-toggle {
        display: grid;
        place-items: center;
    }

    .sidebar.is-expanded {
        max-height: calc(100svh - 12px);
        overflow-y: auto;
    }

    .sidebar.is-expanded .side-nav {
        display: grid;
        overflow: visible;
    }

    .sidebar.is-expanded .sidebar-foot {
        display: flex;
    }

    .sidebar.is-expanded .mobile-menu-toggle {
        color: #17120d;
        border-color: var(--gold-soft);
        background: var(--gold-soft);
    }
}

@media (pointer: coarse) {
    .luxury-cursor-trail, .luxury-cursor-dot {
        display: none;
    }
}

/* Storefront palette */
:root {
    --ink: #111111;
    --muted: #6f6f6f;
    --line: #e0e0e0;
    --paper: #ffffff;
    --card: #ffffff;
    --accent: #111111;
    --accent-dark: #000000;
    --red: #ff2a2a;
    --green: #2f6b48;
    --yellow: #b27800;
    --gold-soft: #111111;
    --shadow: 0 18px 50px rgba(17, 17, 17, .08);
}

body {
    color: var(--ink);
    background: #ffffff;
}

body::before {
    display: none;
}

.login-view {
    background: radial-gradient(circle at 50% 0, rgba(255, 42, 42, .08), transparent 36%), #ffffff;
}

.login-card, .stat-card, .product-card, .reference-card, .health-card, .audit-stat, .orders-table-wrap {
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 0 18px 50px rgba(17, 17, 17, .08);
}

.login-card {
    border-top: 3px solid var(--red);
    background: #ffffff;
}

.login-card::before {
    display: none;
}

.brand-mark span, .admin-label, .section-label span, .reference-icon {
    color: var(--red);
}

.eyebrow, .login-copy, .section-intro, .save-state, .stat-card small, .product-id, .field-hint, .upload-note, .promotion-field-hint {
    color: var(--muted);
}

input, select, textarea, .order-note-field textarea {
    color: var(--ink);
    border-color: var(--line);
    background: #ffffff;
    caret-color: var(--red);
}

input::placeholder, textarea::placeholder {
    color: #8a8a8a;
}

input:focus, select:focus, textarea:focus, .order-note-field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 42, 42, .1);
}

.button-dark, .sidebar {
    background: #111111;
}

.button-accent, .nav-item:hover, .nav-item.is-active {
    color: #ffffff;
    background: #111111;
}

.button-accent:hover {
    background: var(--red);
}

.button-ghost, .icon-button, .close-button, .table-action, .delete-reference, .file-button {
    color: var(--ink);
    border-color: var(--line);
    background: #ffffff;
}

.button-ghost:hover, .icon-button:hover, .close-button:hover, .table-action:hover {
    color: var(--red);
    border-color: var(--red);
    background: #ffffff;
}

.sidebar {
    border-right-color: #111111;
    background: #111111;
}

.sidebar-head {
    border-bottom-color: rgba(255, 255, 255, .16);
}

.nav-item {
    color: #bdbdbd;
}

.nav-item:hover, .nav-item.is-active {
    box-shadow: 0 8px 22px rgba(255, 42, 42, .16);
}

.nav-count, .avatar {
    color: #ffffff;
    background: var(--red);
}

.sidebar-foot {
    border-color: rgba(255, 255, 255, .16);
}

.user-chip small, .logout-button {
    color: #999999;
}

.workspace {
    background: #ffffff;
}

.stat-icon {
    color: var(--red);
    background: rgba(255, 42, 42, .1);
}

.stat-green {
    color: var(--green);
    background: rgba(47, 107, 72, .1);
}

.stat-red {
    color: var(--red);
    background: rgba(255, 42, 42, .1);
}

.stat-yellow {
    color: var(--yellow);
    background: rgba(178, 120, 0, .1);
}

.orders-table th {
    color: #666666;
    background: #f7f7f7;
    border-color: var(--line);
}

.orders-table td {
    color: var(--ink);
    border-color: var(--line);
}

.orders-table tbody tr:hover {
    background: rgba(255, 42, 42, .035);
}

.order-status {
    color: #2f6b48;
    background: rgba(47, 107, 72, .1);
}

.status-processing {
    color: #986900;
    background: rgba(178, 120, 0, .12);
}

.status-cancelled, .status-refunded {
    color: #c51f1f;
    background: rgba(255, 42, 42, .1);
}

.dialog-head, .dialog-foot, .form-section {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

.influencer-profile-card, #influencer-detail-content {
    color: var(--ink);
}

.influencer-profile-card {
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 0 18px 50px rgba(17, 17, 17, .08);
}

.influencer-profile-card h3,
.influencer-profile-card strong,
#influencer-detail-content h2,
#influencer-detail-content h3,
#influencer-detail-content strong,
#influencer-detail-content td,
#influencer-detail-content p {
    color: var(--ink);
}

.influencer-profile-card small,
.influencer-profile-card span,
#influencer-detail-content small,
#influencer-detail-content .field-hint {
    color: var(--muted);
}

.influencer-profile-card a,
#influencer-detail-content a,
.influencer-contact-links a,
.agreement-link {
    color: var(--red);
}

.influencer-profile-card .table-action,
#influencer-detail-content .table-action {
    color: var(--ink);
    border-color: var(--line);
}

.influencer-profile-card .influencer-profile-stats div,
#influencer-detail-content .influencer-detail-grid div {
    color: var(--ink);
    background: #f7f7f7;
    border-color: var(--line);
}

.influencer-management,
.influencer-contact-links {
    background: #f7f7f7;
    border-color: var(--line);
}

.influencer-management {
    border-left-color: var(--red);
}

.influencer-management strong,
.influencer-contact-links strong {
    color: var(--red);
}

.influencer-management span {
    color: var(--ink);
}

.dialog-head h2, .section-heading h2, .monitoring-heading h2, .empty-state h2, .section-label h3, .toggle-row strong {
    color: var(--ink);
}

.product-dialog, dialog {
    background: #ffffff;
    border-color: var(--line);
}

.product-dialog::backdrop, dialog::backdrop {
    background: rgba(17, 17, 17, .55);
}

.toggle-row {
    background: #ffffff;
    border-color: var(--line);
}

.toggle-row input:checked + .toggle {
    background: var(--red);
}

.toggle {
    background: #d7d7d7;
}

.toast {
    color: #ffffff;
    background: #111111;
    border-color: rgba(255, 255, 255, .16);
}

.toast.error {
    color: #ffffff;
    background: var(--red);
}

/* Restore panel luxury palette */
:root {
    --ink: #f5f1e8;
    --muted: #aa9f91;
    --line: rgba(245, 241, 232, .13);
    --paper: #15120f;
    --card: #211b17;
    --accent: #e8b85c;
    --accent-dark: #c9923e;
    --red: #e47d6f;
    --green: #8dbb8c;
    --yellow: #e8b85c;
    --gold-soft: #f0c875;
    --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

body { color: var(--ink); background: radial-gradient(circle at 82% 0, #3b3024 0, transparent 27%), var(--paper); }
body::before { display: block; position: fixed; inset: 0; z-index: -1; background: linear-gradient(135deg, transparent 48%, rgba(232, 184, 92, .035) 49%, transparent 50%); background-size: 38px 38px; content: ''; pointer-events: none; }
.login-view { background: radial-gradient(circle at 50% 0, #413426 0, transparent 42%), var(--paper); }
.login-card, .stat-card, .product-card, .reference-card, .health-card, .audit-stat, .orders-table-wrap { background: rgba(33, 27, 23, .92); border-color: var(--line); box-shadow: var(--shadow); }
.login-card { border-top: 0; background: linear-gradient(145deg, rgba(48, 37, 28, .96), rgba(29, 23, 19, .96)); }
.login-card::before { display: block; height: 4px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.brand-mark span, .admin-label, .section-label span, .reference-icon { color: var(--accent); }
.eyebrow, .login-copy, .section-intro, .save-state, .stat-card small, .product-id, .field-hint, .upload-note, .promotion-field-hint { color: var(--muted); }
input, select, textarea, .order-note-field textarea { color: #f5f1e8; border-color: var(--line); background: #171310; caret-color: #f5f1e8; }
input::placeholder, textarea::placeholder { color: #b9a98f; }
input:focus, select:focus, textarea:focus, .order-note-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 184, 92, .16); }
.button-dark, .sidebar { background: #211b17; }
.button-accent, .nav-item:hover, .nav-item.is-active { color: #17120d; background: var(--accent); }
.button-accent:hover { background: #f0c875; }
.button-ghost, .icon-button, .close-button, .table-action, .delete-reference, .file-button { color: var(--ink); border-color: var(--line); background: transparent; }
.button-ghost:hover, .icon-button:hover, .close-button:hover, .table-action:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.sidebar { border-right-color: rgba(232, 184, 92, .14); background: linear-gradient(180deg, rgba(38, 29, 23, .98), rgba(24, 19, 16, .98)); }
.sidebar-head { border-bottom-color: var(--line); }
.nav-item { color: #a99e91; }
.nav-item:hover, .nav-item.is-active { box-shadow: 0 8px 22px rgba(232, 184, 92, .12); }
.nav-count, .avatar { color: #17120d; background: var(--accent); }
.sidebar-foot { border-color: var(--line); }
.user-chip small, .logout-button { color: #887e72; }
.workspace { background: linear-gradient(180deg, rgba(21, 18, 15, .5), transparent 35%); }
.stat-icon { color: var(--accent); background: rgba(232, 184, 92, .13); }
.stat-green { color: var(--green); background: rgba(141, 187, 140, .13); }
.stat-red { color: var(--red); background: rgba(228, 125, 111, .13); }
.stat-yellow { color: var(--yellow); background: rgba(232, 184, 92, .13); }
.orders-table th { color: #b9a98f; background: #2a211b; border-color: var(--line); }
.orders-table td { color: var(--ink); border-color: var(--line); }
.orders-table tbody tr:hover { background: rgba(232, 184, 92, .06); }
.order-status { color: #b9d9a5; background: rgba(141, 187, 140, .14); }
.status-processing { color: var(--yellow); background: rgba(232, 184, 92, .14); }
.status-cancelled, .status-refunded { color: var(--red); background: rgba(228, 125, 111, .14); }
.dialog-head, .dialog-foot, .form-section { color: var(--ink); background: #211b17; border-color: var(--line); }
.dialog-head h2, .section-heading h2, .monitoring-heading h2, .empty-state h2, .section-label h3, .toggle-row strong { color: #f5f1e8; }
.product-dialog, dialog { background: var(--paper); border-color: var(--line); }
.product-dialog::backdrop, dialog::backdrop { background: rgba(8, 6, 5, .82); }
.toggle-row { background: rgba(255, 255, 255, .015); border-color: var(--line); }
.toggle-row input:checked + .toggle { background: var(--accent-dark); }
.toggle { background: #4a4036; }
.toast { color: #17120d; background: var(--accent); border-color: rgba(255, 255, 255, .16); }
.toast.error { color: #ffffff; background: #873f38; }

.influencer-profile-card, #influencer-detail-content { color: #f5f1e8; }
.influencer-profile-card { background: rgba(33, 27, 23, .92); border-color: var(--line); box-shadow: var(--shadow); }
.influencer-profile-card h3, .influencer-profile-card strong, #influencer-detail-content h2, #influencer-detail-content h3, #influencer-detail-content strong, #influencer-detail-content td, #influencer-detail-content p { color: #f5f1e8; }
.influencer-profile-card small, .influencer-profile-card span, #influencer-detail-content small, #influencer-detail-content .field-hint { color: #c8bbaa; }
.influencer-profile-card a, #influencer-detail-content a, .influencer-contact-links a, .agreement-link { color: #f0c875; }
.influencer-profile-card .table-action, #influencer-detail-content .table-action { color: #f5f1e8; border-color: rgba(245, 241, 232, .28); }
.influencer-profile-card .influencer-profile-stats div, #influencer-detail-content .influencer-detail-grid div { color: #f5f1e8; background: rgba(255, 255, 255, .08); border-color: rgba(245, 241, 232, .12); }
.influencer-management, .influencer-contact-links { background: rgba(255, 255, 255, .04); border-color: rgba(245, 241, 232, .12); }
.influencer-management { border-left-color: var(--accent); }
.influencer-management strong, .influencer-contact-links strong { color: #f0c875; }
.influencer-management span { color: #f5f1e8; }

.luxury-cursor-dot { left: 50%; top: 50%; opacity: 1; background: radial-gradient(circle at center, #75471e 38%, transparent 42%), radial-gradient(circle at center, #3c2a21 68%, transparent 72%), radial-gradient(circle at center, #d4a373 100%, transparent 100%); box-shadow: 0 1px 3px rgba(60, 42, 33, .3); }
.luxury-cursor-trail { opacity: .9; }

@media (pointer: fine) {
    body, body * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='%23d4a373' stroke='%233c2a21' stroke-width='2'/%3E%3Ccircle cx='9' cy='9' r='3' fill='%2375471e'/%3E%3C/svg%3E") 9 9, auto !important;
    }
}

/* Refined tiles */
.stat-card, .audit-stat, .product-card, .reference-card, .health-card, .influencer-profile-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border-color: rgba(240, 200, 117, .16);
    background: linear-gradient(145deg, rgba(48, 37, 28, .98), rgba(29, 23, 19, .98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .045);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.stat-card::before, .audit-stat::before, .product-card::before, .reference-card::before, .health-card::before, .influencer-profile-card::before {
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 200, 117, .58), transparent);
    content: '';
    opacity: .7;
}

.stat-card:hover, .audit-stat:hover, .product-card:hover, .reference-card:hover, .health-card:hover, .influencer-profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 200, 117, .34);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.stat-card strong, .audit-stat strong {
    color: #f5f1e8;
    letter-spacing: -.04em;
}

.stat-card small, .audit-stat small {
    letter-spacing: .02em;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(240, 200, 117, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.audit-stat {
    min-height: 96px;
}

.product-card .product-details {
    padding: 18px;
}

.reference-card {
    padding: 28px;
}

.health-card {
    border-radius: 14px;
}

@media (max-width: 650px) {
    .stat-card, .audit-stat, .product-card, .reference-card, .health-card, .influencer-profile-card {
        border-radius: 15px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }
}

.order-dialog .dialog-body,
.order-dialog .order-detail-section,
.order-dialog .order-detail-head {
    color: #f5f1e8;
}

.order-dialog .order-detail-section h3,
.order-dialog .order-system-number,
.order-dialog .order-summary-line strong,
.order-dialog .order-address,
.order-dialog .order-identifiers strong,
.order-dialog .order-detail-item strong,
.order-dialog .order-total strong {
    color: #f5f1e8;
}

.order-dialog .order-detail-section h3 {
    color: #f0c875;
    letter-spacing: .08em;
}

.order-dialog .order-system-label,
.order-dialog .order-summary-line,
.order-dialog .order-identifiers small,
.order-dialog .order-detail-section > small,
.order-dialog .order-detail-item small,
.order-dialog .order-address + small,
.order-dialog .order-customer-notice .field-hint {
    color: #c8bbaa;
}

.order-dialog .order-detail-section,
.order-dialog .order-detail-head,
.order-dialog .order-items,
.order-dialog .order-detail-item {
    border-color: rgba(245, 241, 232, .16);
}

.orders-toolbar select#orders-status-filter {
    min-height: 48px;
    padding: 12px 38px 12px 16px;
    border-color: rgba(240, 200, 117, .22) !important;
    border-radius: 14px;
    background: #171310 !important;
    color: #f5f1e8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.orders-toolbar select#orders-status-filter:hover {
    border-color: rgba(240, 200, 117, .5) !important;
    background: #211b17 !important;
}

.orders-toolbar select#orders-status-filter:focus {
    border-color: #f0c875 !important;
    box-shadow: 0 0 0 4px rgba(240, 200, 117, .12), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.orders-toolbar select#orders-status-filter option {
    background: #211b17;
    color: #f5f1e8;
}

@media (max-width: 650px) {
    .hero-editor-toolbar { align-items: stretch; flex-direction: column; }
    .hero-editor-toolbar label { width: auto; }
    .hero-slide-fields { grid-template-columns: 1fr; }
    .hero-slide-preview-wrap { min-height: 160px; }
    .hero-slide-preview { min-height: 160px; }
}
