:root {
  --ink: #241915;
  --muted: #756863;
  --paper: #f8f5f1;
  --surface: #ffffff;
  --line: #e8e0da;
  --cocoa: #562d21;
  --cocoa-dark: #3d1f18;
  --caramel: #c9894f;
  --cream: #f4e6d4;
  --green: #287658;
  --red: #b13c36;
  --shadow: 0 16px 45px rgba(65, 39, 29, .075);
  --shadow-soft: 0 6px 22px rgba(65, 39, 29, .045);
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); scroll-behavior: auto; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 82% 0, rgba(201,137,79,.055), transparent 30%), var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.main-content { contain: style; }
.panel, .stat-card, .product-row, .responsive-table tr { transform: translateZ(0); }
.admin-is-scrolling *, .admin-is-scrolling *::before, .admin-is-scrolling *::after { animation-play-state: paused !important; transition-duration: 0s !important; }
button, input, textarea { font: inherit; }
button, .button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
::selection { color: #fff; background: var(--cocoa); }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
.app-shell { min-width: 0; min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; background: linear-gradient(180deg, #43231b 0, var(--cocoa-dark) 60%, #321913 100%); color: #fff; display: flex; flex-direction: column; box-shadow: 12px 0 40px rgba(61,31,24,.06); }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px; }
.brand span:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { font-size: 11px; color: #cdbab2; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--caramel); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand-mark.large { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 28px; }
.sidebar nav { display: grid; gap: 7px; margin-top: 50px; }
.nav-link { border: 0; width: 100%; background: transparent; color: #d8cac5; padding: 12px 14px; border-radius: 12px; display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; text-align: left; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-link span { width: 18px; font-size: 19px; text-align: center; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-link:active { transform: scale(.985); }
.logout-form { margin-top: auto; }
.button-link { font-family: inherit; }
.main-content { min-width: 0; width: 100%; max-width: 1480px; margin: 0 auto; padding: 48px 5vw 72px; }
.mobile-header { display: none; }
.mobile-nav { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 5px 0 7px; font: 700 clamp(28px, 3vw, 42px)/1.1 Georgia, serif; letter-spacing: -.035em; }
.eyebrow { color: var(--caramel); font-weight: 800; letter-spacing: .16em; font-size: 10px; margin: 0; }
.muted, .panel-header p, .media-panel p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }
.button { border: 1px solid transparent; border-radius: 11px; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button.primary { color: #fff; background: var(--cocoa); box-shadow: 0 8px 18px rgba(86,45,33,.18); }
.button.primary:hover { background: var(--cocoa-dark); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.danger { border-color: #e3aaa6; color: var(--red); background: #fff; }
.button.full { width: 100%; }
.button:active { transform: translateY(0) scale(.985); }
.button.is-loading, .button[aria-busy="true"] { opacity: .72; cursor: progress; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 21px; background: rgba(255,255,255,.94); border: 1px solid rgba(232,224,218,.92); border-radius: 16px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.stat-card.accent { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--caramel); font-weight: 900; }
.accent .stat-icon { background: rgba(255,255,255,.12); }
.warning .stat-icon { background: #fff1e6; color: #cc6427; }
.confirmed .stat-icon { background: #e4f5ec; color: #18764d; }
.cancelled .stat-icon { background: #fde8e6; color: #b8322c; }
.stat-card div { display: grid; gap: 2px; }
.stat-card strong { font-size: 24px; letter-spacing: -.04em; }
.stat-card strong.stat-updated { animation: stat-bump .34s ease; }
.stat-card div span { color: var(--muted); font-size: 12px; }
.stat-card.accent div span { color: #d9c5bc; }
.panel { background: rgba(255,255,255,.96); border: 1px solid rgba(232,224,218,.94); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.panel-header { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-header > div { min-width: 0; }
.panel-header h2, .media-panel h2 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.02em; }
.settings-panel { max-width: 760px; padding: 28px; }
.field-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.gateway-toggle { margin: 4px 0 18px; }
.gateway-note { padding: 16px; margin-bottom: 22px; border: 1px solid #d7eadf; border-radius: 13px; background: #f0f8f4; }
.gateway-note strong { color: #18764d; font-size: 13px; }
.gateway-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.inline-actions { justify-content: flex-start; }
.count-pill, .status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.count-pill { background: var(--paper); color: var(--muted); }
.status.live { background: #e5f4ed; color: var(--green); }
.status.hidden { background: #eeeae7; color: #756863; }
.status.new { background: #f5eade; color: #8c552a; }
.status.success { background: #e4f5ec; color: #18764d; }
.status.danger { background: #fde8e6; color: #b8322c; }
.status.warning { background: #fff0d8; color: #a65b13; }
.status.info { background: #e8f2fb; color: #315f86; }
.status.neutral { background: #eeeae7; color: #6f6561; }
.product-row { min-height: 92px; padding: 14px 22px; display: grid; grid-template-columns: 62px minmax(200px, 1fr) 110px 90px 80px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.product-row:last-child { border: 0; }
.product-row { transition: background .18s ease; }
.product-row:hover { background: #fffdfb; }
.product-thumb { width: 60px; height: 60px; border-radius: 13px; background: var(--cream); display: grid; place-items: center; overflow: hidden; font-size: 24px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-title-line { display: flex; align-items: center; gap: 9px; }
.product-info { min-width: 0; }
.product-info h3 { margin: 0; font-size: 14px; }
.product-info p { margin: 6px 0 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.product-metric { display: grid; gap: 4px; }
.product-metric strong { font-size: 14px; }
.product-metric span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.product-metric.low strong { color: #c05d24; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-button:hover { border-color: var(--caramel); color: var(--cocoa); }
.action-label, .mobile-form-actions { display: none; }
.compact-panel .panel-header { border-bottom: 1px solid var(--line); }
.text-link, .back-link { color: var(--cocoa); font-weight: 700; font-size: 12px; }
.orders-preview > div { padding: 14px 24px; display: grid; grid-template-columns: 70px 1fr 120px 80px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.orders-preview > div:last-child { border: 0; }
.order-number { color: var(--muted); font-family: ui-monospace, monospace; }
.order-number:hover { color: var(--cocoa); text-decoration: underline; }
.order-contact { margin-top: 3px; display: block; color: var(--muted); font-size: 10px; }
.live-order-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.live-order-controls .button.tiny { min-height: 36px; padding: 0 12px; font-size: 11px; }
.live-order-controls .sound-enabled { border-color: #acd8c6; color: #18764d; background: #f0f8f4; }
.live-dot { width: 8px; height: 8px; margin-left: 5px; display: inline-block; border-radius: 50%; background: #24a36a; box-shadow: 0 0 0 0 rgba(36,163,106,.45); animation: live-order-dot 1.8s infinite; vertical-align: 2px; }
.live-error { color: var(--red) !important; }
.live-orders-panel { transition: border-color .2s, box-shadow .2s; }
.live-orders-panel.has-new-order { border-color: #e0a35f; box-shadow: 0 18px 50px rgba(201,137,79,.22); }
.new-order-alert { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(440px, calc(100vw - 48px)); padding: 18px; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 13px; color: #fff; background: linear-gradient(135deg, #6a351f, #3d1f18); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; box-shadow: 0 24px 70px rgba(36,25,21,.4); }
.new-order-alert[hidden] { display: none; }
.new-order-pulse { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--caramel); font-size: 23px; animation: new-order-pulse 1.1s infinite; }
.new-order-copy { min-width: 0; }
.new-order-copy .eyebrow { color: #f3bd87; }
.new-order-copy h3 { margin: 5px 0 4px; font-size: 19px; }
.new-order-copy > p:last-child { margin: 0; color: #dfcec7; font-size: 13px; overflow-wrap: anywhere; }
.new-order-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.new-order-actions .button.primary { background: var(--caramel); box-shadow: none; }
.new-order-actions .button.secondary { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.new-order-actions .button.sound-enabled { color: #173f2e; border-color: #bce5d4; background: #dff5eb; }
@keyframes live-order-dot { 70% { box-shadow: 0 0 0 7px rgba(36,163,106,0); } 100% { box-shadow: 0 0 0 0 rgba(36,163,106,0); } }
@keyframes new-order-pulse { 50% { transform: scale(1.07); box-shadow: 0 0 0 8px rgba(201,137,79,.12); } }
@keyframes stat-bump { 45% { color: var(--caramel); transform: scale(1.08); } }
.empty-line { padding: 26px 24px; color: var(--muted); font-size: 13px; }
.website-stock-grid { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.website-stock-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfb; }
.website-stock-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.website-stock-grid article > p { margin: 10px 0 16px; color: var(--muted); font-size: 12px; }
.website-stock-grid form, .website-stock-grid .button { width: 100%; }
.website-stock-grid article form + form { margin-top: 9px; }
.website-remove { width: 100%; border: 0; background: transparent; color: var(--red); padding: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.website-product-add { padding: 0 18px 18px; display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 12px; }
.website-product-add select { width: 100%; min-height: 44px; border: 1px solid #dcd2cc; background: #fff; border-radius: 11px; padding: 10px 13px; color: var(--ink); outline: none; }
.website-product-add-actions { display: flex; align-items: center; gap: 9px; }
.website-product-add-actions .button { white-space: nowrap; }
.website-product-empty { margin: 0 18px 18px; padding: 14px; border-radius: 11px; background: var(--paper); color: var(--muted); font-size: 12px; }
.website-product-empty a { color: var(--cocoa); font-weight: 750; }
.empty-state { padding: 60px 20px; display: grid; justify-items: center; text-align: center; }
.empty-state > span { font-size: 34px; }
.empty-state h3 { margin: 15px 0 6px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.form-heading { align-items: center; }
.back-link { display: inline-block; margin-bottom: 30px; }
.large-status { padding: 8px 12px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.form-panel { padding: 28px; display: grid; gap: 24px; }
.field-group { display: grid; gap: 9px; }
.field-group label { font-size: 12px; font-weight: 750; }
.field-group label span { float: right; color: var(--muted); font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid #dcd2cc; background: #fff; border-radius: 11px; padding: 12px 13px; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(201,137,79,.14); }
textarea { resize: vertical; line-height: 1.5; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix input { padding-left: 31px; }
.media-panel { padding: 24px; display: grid; gap: 19px; }
.image-upload { position: relative; min-height: 245px; border: 1.5px dashed #d5c4ba; border-radius: 15px; background: #fbf8f5; display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; text-align: center; cursor: pointer; color: var(--muted); overflow: hidden; transition: border-color .18s, background .18s, transform .18s; }
.image-upload:hover, .image-upload:focus-visible, .image-upload.drag-active { border-color: var(--caramel); background: #fffaf5; outline: none; }
.image-upload.drag-active { transform: scale(1.015); box-shadow: 0 0 0 4px rgba(201,137,79,.12); }
.image-upload img { width: 100%; height: 205px; object-fit: cover; }
.upload-prompt { padding: 12px; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.image-upload.has-preview .upload-prompt { position: absolute; inset: auto 10px 10px; padding: 9px 12px; border-radius: 10px; background: rgba(36,25,21,.82); color: #fff; backdrop-filter: blur(8px); }
.image-upload.has-preview .upload-prompt .upload-icon, .image-upload.has-preview .upload-prompt small { display: none; }
.image-upload.has-preview .upload-prompt strong::before { content: "↻ "; }
.image-upload.has-preview .upload-prompt strong { color: #fff; }
.image-upload .upload-prompt strong { font-size: 13px; color: var(--ink); }
.image-upload .upload-prompt small { font-size: 10px; }
.selected-file { max-width: 90%; padding: 0 12px 12px; color: var(--cocoa); font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-upload.has-preview .selected-file { display: none; }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--cream); color: var(--cocoa); border-radius: 14px; font-size: 22px; }
.upload-error { margin: -10px 0 0; color: var(--red); font-size: 11px; font-weight: 650; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 12px; cursor: pointer; }
.check-row input { width: auto; }
.form-actions { display: grid; gap: 9px; margin-top: 4px; }
.coupon-admin-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.coupon-form { position: sticky; top: 20px; }
.panel-title h2 { margin: 0 0 5px; font-size: 18px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.coupon-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coupon-list-panel { overflow: hidden; }
.coupon-list { display: grid; }
.coupon-row { padding: 18px 22px; display: grid; grid-template-columns: minmax(130px, .8fr) minmax(280px, 1.5fr) auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.coupon-row:last-child { border-bottom: 0; }
.coupon-code { display: grid; gap: 5px; }
.coupon-code strong { font-size: 15px; overflow-wrap: anywhere; }
.coupon-code span { color: var(--green); font-size: 10px; font-weight: 800; }
.coupon-row dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.coupon-row dl div { display: grid; gap: 3px; }
.coupon-row dt { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.coupon-row dd { margin: 0; font-size: 12px; font-weight: 700; }
.history-controls { margin-bottom: 24px; overflow: hidden; }
.counter-reset-grid { padding: 18px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.counter-reset-grid form { padding: 14px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.counter-reset-grid span { font-size: 12px; font-weight: 800; }
.history-delete-row { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid #edcbc7; background: #fff8f7; }
.history-delete-row strong { color: var(--red); }
.history-delete-row p { max-width: 700px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.order-row-actions { display: flex; align-items: center; gap: 8px; }
.history-delete-button { padding: 7px 3px; color: var(--red); background: transparent; border: 0; font: 750 10px inherit; cursor: pointer; }
.monthly-counter-reset { margin: -10px 0 24px; padding: 12px 15px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: 11px; }
.danger-zone { margin-top: 24px; padding: 22px 24px; border: 1px solid #e8c5c1; background: #fff8f7; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fulfillment-panel { margin-top: 24px; overflow: hidden; }
.fulfillment-header { align-items: center; }
.fulfillment-header .eyebrow { margin-bottom: 6px; }
.fulfillment-header h2 { margin-bottom: 5px; }
.fulfillment-summary { min-width: 118px; padding: 14px 16px; border-radius: 13px; background: var(--cream); text-align: center; }
.fulfillment-summary strong { display: block; color: var(--cocoa); font: 700 25px/1 Georgia, serif; }
.fulfillment-summary span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.inventory-warning, .inventory-note { margin: 0 24px 18px; padding: 11px 13px; border-radius: 10px; font-size: 11px; font-weight: 650; }
.inventory-warning { color: #80540c; background: #fff5d8; border: 1px solid #efd38c; }
.inventory-note { color: var(--muted); background: #f8f5f2; border: 1px solid var(--line); }
.fulfillment-add { display: grid; grid-template-columns: minmax(240px, 1fr) 220px auto; align-items: end; gap: 14px; padding: 0 24px 24px; border-bottom: 1px solid var(--line); }
.fulfillment-add .field-group { margin: 0; }
.compact-upload { min-height: 96px; }
.compact-upload .upload-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.compact-upload img { height: 96px; }
.fulfillment-add-button { min-height: 44px; margin-bottom: 1px; white-space: nowrap; }
.fulfillment-list { display: grid; }
.fulfillment-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.fulfillment-item:last-child { border-bottom: 0; }
.fulfillment-item > img { width: 68px; height: 68px; border-radius: 11px; object-fit: cover; background: var(--cream); }
.fulfillment-item-info { min-width: 0; display: grid; gap: 5px; }
.fulfillment-item-info > div { display: flex; align-items: center; gap: 9px; }
.fulfillment-item-info a { color: var(--cocoa); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fulfillment-item-info small { color: var(--muted); font-size: 10px; }
.fulfillment-item-info small a { font-size: inherit; }
.fulfillment-item-actions { display: flex; justify-content: flex-end; }
.button.tiny { min-height: 32px; padding: 7px 10px; font-size: 10px; }
.fulfillment-editor { grid-column: 2 / -1; width: 100%; }
.fulfillment-editor summary { width: fit-content; color: var(--cocoa); font-size: 10px; font-weight: 750; cursor: pointer; }
.fulfillment-editor[open] summary { margin-bottom: 10px; }
.fulfillment-editor form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .65fr) auto; align-items: end; gap: 10px; padding: 13px; border-radius: 11px; background: #fbf9f7; border: 1px solid var(--line); }
.fulfillment-editor .field-group { margin: 0; }
.status.reserved { color: #80540c; background: #fff2ca; }
.status.delivered { color: #31597c; background: #e8f2fb; }
.delete-item { color: var(--red); font-size: 20px; }
.order-fulfillment-list { border-top: 1px solid var(--line); }
.order-control-zone { margin-bottom: 24px; }
.review-actions { display: flex; align-items: center; gap: 9px; }
.review-actions form { min-width: 260px; margin: 0; display: grid; gap: 7px; }
.review-actions form label { font-size: 10px; font-weight: 750; color: var(--muted); }
.review-actions form .check-row { align-items: flex-start; }
.review-actions .approve-action { color: #fff; background: #208657; border-color: #208657; box-shadow: 0 8px 18px rgba(32,134,87,.2); }
.review-actions .approve-action:hover { background: #176c46; border-color: #176c46; transform: translateY(-1px); }
.review-actions .reject-action { color: #fff; background: #c83d35; border-color: #c83d35; box-shadow: 0 8px 18px rgba(200,61,53,.2); }
.review-actions .reject-action:hover { background: #a92f29; border-color: #a92f29; transform: translateY(-1px); }
.review-actions .approve-action:active, .review-actions .reject-action:active { transform: translateY(0); box-shadow: none; }
.manual-approval-bar { margin: 0; padding: 18px 24px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-top: 1px solid var(--line); background: #f3faf6; }
.manual-approval-bar p { margin: 0 auto 0 0; color: var(--muted); font-size: 11px; }
.manual-approval-bar .check-row { margin-right: auto; color: #345f4a; font-size: 11px; font-weight: 750; }
.manual-approval-bar .approve-action { color: #fff; background: #208657; border-color: #208657; box-shadow: 0 8px 18px rgba(32,134,87,.2); }
.manual-approval-bar .approve-action:hover { background: #176c46; border-color: #176c46; }
.danger-zone h2 { margin: 0 0 5px; font-size: 15px; color: var(--red); }
.danger-zone p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-card { min-width: 0; }
.detail-list { margin: 0; padding: 8px 24px 18px; }
.detail-list > div { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 0; text-align: right; font-size: 13px; overflow-wrap: anywhere; }
.detail-total { color: var(--cocoa); font-size: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-align: left; background: #fbf9f7; }
th, td { padding: 15px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #fffdfb; }
.flash-stack { position: fixed; top: 22px; right: 24px; z-index: 20; display: grid; gap: 8px; }
.flash { border-radius: 11px; padding: 12px 15px; font-size: 12px; font-weight: 650; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); transition: opacity .24s ease, transform .24s ease; }
.flash.is-leaving { opacity: 0; transform: translateY(-7px); }
.flash.success { color: var(--green); border-color: #acd8c6; }
.flash.error { color: var(--red); border-color: #e3aaa6; }
.login-page { min-height: 100dvh; background: radial-gradient(circle at 20% 10%, #704435 0, var(--cocoa-dark) 35%, #24120e 100%); display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 410px); padding: 42px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.34); border-radius: 22px; box-shadow: 0 32px 90px rgba(0,0,0,.32); }
.login-card h1 { font: 700 36px/1.1 Georgia, serif; letter-spacing: -.035em; margin: 8px 0 9px; }
.login-form { display: grid; gap: 10px; margin-top: 30px; }
.login-form label { font-size: 12px; font-weight: 750; }
.login-form .button { margin-top: 7px; }
.login-note { margin: 28px 0 0; text-align: center; color: #a0928d; font-size: 10px; }
.loyalty-admin, .loyalty-customers-admin, .reviews-admin { margin-top: 24px; }
.loyalty-rules { padding: 20px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.loyalty-rules article { padding: 17px; display: grid; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.loyalty-rules strong { color: var(--cocoa); font-size: 13px; }
.loyalty-rules span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.growth-settings { padding: 0 24px 24px; display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 14px; }
.reward-control-form { padding-top: 20px; grid-template-columns: 1fr; align-items: stretch; }
.reward-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reward-control-card { padding: 18px; display: grid; align-content: start; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.reward-control-card.spin-control-card { grid-column: 1 / -1; }
.reward-control-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.reward-control-title > div { display: grid; gap: 6px; }
.reward-control-title strong { color: var(--cocoa); font-size: 14px; }
.reward-control-title span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.reward-control-card label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.reward-control-card input[type="number"] { width: 100%; }
.fixed-reward-rule { padding: 13px; display: grid; align-content: center; gap: 5px; background: #fff7e8; border: 1px solid #ead2a8; border-radius: 11px; }
.fixed-reward-rule strong { color: var(--cocoa); font-size: 15px; }
.fixed-reward-rule span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.compact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-switch { flex: 0 0 auto; display: block !important; }
.control-switch input { position: absolute; opacity: 0; pointer-events: none; }
.control-switch i { position: relative; width: 44px; height: 24px; display: block; background: #cfc5bd; border-radius: 999px; transition: background .2s; }
.control-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(40,25,20,.2); transition: transform .2s; }
.control-switch input:checked + i { background: #2a7b58; }
.control-switch input:checked + i::after { transform: translateX(20px); }
.admin-review-list { display: grid; }
.admin-review { padding: 18px 24px; display: grid; grid-template-columns: 190px minmax(0,1fr) auto; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.admin-review:last-child { border-bottom: 0; }
.admin-review > div:first-child { display: grid; gap: 5px; }
.admin-review .review-stars { color: #b4772f; }
.admin-review small { color: var(--muted); font-size: 9px; }
.admin-review p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.review-admin-actions { display: flex; gap: 8px; }
.review-admin-actions form { margin: 0; }
.loyalty-customer-list { display: grid; }
.loyalty-customer-row { padding: 17px 24px; display: grid; grid-template-columns: minmax(155px,.9fr) minmax(180px,1.1fr) 240px minmax(225px,.8fr); align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.loyalty-customer-row:last-child { border-bottom: 0; }
.loyalty-rank, .loyalty-private { min-width: 0; display: grid; gap: 5px; }
.loyalty-rank > span { color: #a26e35; font-size: 9px; font-weight: 850; }
.loyalty-rank > strong, .loyalty-private > strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.loyalty-rank > small, .loyalty-private > small, .loyalty-private > span { color: var(--muted); font-size: 9px; }
.loyalty-balances { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.loyalty-balances > span { padding: 10px; display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.loyalty-balances small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.loyalty-balances strong { color: var(--cocoa); font-size: 16px; }
.loyalty-customer-row form { display: grid; grid-template-columns: minmax(85px, 1fr) auto; align-items: end; gap: 8px; }
.loyalty-customer-row form label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.loyalty-customer-row form input { min-width: 0; }
.leaderboard-reset-bar { padding: 16px 24px; display: flex; align-items: center; gap: 10px; background: #fff8ec; border-top: 1px solid #eed8b5; border-bottom: 1px solid #eed8b5; }
.leaderboard-reset-bar > div { margin-right: auto; display: grid; gap: 4px; }
.leaderboard-reset-bar strong { color: var(--cocoa); font-size: 12px; }
.leaderboard-reset-bar span { color: var(--muted); font-size: 9px; }
.leaderboard-reset-bar form { margin: 0; }
.customer-reward-actions { display: grid; gap: 9px; }
.customer-reward-actions form { display: grid; grid-template-columns: minmax(80px,1fr) auto; align-items: end; gap: 7px; }
.customer-reward-actions .gift-send-form { grid-template-columns: minmax(120px,1.3fr) minmax(75px,.7fr) auto; }
.customer-reward-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.customer-reward-actions input, .customer-reward-actions select { min-width: 0; width: 100%; }
.gift-history-list { display: grid; }
.gift-history-list > div { padding: 15px 24px; display: grid; grid-template-columns: minmax(140px,1fr) minmax(150px,1fr) auto minmax(100px,.7fr); align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.gift-history-list > div:last-child { border-bottom: 0; }
.gift-history-list span, .gift-history-list small { color: var(--muted); font-size: 10px; }
@media (min-width: 901px) {
  :root {
    --shadow: 0 20px 55px rgba(65,39,29,.09);
    --shadow-soft: 0 9px 28px rgba(65,39,29,.065);
  }
  .app-shell { grid-template-columns: 264px minmax(0, 1fr); }
  .sidebar { padding: 32px 20px 22px; border-right: 1px solid rgba(255,255,255,.07); box-shadow: 18px 0 55px rgba(53,26,20,.085); }
  .brand { padding: 0 10px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 9px 25px rgba(0,0,0,.13); }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 11px; letter-spacing: .02em; }
  .sidebar nav { gap: 8px; margin-top: 56px; }
  .nav-link { position: relative; min-height: 48px; padding: 13px 15px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; transition-duration: 120ms; }
  .nav-link:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.055); transform: translateX(2px); }
  .nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(201,137,79,.3), rgba(255,255,255,.08)); border-color: rgba(238,188,140,.16); box-shadow: inset 3px 0 0 #dfa269, 0 8px 24px rgba(0,0,0,.08); }
  .main-content { max-width: 1560px; padding: 54px clamp(36px, 4.5vw, 76px) 88px; }
  .page-heading { margin-bottom: 34px; }
  .page-heading h1 { font-size: clamp(34px, 3vw, 46px); }
  .stats-grid { gap: 18px; margin-bottom: 28px; }
  .stat-card { min-height: 104px; padding: 24px; border-radius: 19px; }
  .stat-card:hover { transform: translateY(-2px); border-color: rgba(201,137,79,.25); box-shadow: 0 16px 34px rgba(65,39,29,.09); }
  .stat-icon { width: 44px; height: 44px; border-radius: 13px; }
  .stat-card strong { font-size: 27px; }
  .panel { margin-bottom: 28px; border-radius: 20px; }
  .panel-header { padding: 24px 28px; }
  .product-row { padding-left: 28px; padding-right: 28px; }
  .orders-preview > div { min-height: 62px; padding-left: 28px; padding-right: 28px; }
  th, td { padding: 17px 24px; }
  .button, .icon-button, .product-row, tbody tr { transition-duration: 120ms; }
}
@media (max-width: 1200px) {
  .main-content { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-row { grid-template-columns: 62px minmax(160px,1fr) 95px 70px 80px; }
  .editor-grid { grid-template-columns: 1fr 300px; }
}
@media (max-width: 900px) {
  body { background: var(--paper); text-rendering: auto; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { max-width: none; padding: 0 20px calc(104px + env(safe-area-inset-bottom)); }
  .mobile-header { position: sticky; top: 0; z-index: 12; min-height: 70px; margin: 0 -20px 20px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; background: #f8f5f1; border-bottom: 1px solid rgba(232,224,218,.9); box-shadow: 0 3px 10px rgba(65,39,29,.04); transform: translateZ(0); }
  .brand.compact { padding: 0; }
  .brand.compact .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .mobile-add { width: 38px; height: 38px; border-radius: 11px; background: var(--cocoa); color: white; display: grid; place-items: center; font-size: 22px; }
  .mobile-nav { position: fixed; z-index: 30; left: 8px; right: 8px; bottom: max(10px, env(safe-area-inset-bottom)); min-height: 66px; padding: 7px 4px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; background: #3d1f18; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; box-shadow: 0 8px 24px rgba(36,25,21,.24); transform: translateZ(0); }
  .mobile-nav form { display: contents; }
  .mobile-nav-link { min-width: 0; min-height: 50px; padding: 5px 4px; border: 0; border-radius: 12px; background: transparent; color: #d8cac5; display: grid; justify-items: center; align-content: center; gap: 2px; cursor: pointer; }
  .mobile-nav-link span { font-size: 20px; line-height: 1; }
  .mobile-nav-link small { max-width: 100%; font-size: 9px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
  .coupon-admin-grid { grid-template-columns: 1fr; }
  .coupon-form { position: static; }
  .coupon-row { grid-template-columns: 1fr auto; gap: 14px; }
  .coupon-row dl { grid-column: 1 / -1; grid-row: 2; }
  .counter-reset-grid { grid-template-columns: 1fr; }
  .history-delete-row { align-items: flex-start; flex-direction: column; }
  .history-delete-row form, .history-delete-row .button { width: 100%; }
  .monthly-counter-reset { align-items: stretch; flex-direction: column; }
  .monthly-counter-reset .button { width: 100%; }
  .loyalty-rules { grid-template-columns: 1fr; }
  .growth-settings { grid-template-columns: 1fr; }
  .growth-settings .button { width: 100%; }
  .reward-control-grid { grid-template-columns: 1fr; }
  .reward-control-card.spin-control-card { grid-column: auto; }
  .compact-fields.three { grid-template-columns: 1fr; }
  .admin-review { grid-template-columns: 1fr; gap: 12px; }
  .loyalty-customer-row { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; }
  .loyalty-balances, .loyalty-customer-row form { grid-column: 1 / -1; }
  .leaderboard-reset-bar { align-items: stretch; flex-direction: column; }
  .leaderboard-reset-bar > div { margin-right: 0; }
  .leaderboard-reset-bar form, .leaderboard-reset-bar .button { width: 100%; }
  .customer-reward-actions { grid-column: 1 / -1; }
  .customer-reward-actions .gift-send-form { grid-template-columns: 1fr 1fr; }
  .customer-reward-actions .gift-send-form .button { grid-column: 1 / -1; width: 100%; }
  .gift-history-list > div { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 8px; }
  .review-admin-actions .button { min-width: 110px; }
  .page-heading > div { min-width: 0; }
  .page-heading > .button { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-card { padding: 15px; gap: 10px; }
  .stat-icon { width: 34px; height: 34px; }
  .product-row { grid-template-columns: 54px 1fr auto; gap: 12px; padding: 13px; }
  .product-thumb { width: 52px; height: 52px; }
  .price-metric { display: none; }
  .product-row .row-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; width: 100%; padding-top: 2px; }
  .product-row .row-actions form { width: 100%; }
  .product-row .icon-button { width: 100%; min-height: 44px; padding: 0 12px; display: flex; gap: 8px; color: var(--cocoa); font-weight: 750; }
  .product-row .action-label { display: inline; font-size: 12px; }
  .stock-metric { text-align: right; }
  .product-title-line { flex-wrap: wrap; }
  .product-info p { max-width: min(42vw, 280px); }
  .orders-preview > div { grid-template-columns: 55px 1fr 85px; }
  .orders-preview .status { display: none; }
  .live-order-controls { width: 100%; justify-content: space-between; }
  .new-order-alert { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .editor-grid { grid-template-columns: 1fr; }
  .form-heading { align-items: flex-start; }
  .back-link { margin-bottom: 18px; }
  input, textarea { font-size: 16px; }
  .fulfillment-header { align-items: flex-start; flex-wrap: wrap; }
  .fulfillment-add { grid-template-columns: 1fr; }
  .fulfillment-add-button { width: 100%; }
  .fulfillment-item { grid-template-columns: 58px minmax(0, 1fr); padding: 12px 16px; }
  .fulfillment-item > img { width: 58px; height: 58px; }
  .fulfillment-item-actions { grid-column: 2; justify-content: flex-start; }
  .fulfillment-editor { grid-column: 1 / -1; }
  .fulfillment-editor form { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .editor-grid > .form-panel { grid-row: 1; }
  .editor-grid > .media-panel { grid-row: 2; }
  .two-column { grid-template-columns: 1fr; }
  .mobile-form-actions { display: grid; gap: 9px; padding-top: 2px; }
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .danger-zone .button { width: 100%; }
  .danger-zone form { width: 100%; }
  .review-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .review-actions form, .review-actions .button { width: 100%; }
  .manual-approval-bar { align-items: stretch; flex-direction: column; }
  .manual-approval-bar .check-row, .manual-approval-bar .button { width: 100%; }
  .login-card { padding: 32px 24px; }
  .flash-stack { top: 12px; left: 12px; right: 12px; }
}
@media (max-width: 700px) {
  .panel { box-shadow: 0 5px 16px rgba(65,39,29,.045); }
  .responsive-table tr, .product-row { content-visibility: auto; contain-intrinsic-size: auto 92px; }
  .website-stock-grid { grid-template-columns: 1fr; padding: 14px; }
  .website-product-add { padding: 0 14px 14px; grid-template-columns: 1fr; }
  .website-product-add-actions { display: grid; grid-template-columns: 1fr; }
  .responsive-table thead { display: none; }
  .responsive-table, .responsive-table tbody { display: block; }
  .responsive-table tr { margin: 12px; padding: 8px 14px; display: grid; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .responsive-table td { min-height: 39px; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-align: left; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table .table-action { display: block; }
  .responsive-table .table-action::before { display: none; }
  .responsive-table .table-action .button { width: 100%; }
  .table-wrap { overflow: visible; }
  .panel-header { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .panel-header > form { width: 100%; }
  .panel-header > form .button { width: 100%; }
  .settings-panel { padding: 20px; }
  .inline-actions { display: grid; grid-template-columns: 1fr; }
  .inline-actions .button { width: 100%; }
  .form-panel, .media-panel { padding: 20px; }
  .image-upload { min-height: 210px; }
  .image-upload img { height: 180px; }
  .fulfillment-add { padding: 0 16px 20px; }
  .inventory-warning, .inventory-note { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 480px) {
  .main-content { padding-left: 12px; padding-right: 12px; }
  .mobile-header { margin-left: -12px; margin-right: -12px; padding-left: 14px; padding-right: 14px; }
  .mobile-header .brand strong { font-size: 13px; }
  .page-heading { gap: 12px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 30px; }
  .large-status { padding: 6px 9px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-width: 0; padding: 13px 11px; }
  .stat-card strong { font-size: 20px; }
  .stat-card div span { font-size: 10px; }
  .product-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .product-thumb { width: 46px; height: 46px; }
  .product-info p { display: none; }
  .product-title-line { gap: 5px; }
  .product-info h3 { font-size: 12px; }
  .stock-metric strong { font-size: 13px; }
  .orders-preview > div { grid-template-columns: 1fr auto; gap: 7px; padding: 12px 14px; }
  .orders-preview .order-number { grid-column: 1 / -1; font-size: 10px; }
  .orders-preview > div > strong { text-align: right; }
  .panel { border-radius: 14px; }
  .panel-header { padding: 16px; }
  .panel-header p { font-size: 12px; }
  .form-panel, .media-panel { padding: 16px; }
  .fulfillment-summary { width: 100%; }
  .fulfillment-item-info > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .button.tiny { min-height: 44px; }
  .detail-list { padding: 6px 16px 14px; }
  .detail-list > div { padding: 10px 0; align-items: flex-start; flex-direction: column; gap: 5px; }
  .detail-list dd { width: 100%; text-align: left; }
  .danger-zone { padding: 18px 16px; }
  .review-actions { grid-template-columns: 1fr; }
  .new-order-alert { grid-template-columns: 44px minmax(0, 1fr); padding: 15px; }
  .new-order-pulse { width: 44px; height: 44px; border-radius: 13px; }
  .new-order-actions { grid-template-columns: 1fr; }
  .login-page { padding: 14px; }
  .login-card { padding: 28px 20px; border-radius: 18px; }
  .login-card h1 { font-size: 32px; }
  .flash-stack { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.bulk-order-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 18px; border-top:1px solid var(--line); background:var(--surface); }
.bulk-order-bar label { display:flex; align-items:center; gap:8px; font-weight:700; }
.bulk-order-bar input, .orders-table input[type="checkbox"] { width:18px; height:18px; accent-color:var(--green); }
@media (max-width: 720px) { .bulk-order-bar { position:sticky; top:0; z-index:3; flex-wrap:wrap; } .bulk-order-bar .button { flex:1; } }
.order-filters { padding:18px; display:grid; grid-template-columns:minmax(210px,1.5fr) repeat(5,minmax(120px,1fr)) auto; align-items:end; gap:12px; }
.order-filters label, .operations-grid > label { display:grid; gap:7px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.filter-actions { display:flex; gap:8px; }
.analytics-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.analytics-layout, .operations-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.revenue-chart { padding:12px 24px 24px; display:grid; gap:12px; }
.revenue-row { display:grid; grid-template-columns:86px minmax(90px,1fr) 105px 66px; align-items:center; gap:12px; font-size:10px; }
.revenue-row time, .revenue-row span { color:var(--muted); }
.revenue-row > div { height:10px; overflow:hidden; border-radius:999px; background:var(--paper); }
.revenue-row i { height:100%; display:block; min-width:3px; border-radius:inherit; background:linear-gradient(90deg,#9c5e33,#d99a56); }
.operations-grid { padding:22px 24px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.operations-save-status { padding:7px 11px; border-radius:999px; color:var(--muted); background:var(--paper); font-size:11px; font-weight:750; white-space:nowrap; }
.operations-save-status[data-state="saving"] { color:#8c552a; background:#fff0d8; }
.operations-save-status[data-state="saved"] { color:#18764d; background:#e4f5ec; }
.operations-save-status[data-state="error"] { color:#b8322c; background:#fde8e6; }
.operations-grid .wide { grid-column:1/-1; }
.operation-toggle { padding:16px; display:flex !important; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--line); border-radius:13px; background:var(--paper); text-transform:none !important; letter-spacing:normal !important; }
.operation-toggle > span:first-child { display:grid; gap:5px; }
.operation-toggle strong { color:var(--ink); font-size:13px; }
.operation-toggle small { color:var(--muted); font-size:10px; line-height:1.5; }
.security-checklist { margin:0 24px 24px; padding:18px; display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:14px; align-items:center; border:1px solid #ead2a8; border-radius:13px; background:#fff8ec; }
.security-checklist h3 { margin:0 0 5px; }
.security-checklist p, .security-checklist small { margin:0; color:var(--muted); font-size:10px; }
.security-checklist > small { grid-column:1/-1; }
.compact-list { padding:4px 24px 20px; display:grid; }
.compact-list > div { min-height:48px; display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:15px; border-bottom:1px solid var(--line); font-size:11px; }
.compact-list span { color:var(--muted); }
.compact-list a { color:var(--cocoa); font-weight:800; }
.empty-copy { padding:18px 24px; color:var(--muted); }
.backup-status { padding:20px 24px; display:grid; gap:5px; }
.backup-status span { color:var(--muted); font-size:11px; }
.audit-list { padding:4px 24px 22px; display:grid; }
.audit-list > div { min-height:57px; display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:12px; border-bottom:1px solid var(--line); }
.audit-list > div > div { display:grid; gap:4px; }
.audit-list small, .audit-list time { color:var(--muted); font-size:9px; }
.audit-dot { width:8px; height:8px; border-radius:50%; background:#c6864d; box-shadow:0 0 0 4px #f5e9dd; }
@media (max-width:1200px) { .order-filters { grid-template-columns:repeat(3,1fr); } .filter-actions { grid-column:1/-1; } }
@media (max-width:900px) { .mobile-nav { overflow-x:auto; grid-template-columns:repeat(12,minmax(72px,1fr)); } .analytics-layout,.operations-summary { grid-template-columns:1fr; } .operations-grid { grid-template-columns:1fr 1fr; } .security-checklist { grid-template-columns:1fr 1fr; } .security-checklist > div,.security-checklist > small { grid-column:1/-1; } }
@media (max-width:700px) { .order-filters,.operations-grid { grid-template-columns:1fr; } .filter-actions,.operations-grid .wide { grid-column:auto; } .filter-actions .button { flex:1; } .analytics-stats { grid-template-columns:1fr 1fr; } .revenue-row { grid-template-columns:75px 1fr 92px; } .revenue-row span { display:none; } .security-checklist { grid-template-columns:1fr; } }
