:root{--ink:#17202b;--muted:#728092;--line:#e6e9ef;--canvas:#f5f7fa;--nav:#111a27;--accent:#e06b42;--accent-dark:#bd4e28;--green:#168664;--radius:16px;--shadow:0 5px 18px rgba(22,31,44,.035);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{color:inherit}button:disabled{opacity:.6;cursor:wait}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3vw,36px);letter-spacing:-1.1px;line-height:1.18;margin-bottom:10px}h2{font-size:17px;letter-spacing:-.25px;margin-bottom:12px}h3{font-size:17px;letter-spacing:-.3px;margin-bottom:6px}p{line-height:1.6}small{line-height:1.5}form{margin:0}[hidden]{display:none!important}:focus-visible{outline:3px solid #3683cd;outline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-100px;left:20px;z-index:100;padding:15px;background:white}.skip:focus{top:15px}
.sidebar{width:244px;position:fixed;inset:0 auto 0 0;padding:32px 21px 22px;background:var(--nav);color:#fff;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 7px}.brand-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:var(--accent);font-weight:850;font-size:27px;letter-spacing:-3px;padding-right:3px;box-shadow:0 6px 22px #e06b4228}.brand strong,.brand small{display:block}.brand strong{font-size:23px;letter-spacing:-.8px}.brand small{font-size:8px;letter-spacing:1.9px;color:#98a5b7;margin-top:3px}.main-nav{display:grid;gap:8px}.main-nav a{display:flex;align-items:center;gap:13px;padding:15px 16px;border-radius:10px;font-size:14px;font-weight:600;color:#b1bdce;min-height:51px}.main-nav a.active{background:#263040;color:white;box-shadow:inset 3px 0 var(--accent)}.main-nav a.active svg{color:#f18e69}.main-nav a:hover{background:#202b3b;color:white}.nav-arrow{margin-left:auto;color:#9eacbf;font-size:20px}.sidebar-footer{margin-top:auto;padding-top:26px}.account-link{display:block;color:#a9b6c7;font-size:12px;min-height:44px;padding:10px 8px;margin-bottom:16px;border-bottom:1px solid #2a3545}.user-chip{display:flex;align-items:center;gap:11px;padding:0 8px}.user-chip>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#39404a;color:#ffbc9f;font-weight:700}.user-chip strong,.user-chip small{display:block;overflow-wrap:anywhere}.user-chip strong{font-size:12px}.user-chip small{font-size:10px;color:#9caabd;margin-top:3px}.logout{background:none;border:0;color:#a4b0c1;font-size:11px;padding:14px 8px 6px 54px;min-height:44px}.logout:hover{color:white}.main-wrap{margin-left:244px;min-height:100vh;display:flex;flex-direction:column}.content{padding:36px 40px 48px;width:100%;max-width:1600px;margin:auto auto 0;margin-top:0;flex:1}.page-footer{display:flex;justify-content:space-between;margin:0 40px;padding:20px 0;border-top:1px solid var(--line);color:#84909f;font-size:10px}.page-footer span{color:#939eab}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:27px}.page-heading p{color:var(--muted);font-size:13px;margin-bottom:0}.eyebrow{font-size:9px;font-weight:750;letter-spacing:1.8px;color:var(--accent-dark);display:block;margin-bottom:10px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;border:1px solid transparent;border-radius:10px;padding:0 18px;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap;transition:background .15s,box-shadow .15s}.button:hover{box-shadow:0 4px 12px #17202b10}.primary{color:white;background:var(--accent)}.primary:hover{background:var(--accent-dark)}.secondary{background:var(--nav);color:white}.ghost{background:white;border-color:#dce1e8;color:#435065}.compact{min-height:42px;padding:0 13px}.full{width:100%}.danger{color:#ae3542;background:#fff;border-color:#e4b5bb}.danger:hover{background:#fff1f2}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.inline{display:flex;align-items:center;gap:14px}.small-label{display:block;font-size:9px;font-weight:750;letter-spacing:1px;color:var(--muted)}.badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px 9px;border-radius:6px;font-size:10px;font-weight:700;white-space:nowrap}.badge.warm{color:#a95722;background:#fff2e9}.badge.success{color:#127453;background:#e8f5ef}.badge.neutral{color:#738094;background:#f0f3f6}.badge.big{font-size:12px;padding:13px 17px;border-radius:10px}.muted{color:var(--muted)}.small{font-size:11px}.green{color:var(--green)}.date-select{display:flex;gap:8px;align-items:center}.date-select select{min-height:40px;font-size:12px;width:auto}.date-select .button{font-size:11px;min-height:40px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}.section-heading h2{margin:0}.section-heading p{margin:6px 0 0}.count{display:inline-grid;place-items:center;font-size:10px;vertical-align:middle;margin-left:6px;padding:4px 7px;min-width:25px;min-height:24px;border-radius:6px;background:#e9edf2;color:#6b7789}progress{display:block;width:100%;height:6px;appearance:none;border:0;border-radius:20px;overflow:hidden;background:#edf0f4;accent-color:var(--green)}progress::-webkit-progress-bar{background:#edf0f4;border-radius:20px}progress::-webkit-progress-value{background:var(--green);border-radius:20px}progress::-moz-progress-bar{background:var(--green);border-radius:20px}.empty{padding:55px 24px;text-align:center}.empty h2{font-size:21px;margin-top:16px}.empty p{font-size:13px;color:var(--muted)}.empty-icon{display:grid;place-items:center;margin:auto;width:60px;height:60px;border-radius:18px;background:#fdf0e9;color:var(--accent);font-size:30px}.empty .button{margin-top:12px}
input,select,textarea{display:block;width:100%;border:1px solid #dce2e9;border-radius:9px;background:#fff;color:var(--ink);min-height:46px;padding:10px 13px;font-size:14px}input::placeholder,textarea::placeholder{color:#8a94a3}input[type=checkbox]{width:20px;min-height:20px;display:inline-block;vertical-align:middle;accent-color:var(--accent)}label{display:block;font-size:12px;font-weight:650;line-height:1.5}label input,label select,label textarea{margin-top:7px}label.sr-only+select{margin:0}textarea{resize:vertical;line-height:1.6}.stack{display:grid;gap:20px}.stack>div>input,.stack>div>textarea{margin-top:7px}.stack .helptext{font-size:11px;line-height:1.6;color:var(--muted);margin-top:7px}.stack .helptext ul{padding-left:19px}.stack .helptext li{margin-bottom:5px}.form-panel{max-width:730px}.errorlist{list-style:none;padding:0;margin:5px 0 9px;font-size:12px;color:#aa3040}.errorlist li{padding:7px 0}.messages{margin-bottom:20px}.flash{border:1px solid #b7dfd0;background:#ecf8f2;color:#146c4f;border-radius:10px;padding:13px 17px;margin-bottom:8px;font-size:13px}.flash.error{background:#fff0f1;border-color:#eec2c7;color:#ac3441}.flash.warning{background:#fff8e7;border-color:#efdbac;color:#95651d}.back-link{display:inline-flex;align-items:center;min-height:44px;color:#6a778b;font-size:12px;margin:-10px 0 10px}.back-link:hover{color:var(--accent-dark)}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filters.panel{padding:16px 20px;margin-bottom:25px}.filters input[type=search]{margin:0}.grow{flex:1;min-width:160px}.client-list{display:grid;gap:12px}.client-row{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px 23px;box-shadow:var(--shadow)}.client-row:hover{border-color:#e1b5a5}.avatar{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#f7ece6;color:#b96342;font-weight:750;flex-shrink:0}.client-main{flex:1;min-width:0}.client-main h3{font-size:15px;overflow-wrap:anywhere}.client-main p{font-size:11px;color:var(--muted);margin:0;overflow-wrap:anywhere}.client-progress{width:145px;flex-shrink:0}.client-progress strong{display:block;font-size:10px;color:#69788c;margin-bottom:9px}.chevron{font-size:21px;color:#9ca7b6}.danger-zone{margin-top:22px}.text-link{color:var(--accent-dark);font-size:12px;font-weight:650}.order-info{margin-bottom:28px}.order-content{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0;color:#4f5c6e}.order-total{display:flex;align-items:center;gap:15px;padding-top:15px;border-top:1px solid var(--line)}.order-total strong{font-size:13px;color:var(--green)}.beds{display:grid;gap:22px}.bed{padding:0;overflow:hidden;scroll-margin-top:20px}.bed-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;background:#fcfcfd;border-bottom:1px solid var(--line);gap:14px}.bed-heading h2{margin:0 0 4px;font-size:18px;overflow-wrap:anywhere}.bed-heading p{margin:0;font-size:11px;color:var(--muted)}.bed-number{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;background:#f0f3f7;border-radius:10px;font-weight:750;color:#6a798f}.bed-complete .bed-heading{background:#f1faf6}.bed-complete{border-color:#c6e5d8}.bed-complete .bed-number{background:#def2e8;color:var(--green)}.stage-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 25px;border-bottom:1px solid #edf0f4;min-height:89px}.stage-row:last-child{border-bottom:0}.stage-title{display:flex;align-items:center;gap:16px}.stage-title strong{font-size:16px}.stage-title small{display:block;color:#8691a1;font-size:11px;margin-top:3px}.stage-check{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;border:1px solid #dbe1e9;border-radius:50%;color:#8893a2;font-size:12px}.stage-complete .stage-check{background:#168664;color:white;border-color:#168664;font-size:17px}.stage-complete .stage-title strong,.stage-complete .stage-title small{color:#167657}.stage-complete{background:#fcfefd}.stage-actions{display:flex;gap:9px;align-items:center}.stage-actions .button{min-width:110px;min-height:48px;font-size:13px}.done-button{background:#e9f5ef;border-color:#b6dacc;color:#176e51}.done-button:hover{background:#d4edde}.stock-button{background:#fff;border-color:#d8dee6;color:#55687d}.stock-button:hover{background:#f2f5f8}.undo-button{background:transparent;border-color:transparent;color:#788797;font-weight:500;font-size:12px!important}.undo-button:hover{background:#f0f3f6}.bed-remove{padding:0 25px 14px}.text-button{background:none;border:0;padding:9px 0;font-size:12px;min-height:44px}.danger-text{color:#a63d48}details.panel{margin-top:20px;padding:0 23px}summary{padding:21px 0;font-size:13px;font-weight:650;min-height:52px}details>.filters{padding:0 0 23px}details>.danger-zone{padding-bottom:22px;margin:0}details.add-bed>summary{color:var(--accent-dark);font-size:15px}.history ol{list-style:none;margin:0;padding:0 0 15px}.history li{border-top:1px solid var(--line);padding:14px 0}.history li>div{display:flex;gap:16px;justify-content:space-between;font-size:11px}.history time{color:var(--muted)}.history p{font-size:12px;color:#6a7688;margin:7px 0 0}.back-bottom{margin-top:25px}table{width:100%;border-collapse:collapse;text-align:left}th{background:#fafbfc;padding:12px 23px;font-size:9px;text-transform:uppercase;letter-spacing:.8px;color:#8b95a4;font-weight:600;white-space:nowrap}td{border-top:1px solid var(--line);padding:17px 23px;font-size:12px;color:#536176}td small{display:block;font-size:10px;color:#8b96a5;margin-top:4px}.small-empty{padding:40px 20px;text-align:center;color:var(--muted);font-size:12px}
.login-wrap{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px}.login-card{width:min(100%,400px);padding:32px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.login-card h1{font-size:26px;letter-spacing:-.7px;margin:0 0 26px}.login-card .stack{gap:20px}

@media(max-width:1200px){.sidebar{width:220px;padding-inline:16px}.main-wrap{margin-left:220px}.content{padding:30px 25px 40px}.page-footer{margin-inline:25px}.client-row{gap:13px;padding:18px}.client-progress{width:110px}.client-main p{max-width:350px}}
@media(max-width:800px){.sidebar{position:sticky;top:0;width:100%;height:auto;flex-direction:row;align-items:center;padding:12px 18px;gap:18px}.brand{padding:0;gap:8px}.brand-mark{width:34px;height:34px;border-radius:10px;font-size:23px}.brand strong{font-size:19px}.brand small{display:none}.main-nav{display:flex;margin-left:auto;gap:6px}.main-nav a{padding:10px 14px;min-height:43px;gap:8px;font-size:12px}.main-nav svg{width:17px}.nav-arrow{display:none}.sidebar-footer{display:none}.main-wrap{margin-left:0}.content{padding:25px 20px 35px}.page-heading{gap:17px}.page-heading .actions{justify-content:flex-end}.page-heading h1{font-size:29px}.page-heading p{font-size:12px}.page-footer{margin-inline:20px}.client-row{display:grid;grid-template-columns:40px 1fr auto;gap:12px}.avatar{width:40px;height:40px}.client-main{grid-column:2/4}.client-progress{grid-column:2;grid-row:2;width:100%}.client-row>.badge{grid-column:3;grid-row:2}.chevron{display:none}.account-link{display:none}}
@media(max-width:520px){.sidebar{padding:11px 12px;gap:8px}.brand strong{font-size:16px}.brand-mark{width:29px;height:29px;font-size:20px}.main-nav a{padding:10px;font-size:11px;gap:5px}.main-nav svg{width:15px}.content{padding:23px 15px 30px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.page-heading h1{font-size:28px}.page-heading .button{min-height:44px}.eyebrow{font-size:8px;letter-spacing:1.4px}.date-select{width:100%}.date-select select{flex:1}.section-heading{gap:10px}.section-heading h2{font-size:15px}.section-heading>.small{font-size:9px}.filters.panel{padding:13px}.filters{gap:9px}.filters .grow{flex-basis:100%}.client-row{padding:15px 13px}.client-main h3{font-size:15px}.client-main p{font-size:10px}.client-row>.badge{font-size:9px}.client-progress strong{font-size:9px}.panel{padding:18px}.order-info .section-heading{align-items:flex-start}.order-content{font-size:13px}.text-link{font-size:10px}.bed.panel{padding:0}.bed-heading{padding:17px 14px;gap:9px}.bed-number{width:35px;height:35px;font-size:14px}.bed-heading .inline{gap:10px}.bed-heading h2{font-size:15px}.bed-heading p{font-size:10px}.bed-heading .badge{font-size:9px}.stage-row{padding:16px 13px;gap:8px;min-height:93px}.stage-title{gap:9px}.stage-title strong{font-size:14px}.stage-title small{font-size:10px}.stage-check{width:26px;height:26px;font-size:11px}.stage-actions{gap:6px}.stage-actions .button{min-width:65px;padding:0 10px;min-height:46px;font-size:11px}.undo-button{font-size:10px!important;min-width:0!important}.stage-actions .stock-button{min-width:64px}details.panel{padding:0 17px}.history li>div{font-size:10px}.history p{font-size:11px}td,th{padding:13px 15px;font-size:10px}.login-wrap{padding:18px}.login-card{padding:26px}.page-footer{margin-inline:15px;font-size:9px}}.mobile-account{display:none;position:relative}.mobile-account summary{padding:5px 0;min-height:34px;display:flex;align-items:center;font-size:11px;color:#536176}.mobile-account>div{position:absolute;right:0;top:36px;z-index:25;width:210px;background:white;border:1px solid var(--line);border-radius:12px;padding:15px;box-shadow:0 12px 28px #17202b20}.mobile-account strong{font-size:12px;display:block;margin-bottom:8px}.mobile-account a,.mobile-account button{display:block;padding:12px 0;min-height:44px;font-size:12px;border:0;background:none;width:100%;text-align:left;color:#526079}.mobile-account a:hover,.mobile-account button:hover{color:var(--accent-dark)}
body{min-width:0}
@media(max-width:360px){.stage-row{flex-wrap:wrap}.stage-actions{margin-left:auto}}
@media(max-width:800px){.mobile-account{display:block}.bed{scroll-margin-top:80px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Compact route and order lists. */
.main-nav{margin-top:30px}
.content{padding:24px 32px 32px}
.routes-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.routes-heading h1{font-size:27px;line-height:1.2;margin:0;white-space:nowrap}
.routes-heading .button{min-height:40px;padding:0 14px}
.route-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.week-picker{position:relative}
.week-picker summary{display:flex;align-items:center;gap:10px;min-height:38px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;font-size:11px;font-weight:600;color:#677487;background:white;list-style:none}
.week-picker summary::-webkit-details-marker{display:none}
.week-picker summary span{color:#8792a0;font-size:10px}
.week-options{position:absolute;top:calc(100% + 6px);left:0;width:300px;max-width:calc(100vw - 30px);padding:14px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px #17202b18;z-index:10}
.week-options .date-select{display:flex;gap:6px;width:100%}
.week-options select{flex:1;min-width:0;font-size:11px;padding:8px;min-height:38px}
.week-options .button{min-height:38px;padding:0 10px}
.week-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.week-links a{display:grid;place-items:center;min-height:42px;border-radius:8px;font-size:12px;background:#f5f7fa;color:#647084}
.week-links a[aria-current],.week-links a:hover{background:#fff0e8;color:var(--accent-dark)}
.current-week-link{font-size:11px;color:var(--accent-dark)}
.route-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--route-width,165px)),1fr));gap:10px;margin-bottom:56px}
.route-card{display:flex;flex-direction:column;min-height:112px;padding:14px;background:white;border:1px solid #dfe4eb;border-radius:11px;box-shadow:var(--shadow);transition:border-color .15s}
.route-card:hover{border-color:var(--accent)}
.route-card h2{font-size:17px;margin:0 0 6px;letter-spacing:-.2px}
.route-card p{font-size:12px;color:#738093;margin:10px 0;line-height:1.3}
.route-card progress{height:6px}
.route-card.route-complete{background:#eceff2;border-color:#e1e5e9;box-shadow:none}
.route-complete h2{color:#7c8793}
.route-complete p{color:#88929d}
.route-complete progress{accent-color:#a9b1ba}
.route-complete progress::-webkit-progress-value{background:#a9b1ba}
.route-complete progress::-moz-progress-bar{background:#a9b1ba}
.route-complete:hover{border-color:#a9b1ba}
.route-breadcrumb{display:flex;align-items:center;gap:14px;margin:-6px 0 8px;font-size:11px;color:#7a8796;min-height:30px}
.route-breadcrumb a{display:flex;align-items:center;min-height:34px;color:#677487}
.order-filters{display:flex;gap:8px;align-items:center;margin-bottom:14px}
.order-filters input,.order-filters select{margin:0;min-height:38px;font-size:12px;padding:8px 10px}
.order-filters .button{min-height:38px;padding:0 13px}
.order-filters .grow{min-width:0}
.compact-orders{gap:8px}
.compact-orders .client-row{display:flex;padding:12px 16px;gap:18px;border-radius:10px}
.compact-orders h2{font-size:15px;margin:0 0 4px;overflow-wrap:anywhere}
.compact-orders .client-main p{font-size:11px;margin:0;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none}
.compact-orders .client-progress{width:120px}
.compact-orders .client-progress strong{margin-bottom:7px;font-size:11px}
.compact-orders .badge{min-width:68px}
.compact-orders .order-complete{background:#eceff2;box-shadow:none;color:#7c8793}
.order-complete progress::-webkit-progress-value{background:#a9b1ba}
.order-complete progress::-moz-progress-bar{background:#a9b1ba}
@media(max-width:800px){.main-nav{margin-top:0}.content{padding:18px 20px 28px}.mobile-account summary{color:#c4cedc;padding:0 5px;min-width:30px;min-height:40px;font-size:24px;justify-content:center}.sidebar{gap:8px}.mobile-account>div{top:44px}.main-nav a{padding:10px}}
@media(max-width:520px){.content{padding:16px 14px 24px}.routes-heading h1{font-size:24px}.routes-heading .button{font-size:11px;padding:0 10px}.routes-heading .actions{gap:6px;flex-wrap:nowrap}.route-grid{--route-width:145px}.route-card{padding:14px}.route-card h2{font-size:17px}.route-card p{font-size:11px;margin-bottom:10px}.week-picker summary{font-size:10px}.order-filters{flex-wrap:wrap}.order-filters>.grow{flex-basis:100%}.order-filters>label:not(.grow){flex:1}.compact-orders .client-row{display:grid;grid-template-columns:1fr auto;padding:12px;gap:9px}.compact-orders .client-main{grid-column:1 / -1}.compact-orders .client-progress{grid-column:1;grid-row:2;width:100%}.compact-orders .badge{grid-column:2;grid-row:2}.route-breadcrumb{font-size:10px}.main-nav a{font-size:10px;padding:9px 7px}.main-nav svg{width:14px}.brand{gap:5px}}

/* Compact production dashboard. */
.report-toolbar{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;margin-bottom:14px}
.period-tabs{display:flex;gap:4px;flex-wrap:wrap}
.period{display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:600;color:#677487;list-style:none}
.period:hover{background:#eceff3}
.period.selected{background:#fcebe3;color:var(--accent-dark)}
.report-custom{position:relative}
.report-custom summary::-webkit-details-marker{display:none}
.report-dates{position:absolute;top:calc(100% + 6px);left:0;z-index:10;width:290px;max-width:calc(100vw - 28px);display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px #17202b18}
.report-dates label{min-width:0;font-size:11px}
.report-dates input{min-height:38px;font-size:12px;padding:7px;min-width:0}
.report-dates .button{grid-column:1 / -1;min-height:38px}
.report-range{font-size:11px;color:var(--muted);white-space:nowrap}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.metric{padding:14px 16px;background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}
.metric>span{font-size:11px;font-weight:600;color:#728092;display:block}
.metric>strong{display:block;font-size:30px;line-height:1.2;letter-spacing:-.7px;margin-top:8px}
.metric.dark{background:var(--nav);border-color:var(--nav);color:white}
.metric.dark>span{color:#b6c1d0}
.daily-panel{padding:16px}
.daily-panel h2{font-size:15px;margin:0 0 10px}
.daily-panel .section-heading{margin-bottom:4px}
.daily-panel .section-heading h2{margin:0}
.daily-chart{overflow-x:auto;padding-bottom:6px}
.chart-columns{display:flex;gap:12px;min-width:100%;width:max-content;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#edf0f4 39px,#edf0f4 40px);background-size:100% 160px;background-position:0 30px;background-repeat:no-repeat}
.chart-column{flex:1;min-width:64px;text-align:center}
svg.chart-bar{display:block;width:80px;height:210px;margin:auto;fill:var(--accent);stroke:none}
.chart-bar rect{fill:var(--accent)}
.chart-bar text{fill:var(--ink);font-family:inherit;font-size:14px;font-weight:700}
.chart-column:hover .chart-bar rect{fill:var(--accent-dark)}
.chart-column time{display:block;font-size:11px;color:#677487;margin-top:-12px}
.chart-column time span{display:block;font-size:11px;color:#728092;margin-top:3px}
.chart-dense{gap:2px}
.chart-dense .chart-column{min-width:30px}
.chart-dense svg.chart-bar{width:30px}
.chart-dense time,.chart-dense time span{font-size:9px}
.chart-monthly{gap:6px}
.chart-monthly svg.chart-bar{width:64px}
.daily-empty{font-size:12px;color:var(--muted);margin:12px 0 4px}
@media(max-width:520px){.report-toolbar{gap:4px;margin-bottom:12px}.period{font-size:12px;padding:10px 12px}.report-range{width:100%;padding:6px 8px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric.dark{grid-column:1 / -1}.metric{padding:12px}.metric>span{font-size:10px}.metric>strong{font-size:27px;margin-top:6px}.daily-panel{padding:14px}}

/* Compact order detail, with full-size stage actions. */
.order-heading h1{white-space:normal;overflow-wrap:anywhere;min-width:0}
.order-heading .badge{flex-shrink:0}
.order-page .order-info{padding:12px 16px;margin-bottom:12px;border-radius:10px}
.order-page .order-info .section-heading{margin-bottom:6px}
.order-page .order-info h2{font-size:12px;color:var(--muted)}
.order-page .order-content{font-size:13px;line-height:1.5;margin:0 0 10px}
.order-page .beds{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:12px;align-items:start}
.order-page .bed{border-radius:11px}
.order-page .bed-heading{padding:12px 14px;gap:10px}
.order-page .bed-heading h2{font-size:16px;margin-bottom:3px}
.order-page .bed-heading p{font-size:10px}
.order-page .stage-row{padding:7px 14px;gap:10px;min-height:60px}
.order-page .stage-title{gap:9px;min-width:0}
.order-page .stage-title strong{font-size:14px}
.order-page .stage-title small{font-size:10px;margin-top:1px}
.order-page .stage-check{width:24px;height:24px;font-size:11px}
.order-page .stage-actions{gap:6px;flex-shrink:0}
.order-page .stage-actions .button{min-width:72px;min-height:44px;padding:0 10px;font-size:12px}
.order-page .stage-actions .undo-button{min-width:0;font-size:11px!important}
.order-page .bed-remove{padding:0 14px 4px}
.order-page details.panel{margin-top:10px;padding:0 14px;border-radius:10px}
.order-page details>summary{padding:12px 0;min-height:44px;font-size:12px}
.order-page details>.filters{padding-bottom:14px;gap:10px}
.order-page .back-bottom{margin-top:12px;min-height:40px}
@media(max-width:520px){.order-heading{align-items:flex-start}.order-heading h1{font-size:22px}.order-heading .badge{font-size:9px;padding:6px}.order-page .stage-row{padding-inline:10px}.order-page .stage-title strong{font-size:13px}.order-page .stage-actions .button{min-width:62px;padding-inline:8px;font-size:11px}.order-page .stage-check{width:22px;height:22px}.order-page .order-info{padding:12px}}

.route-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:520px){.route-title{gap:4px}.route-title .badge{font-size:9px;padding:4px 6px}}

.order-name{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.order-name h1{flex:1}
@media(max-width:520px){.order-heading{flex-wrap:wrap}.order-name{width:100%;gap:8px}.order-page .bed-heading{flex-wrap:wrap}}

.route-title{min-width:0}.route-title h1{white-space:normal;overflow-wrap:anywhere}.route-card h2{overflow-wrap:anywhere}

.route-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:11px;color:#84909f;margin-bottom:auto}
.route-finished{color:#65717e;font-weight:700;white-space:nowrap}
@media(max-width:520px){.route-meta{font-size:10px}}

.route-grid[data-route-size="1"]{--route-width:205px;gap:12px}
.route-grid[data-route-size="1"] .route-card{min-height:142px;padding:18px}
.route-grid[data-route-size="1"] h2{font-size:19px}
.route-grid[data-route-size="2"]{--route-width:260px;gap:14px}
.route-grid[data-route-size="2"] .route-card{min-height:174px;padding:22px}
.route-grid[data-route-size="2"] h2{font-size:22px}
.route-grid[data-route-size="2"] p{font-size:14px}
.route-size-controls{position:fixed;right:20px;bottom:20px;z-index:30;display:flex;background:white;border:1px solid #dce1e8;border-radius:12px;box-shadow:0 4px 18px #17202b18;overflow:hidden}
.route-size-controls button{width:46px;height:44px;border:0;background:white;font-size:24px;line-height:1;color:#435065}
.route-size-controls button+button{border-left:1px solid var(--line)}
.route-size-controls button:hover:not(:disabled){background:#fff0e8;color:var(--accent-dark)}
.route-size-controls button:disabled{opacity:.35;cursor:default}
.route-size-controls button:focus-visible{outline-offset:-4px}
@media(max-width:520px){.route-size-controls{right:14px;bottom:14px}}

.comparison-form.form-panel{max-width:none}
.order-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.comparison-column{min-width:0;display:flex;flex-direction:column;gap:8px}
.comparison-column label{font-size:14px;font-weight:700}
.comparison-column textarea{width:100%;min-height:220px;resize:vertical;line-height:1.6;font-size:14px}
.comparison-column textarea:disabled{opacity:1;color:#435065;background:#f5f6f8;cursor:text}
.extraction-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.extraction-feedback{white-space:pre-wrap;overflow-wrap:anywhere;color:#965218;font-size:13px;line-height:1.6}
.extraction-feedback:empty{display:none}
.extraction-notes{margin:0 0 14px;padding:10px 14px;background:#fff5e8;border-radius:8px;font-size:13px;overflow-wrap:anywhere}
.extraction-notes summary{cursor:pointer;font-weight:700}
.extraction-notes li+li{margin-top:6px}
.route-bed-list p{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;margin:5px 0}
.route-bed-list p+p{border-top:1px solid var(--line);padding-top:5px}
.client-main{min-width:0}
@media(max-width:760px){.order-comparison{grid-template-columns:1fr;gap:16px}.comparison-column textarea{min-height:170px}}

.order-progress{margin-bottom:14px}
.order-editor{width:min(1120px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);box-shadow:0 24px 80px #111a2740;overflow:auto}
.order-editor::backdrop{background:#111a2780}
.order-editor .section-heading h2{font-size:20px}
body:has(.order-editor[open]){overflow:hidden}
@media(max-width:520px){.order-editor{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px}.order-name h1{flex-basis:100%}}
