:root {
  color-scheme: dark;
  --bg: #06101d;
  --panel: rgba(15, 29, 45, .78);
  --panel-solid: #0e1c2d;
  --panel-soft: #12243a;
  --line: rgba(179, 209, 228, .12);
  --text: #f3f8fb;
  --muted: #91a5b7;
  --cyan: #54e7df;
  --blue: #5ea7ff;
  --lime: #baf36a;
  --orange: #ffb45d;
  --coral: #ff7f73;
  --shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 82% -10%, rgba(60, 151, 222, .18), transparent 30%), var(--bg); color: var(--text); font: 16px/1.5 "DM Sans", sans-serif; }
button, select { font: inherit; }
button { color: inherit; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ambient { position: fixed; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(120px); opacity: .12; pointer-events: none; }
.ambient-one { background: var(--cyan); top: 25%; left: 22%; }
.ambient-two { background: var(--blue); right: -12rem; bottom: -8rem; }

.app-shell { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; border-right: 1px solid var(--line); background: rgba(5, 14, 26, .72); backdrop-filter: blur(28px); display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { position: relative; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 10px 28px rgba(84, 231, 223, .22); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border: 2px solid #04131e; border-radius: 50%; }
.brand-mark::before { inset: 9px; }
.brand-mark::after { inset: 15px; border-width: 1px; }
.brand-mark span { width: 6px; height: 6px; top: 8px; right: 8px; background: #04131e; border: 0; }
.brand strong { display: block; font: 800 1.05rem/1.15 "Manrope", sans-serif; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }

.branch-picker { margin: 34px 0 26px; }
.branch-picker label, .eyebrow { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.branch-picker select { width: 100%; padding: 12px 34px 12px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--panel-solid); }
.nav-list { display: grid; gap: 6px; }
.nav-item { border: 0; padding: 12px 14px; background: transparent; color: var(--muted); border-radius: 12px; display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none; cursor: pointer; transition: .25s ease; }
.nav-item span { width: 24px; text-align: center; font-weight: 700; }
.nav-item:hover, .nav-item.active { background: rgba(84, 231, 223, .09); color: var(--text); transform: translateX(2px); }
.nav-item.active span { color: var(--cyan); }

.sidebar-card { margin-top: auto; padding: 18px; border: 1px solid rgba(84, 231, 223, .18); border-radius: 18px; background: linear-gradient(145deg, rgba(84, 231, 223, .10), rgba(94, 167, 255, .04)); }
.sidebar-card strong { display: block; font: 700 .95rem/1.35 "Manrope", sans-serif; }
.sidebar-card p { margin: 8px 0 12px; color: var(--muted); font-size: .8rem; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--cyan); font-weight: 700; cursor: pointer; }
.text-button span { display: inline-block; transition: transform .2s ease; }
.text-button:hover span { transform: translateX(3px); }
.demo-note { margin: 18px 0 0; color: #516476; font-size: .68rem; text-align: center; }

.main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 36px 42px 64px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 700 clamp(1.55rem, 2vw, 2.25rem)/1.15 "Manrope", sans-serif; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font: 700 clamp(1.1rem, 1.5vw, 1.45rem)/1.25 "Manrope", sans-serif; letter-spacing: -.035em; }
.view-switch { padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 22, 35, .72); display: flex; }
.view-switch button { border: 0; padding: 9px 16px; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: .2s ease; }
.view-switch button.active { background: var(--text); color: #07111f; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.2); }

.status-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; min-height: 150px; padding: 24px 26px; border: 1px solid rgba(84, 231, 223, .2); border-radius: 22px; background-image: linear-gradient(90deg, rgba(5, 18, 30, .98) 0%, rgba(8, 26, 40, .94) 44%, rgba(8, 25, 38, .42) 72%, rgba(8, 25, 38, .55) 100%), url("assets/laundryflow-hero.png"); background-position: center; background-size: cover; box-shadow: var(--shadow); }
.status-banner::after { content: ""; position: absolute; width: 270px; height: 270px; border: 1px solid rgba(84, 231, 223, .13); border-radius: 50%; right: 10%; top: -210px; box-shadow: 0 0 0 38px rgba(84, 231, 223, .025), 0 0 0 76px rgba(84, 231, 223, .018); }
.live-orb { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(84, 231, 223, .1); border: 1px solid rgba(84, 231, 223, .18); }
.live-orb span { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(84, 231, 223, .5); animation: pulse 2s infinite; }
.status-banner .eyebrow { margin-bottom: 4px; color: #a8c6d2; }
.status-banner h2 strong { color: var(--cyan); }
.queue-copy { min-width: 105px; padding-left: 20px; border-left: 1px solid var(--line); }
.queue-copy span { display: block; color: var(--muted); font-size: .75rem; }
.queue-copy strong { font: 700 1.2rem "Manrope", sans-serif; }
.primary-button { border: 0; padding: 13px 18px; border-radius: 13px; background: var(--cyan); color: #05121b; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(84, 231, 223, .18); transition: .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(84, 231, 223, .25); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 36px 0 18px; }
.section-head .eyebrow { margin-bottom: 4px; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: .78rem; }
.legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.available { background: var(--cyan); }
.dot.busy { background: var(--blue); }
.dot.ready { background: var(--lime); }

.machine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.machine-card { position: relative; overflow: hidden; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, rgba(20, 39, 60, .92), rgba(10, 24, 39, .88)); box-shadow: 0 16px 36px rgba(0,0,0,.16); transition: transform .25s ease, border-color .25s ease; }
.machine-card:hover { transform: translateY(-4px); border-color: rgba(84, 231, 223, .25); }
.machine-top { display: flex; align-items: center; justify-content: space-between; }
.machine-number { color: #607589; font: 800 .75rem "Manrope", sans-serif; letter-spacing: .12em; }
.status-pill { padding: 5px 9px; border-radius: 999px; font-size: .67rem; font-weight: 700; }
.status-pill.available { background: rgba(84, 231, 223, .12); color: var(--cyan); }
.status-pill.busy { background: rgba(94, 167, 255, .12); color: #81bdff; }
.status-pill.busy.warm { background: rgba(255, 180, 93, .12); color: var(--orange); }
.status-pill.ready { background: rgba(186, 243, 106, .12); color: var(--lime); }

.washer { width: 100px; height: 108px; margin: 18px auto 15px; padding: 10px; border-radius: 24px 24px 18px 18px; background: linear-gradient(145deg, #263d50, #112437); box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), 0 12px 24px rgba(0,0,0,.2); }
.washer::before { content: "•  ·  –"; display: block; height: 15px; padding-right: 4px; color: #91a5b7; font-size: .7rem; text-align: right; letter-spacing: 2px; }
.washer-window { width: 68px; height: 68px; margin: 3px auto; padding: 7px; border-radius: 50%; background: #07111e; box-shadow: inset 0 0 0 2px #31495d, 0 0 18px rgba(84, 231, 223, .04); }
.washer-glass { position: relative; overflow: hidden; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #577187, #172d43 52%, #07111e 54%); }
.washer-glass span:not(:only-child) { position: absolute; width: 38px; height: 16px; border-radius: 50%; background: #5fa5be; opacity: .45; }
.washer-glass span:nth-child(1) { left: 3px; top: 19px; transform: rotate(30deg); }
.washer-glass span:nth-child(2) { right: 1px; top: 28px; transform: rotate(-28deg); background: #a2e4e0; }
.washer-glass span:nth-child(3) { left: 17px; bottom: 3px; transform: rotate(14deg); background: #5065a1; }
.washer.active .washer-glass { animation: spin 4s linear infinite; }
.washer.reverse .washer-glass { animation-direction: reverse; animation-duration: 3s; }
.washer-glass.warm { filter: sepia(.35) hue-rotate(330deg); }
.washer-glass.clean { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(186,243,106,.25), rgba(10,26,32,.9) 65%); color: var(--lime); font-size: 1.5rem; }
.machine-copy strong, .machine-copy span { display: block; }
.machine-copy strong { font: 700 .95rem "Manrope", sans-serif; }
.machine-copy span { color: var(--muted); font-size: .76rem; }
.machine-action { width: 100%; margin-top: 13px; padding: 9px 10px; border: 1px solid rgba(84,231,223,.18); border-radius: 10px; background: rgba(84,231,223,.07); color: var(--cyan); font-size: .78rem; font-weight: 700; cursor: pointer; }
.machine-action span { float: right; }
.progress-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 15px; }
.progress { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); animation: breathe 2.2s ease-in-out infinite; }
.progress.warm span { background: var(--orange); }
.progress-row strong { font-size: .72rem; }
.ready-message { margin-top: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(186,243,106,.07); color: var(--lime); font-size: .75rem; text-align: center; }

.customer-view, .owner-view { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); gap: 14px; margin-top: 14px; animation: rise .45s ease both; }
.order-card, .services-card, .operations-card, .insight-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 16px 36px rgba(0,0,0,.13); backdrop-filter: blur(18px); }
.order-card-head { display: flex; justify-content: space-between; gap: 16px; }
.order-id { color: var(--muted); font-size: .76rem; }
.track-form { display: grid; grid-template-columns: auto minmax(180px, 1fr); align-items: center; gap: 16px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,16,27,.5); }
.track-form label { color: var(--muted); font-size: .74rem; }
.track-form > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.track-form input { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #081726; color: var(--text); text-transform: uppercase; }
.track-form button { border: 0; padding: 9px 12px; border-radius: 9px; background: rgba(84,231,223,.12); color: var(--cyan); font-weight: 700; cursor: pointer; }
.order-person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin: 22px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-photo, .avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, rgba(84,231,223,.22), rgba(94,167,255,.15)); color: var(--cyan); font-size: .75rem; font-weight: 800; }
.order-person strong, .order-person span { display: block; }
.order-person span { color: var(--muted); font-size: .78rem; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); cursor: pointer; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timeline-line { position: absolute; top: 15px; left: 9%; right: 9%; height: 2px; background: rgba(255,255,255,.08); }
.timeline-line span { display: block; width: 43%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.timeline-step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.timeline-step i { display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid #304357; border-radius: 50%; background: var(--panel-solid); color: var(--muted); font-size: .7rem; font-style: normal; }
.timeline-step.complete i { border-color: var(--cyan); background: var(--cyan); color: #06101d; }
.timeline-step.active i { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px rgba(94,167,255,.08); }
.timeline-step > span { margin-top: 8px; font-size: .73rem; font-weight: 700; }
.timeline-step small { display: block; color: var(--muted); font-size: .64rem; font-weight: 500; }

.section-head.compact { margin: 0 0 16px; }
.price-note { color: var(--cyan); font-size: .74rem; font-weight: 700; }
.service-grid { display: grid; gap: 10px; }
.service-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9,23,37,.65); text-align: left; cursor: pointer; transition: .2s ease; }
.service-option:hover, .service-option.selected { border-color: rgba(84,231,223,.28); background: rgba(84,231,223,.06); transform: translateX(2px); }
.service-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(84,231,223,.08); color: var(--cyan); }
.service-option strong, .service-option small { display: block; }
.service-option strong { font-size: .82rem; }
.service-option small { color: var(--muted); font-size: .7rem; }
.service-option b { color: var(--cyan); font-size: .76rem; }

.owner-view { grid-template-columns: 1fr; }
.owner-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.owner-metrics article { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.owner-metrics span, .owner-metrics small { display: block; color: var(--muted); }
.owner-metrics span { font-size: .75rem; }
.owner-metrics strong { display: block; margin: 8px 0 4px; font: 800 1.8rem "Manrope", sans-serif; letter-spacing: -.05em; }
.owner-metrics small { font-size: .68rem; }
.location-strip { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 14px; }
.location-card { position: relative; display: grid; gap: 5px; min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(12,28,44,.72); color: var(--text); text-align: left; }
.location-card.current { border-color: rgba(84,231,223,.28); background: linear-gradient(145deg, rgba(84,231,223,.08), rgba(12,28,44,.8)); }
.location-card > div { display: flex; align-items: center; gap: 8px; }
.location-card b { align-self: end; font: 700 1.05rem "Manrope", sans-serif; }
.location-card small { color: var(--muted); font-size: .7rem; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(84,231,223,.08); }
.add-location { border-style: dashed; place-content: center; cursor: pointer; }
.add-location span { position: absolute; right: 15px; top: 12px; color: var(--cyan); font-size: 1.2rem; }
.add-location:hover { border-color: rgba(84,231,223,.32); background: rgba(84,231,223,.05); }
.owner-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.order-row strong, .order-row small { display: block; }
.order-row small { color: var(--muted); font-size: .7rem; }
.avatar.coral { color: var(--coral); background: rgba(255,127,115,.1); }
.avatar.yellow { color: var(--orange); background: rgba(255,180,93,.1); }
.mini-status { padding: 5px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; }
.mini-status.washing { background: rgba(94,167,255,.1); color: var(--blue); }
.mini-status.drying { background: rgba(255,180,93,.1); color: var(--orange); }
.mini-status.pickup { background: rgba(186,243,106,.1); color: var(--lime); }
.order-row b { font-size: .73rem; }
.insight-card { background: linear-gradient(150deg, rgba(65, 71, 149, .34), rgba(11, 29, 45, .88)); }
.insight-card p:not(.eyebrow) { margin: 10px 0 18px; color: #a6b4c5; font-size: .82rem; }
.mini-chart { height: 90px; display: flex; align-items: end; gap: 8px; }
.mini-chart i { flex: 1; min-width: 5px; border-radius: 7px 7px 2px 2px; background: linear-gradient(var(--cyan), rgba(84,231,223,.1)); animation: chartIn .8s ease both; transform-origin: bottom; }
.mini-chart i:nth-child(2) { animation-delay: .06s; }.mini-chart i:nth-child(3) { animation-delay: .12s; }.mini-chart i:nth-child(4) { animation-delay: .18s; }.mini-chart i:nth-child(5) { animation-delay: .24s; }.mini-chart i:nth-child(6) { animation-delay: .30s; }.mini-chart i:nth-child(7) { animation-delay: .36s; }
.chart-label { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .63rem; }
.chart-label b { color: var(--cyan); font-weight: 600; }

.reports-center { padding: 24px; border: 1px solid rgba(84,231,223,.16); border-radius: 22px; background: linear-gradient(150deg, rgba(15,38,56,.88), rgba(8,22,36,.92)); box-shadow: var(--shadow); scroll-margin-top: 24px; }
.report-title-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.report-title-row p:not(.eyebrow) { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.report-actions { display: flex; gap: 8px; }
.report-filters { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr auto; align-items: end; gap: 10px; margin: 22px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(3,14,24,.5); }
.report-filters label { display: grid; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.report-filters input, .report-filters select { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0d2135; color: var(--text); color-scheme: dark; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.report-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,25,40,.7); }
.report-summary span, .report-summary small { display: block; color: var(--muted); }
.report-summary span { font-size: .7rem; }
.report-summary strong { display: block; margin: 6px 0 2px; font: 800 1.45rem "Manrope", sans-serif; letter-spacing: -.04em; }
.report-summary small { font-size: .64rem; }
.report-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 12px; }
.report-chart-card, .report-breakdown { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8,22,35,.76); }
.report-card-head { display: flex; justify-content: space-between; gap: 14px; }
.report-card-head span, .report-card-head strong { display: block; }
.report-card-head span, .report-card-head small { color: var(--muted); font-size: .68rem; }
.report-card-head strong { margin-top: 3px; font: 700 1.05rem "Manrope", sans-serif; }
.report-chart { height: 155px; display: flex; align-items: end; gap: clamp(4px, .8vw, 9px); margin-top: 22px; border-bottom: 1px solid var(--line); }
.report-chart i { position: relative; flex: 1; min-width: 5px; border-radius: 6px 6px 0 0; background: linear-gradient(var(--cyan), rgba(84,231,223,.08)); transform-origin: bottom; animation: chartIn .65s ease both; }
.report-chart i b { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,.12), transparent); }
.report-axis { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: .62rem; }
.breakdown-row { display: grid; grid-template-columns: 1.1fr .8fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row strong, .breakdown-row small { display: block; }
.breakdown-row strong { font-size: .73rem; }
.breakdown-row small { color: var(--muted); font-size: .63rem; }
.breakdown-row > span { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.breakdown-row > span i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.breakdown-row > b { font-size: .68rem; }

.toast { position: fixed; z-index: 20; right: 28px; bottom: 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-width: 280px; padding: 14px 16px; border: 1px solid rgba(84,231,223,.25); border-radius: 15px; background: #10253a; box-shadow: var(--shadow); transform: translateY(130%); opacity: 0; transition: .35s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(84,231,223,.12); color: var(--cyan); }
.toast strong, .toast small { display: block; }
.toast small { color: var(--muted); font-size: .72rem; }

dialog { width: min(520px, calc(100% - 30px)); padding: 0; border: 1px solid rgba(84,231,223,.22); border-radius: 22px; background: #0a1a2a; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(1,7,14,.76); backdrop-filter: blur(8px); }
.dialog-card { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; gap: 18px; }
.dialog-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.dialog-intro { color: var(--muted); font-size: .83rem; }
.dialog-card > label { display: grid; gap: 7px; margin-top: 15px; color: #b7c6d3; font-size: .77rem; font-weight: 700; }
.dialog-card select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #10243a; color: var(--text); }
.scan-button { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; width: 100%; margin: 18px 0 4px; padding: 13px; border: 1px solid rgba(84,231,223,.22); border-radius: 13px; background: rgba(84,231,223,.06); color: var(--text); text-align: left; cursor: pointer; }
.scan-button:hover { background: rgba(84,231,223,.1); }
.scan-corners { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(84,231,223,.26); border-radius: 12px; color: var(--cyan); font-size: 1.35rem; }
.scan-button strong, .scan-button small { display: block; }
.scan-button small { color: var(--muted); font-size: .7rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.secondary-button { border: 1px solid var(--line); padding: 12px 15px; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(84,231,223,0); } 100% { box-shadow: 0 0 0 0 rgba(84,231,223,0); } }
@keyframes breathe { 50% { filter: brightness(1.3); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chartIn { from { transform: scaleY(0); } }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .main { padding: 30px 26px 50px; }
  .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-view { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .branch-picker { margin: 0; }
  .branch-picker label, .nav-list, .sidebar-card, .demo-note { display: none; }
  .branch-picker select { width: 150px; }
  .main { padding: 24px 16px 42px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { max-width: 16rem; }
  .view-switch { flex-direction: column; }
  .view-switch button { padding: 7px 12px; }
  .status-banner { grid-template-columns: auto 1fr; padding: 19px; }
  .queue-copy { padding-left: 0; border-left: 0; }
  .primary-button { width: 100%; }
  .section-head { align-items: flex-start; }
  .legend { display: none; }
  .machine-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .machine-card { padding: 14px; }
  .washer { width: 82px; height: 90px; margin: 14px auto 12px; }
  .washer-window { width: 54px; height: 54px; }
  .machine-action { font-size: .7rem; }
  .timeline-step > span { font-size: .67rem; }
  .owner-metrics { grid-template-columns: 1fr 1fr; }
  .location-strip { grid-template-columns: 1fr; }
  .owner-columns { grid-template-columns: 1fr; }
  .report-filters { grid-template-columns: 1fr 1fr; }
  .report-filters .primary-button { grid-column: 1 / -1; }
  .report-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: auto 1fr auto; }
  .order-row > b { display: none; }
}

@media (max-width: 470px) {
  .brand small { display: none; }
  .branch-picker select { width: 136px; }
  .topbar { display: grid; }
  .view-switch { flex-direction: row; width: 100%; }
  .view-switch button { flex: 1; }
  .machine-grid { grid-template-columns: 1fr; }
  .customer-view { min-width: 0; }
  .timeline-step small { display: none; }
  .service-option { grid-template-columns: auto 1fr; }
  .service-option b { grid-column: 2; }
  .track-form { grid-template-columns: 1fr; gap: 8px; }
  .dialog-actions { display: grid; }
  .report-title-row { display: grid; }
  .report-actions { width: 100%; }
  .report-actions button { flex: 1; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .report-filters { grid-template-columns: 1fr; }
  .report-filters .primary-button { grid-column: auto; }
  .breakdown-row { grid-template-columns: 1fr auto; }
  .breakdown-row > span { display: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .sidebar, .topbar, .status-banner, .section-head, .machine-grid, .location-strip, .owner-columns, .report-actions, .report-filters, .toast { display: none !important; }
  .app-shell, .main, .owner-view { display: block; padding: 0; }
  .owner-metrics, .report-summary { grid-template-columns: repeat(4, 1fr); }
  .reports-center, .report-chart-card, .report-breakdown, .report-summary article, .owner-metrics article { color: #111; background: #fff; border-color: #dce3e8; box-shadow: none; }
  .reports-center { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Professional live-floor motion */
.machine-card.busy-card::after{content:"";position:absolute;inset:-60% -100%;pointer-events:none;background:linear-gradient(105deg,transparent 45%,rgba(84,231,223,.08) 50%,transparent 55%);animation:machineSweep 4.8s linear infinite}.washer.active{animation:cabinetHum 1.25s ease-in-out infinite}.washer.active .washer-window{animation:doorGlow 2.2s ease-in-out infinite}.washer-window{position:relative;overflow:hidden}.washer.active .washer-window::after{content:"";position:absolute;z-index:3;left:-15%;right:-15%;bottom:-10%;height:48%;border-radius:50% 55% 0 0;background:linear-gradient(180deg,rgba(84,231,223,.05),rgba(50,153,185,.28));animation:waterSlosh 1.7s ease-in-out infinite alternate}.progress{position:relative}.progress span{position:relative;overflow:hidden}.progress span::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transform:translateX(-100%);animation:progressShine 2.4s ease-in-out infinite}.timeline-step.active i{animation:stepPulse 2s ease-in-out infinite}.status-banner{animation:bannerPan 18s ease-in-out infinite alternate}.owner-metrics article,.location-strip .location-card,.operations-card,.insight-card,.reports-center{transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}.owner-metrics article:hover,.location-strip .location-card:hover,.operations-card:hover,.insight-card:hover,.reports-center:hover{transform:translateY(-3px);border-color:rgba(84,231,223,.24);box-shadow:0 20px 44px rgba(0,0,0,.2)}.metric-animate .owner-metrics article{animation:metricRise .55s ease both}.metric-animate .owner-metrics article:nth-child(2){animation-delay:.06s}.metric-animate .owner-metrics article:nth-child(3){animation-delay:.12s}.metric-animate .owner-metrics article:nth-child(4){animation-delay:.18s}.metric-animate .location-strip,.metric-animate .owner-columns,.metric-animate .reports-center{animation:metricRise .65s .18s ease both}.number-tick{animation:numberTick .35s ease both}.brand-mark::before{animation:brandDrum 7s linear infinite}
@keyframes machineSweep{to{transform:translateX(55%)}}@keyframes cabinetHum{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(.55px) rotate(.13deg)}75%{transform:translateX(-.55px) rotate(-.13deg)}}@keyframes doorGlow{50%{box-shadow:inset 0 0 0 2px #3e5b72,0 0 26px rgba(84,231,223,.14)}}@keyframes waterSlosh{from{transform:translateY(3px) rotate(-4deg)}to{transform:translateY(-2px) rotate(5deg)}}@keyframes progressShine{45%,100%{transform:translateX(120%)}}@keyframes stepPulse{50%{box-shadow:0 0 0 10px rgba(94,167,255,0)}}@keyframes bannerPan{to{background-position:55% center}}@keyframes metricRise{from{opacity:.35;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes numberTick{from{opacity:.25;transform:translateY(-4px)}to{opacity:1;transform:none}}@keyframes brandDrum{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.machine-card.busy-card::after,.washer.active,.washer.active .washer-window,.washer.active .washer-window::after,.progress span::after,.timeline-step.active i,.status-banner,.metric-animate *,.brand-mark::before{animation:none!important}}
