:root { color-scheme:light; font-family: ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif; background:#f6f3ec; color:#262720; font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:not-allowed; }
a { color:#9c4a3d; }
#app { min-height:100vh; }
.container { width:min(1090px,calc(100% - 36px)); margin:auto; }
.header { background:#fffdf8; border-bottom:1px solid #e9e2d9; position:sticky; top:0; z-index:20; }
.header-in { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:78px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-icon { width:45px; height:45px; display:grid; place-items:center; border-radius:15px; background:#b96857; color:white; font-size:24px; box-shadow:0 3px 7px #b9685728; }
.brand h1 { margin:0; font-size:20px; font-weight:800; letter-spacing:-.7px; }
.tagline { color:#867e73; font-size:12px; font-weight:600; margin-top:1px; }
.header-right { display:flex; gap:9px; align-items:center; }
.status-chip { border-radius:100px; background:#e8f2e7; color:#356541; font-size:11px; font-weight:800; padding:7px 10px; letter-spacing:.02em; white-space:nowrap; }
.status-chip.demo { background:#fff0d9; color:#86550b; }
.main { padding:30px 0 110px; }
.page-header { display:flex; justify-content:space-between; align-items:end; gap:14px; margin-bottom:23px; }
.eyebrow { color:#9d6255; font-size:12px; letter-spacing:1.7px; text-transform:uppercase; font-weight:800; margin:0 0 7px; }
h2 { font-size:clamp(25px,3.2vw,36px); line-height:1.12; margin:0; letter-spacing:-1.15px; }
h3 { font-size:18px; line-height:1.25; margin:0; letter-spacing:-.3px; }
p { line-height:1.5; }
.muted { color:#817c73; }
.small { font-size:12px; }
.hint { font-size:13px; color:#786e63; }
.btn { border:1px solid transparent; border-radius:13px; min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 16px; font-size:13px; font-weight:800; text-decoration:none; transition:background .12s, transform .12s; white-space:nowrap; }
.btn:active { transform:scale(.985); }
.btn.primary { background:#ad624f; color:white; }
.btn.primary:hover { background:#8f4b3b; }
.btn.secondary { background:white; color:#514b40; border-color:#ded9ce; }
.btn.secondary:hover { background:#faf7f2; }
.btn.ghost { background:transparent; color:#625a50; }
.btn.danger { color:#a23f37; border-color:#f0d3ce; background:#fff6f3; }
.btn.icon { min-width:42px; padding:9px; font-size:18px; }
.btn.small-btn { font-size:12px; min-height:35px; padding:7px 11px; }
.btn.full { width:100%; }
.card { background:#fffefa; border:1px solid #e8e1d6; border-radius:20px; padding:20px; box-shadow:0 3px 13px rgba(57,42,25,.025); }
.card + .card { margin-top:12px; }
.grid { display:grid; gap:14px; }
.stats-grid { grid-template-columns:repeat(4,1fr); margin-bottom:22px; }
.stat { min-height:138px; position:relative; overflow:hidden; }
.stat-ico { font-size:21px; position:absolute; right:18px; top:18px; opacity:.75; }
.stat-title { font-size:12px; font-weight:750; color:#83796d; margin-bottom:17px; padding-right:23px; }
.stat-value { font-size:31px; font-weight:850; letter-spacing:-1.2px; line-height:1; }
.stat-sub { margin-top:9px; font-size:11px; color:#8f887e; }
.stat.accent { background:#f9e9e4; border-color:#f1d8cf; }
.stat.accent .stat-value { color:#8f4b3b; }
.two-col { grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); align-items:start; }
.section-title { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 16px; }
.section-title p { margin:5px 0 0; font-size:12px; color:#857d73; }
.mini-metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bake-tile { border:1px solid #ecdccc; background:#fcf5e8; border-radius:17px; padding:18px; }
.bake-tile:nth-child(2) { background:#f4ecf7; border-color:#e6ddeb; }
.bake-tile .emoji { font-size:28px; }
.bake-number { font-weight:850; font-size:35px; letter-spacing:-1px; margin:8px 0 2px; }
.bake-name { color:#776e60; font-weight:700; font-size:13px; }
.inline-notice { padding:12px 14px; border-radius:12px; margin-top:16px; background:#f5f2e8; color:#72695d; font-size:12px; line-height:1.5; }
.notice-warning { background:#fff3dd; color:#76521f; }
.order-list { display:flex; flex-direction:column; gap:10px; }
.order-item { border:1px solid #e8e3d9; background:#fffefa; border-radius:17px; padding:16px; }
.order-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.order-name { font-weight:800; font-size:15px; overflow-wrap:anywhere; }
.order-handle { color:#9b7264; font-size:12px; margin-top:3px; overflow-wrap:anywhere; }
.order-detail { margin:9px 0; font-size:13px; color:#6d685f; }
.order-detail strong { font-weight:750; color:#49453f; }
.order-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:10px; }
.order-actions { display:flex; flex-wrap:wrap; gap:7px; border-top:1px solid #eee9e1; padding-top:12px; margin-top:12px; }
.badge { border-radius:100px; padding:5px 9px; font-size:11px; font-weight:850; white-space:nowrap; display:inline-flex; align-items:center; }
.badge.new { background:#e8ebfc; color:#454ca1; }
.badge.making { background:#fff1d2; color:#876019; }
.badge.ready { background:#e5f2e7; color:#2d7546; }
.badge.delivered { background:#e9e9e6; color:#62625a; }
.badge.canceled { background:#f6e3e0; color:#a44940; }
.badge.unpaid { background:#fff1dc; color:#86561f; }
.badge.paid { background:#e4f2e8; color:#36754b; }
.amount { font-size:18px; font-weight:850; letter-spacing:-.4px; white-space:nowrap; }
.soft-divider { height:1px; background:#eee9e1; margin:15px 0; }
.empty { padding:45px 22px; text-align:center; border:1px dashed #ddd5c8; border-radius:20px; background:#fffdf8; }
.empty-icon { font-size:35px; margin-bottom:9px; }
.empty p { font-size:13px; color:#857d73; margin:8px 0 17px; }
.toolbar { display:flex; flex-wrap:wrap; gap:9px; align-items:center; justify-content:space-between; margin:0 0 18px; }
.toolbar-left { display:flex; flex:1; gap:9px; flex-wrap:wrap; align-items:center; }
.input, .select, .textarea { background:#fffefa; border:1px solid #dcd6cc; border-radius:12px; padding:11px 12px; color:#302d28; font-size:14px; width:100%; min-height:44px; outline:none; }
.input:focus, .select:focus, .textarea:focus { border-color:#b96857; box-shadow:0 0 0 3px #b9685726; }
.input::placeholder,.textarea::placeholder { color:#a99f92; }
.search { width:min(100%,300px); flex:1; }
.toolbar .select { width:auto; min-width:140px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field label { font-size:12px; font-weight:800; color:#625b52; }
.fieldset { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field.span2 { grid-column:1/-1; }
.field small { color:#8e8375; font-size:11px; }
.textarea { resize:vertical; min-height:85px; }
.order-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.order-grid .order-item { min-width:0; }
.nav { position:fixed; bottom:0; width:100%; z-index:18; padding-bottom:env(safe-area-inset-bottom,0); background:#fffdf9; border-top:1px solid #e8e1d6; box-shadow:0 -8px 22px #31250d08; }
.nav-inner { max-width:700px; margin:auto; display:grid; grid-template-columns:repeat(4,1fr); }
.nav button { border:0; background:transparent; color:#8b8176; display:flex; flex-direction:column; align-items:center; gap:4px; padding:11px 3px 10px; font-size:11px; font-weight:750; min-height:60px; }
.nav button.active { color:#a35445; }
.nav button .ni { font-size:20px; }
.modal-backdrop { position:fixed; inset:0; display:flex; align-items:flex-end; justify-content:center; background:#1e1c1a85; z-index:40; }
.modal { width:min(100%,660px); background:#fffcf8; border-radius:24px 24px 0 0; max-height:95dvh; overflow:auto; padding:23px 21px calc(24px + env(safe-area-inset-bottom,0px)); box-shadow:0 -12px 60px #0002; }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:17px; }
.modal-head h2 { font-size:24px; }
.modal-body { display:flex; flex-direction:column; gap:16px; }
.modal-summary { padding:14px; border-radius:14px; background:#f7efe4; }
.summary-row { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 8px; font-size:13px; }
.summary-row:last-child { margin:0; }
.summary-row.total { border-top:1px solid #ead9c7; padding-top:11px; font-weight:850; font-size:17px; }
.form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:19px; }
.form-actions .primary { flex:1; }
.login-shell { min-height:100dvh; display:flex; align-items:center; justify-content:center; padding:25px; background:radial-gradient(circle at 80% 10%,#ffe5cf,transparent 35%),radial-gradient(circle at 10% 95%,#efdfe2,transparent 30%),#f6f3ec; }
.login-card { width:min(100%,430px); background:#fffefa; border:1px solid #e9e1d9; border-radius:24px; padding:30px; box-shadow:0 13px 40px #5d493514; }
.login-card h1 { font-size:27px; margin:14px 0 4px; letter-spacing:-1px; }
.login-card p { font-size:13px; color:#746d63; }
.login-card form { display:flex; flex-direction:column; gap:15px; margin-top:25px; }
.login-card .btn { margin-top:6px; }
.login-card .brand-icon { width:55px; height:55px; font-size:28px; }
.footer-note { text-align:center; color:#928b82; font-size:11px; margin:30px 0 0; }
.segment { display:flex; flex-wrap:wrap; gap:5px; padding:4px; border-radius:13px; background:#ebe6dc; }
.segment button { background:transparent; border:0; padding:8px 12px; border-radius:10px; font-size:12px; font-weight:800; color:#777165; }
.segment button.active { background:#fff; box-shadow:0 1px 4px #0001; color:#a45545; }
.bar-chart { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; height:155px; align-items:end; margin-top:17px; }
.bar-col { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:8px; height:100%; min-width:0; }
.bar-fill { border-radius:7px 7px 4px 4px; background:linear-gradient(180deg,#ca8873,#ad624f); width:100%; max-width:50px; min-height:4px; }
.bar-col small { font-size:10px; color:#8b8277; white-space:nowrap; }
.bar-col span { font-size:10px; color:#8b8277; }
.batch-date { margin:20px 0 9px; font-size:13px; font-weight:850; color:#62594e; }
.prep-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.prep-row input[type=checkbox] { width:19px; height:19px; accent-color:#a95e4e; }
.prep-row .order-name { flex:1; }
.screen-message { padding:16px; background:#fff5e8; color:#794f26; border-radius:12px; margin:14px 0; font-size:13px; }
#toast { position:fixed; bottom:90px; left:50%; transform:translateX(-50%); z-index:60; color:white; background:#333129; padding:12px 17px; border-radius:12px; box-shadow:0 8px 25px #0002; font-size:13px; display:none; width:max-content; max-width:calc(100vw - 30px); text-align:center; }
#toast.show { display:block; }
.loading-indicator,.boot { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:15px; min-height:60vh; color:#806e61; }
.loader { border:3px solid #efdcd4; border-top-color:#b96857; width:30px; height:30px; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
button:focus-visible { outline:3px solid #d6a091; outline-offset:3px; }
@media (min-width:760px) { .modal-backdrop { align-items:center; padding:20px; } .modal { border-radius:24px; padding:26px; max-height:90dvh; } .main { padding-top:36px; } }
@media (max-width:800px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .two-col { grid-template-columns:1fr; } .order-grid { grid-template-columns:1fr; } }
@media (max-width:480px) { .container { width:calc(100% - 28px); } .header-in { min-height:68px; } .brand-icon { width:40px; height:40px; border-radius:13px; } .brand h1 { font-size:18px; } .status-chip { padding:6px 8px; font-size:10px; } .page-header { align-items:flex-start; } .page-header .btn { padding:9px 11px; min-height:38px; } .stat { min-height:124px; padding:15px; } .stat-title { margin-bottom:17px; } .stat-value { font-size:27px; } .stat-ico { right:12px; top:12px; } .card { padding:16px; } .fieldset { gap:10px; } .modal { padding:20px 15px 24px; } .bar-chart { gap:6px; } }
@media print { .header,.nav,.toolbar,.btn,.print-hide,#toast { display:none!important; } .container { width:100%; } .main { padding:0; } body { background:white; } .card,.order-item { border:1px solid #ddd; box-shadow:none; } .page-header { margin:0 0 10px; } }
