/* Ported from OP Daily Laundry workflow. Scoped to keep the existing mobile task UI unchanged. */
@font-face { font-family:"Laundry Geist"; src:url('/fonts/geist-latin.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-display:swap; }
@font-face { font-family:"Laundry Geist Mono"; src:url('/fonts/geist-mono-latin.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-display:swap; }
#operationCalendar { --font-geist-mono:"Laundry Geist Mono",ui-monospace,monospace; min-width:0; color:#30283a; font-family:"Laundry Geist","PingFang SC","Microsoft YaHei",Arial,sans-serif; font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; margin:0 0 30px; }
#operationCalendar *,#operationCalendar *::before,#operationCalendar *::after { box-sizing:border-box; }
#operationCalendar [hidden] { display:none!important; }
#operationCalendar button,#operationCalendar input,#operationCalendar select,#operationCalendar textarea { font-family:inherit; }
#operationCalendar button { padding:0; line-height:inherit; }
#operationCalendar button:focus-visible,#operationCalendar input:focus-visible,#operationCalendar select:focus-visible,#operationCalendar textarea:focus-visible { outline:3px solid rgb(19 139 114 / .28); outline-offset:2px; }
#operationCalendar .laundry-matrix-panel { border:1px solid #e6dbe6; border-radius:18px; background:#fffdfa; box-shadow:0 18px 50px rgb(25 55 49 / .065); }
#operationCalendar .eyebrow { margin:0; color:#7b4a83; font-family:inherit; font-size:9px; font-weight:850; letter-spacing:.16em; line-height:1.5; }
#operationCalendar h1,#operationCalendar h2,#operationCalendar h3 { font-family:inherit; line-height:1.5; }
#operationCalendar .laundry-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; }
#operationCalendar .laundry-page { display:grid; gap:16px; min-height:calc(100vh - 104px); }
#operationCalendar .laundry-matrix-panel,#operationCalendar .laundry-files { min-width:0; overflow:hidden; }
#operationCalendar .laundry-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid #e1e9e5; background:linear-gradient(135deg,#fff,#fbfdfc); }
#operationCalendar .laundry-head h1 { margin:5px 0 0; font-size:var(--board-font-22,22px); font-weight:820; letter-spacing:-.04em; }
#operationCalendar .laundry-head>div:first-child>span,#operationCalendar .laundry-files-head>div>span { display:block; margin-top:5px; color:#71807b; font-size:var(--board-font-9,9px); }
#operationCalendar .laundry-range-actions { display:grid; justify-items:end; gap:6px; }
#operationCalendar .laundry-range-actions>span { color:#63736e; font:800 var(--board-font-8,8px) var(--font-geist-mono),monospace; }
#operationCalendar .laundry-range-actions>div { display:flex; align-items:center; gap:5px; }
#operationCalendar .laundry-range-actions button { display:grid; min-width:32px; height:32px; place-items:center; border:1px solid #d9e4df; border-radius:8px; background:white; color:#49605a; font-size:var(--board-font-10,10px); font-weight:850; cursor:pointer; }
#operationCalendar .laundry-range-actions button:hover { border-color:#8dc8b7; color:#08745f; }
#operationCalendar .laundry-range-actions button.laundry-today-button { padding:0 12px; background:#edf8f4; color:#08745f; }
#operationCalendar .laundry-range-actions>button.laundry-batch-toggle { width:100%; min-height:30px; padding:0 10px; border-color:#9bcdbf; background:#f2faf7; color:#08745f; font-size:var(--board-font-8,8px); }
#operationCalendar .laundry-range-actions>button.laundry-source-refresh { display:flex; width:100%; min-height:30px; padding:0 11px; align-items:center; justify-content:center; gap:6px; border-color:#b9d9d0; background:linear-gradient(135deg,#fff,#f1faf7); color:#08745f; font-size:var(--board-font-8,8px); box-shadow:0 4px 12px rgb(19 139 114 / .07); }
#operationCalendar .laundry-range-actions>button.laundry-source-refresh i { font:900 var(--board-font-14,14px)/1 var(--font-geist-mono),monospace; font-style:normal; }
#operationCalendar .laundry-range-actions>button.laundry-source-refresh.is-refreshing i { animation:laundry-refresh-spin .8s linear infinite; }
#operationCalendar .laundry-range-actions>button.laundry-source-refresh:disabled { cursor:wait; opacity:.65; }
@keyframes laundry-refresh-spin { to { transform:rotate(360deg); } }
#operationCalendar .laundry-range-actions>button.laundry-batch-toggle.is-active { border-color:#138b72; background:#138b72; color:white; }
#operationCalendar .laundry-batch-panel { margin:12px 16px; padding:12px 13px; border:1px solid #cfe3dc; border-radius:12px; background:linear-gradient(135deg,#f7fcfa,#eef8f4); box-shadow:0 8px 22px rgb(23 58 67 / .06); }
#operationCalendar .laundry-batch-panel>header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
#operationCalendar .laundry-batch-panel>header p { margin:0; color:#17463b; font-size:var(--board-font-10,10px); font-weight:900; }
#operationCalendar .laundry-batch-panel>header span { display:block; margin-top:3px; color:#71817b; font-size:var(--board-font-7_5,7.5px); line-height:1.45; }
#operationCalendar .laundry-batch-panel>header>b { flex:0 0 auto; padding:5px 7px; border-radius:999px; background:#dff3eb; color:#08745f; font-size:var(--board-font-7,7px); }
#operationCalendar .laundry-batch-fields { display:grid; grid-template-columns:minmax(130px,1.2fr) repeat(3,minmax(105px,.75fr)) minmax(160px,1.35fr); gap:8px; margin-top:10px; }
#operationCalendar .laundry-batch-fields label { display:grid; min-width:0; gap:5px; color:#53655f; font-size:var(--board-font-6_5,6.5px); font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
#operationCalendar .laundry-batch-fields input,#operationCalendar .laundry-batch-fields select { width:100%; min-width:0; min-height:34px; padding:0 8px; border:1px solid #d4e1dc; border-radius:8px; background:white; color:#29413b; font:inherit; font-size:var(--board-font-8,8px); text-transform:none; }
#operationCalendar .laundry-batch-fields input:focus-visible,#operationCalendar .laundry-batch-fields select:focus-visible { outline:3px solid rgb(19 139 114 / .2); outline-offset:1px; border-color:#77bba9; }
#operationCalendar .laundry-batch-panel>footer { display:flex; min-height:34px; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:9px; }
#operationCalendar .laundry-batch-panel>footer>div { display:flex; flex:0 0 auto; gap:7px; }
#operationCalendar .laundry-batch-panel>footer button { min-height:32px; padding:0 11px; border:1px solid #cedbd6; border-radius:8px; background:white; color:#53655f; font-size:var(--board-font-8,8px); font-weight:850; cursor:pointer; }
#operationCalendar .laundry-batch-panel>footer button.is-primary { border-color:#138b72; background:#138b72; color:white; }
#operationCalendar .laundry-batch-panel>footer button:disabled { cursor:not-allowed; opacity:.5; }
#operationCalendar .laundry-batch-error { color:#8a3b4b; font-size:var(--board-font-7_5,7.5px); line-height:1.4; }
#operationCalendar .laundry-load-error { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:12px 16px 0; padding:10px 12px; border:1px solid #ebd2d7; border-radius:10px; background:#fff7f8; color:#843c4a; font-size:var(--board-font-9,9px); }
#operationCalendar .laundry-load-error button { flex:0 0 auto; padding:6px 9px; border:1px solid #dec0c7; border-radius:7px; background:white; color:#843c4a; font-size:var(--board-font-8,8px); font-weight:850; cursor:pointer; }
/* Keep horizontal gestures within the matrix, but let vertical wheel scrolling
   continue down the page when the table has no vertical overflow or reaches an edge. */
#operationCalendar .laundry-matrix-scroll { position:relative; max-height:min(64vh,560px); overflow:auto; overscroll-behavior-x:contain; overscroll-behavior-y:auto; scrollbar-gutter:stable; isolation:isolate; contain:paint; scroll-behavior:auto; overflow-anchor:none; }
#operationCalendar .laundry-matrix { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; }
#operationCalendar .laundry-matrix th,#operationCalendar .laundry-matrix td { border-right:1px solid #e8eeeb; border-bottom:1px solid #e8eeeb; }
#operationCalendar .laundry-matrix thead th { position:sticky; z-index:3; top:0; width:72px; min-width:72px; height:89px; padding:9px 5px; background:#f8fbf9; color:#6d7c77; text-align:center; vertical-align:middle; }
#operationCalendar .laundry-matrix thead th>span { display:block; font-size:var(--board-font-7,7px); font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
#operationCalendar .laundry-matrix thead th>b { display:block; margin-top:4px; color:#29413b; font:850 var(--board-font-9,9px) var(--font-geist-mono),monospace; white-space:nowrap; }
#operationCalendar .laundry-matrix thead th>em { display:block; width:max-content; margin:5px auto 0; padding:3px 5px; border-radius:999px; background:#138b72; color:white; font-size:var(--board-font-5_5,5.5px); font-style:normal; font-weight:900; letter-spacing:.09em; }
#operationCalendar .laundry-matrix thead th>i { display:block; width:max-content; min-width:27px; margin:6px auto 0; padding:3px 5px; border-radius:999px; background:#e6ece9; color:#71807b; font:850 var(--board-font-6_5,6.5px) var(--font-geist-mono),monospace; font-style:normal; }
#operationCalendar .laundry-matrix thead th>i.is-progress { background:#fff0cf; color:#91651b; }
#operationCalendar .laundry-matrix thead th>i.is-complete { background:#dff5eb; color:#08745f; }
#operationCalendar .laundry-matrix thead th.is-today,#operationCalendar .laundry-matrix td.is-today { background:#eef9f5; box-shadow:inset 2px 0 #7bc9b3,inset -2px 0 #7bc9b3; }
#operationCalendar .laundry-matrix tbody th,#operationCalendar .laundry-matrix th.laundry-corner { position:sticky; z-index:2; left:0; width:208px; min-width:208px; padding:12px 14px; background:white; box-shadow:8px 0 14px -14px rgb(23 58 67 / .55); text-align:left; }
#operationCalendar .laundry-matrix th.laundry-corner { z-index:4; top:0; height:89px; background:#173a43; color:white; vertical-align:middle; }
#operationCalendar .laundry-matrix th.laundry-corner>span { color:#9bdccb; font-size:var(--board-font-7,7px); letter-spacing:.14em; }
#operationCalendar .laundry-matrix th.laundry-corner>small { display:block; margin-top:5px; color:#bfd0cc; font-size:var(--board-font-8,8px); }
#operationCalendar .laundry-matrix tbody th { height:78px; }
#operationCalendar .laundry-matrix tbody th>span { display:grid; place-items:center; width:25px; height:25px; float:left; margin-right:10px; border-radius:7px; background:#e8f2ee; color:#0b6b55; font:900 var(--board-font-7,7px) var(--font-geist-mono),monospace; }
#operationCalendar .laundry-matrix tbody th>div { min-width:0; overflow:hidden; }
#operationCalendar .laundry-workflow-title { display:flex; align-items:center; gap:8px; min-width:0; }
#operationCalendar .laundry-workflow-title>b { min-width:0; }
#operationCalendar .laundry-ai-badge { position:relative; display:inline-grid; place-items:center; flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:#f0f6fb; color:#527591; font-family:var(--font-geist-mono),monospace; font-size:var(--board-font-8,8px); font-weight:800; line-height:1; letter-spacing:.02em; }
#operationCalendar .laundry-ai-badge::before { content:""; position:absolute; inset:0; border:1.5px solid #dce8ee; border-top-color:#719fc2; border-right-color:#a6a5cc; border-radius:50%; animation:laundry-ai-orbit 5s ease-in-out infinite; pointer-events:none; }
@keyframes laundry-ai-orbit { 0%,80% { transform:rotate(0deg); } 100% { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { #operationCalendar .laundry-ai-badge::before { animation:none; } }
#operationCalendar .laundry-matrix tbody th b { display:block; overflow:hidden; color:#314842; font-size:var(--board-font-9,9px); text-overflow:ellipsis; white-space:nowrap; }
#operationCalendar .laundry-matrix tbody th small { display:block; overflow:hidden; margin-top:5px; color:#7d8b87; font-size:var(--board-font-7,7px); text-overflow:ellipsis; white-space:nowrap; }
#operationCalendar .laundry-matrix td { width:72px; min-width:72px; height:78px; padding:8px; background:white; text-align:center; }
#operationCalendar .laundry-covered-through { display:inline-flex; margin-top:8px; padding:5px 8px; border:1px solid #cce5dc; border-radius:999px; background:#eff9f5; color:#0b6b55; font-size:var(--board-font-7_5,7.5px); font-weight:850; letter-spacing:.02em; }
#operationCalendar .laundry-coverage-cell { display:grid; width:42px; height:42px; margin:auto; place-items:center; border:1.5px dashed #d5dfda; border-radius:11px; background:#f6f8f7; color:#a5b0ac; font:inherit; cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s,transform .15s; }
#operationCalendar .laundry-coverage-cell:hover { border-color:#81bfaf; box-shadow:0 7px 16px rgb(19 139 114 / .1); transform:translateY(-1px); }
#operationCalendar .laundry-coverage-cell:disabled { cursor:not-allowed; opacity:.42; transform:none; }
#operationCalendar .laundry-coverage-cell>span { font-size:var(--board-font-13,13px); font-weight:900; line-height:1; }
#operationCalendar .laundry-coverage-cell[aria-expanded="true"] { outline:3px solid rgb(19 139 114 / .18); outline-offset:2px; }
#operationCalendar .laundry-coverage-row th>span { background:#e2f4ed !important; color:#0b6b55 !important; }
#operationCalendar .laundry-cell { position:relative; display:grid; width:42px; height:42px; margin:auto; place-items:center; border:1.5px solid #d5dfda; border-radius:11px; background:#f9fbfa; color:#80908b; cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s,transform .15s; }
#operationCalendar .laundry-cell:hover { border-color:#81bfaf; box-shadow:0 7px 16px rgb(19 139 114 / .1); transform:translateY(-1px); }
#operationCalendar .laundry-cell:disabled { cursor:not-allowed; opacity:.42; transform:none; }
#operationCalendar .laundry-cell>span { font-size:var(--board-font-14,14px); font-weight:900; line-height:1; }
#operationCalendar .laundry-cell.has-source-data { width:54px; height:50px; overflow:hidden; border-radius:13px; box-shadow:0 7px 16px rgb(23 58 67 / .09),inset 0 1px rgb(255 255 255 / .28); }
#operationCalendar .laundry-cell.has-source-data::before { position:absolute; top:5px; left:50%; width:16px; height:2px; border-radius:999px; background:currentColor; content:""; opacity:.45; transform:translateX(-50%); }
#operationCalendar .laundry-cell.has-source-data[data-source-kind="ro"]::before { background:#f3bd42; opacity:.9; }
#operationCalendar .laundry-cell.has-source-data[data-source-kind="driver"]::before { background:#70c8df; opacity:.95; }
#operationCalendar .laundry-cell.has-source-data.is-source-empty { box-shadow:none; }
#operationCalendar .laundry-cell>span.laundry-source-count { display:grid; place-items:center; gap:1px; line-height:1; }
#operationCalendar .laundry-cell>span.laundry-source-count b { font:900 var(--board-font-15,15px) var(--font-geist-mono),monospace; letter-spacing:-.06em; }
#operationCalendar .laundry-cell>span.laundry-source-count small { font:900 var(--board-font-5,5px) var(--font-geist-mono),monospace; letter-spacing:.09em; opacity:.72; }
#operationCalendar .laundry-cell.has-source-drivers { width:64px; height:56px; padding:7px 3px 4px; }
#operationCalendar .laundry-cell>span.laundry-driver-names { display:flex; width:100%; min-width:0; flex-direction:column; align-items:stretch; gap:3px; font-size:var(--board-font-7,7px); line-height:1.05; }
#operationCalendar .laundry-driver-names b { display:block; max-width:100%; overflow:hidden; padding:2px 3px; border-radius:4px; background:rgb(255 255 255 / .2); text-overflow:ellipsis; white-space:nowrap; }
#operationCalendar .laundry-cell:not(.is-completed) .laundry-driver-names b { background:rgb(23 58 67 / .06); }
#operationCalendar .laundry-driver-names small { display:block; font:900 var(--board-font-6,6px) var(--font-geist-mono),monospace; opacity:.78; }
#operationCalendar .laundry-cell>span.laundry-driver-empty { font:900 var(--board-font-15,15px) var(--font-geist-mono),monospace; opacity:.52; }
#operationCalendar .laundry-cell>i,#operationCalendar .laundry-coverage-cell>i { position:absolute; top:5px; right:5px; width:5px; height:5px; border-radius:50%; background:currentColor; }
#operationCalendar .laundry-cell.is-completed,#operationCalendar .laundry-coverage-cell.is-completed { border-color:#138b72; background:#138b72; color:white; box-shadow:0 5px 14px rgb(19 139 114 / .18); }
#operationCalendar .laundry-cell.is-pending,#operationCalendar .laundry-coverage-cell.is-pending { border-color:#e7c76f; background:#fff9e9; color:#95691d; }
#operationCalendar .laundry-cell.is-not_due,#operationCalendar .laundry-coverage-cell.is-not_due { border-style:dashed; background:#f6f8f7; color:#a5b0ac; }
#operationCalendar .laundry-cell.is-on_hold,#operationCalendar .laundry-coverage-cell.is-on_hold { border-color:#e2a263; background:#fff2e7; color:#975022; }
#operationCalendar .laundry-cell.is-issue,#operationCalendar .laundry-coverage-cell.is-issue { border-color:#e3bfc7; background:#fff5f7; color:#8a3b4b; }
#operationCalendar .laundry-cell.is-auto-readiness.is-issue { background:#b94758; border-color:#a93d4d; color:white; }
#operationCalendar .laundry-readiness-rule { display:block;max-width:460px;margin-top:10px;font-size:10px;line-height:1.6;color:#7c7a81; }
#operationCalendar .laundry-range-actions .nova-hourly-clock { margin-bottom:4px; }
#operationCalendar .laundry-cell.is-batch-selected,#operationCalendar .laundry-coverage-cell.is-batch-selected { outline:3px solid #f0b849; outline-offset:2px; transform:translateY(-1px); }
#operationCalendar .laundry-cell.is-derived:not(.is-completed)>span,#operationCalendar .laundry-coverage-cell.is-derived:not(.is-completed)>span { opacity:.7; }
#operationCalendar .laundry-matrix.is-loading .laundry-cell,#operationCalendar .laundry-matrix.is-loading .laundry-coverage-cell { animation:laundry-soft-pulse 1.3s ease-in-out infinite alternate; }
@keyframes laundry-soft-pulse { to { opacity:.35; } }
#operationCalendar .laundry-matrix-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; background:#fbfdfc; color:#7b8985; font-size:var(--board-font-7_5,7.5px); }
#operationCalendar .laundry-legend { display:flex; flex-wrap:wrap; gap:9px 13px; }
#operationCalendar .laundry-legend span { display:inline-flex; align-items:center; gap:5px; }
#operationCalendar .laundry-legend i { width:7px; height:7px; border:1px solid #cbd6d1; border-radius:2px; background:white; }
#operationCalendar .laundry-legend .is-completed i { border-color:#138b72; background:#138b72; }
#operationCalendar .laundry-legend .is-pending i { border-color:#d8ad43; background:#f3cc62; }
#operationCalendar .laundry-legend .is-on_hold i { border-color:#d78d49; background:#efa65f; }
#operationCalendar .laundry-legend .is-issue i { border-color:#a64e60; background:#a64e60; }
#operationCalendar .laundry-legend .is-not_due i { border-style:dashed; background:#f1f4f2; }

#operationCalendar .laundry-popover { position:fixed; max-height:calc(100vh - 24px); overflow:auto; z-index:70; top:var(--laundry-popover-top); left:var(--laundry-popover-left); width:min(320px,calc(100vw - 24px)); padding:16px; border:1px solid #d8e3de; border-radius:16px; background:white; box-shadow:0 24px 65px rgb(9 37 42 / .24); }
#operationCalendar .laundry-popover:before { position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 3px #138b72; content:""; pointer-events:none; }
#operationCalendar .laundry-popover>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
#operationCalendar .laundry-popover>header p { margin:0; color:#0b6b55; font-size:var(--board-font-7,7px); font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
#operationCalendar .laundry-popover>header h2 { margin:5px 0 0; font-size:var(--board-font-17,17px); letter-spacing:-.03em; }
#operationCalendar .laundry-popover>header button { display:grid; width:28px; height:28px; flex:0 0 auto; place-items:center; border:1px solid #dce5e1; border-radius:8px; background:#fafcfb; color:#5b6d67; cursor:pointer; }
#operationCalendar .laundry-popover-detail { margin:10px 0 0; color:#6c7b76; font-size:var(--board-font-8_5,8.5px); line-height:1.5; }
#operationCalendar .laundry-popover-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
#operationCalendar .laundry-popover-meta span { padding:4px 6px; border-radius:6px; background:#edf3f0; color:#52645e; font-size:var(--board-font-6_5,6.5px); font-weight:850; }
#operationCalendar .laundry-coverage-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:13px; }
#operationCalendar .laundry-coverage-detail-grid>div { min-width:0; padding:9px; border:1px solid #e0e9e5; border-radius:9px; background:#f8fbfa; }
#operationCalendar .laundry-coverage-detail-grid span { display:block; color:#7a8984; font-size:var(--board-font-6,6px); font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
#operationCalendar .laundry-coverage-detail-grid b { display:block; overflow-wrap:anywhere; margin-top:5px; color:#294840; font-size:var(--board-font-8,8px); line-height:1.4; }
#operationCalendar .laundry-coverage-detail-grid b.is-covered { color:#08745f; }
#operationCalendar .laundry-coverage-detail-grid b.is-missing { color:#8a3b4b; }
#operationCalendar .laundry-coverage-readonly { margin:10px 0 0; padding:8px 9px; border-radius:8px; background:#edf8f4; color:#477168; font-size:var(--board-font-7,7px); line-height:1.45; }
#operationCalendar .laundry-status-picker { margin:14px 0 0; padding:0; border:0; }
#operationCalendar .laundry-status-picker legend,#operationCalendar .laundry-note>span { color:#4f615b; font-size:var(--board-font-7,7px); font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
#operationCalendar .laundry-status-picker>div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:7px; }
#operationCalendar .laundry-status-picker label { min-width:0; cursor:pointer; }
#operationCalendar .laundry-status-picker input { position:absolute; opacity:0; pointer-events:none; }
#operationCalendar .laundry-status-picker label>span { display:flex; min-height:35px; align-items:center; justify-content:center; gap:5px; padding:6px; border:1px solid #dce5e1; border-radius:8px; color:#61716c; font-size:var(--board-font-7,7px); font-weight:800; text-align:center; }
#operationCalendar .laundry-status-picker label i { font-size:var(--board-font-10,10px); font-style:normal; }
#operationCalendar .laundry-status-picker input:focus-visible+span { outline:3px solid rgb(19 139 114 / .25); outline-offset:2px; }
#operationCalendar .laundry-status-picker input:checked+span { border-color:#77bba9; background:#edf8f4; color:#08745f; box-shadow:inset 0 0 0 1px #77bba9; }
#operationCalendar .laundry-status-picker .is-pending input:checked+span { border-color:#dfbd70; background:#fff8e9; color:#906216; box-shadow:inset 0 0 0 1px #dfbd70; }
#operationCalendar .laundry-status-picker .is-on_hold input:checked+span { border-color:#dfa063; background:#fff2e6; color:#925022; box-shadow:inset 0 0 0 1px #dfa063; }
#operationCalendar .laundry-status-picker .is-issue input:checked+span { border-color:#dab0b9; background:#fff4f6; color:#843c4a; box-shadow:inset 0 0 0 1px #dab0b9; }
#operationCalendar .laundry-note { display:grid; gap:6px; margin-top:12px; }
#operationCalendar .laundry-note>span { display:flex; align-items:center; justify-content:space-between; }
#operationCalendar .laundry-note>span b { color:#8a3b4b; font-size:var(--board-font-6,6px); }
#operationCalendar .laundry-note textarea { width:100%; resize:vertical; padding:9px 10px; border:1px solid #dce5e1; border-radius:9px; background:#fbfcfb; color:#29413b; font:inherit; font-size:var(--board-font-8_5,8.5px); line-height:1.45; }
#operationCalendar .laundry-cell-error { margin:8px 0 0; color:#8a3b4b; font-size:var(--board-font-8,8px); line-height:1.4; }
#operationCalendar .laundry-popover-history { display:flex; justify-content:space-between; gap:8px; margin-top:10px; padding-top:9px; border-top:1px dashed #e1e8e5; color:#87948f; font-size:var(--board-font-6_5,6.5px); }
#operationCalendar .laundry-popover>footer { display:flex; justify-content:flex-end; gap:7px; margin-top:12px; }
#operationCalendar .laundry-popover>footer button,#operationCalendar .laundry-preview>header button { min-height:32px; padding:0 11px; border:1px solid #d9e3df; border-radius:8px; background:white; color:#596a65; font-size:var(--board-font-8,8px); font-weight:850; cursor:pointer; }
#operationCalendar .laundry-popover>footer button.is-primary,#operationCalendar .laundry-preview>header button.is-primary { border-color:#138b72; background:#138b72; color:white; }
#operationCalendar .laundry-popover>footer button:disabled,#operationCalendar .laundry-preview>header button:disabled { cursor:not-allowed; opacity:.55; }

#operationCalendar .laundry-head { background:linear-gradient(110deg,#fff8ee,#f7f1fc); border-color:#e9deeb; }
#operationCalendar .laundry-matrix th.laundry-corner { background:#382942; color:#fff0dc; }
#operationCalendar .laundry-matrix tbody th>div>b { line-height:1.5; }
#operationCalendar .laundry-cell.has-source-data[data-source-kind="file"] { box-shadow:none; }
#operationCalendar .laundry-cell.has-source-data[data-source-kind="file"].is-completed { background:#e7f3ee; border-color:#d0e6dc; color:#477769; }
#operationCalendar .laundry-cell.has-source-data[data-source-kind="file"].is-completed:hover { background:#dceee5; border-color:#a8cdbd; }
#operationCalendar .laundry-cell.has-source-data[data-source-kind="file"]::before { background:#96bdae; opacity:.65; }
#operationCalendar .laundry-source-warning { margin:0; padding:9px 16px; border-bottom:1px solid #ecd5a1; background:#fff7e8; color:#88601b; font-size:11px; line-height:1.5; }
#operationCalendar .laundry-notice { margin:0; padding:9px 16px; background:#eff9f5; color:#0b6b55; font-size:11px; }
#operationCalendar .laundry-popover { z-index:150; }
#operationCalendar .laundry-popover p { font-family:inherit; }
#operationCalendar .laundry-popover input[type="radio"] { width:auto; }
#operationCalendar .laundry-note textarea { box-sizing:border-box; }
#operationCalendar .laundry-status-picker legend { padding:0; }
#operationCalendar .laundry-popover label { line-height:1.5; }
#operationCalendar .laundry-source-snapshot { margin-top:10px; color:#52645e; font-size:9px; overflow-wrap:anywhere; }
@media (max-width:900px) {
  #operationCalendar .laundry-batch-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #operationCalendar .laundry-batch-note { grid-column:1/-1; }
}
@media (max-width:720px) {
  #operationCalendar .laundry-head { align-items:stretch; flex-direction:column; padding:16px 14px; }
  #operationCalendar .laundry-range-actions { justify-items:stretch; }
  #operationCalendar .laundry-range-actions>div { display:grid; grid-template-columns:38px 1fr 38px; }
  #operationCalendar .laundry-range-actions button.laundry-today-button { width:100%; }
  #operationCalendar .laundry-range-actions>button.laundry-batch-toggle { min-height:38px; }
  #operationCalendar .laundry-batch-panel { margin:10px 12px; padding:11px; }
  #operationCalendar .laundry-batch-panel>header,#operationCalendar .laundry-batch-panel>footer { align-items:stretch; flex-direction:column; }
  #operationCalendar .laundry-batch-panel>header>b { width:max-content; }
  #operationCalendar .laundry-batch-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #operationCalendar .laundry-batch-fields input,#operationCalendar .laundry-batch-fields select { min-height:42px; }
  #operationCalendar .laundry-batch-panel>footer>div { width:100%; }
  #operationCalendar .laundry-batch-panel>footer button { flex:1; min-height:40px; }
  #operationCalendar .laundry-matrix-scroll { max-height:calc(100svh - 226px); min-height:350px; }
  #operationCalendar .laundry-matrix thead th { width:55px; min-width:55px; }
  #operationCalendar .laundry-matrix tbody th,#operationCalendar .laundry-matrix th.laundry-corner { width:132px; min-width:132px; padding:10px; }
  #operationCalendar .laundry-matrix tbody th>span { width:22px; height:22px; margin-right:7px; }
  #operationCalendar .laundry-matrix tbody th b { font-size:8px; white-space:normal; }
  #operationCalendar .laundry-matrix tbody th small { display:none; }
  #operationCalendar .laundry-matrix td { width:55px; min-width:55px; padding:7px; }
  #operationCalendar .laundry-cell,#operationCalendar .laundry-coverage-cell { width:44px; height:44px; }
  #operationCalendar .laundry-cell.has-source-drivers { width:50px; height:48px; }
  #operationCalendar .laundry-matrix-footer { align-items:flex-start; flex-direction:column; padding:11px 13px; }
  #operationCalendar .laundry-popover { top:auto!important; right:8px; bottom:calc(12px + env(safe-area-inset-bottom)); left:8px!important; width:auto; max-height:calc(100dvh - 24px - env(safe-area-inset-bottom)); overflow:auto; border-radius:18px; }
  #operationCalendar .laundry-status-picker>div { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  #operationCalendar .laundry-matrix.is-loading .laundry-cell,#operationCalendar .laundry-matrix.is-loading .laundry-coverage-cell,#operationCalendar .laundry-source-refresh.is-refreshing i { animation:none; }
  #operationCalendar .laundry-cell,#operationCalendar .laundry-coverage-cell { transition:none; }
}
/* Keep the scrolling plane stable; only the short first-load entrance moves tiles. */
#operationCalendar .laundry-matrix { isolation:isolate; }
#operationCalendar .laundry-matrix thead { position:sticky; top:0; z-index:3; will-change:transform; }
#operationCalendar .laundry-matrix thead th { position:static; }
#operationCalendar .laundry-matrix thead th.laundry-corner { position:sticky; left:0; top:auto; z-index:4; }
#operationCalendar .laundry-matrix tbody th { will-change:transform; }
#operationCalendar .laundry-matrix thead th,#operationCalendar .laundry-matrix tbody th { backface-visibility:hidden; }
#operationCalendar .laundry-cell,#operationCalendar .laundry-coverage-cell { transition:background-color .12s,border-color .12s; box-shadow:none; }
#operationCalendar .laundry-cell:hover,#operationCalendar .laundry-coverage-cell:hover { transform:none; box-shadow:none; }
#operationCalendar .laundry-ai-badge::before { animation:none; }
#operationCalendar .laundry-matrix.is-loading .laundry-cell,#operationCalendar .laundry-matrix.is-loading .laundry-coverage-cell { animation:none; }

/* A single diagonal wave: float, a slight turn, then settle in the existing grid.
   Transform/opacity only: no layout changes, infinite loops or persistent layers. */
#operationCalendar .laundry-matrix .laundry-cell.is-arriving {
  animation:laundry-tile-arrival 480ms cubic-bezier(.2,.7,.25,1) var(--tile-arrival-delay,0ms) 1 backwards;
  transform-origin:50% 65%;
}
@keyframes laundry-tile-arrival {
  0% { opacity:0; transform:translate3d(-5px,-15px,0) rotate(-7deg) scale(.94); }
  55% { opacity:.85; transform:translate3d(1px,-5px,0) rotate(2deg) scale(1.015); }
  100% { opacity:1; transform:translate3d(0,0,0) rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion:reduce) {
  #operationCalendar .laundry-matrix .laundry-cell.is-arriving { animation:none; }
}

/* Daily is a working calendar, not a landing page. Keep the grid above the fold. */
body.is-daily-page .demo-banner { min-height:22px; padding:3px 16px; font-size:10px; }
body.is-daily-page .demo-banner>span { padding:1px 5px; font-size:9px; }
body.is-daily-page .app-header { height:56px; }
body.is-daily-page .brand-mark { width:32px; height:32px; font-size:23px; }
body.is-daily-page .app-header .button { min-height:32px; padding:7px 12px; }
body.is-daily-page .workspace-main { padding-top:14px; }
body.is-daily-page .page-help-bar { height:0; margin:0; }
body.is-daily-page #pageHelpButton { min-height:32px; padding:5px 12px; font-size:12px; }
body.is-daily-page .workspace-page-title { min-height:34px; padding-right:140px; margin-bottom:12px; align-items:center; }
body.is-daily-page .workspace-page-title h1 { margin:0; font-size:22px; line-height:1.3; letter-spacing:-.6px; }
body.is-daily-page .workspace-page-title .eyebrow,
body.is-daily-page .workspace-page-title p { display:none; }
body.is-daily-page #operationCalendar { margin-bottom:16px; }
body.is-daily-page #operationCalendar .laundry-head { padding:12px 16px; gap:16px; align-items:center; }
body.is-daily-page #operationCalendar .laundry-head>div:first-child { flex:1 1 260px; min-width:0; }
body.is-daily-page #operationCalendar .laundry-head .eyebrow,
body.is-daily-page #operationCalendar .laundry-head>div:first-child>span { display:none; }
body.is-daily-page #operationCalendar .laundry-head h1 { margin:0; font-size:19px; }
body.is-daily-page #operationCalendar .laundry-readiness-rule { margin-top:4px; font-size:10px; line-height:1.4; }
body.is-daily-page #operationCalendar .laundry-covered-through { margin-top:6px; }
body.is-daily-page #operationCalendar .laundry-range-actions { display:flex; flex:0 1 440px; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px 8px; }
body.is-daily-page #operationCalendar .laundry-range-actions .nova-hourly-clock { margin:0; }
body.is-daily-page #operationCalendar .laundry-read-time { font-size:11px; }
body.is-daily-page #operationCalendar .laundry-range-actions>span { font-size:10px; }
body.is-daily-page #operationCalendar .laundry-range-actions>button { width:auto; font-size:10px; }
body.is-daily-page #operationCalendar .laundry-matrix thead th { height:70px; padding:5px; }
@media(max-width:760px) {
  body.is-daily-page .workspace-page-title h1 { font-size:19px; }
  body.is-daily-page #operationCalendar .laundry-head { flex-direction:column; align-items:stretch; gap:8px; }
  body.is-daily-page #operationCalendar .laundry-head>div:first-child,
  body.is-daily-page #operationCalendar .laundry-range-actions { flex:auto; }
  body.is-daily-page #operationCalendar .laundry-range-actions { justify-content:flex-start; }
  body.is-daily-page #operationCalendar .laundry-range-actions>div { display:flex; }
  body.is-daily-page #operationCalendar .laundry-range-actions button { min-height:36px; }
}

