:root {
  color-scheme: light;
  --bg: #fff7f7;
  --surface: #ffffff;
  --surface-2: #ffe8e8;
  --border: #f2b9b9;
  --text: #4b1111;
  --accent: #b91c1c;
  --accent-2: #dc2626;
  --shadow: 0 12px 30px rgba(185, 28, 28, 0.15);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; padding: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; border-radius: 24px; padding: 16px 20px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { font-size: 2rem; }
.brand h1 { margin: 0; font-size: 1.15rem; }
.brand p { margin: 2px 0 0; font-size: 0.9rem; opacity: 0.9; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost-btn, .primary-btn, .secondary-btn { border: none; padding: 12px 16px; border-radius: 999px; font-weight: 700; }
.ghost-btn { background: rgba(255,255,255,0.2); color: white; }
.primary-btn { background: var(--accent); color: white; }
.secondary-btn { background: var(--surface-2); color: var(--accent); }
.layout { display: grid; grid-template-columns: 1.7fr 0.9fr; gap: 18px; margin-top: 16px; }
.products-panel, .order-panel, .panel { background: var(--surface); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h2, .order-list-head h3 { margin: 0; font-size: 1.1rem; }
input { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: #fff; }
.category-block { margin-bottom: 16px; }
.category-title { font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { background: linear-gradient(180deg, #fff, #fff7f7); border: 1px solid var(--border); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 7px; min-height: 140px; justify-content: space-between; }
.product-card strong { font-size: 1rem; }
.product-card span { color: var(--accent); font-size: 0.95rem; font-weight: 700; }
.order-panel { display: flex; flex-direction: column; gap: 12px; }
.customer-form { display: grid; gap: 8px; }
.customer-form label { font-weight: 700; display: grid; gap: 6px; }
.order-list-wrap { flex: 1; display: flex; flex-direction: column; }
.order-list-head { display: flex; justify-content: space-between; align-items: center; }
.order-list { display: grid; gap: 10px; margin-top: 10px; overflow: auto; padding-right: 4px; }
.order-item { background: var(--surface-2); border-radius: 16px; padding: 10px; display: grid; gap: 6px; }
.order-item .meta { display: flex; justify-content: space-between; align-items: center; }
.order-actions { display: flex; gap: 6px; }
.order-actions button { padding: 6px 9px; border: none; border-radius: 999px; background: white; }
.summary-card { background: #fff1f1; border-radius: 20px; padding: 12px; display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; }
.stats-grid, .settings-grid, .history-list { display: grid; gap: 12px; }
.stat-card, .settings-card, .history-card { background: var(--surface-2); border-radius: 18px; padding: 12px; }
.hidden { display: none !important; }
.inline-actions { display: flex; gap: 8px; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: white; font-size: 0.84rem; color: var(--accent); font-weight: 700; }
.small { font-size: 0.82rem; color: #7a3a3a; }
