:root {
    --admin-ink: #19352f;
    --admin-muted: #708077;
    --admin-paper: #f7faf5;
    --admin-panel: #ffffff;
    --admin-line: #dbe4dc;
    --admin-green: #245645;
    --admin-deep: #102f2b;
    --admin-lime: #d8e56d;
    --admin-orange: #d66b43;
    --admin-shadow: 0 18px 55px rgba(16, 47, 43, .08);
}

* { box-sizing: border-box; }
html { background: var(--admin-paper); }
body { margin: 0; color: var(--admin-ink); background: var(--admin-paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 28px 18px 20px; color: #eaf1e8; background: var(--admin-deep); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 12px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px 10px 10px 3px; color: var(--admin-deep); background: var(--admin-lime); font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { letter-spacing: -.03em; font-size: 17px; }
.brand-lockup div > span { margin-top: 2px; color: #9fb5a7; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-label { margin: 54px 12px 12px; color: #7f9a8b; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #a7bcae; font-weight: 600; transition: .2s ease; }
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(216, 229, 109, .12); }
.nav-link.is-active { box-shadow: inset 3px 0 0 var(--admin-lime); }
.nav-icon { display: grid; width: 22px; place-items: center; color: var(--admin-lime); font-size: 19px; line-height: 1; }
.nav-badge { display: inline-flex; min-width: 21px; height: 21px; align-items: center; justify-content: center; margin-left: auto; padding: 0 5px; border-radius: 999px; color: #fff; background: #d84545; font-size: 10px; font-weight: 800; line-height: 1; }
.sidebar-spacer { flex: 1; }
.sidebar-help { margin: 18px 8px 18px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.045); }
.help-kicker { display: block; margin-bottom: 9px; color: var(--admin-lime); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-help strong { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.sidebar-help p { margin: 8px 0 0; color: #91a89a; font-size: 12px; line-height: 1.5; }
.store-link { display: flex; justify-content: space-between; padding: 12px; color: #a7bcae; font-size: 12px; font-weight: 600; }
.store-link:hover { color: var(--admin-lime); }
.admin-main { min-height: 100vh; margin-left: 248px; }
.admin-topbar { display: flex; height: 80px; align-items: center; justify-content: space-between; padding: 0 44px; border-bottom: 1px solid var(--admin-line); background: rgba(247,250,245,.88); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--admin-muted); font-size: 12px; }
.breadcrumb b { color: #b8c5bc; font-weight: 400; }
.breadcrumb strong { color: var(--admin-ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--admin-green); font-size: 11px; font-weight: 700; }
.live-dot::before { width: 7px; height: 7px; border-radius: 50%; background: #68b36b; content: ""; }
.admin-user { display: flex; align-items: center; gap: 9px; color: var(--admin-ink); font-size: 12px; font-weight: 600; }
.avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--admin-deep); background: var(--admin-lime); font-size: 11px; font-weight: 800; }
.logout-button { border: 0; color: var(--admin-muted); background: transparent; font-size: 12px; font-weight: 600; }
.logout-button:hover { color: var(--admin-orange); }
.admin-content { max-width: 1440px; margin: 0 auto; padding: 42px 44px 70px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--admin-orange); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-header h1, .login-heading h2 { margin: 0; color: var(--admin-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.page-header p { max-width: 520px; margin: 11px 0 0; color: var(--admin-muted); line-height: 1.6; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--admin-deep); background: var(--admin-lime); }
.button-primary:hover { background: #e3ed89; }
.button-secondary { color: var(--admin-green); border-color: var(--admin-line); background: var(--admin-panel); }
.button-secondary:hover { border-color: #adc4b4; background: #f5faf2; }
.button-danger { color: #a63d2d; border-color: #f0cec5; background: #fff7f4; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 11px; }
.button-wide { width: 100%; min-height: 48px; }
.flash { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: 13px; }
.flash span { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; font-weight: 800; }
.flash-success { color: #2b6140; border-color: #c7e2cc; background: #f0faf1; }
.flash-success span { color: #fff; background: #5aa268; }
.flash-error { color: #9b4233; border-color: #f0cbc2; background: #fff5f2; }
.flash-error span { color: #fff; background: var(--admin-orange); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { min-height: 142px; padding: 22px; border: 1px solid var(--admin-line); border-radius: 13px; background: var(--admin-panel); box-shadow: 0 8px 26px rgba(16,47,43,.025); }
.stat-card.is-highlight { color: #fff; border-color: var(--admin-green); background: var(--admin-green); }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--admin-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.is-highlight .stat-label { color: #b9d0c0; }
.stat-label span { color: var(--admin-orange); font-size: 18px; }
.stat-value { display: block; margin-top: 23px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.stat-meta { margin-top: 6px; color: var(--admin-muted); font-size: 11px; }
.is-highlight .stat-meta { color: #b9d0c0; }
.dashboard-ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.dashboard-ops-grid .stat-card { min-height: 122px; padding: 18px; }
.dashboard-ops-grid .stat-value { margin-top: 18px; font-size: 30px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 24px; }
.reports-page-header { align-items: start; }
.report-filter { display: grid; gap: 10px; min-width: min(100%, 425px); padding: 15px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-panel); box-shadow: 0 8px 24px rgba(16,47,43,.04); }
.report-filter > div { display: flex; align-items: end; gap: 8px; }
.report-filter label { display: grid; flex: 1; gap: 6px; color: var(--admin-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-filter input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--admin-line); border-radius: 7px; outline: 0; color: var(--admin-ink); background: #fcfefb; font-size: 12px; font-weight: 500; text-transform: none; }
.report-filter input:focus { border-color: var(--admin-green); box-shadow: 0 0 0 3px rgba(36,86,69,.1); }
.report-filter-arrow { padding-bottom: 11px; color: var(--admin-muted); font-size: 14px; }
.report-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: -8px 0 24px; color: var(--admin-muted); font-size: 11px; }
.report-presets > span { margin-right: 4px; color: var(--admin-ink); font-weight: 800; }
.report-presets a { padding: 7px 10px; border: 1px solid var(--admin-line); border-radius: 999px; background: var(--admin-panel); }
.report-presets a:hover { color: var(--admin-green); border-color: #adc4b4; background: #f5faf2; }
.report-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.report-panel { overflow: hidden; margin-bottom: 24px; }
.report-kicker { display: block; margin-bottom: 7px; color: var(--admin-orange); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.report-total { display: grid; gap: 3px; text-align: right; }
.report-total strong, .report-inline-total { color: var(--admin-green); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.report-total span { color: var(--admin-muted); font-size: 10px; font-weight: 700; }
.sales-chart { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; min-height: 220px; padding: 24px 24px 0 12px; }
.sales-chart-y { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 5px; color: var(--admin-muted); font-size: 10px; text-align: right; }
.sales-chart svg { width: 100%; height: 220px; overflow: visible; }
.chart-grid-line { stroke: #e8eee8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#sales-fill); stroke: none; }
.chart-line { fill: none; stroke: var(--admin-green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 4px; margin: 8px 24px 0 92px; color: var(--admin-muted); font-size: 10px; text-align: center; }
.chart-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-footnote { display: flex; justify-content: space-between; gap: 12px; margin: 20px 24px 21px 92px; padding-top: 15px; border-top: 1px solid #edf2ed; color: var(--admin-muted); font-size: 11px; }
.chart-footnote span:first-child { color: var(--admin-green); font-weight: 750; }
.reports-two-column { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
.reports-two-column .report-panel { min-height: 100%; }
.status-report { display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 20px; padding: 25px 24px 29px; }
.status-donut { display: grid; width: 164px; height: 164px; place-items: center; border-radius: 50%; }
.status-donut > div { display: grid; width: 94px; height: 94px; place-items: center; align-content: center; border-radius: 50%; background: var(--admin-panel); text-align: center; }
.status-donut strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.status-donut span { color: var(--admin-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-legend { display: grid; gap: 11px; }
.status-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--admin-muted); font-size: 11px; }
.status-legend span { display: flex; align-items: center; gap: 8px; }
.status-legend i { width: 8px; height: 8px; border-radius: 50%; }
.status-legend strong { color: var(--admin-ink); }
.report-bars { display: grid; gap: 15px; padding: 5px 24px 27px; }
.report-bar-row { display: grid; gap: 7px; }
.report-bar-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--admin-muted); font-size: 11px; }
.report-bar-row > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-bar-row > div:first-child strong { flex: 0 0 auto; color: var(--admin-ink); }
.report-bar-track, .table-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #edf3eb; }
.report-bar-track i, .table-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b8c6a, #a6c87c); }
.report-bar-row small { color: var(--admin-muted); font-size: 10px; }
.report-table .report-rank { color: var(--admin-orange); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 800; }
.report-table td strong { font-weight: 750; }
.table-bar { width: 130px; }
.report-chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--admin-green); background: #edf5e8; font-size: 10px; font-weight: 750; white-space: nowrap; }
.panel { border: 1px solid var(--admin-line); border-radius: 13px; background: var(--admin-panel); box-shadow: var(--admin-shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 22px; border-bottom: 1px solid var(--admin-line); }
.panel-header h2 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; letter-spacing: -.03em; }
.panel-header p { margin: 4px 0 0; color: var(--admin-muted); font-size: 12px; }
.panel-link { color: var(--admin-green); font-size: 11px; font-weight: 800; }
.panel-link:hover { color: var(--admin-orange); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 13px 18px; color: #87958b; border-bottom: 1px solid var(--admin-line); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 18px; border-bottom: 1px solid #edf2ed; color: var(--admin-ink); font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdf9; }
.table-primary { display: block; font-weight: 750; }
.table-secondary { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 11px; }
.money { font-weight: 800; white-space: nowrap; }
.status-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.status-published, .status-completed, .status-instock { color: #2d7048; background: #e8f5e9; }
.status-draft, .status-pending, .status-on-hold, .status-onbackorder { color: #84651d; background: #fff3cf; }
.status-private, .status-processing { color: #2f5c86; background: #e9f1fa; }
.status-archived, .status-cancelled, .status-failed, .status-outofstock { color: #a24a3b; background: #fff0eb; }
.status-refunded { color: #765a90; background: #f3eafb; }
.product-thumb { width: 42px; height: 42px; overflow: hidden; border-radius: 8px; background: #e7eee1; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 230px; }
.empty-state { padding: 38px 22px; color: var(--admin-muted); text-align: center; }
.stock-list { display: grid; gap: 0; padding: 5px 22px 14px; }
.stock-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid #edf2ed; }
.stock-row:last-child { border-bottom: 0; }
.stock-name { font-weight: 750; }
.stock-name small { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 11px; font-weight: 400; }
.stock-count { color: var(--admin-orange); font-size: 12px; font-weight: 800; }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.filter-form { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
.filter-context { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -4px 0 18px; padding: 11px 13px; border: 1px solid #dce8d7; border-radius: 8px; color: var(--admin-muted); background: #f8fbf5; font-size: 12px; }
.filter-context strong { color: var(--admin-ink); }
.filter-context a { color: var(--admin-green); font-size: 11px; font-weight: 800; }
.field-inline { display: grid; gap: 6px; color: var(--admin-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-inline input, .field-inline select { min-height: 39px; min-width: 190px; padding: 0 11px; border: 1px solid var(--admin-line); border-radius: 8px; outline: 0; color: var(--admin-ink); background: var(--admin-panel); font-size: 12px; font-weight: 500; text-transform: none; }
.field-inline input:focus, .field-inline select:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--admin-green); box-shadow: 0 0 0 3px rgba(36,86,69,.1); }
.pagination-row { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-top: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 11px; }
.pagination { display: flex; gap: 5px; }
.pagination a, .pagination span { display: grid; min-width: 28px; height: 28px; place-items: center; border: 1px solid var(--admin-line); border-radius: 6px; color: var(--admin-green); background: var(--admin-panel); }
.pagination .active span { color: var(--admin-deep); border-color: var(--admin-lime); background: var(--admin-lime); }
.pagination .disabled span { color: #bdc8c0; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: start; gap: 22px; }
.form-stack { display: grid; gap: 22px; }
.form-panel { padding: 24px; }
.form-panel h2 { margin: 0 0 19px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.form-panel > p { margin: -10px 0 20px; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.admin-form { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.role-pricing-panel { display: grid; gap: 17px; padding: 17px; border: 1px solid #dce8d7; border-radius: 10px; background: #f8fbf5; }
.role-pricing-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.role-pricing-heading h3 { margin: 0; color: var(--admin-ink); font-size: 14px; font-weight: 800; }
.role-pricing-heading p { max-width: 620px; margin: 5px 0 0; color: var(--admin-muted); font-size: 11px; line-height: 1.5; }
.role-price-grid { margin-top: 1px; }
.role-price-grid label small { min-height: 30px; }
.coupon-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coupon-role-option { align-items: flex-start !important; min-height: 58px; padding: 10px 12px; border: 1px solid var(--admin-line); border-radius: 8px; background: #fcfefb; }
.coupon-role-option span { display: grid; gap: 3px; }
.coupon-role-option strong { color: var(--admin-ink); font-size: 12px; }
.coupon-role-option small { margin: 0; color: var(--admin-muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.currency-preview { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 13px; padding: 13px 15px; border: 1px solid #dce8d7; border-radius: 8px; background: #f8fbf5; }
.currency-preview span { color: var(--admin-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.currency-preview strong { color: var(--admin-ink); font-size: 18px; }
.currency-preview small { color: var(--admin-muted); font-size: 10px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.admin-form label { display: grid; gap: 7px; color: var(--admin-ink); font-size: 11px; font-weight: 800; }
.admin-form label small { color: var(--admin-muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
.admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--admin-line); border-radius: 8px; outline: 0; color: var(--admin-ink); background: #fcfefb; font-size: 13px; font-weight: 500; }
.admin-form input:not([type="checkbox"]), .admin-form select { min-height: 42px; }
.admin-form textarea { min-height: 118px; resize: vertical; line-height: 1.5; }
.admin-form input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--admin-green); }
.check-row { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; color: var(--admin-muted) !important; font-size: 12px !important; font-weight: 600 !important; }
.check-row input { margin: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.form-actions-right { display: flex; gap: 8px; }
.danger-zone { border-color: #f1d1c9; }
.danger-zone h2 { color: #a24a3b; }
.muted-note { color: var(--admin-muted); font-size: 12px; line-height: 1.6; }
.category-count { color: var(--admin-muted); font-size: 11px; }
.user-cell { display: flex; align-items: center; gap: 11px; min-width: 245px; }
.user-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 50%; color: var(--admin-deep); background: #e8f0c3; font-size: 12px; font-weight: 850; }
.role-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--admin-green); background: #edf5e8; font-size: 10px; font-weight: 800; white-space: nowrap; }
.role-administrator { color: #634c86; background: #f1eafa; }
.role-staff { color: #2f5c86; background: #e9f1fa; }
.role-customer { color: #627238; background: #f1f5d9; }
.role-permission-list { display: flex; flex-wrap: wrap; gap: 5px; max-width: 510px; }
.permission-chip { padding: 5px 7px; border-radius: 5px; color: var(--admin-muted); background: #f0f5ee; font-size: 10px; line-height: 1.2; }
.role-code-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 14px; border-radius: 9px; color: #b9d0c0; background: var(--admin-deep); }
.role-code-card span { grid-column: 1 / -1; color: #8eab9b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.role-code-card strong { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.role-code-card small { color: #8eab9b; font-size: 10px; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.permission-row { min-height: 62px; padding: 10px 11px; border: 1px solid var(--admin-line); border-radius: 8px; background: #fcfefb; }
.permission-row:has(input:checked) { border-color: #b8ce87; background: #f5fae8; }
.permission-row span { display: grid; gap: 4px; }
.permission-row strong { color: var(--admin-ink); font-size: 11px; }
.permission-row small { color: var(--admin-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px !important; }
.order-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.meta-chip { padding: 7px 9px; border-radius: 7px; color: var(--admin-muted); background: #f0f5ee; font-size: 11px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); align-items: start; gap: 22px; }
.detail-list { display: grid; gap: 13px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; }
.detail-list dt { color: var(--admin-muted); font-size: 11px; }
.detail-list dd { margin: 0; font-size: 12px; font-weight: 650; }
.address-card { padding: 15px; border-radius: 8px; color: var(--admin-muted); background: #f6f9f4; font-size: 12px; line-height: 1.55; }
.address-card strong { display: block; margin-bottom: 5px; color: var(--admin-ink); }
.admin-mobile-backdrop, .menu-toggle { display: none; }
.panel-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.panel-heading-row h2 { margin-bottom: 8px; }
.panel-heading-row p { max-width: 620px; margin: 0; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.media-kicker { flex: 0 0 auto; padding: 7px 9px; border-radius: 999px; color: var(--admin-green); background: #edf5e8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.gallery-count { color: var(--admin-green); font-size: 12px; font-weight: 750; }
.media-panel { margin-top: 22px; }
.media-upload-form { display: grid; gap: 15px; margin-top: 22px; }
.media-dropzone { display: grid !important; min-height: 148px; place-items: center; align-content: center; gap: 7px !important; border: 1px dashed #a9c0ae; border-radius: 10px; color: var(--admin-green) !important; background: #f6faf3; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.media-dropzone:hover, .media-dropzone.is-dragging { border-color: var(--admin-orange); background: #fff9f3; transform: translateY(-1px); }
.media-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--admin-deep); background: var(--admin-lime); font-size: 23px; font-weight: 400; line-height: 1; }
.media-dropzone strong { font-size: 13px; }
.media-dropzone small { color: var(--admin-muted); font-size: 11px; font-weight: 500; }
.selected-files { display: flex; flex-wrap: wrap; gap: 6px; }
.selected-file { padding: 7px 9px; border-radius: 6px; color: var(--admin-green); background: #edf5e8; font-size: 11px; }
.media-upload-fields { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.media-upload-fields label { display: grid; gap: 7px; color: var(--admin-ink); font-size: 11px; font-weight: 800; }
.media-upload-fields input { min-height: 42px; width: 100%; padding: 11px 12px; border: 1px solid var(--admin-line); border-radius: 8px; outline: 0; color: var(--admin-ink); background: #fcfefb; font-size: 13px; }
.media-upload-fields input:focus { border-color: var(--admin-green); box-shadow: 0 0 0 3px rgba(36,86,69,.1); }
.gallery-list { display: grid; gap: 8px; margin-top: 22px; }
.gallery-item { display: grid; grid-template-columns: 26px 66px 1fr 32px; align-items: center; gap: 11px; padding: 8px; border: 1px solid var(--admin-line); border-radius: 9px; background: #fcfefb; cursor: grab; transition: border-color .2s ease, background .2s ease, opacity .2s ease; }
.gallery-item:hover, .gallery-item.is-dragging { border-color: #a9c0ae; background: #f6faf3; }
.gallery-item.is-dragging { opacity: .55; }
.drag-handle { color: #9bad9f; font-size: 21px; letter-spacing: -5px; line-height: 1; }
.gallery-thumb { width: 66px; height: 58px; overflow: hidden; border-radius: 6px; background: #e7eee1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-meta strong, .gallery-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-meta strong { font-size: 12px; }
.gallery-meta small { margin-top: 5px; color: var(--admin-muted); font-size: 10px; }
.gallery-remove { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 6px; color: var(--admin-orange); background: transparent; font-size: 20px; }
.gallery-remove:hover { background: #fff0eb; }
.gallery-empty { padding: 22px; border: 1px dashed var(--admin-line); border-radius: 9px; color: var(--admin-muted); text-align: center; font-size: 12px; }
.gallery-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.media-card { overflow: hidden; }
.media-card-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e7eee1; }
.media-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card-image:hover img { transform: scale(1.04); }
.media-card-copy { padding: 15px; }
.media-card-copy .table-primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--admin-line); }
.attachment-count { color: var(--admin-muted); font-size: 10px; }
.media-empty { grid-column: 1 / -1; min-height: 240px; }
.media-empty strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.media-empty span { font-size: 12px; }
.media-detail-preview { display: grid; min-height: 520px; place-items: center; overflow: hidden; border-radius: 9px; background: #e7eee1; }
.media-detail-preview img { width: 100%; height: 100%; max-height: 620px; object-fit: contain; }
.media-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.media-detail-meta span { padding: 7px 9px; border-radius: 6px; color: var(--admin-muted); background: #f0f5ee; font-size: 10px; }

.page-editor-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: start; gap: 22px; }
.page-editor-main { display: grid; gap: 22px; min-width: 0; }
.page-editor-side { position: sticky; top: 20px; display: grid; gap: 17px; min-width: 0; }
.page-editor-form .panel-heading-row { margin-bottom: 22px; }
.page-editor-form .panel-heading-row h2 { margin-bottom: 8px; }
.seo-fields { margin-top: 25px; border-top: 1px solid var(--admin-line); padding-top: 24px; }
.builder-panel { min-width: 0; }
.builder-add-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--admin-line); border-radius: 8px; color: var(--admin-muted); background: #f7faf5; font-size: 11px; font-weight: 750; }
.builder-add-bar > div:first-child { display: grid; gap: 4px; }
.builder-add-bar > div:first-child strong { color: var(--admin-ink); font-size: 12px; }
.builder-add-bar > div:first-child span { font-size: 10px; font-weight: 500; }
.builder-add-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.builder-add-buttons .button { min-height: 31px; }
.builder-add-buttons .button[draggable="true"] { cursor: grab; }
.builder-add-buttons .button.is-palette-dragging { opacity: .5; cursor: grabbing; }
.builder-block-list { display: grid; gap: 10px; }
.builder-block { border: 1px solid var(--admin-line); border-radius: 10px; background: #fcfefb; transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease; }
.builder-block:hover, .builder-block.is-dragging, .builder-block.is-selected { border-color: var(--admin-green); box-shadow: 0 7px 20px rgba(16,47,43,.08); }
.builder-block.is-dragging { opacity: .58; }
.builder-block-header { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border-bottom: 1px solid var(--admin-line); }
.builder-drag-handle { color: #9bad9f; font-family: Consolas, monospace; font-size: 13px; letter-spacing: -2px; cursor: grab; }
.builder-block-header strong { color: var(--admin-ink); font-size: 12px; }
.builder-block-controls { display: flex; gap: 3px; margin-left: auto; }
.builder-icon-button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 5px; color: var(--admin-muted); background: transparent; font-size: 14px; }
.builder-icon-button:hover { color: var(--admin-green); background: #eaf3e4; }
.builder-icon-button[data-action="remove"] { color: var(--admin-orange); }
.builder-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.builder-field { display: grid; grid-column: span 1; gap: 6px; color: var(--admin-ink); font-size: 10px; font-weight: 800; }
.builder-field:has(textarea) { grid-column: 1 / -1; }
.builder-field > span { color: var(--admin-muted); letter-spacing: .08em; text-transform: uppercase; }
.builder-field input, .builder-field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--admin-line); border-radius: 7px; outline: 0; color: var(--admin-ink); background: #fff; font-size: 12px; font-weight: 500; }
.builder-field input { min-height: 38px; }
.builder-field textarea { min-height: 82px; resize: vertical; line-height: 1.45; }
.builder-field input:focus, .builder-field textarea:focus { border-color: var(--admin-green); box-shadow: 0 0 0 3px rgba(36,86,69,.1); }
.builder-no-fields { grid-column: 1 / -1; margin: 0; color: var(--admin-muted); font-size: 11px; }
.builder-empty { display: grid; min-height: 135px; place-items: center; align-content: center; gap: 5px; border: 1px dashed #b7c8b7; border-radius: 9px; color: var(--admin-muted); background: #f8fbf6; text-align: center; }
.builder-empty strong { color: var(--admin-green); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.builder-empty span { font-size: 11px; }
.builder-empty[hidden] { display: none; }
.builder-preview-panel { overflow: hidden; }
.builder-preview { min-height: 560px; overflow: auto; border: 1px solid var(--admin-line); border-radius: 8px; background: linear-gradient(145deg, #f8fbf6, #eef4eb); transition: outline .2s ease, background .2s ease; }
.builder-preview.is-drop-target { outline: 3px solid rgba(79,130,82,.2); background: #eaf4e7; }
.builder-preview-page-title { margin: 0; padding: 17px 17px 13px; border-bottom: 1px solid var(--admin-line); color: var(--admin-ink); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.builder-preview-section { margin: 11px; padding: 17px; border: 1px solid #dce6d9; border-radius: 7px; color: var(--admin-ink); background: #fff; cursor: grab; transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease; }
.builder-preview-section:hover, .builder-preview-section.is-drop-target { border-color: var(--admin-green); box-shadow: 0 8px 24px rgba(16,47,43,.1); transform: translateY(-1px); }
.builder-preview-section.is-dragging { opacity: .5; cursor: grabbing; }
.builder-preview-empty { display: grid; min-height: 390px; place-items: center; align-content: center; gap: 7px; margin: 11px; padding: 22px; border: 1px dashed #a9c0a8; border-radius: 7px; color: var(--admin-muted); text-align: center; }
.builder-preview-empty strong { color: var(--admin-green); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.builder-preview-empty span { max-width: 220px; font-size: 11px; line-height: 1.5; }
.builder-preview-section .eyebrow { margin-bottom: 7px; font-size: 8px; }
.builder-preview-section h2, .builder-preview-section h3 { margin: 0 0 8px; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.03em; }
.builder-preview-section h2 { font-size: 26px; }
.builder-preview-section h3 { font-size: 19px; }
.builder-preview-section p { margin: 0 0 12px; color: var(--admin-muted); font-size: 11px; line-height: 1.5; white-space: pre-line; }
.builder-preview-hero { display: grid; grid-template-columns: 1fr 82px; gap: 13px; align-items: center; color: #edf5ec; border-color: var(--admin-green); background: var(--admin-green); }
.builder-preview-hero p, .builder-preview-cta p { color: #c6d9c8; }
.builder-preview-section img { display: block; width: 100%; max-height: 155px; margin-top: 12px; border-radius: 5px; object-fit: cover; background: #e7eee1; }
.builder-preview-hero img { width: 82px; height: 105px; margin: 0; }
.builder-preview-cta { color: #fff; border-color: var(--admin-deep); background: var(--admin-deep); }
.builder-preview-section .button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.builder-preview-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.builder-preview-feature-grid > div { min-height: 64px; padding: 8px; border-top: 2px solid var(--admin-orange); background: #f6f9f3; }
.builder-preview-feature-grid strong { display: block; font-size: 10px; }
.builder-preview-feature-grid p { margin-top: 4px; font-size: 9px; }
.builder-preview-html { overflow: hidden; font-size: 11px; line-height: 1.5; }
.builder-preview-html img { max-width: 100%; height: auto; }
.builder-preview-html a { color: var(--admin-green); text-decoration: underline; }
.builder-preview-image small { display: block; margin-top: 8px; color: var(--admin-muted); font-size: 10px; }
.builder-preview-divider { min-height: 8px; border: 0; padding: 0; background: var(--admin-lime); }
.page-editor-actions { display: flex; justify-content: flex-end; gap: 9px; }
.page-delete-zone { margin-top: 22px; }
.package-install-panel { margin-bottom: 16px; }
.package-upload-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 20px; }
.package-dropzone { display: grid !important; min-height: 104px; place-items: center; align-content: center; gap: 6px !important; border: 1px dashed #a9c0ae; border-radius: 10px; color: var(--admin-green) !important; background: #f6faf3; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.package-dropzone:hover { border-color: var(--admin-orange); background: #fff9f3; }
.package-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.package-dropzone small { color: var(--admin-muted); font-size: 11px; font-weight: 400; }
.package-active-note { margin: 14px 0 0; }
.package-active-note strong { color: var(--admin-ink); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.module-card { display: grid; gap: 13px; padding: 20px; border: 1px solid var(--admin-line); border-radius: 12px; background: #fcfefb; }
.module-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.module-card-header .eyebrow { margin-bottom: 6px; color: var(--admin-muted); font-size: 9px; }
.module-card h2 { margin: 0; color: var(--admin-ink); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.module-card p { margin: 0; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.module-card-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--admin-muted); font-family: Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.module-card-actions { display: flex; justify-content: flex-end; padding-top: 5px; }
body.pos-screen { overflow: hidden; background: #eef4ec; }
body.pos-screen .admin-sidebar { width: 76px; padding: 24px 10px 16px; transition: width .25s ease; }
body.pos-screen .brand-lockup { justify-content: center; padding: 0; }
body.pos-screen .brand-lockup div, body.pos-screen .sidebar-label, body.pos-screen .sidebar-help, body.pos-screen .store-link { display: none; }
body.pos-screen .admin-nav { margin-top: 38px; }
body.pos-screen .nav-link { justify-content: center; gap: 0; padding: 0; font-size: 0; }
body.pos-screen .nav-icon { width: 30px; font-size: 20px; }
body.pos-screen .admin-main { display: flex; height: 100vh; min-height: 0; flex-direction: column; margin-left: 76px; transition: margin-left .25s ease; }
body.pos-screen .admin-topbar { height: 68px; flex: 0 0 68px; padding: 0 26px; background: rgba(247,250,245,.94); }
body.pos-screen .menu-toggle { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--admin-line); border-radius: 8px; color: var(--admin-green); background: var(--admin-panel); }
body.pos-screen .admin-content { width: 100%; max-width: none; min-height: 0; flex: 1; overflow: auto; padding: 24px 28px 30px; }
body.pos-screen.pos-sidebar-expanded .admin-sidebar { width: 248px; padding: 28px 18px 20px; }
body.pos-screen.pos-sidebar-expanded .brand-lockup { justify-content: flex-start; padding: 0 12px; }
body.pos-screen.pos-sidebar-expanded .brand-lockup div, body.pos-screen.pos-sidebar-expanded .sidebar-label, body.pos-screen.pos-sidebar-expanded .store-link { display: block; }
body.pos-screen.pos-sidebar-expanded .sidebar-help { display: block; }
body.pos-screen.pos-sidebar-expanded .admin-nav { margin-top: 0; }
body.pos-screen.pos-sidebar-expanded .nav-link { justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 14px; }
body.pos-screen.pos-sidebar-expanded .nav-icon { width: 22px; font-size: 19px; }
body.pos-screen .pos-screen-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
body.pos-screen .pos-screen-header h1 { margin: 0; color: var(--admin-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 43px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
body.pos-screen .pos-screen-header p { max-width: 650px; margin: 9px 0 0; color: var(--admin-muted); font-size: 12px; line-height: 1.5; }
body.pos-screen .pos-screen-actions { display: flex; align-items: center; gap: 9px; }
body.pos-screen .pos-layout { grid-template-columns: minmax(0, 1fr) 430px; gap: 18px; min-height: calc(100vh - 172px); }
body.pos-screen .pos-products-panel, body.pos-screen .pos-checkout-panel { box-shadow: 0 12px 35px rgba(16,47,43,.06); }
body.pos-screen .pos-products-panel { min-height: calc(100vh - 172px); }
body.pos-screen .pos-checkout-panel { top: 12px; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); align-items: start; gap: 22px; }
.pos-products-panel, .pos-checkout-panel { min-width: 0; }
.pos-checkout-panel { position: sticky; top: 20px; }
.pos-search { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0 12px; border: 1px solid var(--admin-line); border-radius: 8px; background: #fff; }
.pos-search input { width: 100%; min-height: 42px; border: 0; outline: 0; color: var(--admin-ink); font-size: 13px; }
.pos-search span { color: var(--admin-orange); font-size: 20px; }
.pos-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.pos-product-card { display: grid; grid-template-columns: 64px 1fr; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--admin-line); border-radius: 9px; background: #fcfefb; }
.pos-product-image { display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border-radius: 7px; color: var(--admin-green); background: #eaf2e7; font-family: Georgia, serif; font-size: 25px; }
.pos-product-image img { width: 100%; height: 100%; object-fit: cover; }
.pos-product-copy { display: grid; min-width: 0; gap: 3px; align-content: start; }
.pos-product-copy strong { overflow: hidden; color: var(--admin-ink); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pos-product-copy small, .pos-product-copy > span { overflow: hidden; color: var(--admin-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pos-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; }
.pos-product-footer b { color: var(--admin-green); font-size: 11px; }
.pos-product-footer .button { min-height: 27px; padding: 0 8px; font-size: 10px; }
.pos-search-status { min-height: 18px; margin: 12px 0 0; color: var(--admin-muted); font-size: 10px; }
.pos-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 15px; padding: 4px; border-radius: 8px; background: #edf3ea; }
.pos-switcher button { min-height: 34px; border: 0; border-radius: 6px; color: var(--admin-muted); background: transparent; font-size: 11px; font-weight: 800; }
.pos-switcher button.is-active { color: var(--admin-green); background: #fff; box-shadow: 0 2px 8px rgba(16,47,43,.08); }
.pos-cart-block { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); }
.pos-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.pos-section-heading h3 { margin: 0; color: var(--admin-ink); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.pos-section-heading span { color: var(--admin-muted); font-family: Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.pos-cart-items { display: grid; gap: 8px; }
.pos-cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf2eb; }
.pos-cart-item:last-child { border-bottom: 0; }
.pos-cart-item strong, .pos-cart-item small { display: block; }
.pos-cart-item strong { overflow: hidden; color: var(--admin-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pos-cart-item small { margin-top: 3px; color: var(--admin-muted); font-size: 9px; }
.pos-cart-item > b { color: var(--admin-green); font-size: 11px; white-space: nowrap; }
.pos-quantity { display: flex; align-items: center; gap: 7px; }
.pos-quantity button { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--admin-line); border-radius: 5px; color: var(--admin-green); background: #fff; font-size: 15px; line-height: 1; }
.pos-quantity span { min-width: 12px; color: var(--admin-ink); font-size: 11px; text-align: center; }
.pos-total-line { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; color: var(--admin-muted); font-size: 11px; }
.pos-total-line strong { color: var(--admin-ink); font-size: 16px; }
.pos-checkout-panel [hidden] { display: none; }

.settings-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 22px; }
.settings-tabs { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--admin-line); border-radius: 13px; background: var(--admin-panel); box-shadow: var(--admin-shadow); }
.settings-tabs-label { padding: 5px 11px 9px; color: #87958b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.settings-tab { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 9px; padding: 11px; border-radius: 9px; color: var(--admin-muted); transition: color .2s ease, background .2s ease; }
.settings-tab:hover { color: var(--admin-green); background: #f5faf2; }
.settings-tab.is-active { color: var(--admin-deep); background: var(--admin-lime); }
.settings-tab-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; color: var(--admin-green); background: #edf5e8; font-size: 14px; font-weight: 800; }
.settings-tab.is-active .settings-tab-icon { color: var(--admin-deep); background: rgba(255,255,255,.6); }
.settings-tab strong, .settings-tab small { display: block; }
.settings-tab strong { font-size: 12px; font-weight: 800; }
.settings-tab small { margin-top: 4px; color: inherit; opacity: .75; font-size: 10px; line-height: 1.35; }
.settings-content { min-width: 0; overflow: hidden; }
.settings-panel-header { align-items: center; }
.settings-panel-header .eyebrow { margin-bottom: 5px; }
.settings-panel-header h2 { max-width: 500px; margin: 0; color: var(--admin-muted); font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.settings-save-note { flex: 0 0 auto; padding: 7px 9px; border-radius: 999px; color: #2d7048; background: #e8f5e9; font-size: 10px; font-weight: 800; }
.settings-form { gap: 0; padding: 0 24px 24px; }
.settings-section { padding: 25px 0; border-bottom: 1px solid var(--admin-line); }
.settings-section:last-of-type { border-bottom: 0; }
.settings-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.settings-section-heading h3 { margin: 0; color: var(--admin-ink); font-family: Georgia, serif; font-size: 21px; font-weight: 500; letter-spacing: -.03em; }
.settings-section-heading p { max-width: 590px; margin: 6px 0 0; color: var(--admin-muted); font-size: 12px; line-height: 1.5; }
.field-span-2 { grid-column: span 2; }
.settings-spaced-grid { margin-top: 17px; }
.settings-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-toggle-grid-small { max-width: 710px; }
.settings-toggle-grid .check-row { min-height: 44px; padding: 0 12px; border: 1px solid var(--admin-line); border-radius: 8px; background: #fcfefb; }
.shipping-method-list { display: grid; gap: 14px; margin-top: 17px; }
.shipping-method-card { padding: 18px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fcfefb; }
.shipping-method-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.shipping-method-card-heading h4 { margin: 4px 0 0; color: var(--admin-ink); font-size: 15px; }
.shipping-method-actions { display: flex; align-items: center; gap: 10px; }
.check-row-compact { min-height: 34px; padding: 0 9px; border: 1px solid var(--admin-line); border-radius: 7px; background: #fff; }
.button-quiet { padding: 8px 10px; color: var(--admin-muted); background: transparent; }
.button-quiet:hover { color: #9b3e37; background: #fff2f0; }
.shipping-method-card small, .settings-inline-note { color: var(--admin-muted); font-size: 11px; line-height: 1.45; }
.settings-inline-note { margin: 13px 0 0; }
.shipping-legacy-fields { display: none; }
.translation-language-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.translation-language-grid .check-row { min-height: 42px; padding: 0 10px; border: 1px solid var(--admin-line); border-radius: 8px; background: #fcfefb; }
.translation-language-grid .check-row small { margin-left: auto; color: var(--admin-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 500; }
.settings-method-card { margin-top: 14px; padding: 17px; border: 1px solid var(--admin-line); border-radius: 9px; background: #fcfefb; }
.settings-method-card:first-of-type { margin-top: 0; }
.settings-callout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 22px; padding: 13px 15px; border: 1px solid #f0dfb2; border-radius: 9px; color: #84651d; background: #fffaf0; font-size: 11px; }
.settings-callout strong { color: #6f5316; font-size: 12px; }
.settings-callout .check-row { color: #84651d !important; }
.settings-form-actions { margin-top: 0; padding-top: 24px; }
.settings-form-actions .muted-note { margin: 0; }
.code-input { color: #b9d0c0 !important; border-color: #173a31 !important; background: #102f2b !important; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px !important; line-height: 1.55; }

.admin-login-page { min-height: 100vh; background: var(--admin-deep); }
.login-wrap { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); }
.login-story { display: flex; flex-direction: column; padding: 42px 7vw; color: #edf5ec; background: radial-gradient(circle at 80% 60%, rgba(216,229,109,.12), transparent 35%), var(--admin-deep); }
.brand-light .brand-lockup { color: #edf5ec; }
.login-story-copy { max-width: 520px; margin: auto 0; }
.login-story-copy .eyebrow { color: var(--admin-lime); }
.login-story-copy h1 { max-width: 520px; margin: 0; font-family: Georgia, serif; font-size: clamp(43px, 5.4vw, 76px); font-weight: 500; letter-spacing: -.06em; line-height: .94; }
.login-story-copy p { max-width: 410px; margin: 25px 0 0; color: #aec3b3; font-size: 16px; line-height: 1.6; }
.story-note { display: flex; align-items: center; gap: 18px; max-width: 360px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: #aec3b3; }
.story-note span { color: var(--admin-lime); font-size: 12px; font-weight: 800; }
.story-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.login-card-wrap { display: grid; place-items: center; padding: 40px; background: #f4f8f1; }
.login-card { width: min(100%, 420px); padding: 42px; border: 1px solid var(--admin-line); border-radius: 16px; background: #fff; box-shadow: 0 25px 75px rgba(16,47,43,.14); }
.login-heading { margin-bottom: 28px; }
.login-heading h2 { font-size: 42px; }
.login-heading p { margin: 12px 0 0; color: var(--admin-muted); line-height: 1.55; }
.login-form { gap: 19px; }
.back-store { display: block; margin-top: 25px; color: var(--admin-muted); text-align: center; font-size: 12px; }
.back-store:hover { color: var(--admin-green); }

@media (max-width: 1050px) {
    .admin-sidebar { width: 218px; }
    .admin-main { margin-left: 218px; }
    .admin-topbar, .admin-content { padding-right: 26px; padding-left: 26px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-grid { grid-template-columns: 1fr; }
    .dashboard-grid, .reports-two-column, .form-layout, .order-layout, .page-editor-layout, .pos-layout { grid-template-columns: 1fr; }
    .page-editor-side { position: static; }
    .pos-checkout-panel { position: static; }
    body.pos-screen .pos-layout { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 760px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .admin-sidebar.is-open { transform: translateX(0); box-shadow: 18px 0 60px rgba(16,47,43,.18); }
    .admin-mobile-backdrop { position: fixed; z-index: 19; inset: 0; background: rgba(16,47,43,.35); }
    .admin-sidebar.is-open ~ .admin-mobile-backdrop { display: block; }
    .admin-main { margin-left: 0; }
    .admin-topbar { height: 67px; padding: 0 18px; }
    .menu-toggle { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--admin-line); border-radius: 8px; color: var(--admin-green); background: var(--admin-panel); }
    .breadcrumb { display: none; }
    .topbar-actions { gap: 12px; }
    .live-dot, .admin-user > span:last-child { display: none; }
    .admin-content { padding: 28px 18px 50px; }
    .page-header { align-items: start; flex-direction: column; margin-bottom: 22px; }
    .page-header h1 { font-size: 40px; }
    .report-filter { width: 100%; min-width: 0; }
    .report-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-chart { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding-right: 14px; padding-left: 8px; }
    .chart-labels { margin-left: 64px; margin-right: 14px; }
    .chart-footnote { margin-left: 64px; margin-right: 14px; }
    .status-report { grid-template-columns: 150px 1fr; padding-right: 16px; padding-left: 16px; }
    .status-donut { width: 140px; height: 140px; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .filter-form { align-items: stretch; flex-direction: column; }
    .field-inline input, .field-inline select { width: 100%; min-width: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: auto; }
    .settings-layout { grid-template-columns: 1fr; gap: 14px; }
    .settings-tabs { display: flex; overflow-x: auto; gap: 3px; padding: 8px; }
    .settings-tabs-label { display: none; }
    .settings-tab { min-width: 145px; grid-template-columns: 25px 1fr; }
    .settings-tab small { display: none; }
    .settings-panel-header { align-items: start; flex-direction: column; }
    .settings-form { padding-right: 18px; padding-left: 18px; }
    .settings-toggle-grid { grid-template-columns: 1fr; }
    .shipping-method-card-heading { align-items: start; flex-direction: column; }
    .shipping-method-actions { width: 100%; justify-content: space-between; }
    .translation-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-callout { grid-template-columns: 1fr; }
    .package-upload-form { grid-template-columns: 1fr; }
    .media-upload-fields { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.pos-screen { overflow: auto; }
    body.pos-screen .admin-sidebar, body.pos-screen.pos-sidebar-expanded .admin-sidebar { width: 248px; padding: 28px 18px 20px; }
    body.pos-screen .brand-lockup, body.pos-screen.pos-sidebar-expanded .brand-lockup { justify-content: flex-start; padding: 0 12px; }
    body.pos-screen .brand-lockup div, body.pos-screen .sidebar-label, body.pos-screen .store-link, body.pos-screen .sidebar-help { display: block; }
    body.pos-screen .admin-nav, body.pos-screen.pos-sidebar-expanded .admin-nav { margin-top: 0; }
    body.pos-screen .nav-link, body.pos-screen.pos-sidebar-expanded .nav-link { justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 14px; }
    body.pos-screen .nav-icon, body.pos-screen.pos-sidebar-expanded .nav-icon { width: 22px; font-size: 19px; }
    body.pos-screen .admin-main { height: auto; min-height: 100vh; }
    body.pos-screen .admin-content { overflow: visible; padding: 22px 18px 40px; }
    body.pos-screen .pos-screen-header { align-items: start; flex-direction: column; margin-bottom: 18px; }
    body.pos-screen .pos-screen-actions { width: 100%; justify-content: space-between; }
    body.pos-screen .pos-layout { grid-template-columns: 1fr; min-height: 0; }
    body.pos-screen .pos-products-panel { min-height: 0; }
    .builder-add-bar { align-items: stretch; flex-direction: column; }
    .builder-add-buttons { justify-content: flex-start; }
    .builder-fields { grid-template-columns: 1fr; }
    .builder-field, .builder-field:has(textarea) { grid-column: auto; }
    .builder-preview-feature-grid { grid-template-columns: 1fr; }
    .permission-grid { grid-template-columns: 1fr; }
    .panel-heading-row { align-items: start; flex-direction: column; }
    .form-panel { padding: 18px; }
    .coupon-role-grid { grid-template-columns: 1fr; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions-right { display: grid; grid-template-columns: 1fr 1fr; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-story { min-height: 300px; padding: 28px 24px; }
    .login-story-copy { margin: 55px 0 45px; }
    .login-story-copy h1 { font-size: 48px; }
    .login-story-copy p { margin-top: 16px; font-size: 14px; }
    .login-card-wrap { padding: 30px 18px; }
    .login-card { padding: 28px 22px; }
    .gallery-actions { align-items: stretch; flex-direction: column; }
    .media-detail-preview { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
