@font-face{font-family:BoardSans;src:url("/assets/board-font.ttf") format("truetype");font-weight:100 500;font-display:swap}
@font-face{font-family:BoardSans;src:url("/assets/board-font-bold.ttf") format("truetype");font-weight:501 900;font-display:swap}
:root{font-family:BoardSans,"Noto Sans CJK SC","Microsoft YaHei","PingFang SC",sans-serif;color:#f4f6ff;background:#001021;font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #5af9ff;outline-offset:4px}[hidden]{display:none!important}svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.symbol-library{position:absolute;width:0;height:0;overflow:hidden}.board{width:100%;max-width:1080px;min-height:1920px;margin:auto;padding:17px 18px 0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#00254b00 0%,#001326 70%),linear-gradient(110deg,#001326,#001020 45%,#00172d);isolation:isolate;container-type:inline-size}.masthead{height:118px;display:flex;align-items:flex-start;padding:5px 18px;position:relative;z-index:2;gap:20px;white-space:nowrap}.identity{display:flex;gap:10px;align-items:center;height:62px}.logo{width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 0 6px #00aaff66)}.company{display:flex;flex-direction:column;gap:2px}.company strong{font-size:28px;letter-spacing:1px;line-height:1.2}.company span{font-family:Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:.4px}.header-divider{width:1.5px;height:48px;margin:3px 8px;background:#e6eafa}.masthead h1{font-size:52px;line-height:1.13;margin:0;font-weight:900;font-style:italic;letter-spacing:3px;transform:skew(-4deg);text-shadow:0 2px 4px #38517a}.speed-lines{display:flex;gap:5px;margin:25px 0 0 0;transform:skew(-40deg)}.speed-lines i{width:10px;height:26px;background:linear-gradient(#00b9ff,#007edc)}.clock{margin-left:auto;display:flex;align-items:center;gap:8px;padding-top:13px;font-family:BoardSans,"Noto Sans CJK SC",sans-serif;font-size:21px;font-weight:500}.clock svg{width:25px;height:25px}.header-wave{position:absolute;top:65px;left:0;right:0;height:65px;background:url('/assets/header-wave.svg') center/100% 100% no-repeat;z-index:-1}.panel{position:relative;border:1px solid #00c9ff;border-top-color:#0089f4;border-right-color:#008ff1;border-radius:22px;background:linear-gradient(110deg,#00203b80,#00162b66 50%,#002a4d50);box-shadow:inset 0 3px 18px #007fff57,inset 0 -5px 15px #0083f24d,0 0 8px #00c9ff16}.panel:after{content:"";position:absolute;bottom:-2px;left:13%;width:55%;height:3px;background:linear-gradient(90deg,transparent,#00baff,#b5ffff,#00baff,transparent);filter:drop-shadow(0 0 7px #00baff);pointer-events:none}.stats{height:157px;display:grid;grid-template-columns:1.1fr 1fr .95fr 1.1fr 174px;grid-template-rows:minmax(0,1fr);align-items:center;padding:12px 22px 12px 32px}.metric{position:relative;padding:0 16px;height:112px;min-height:0}.metric:first-child{padding-left:8px}.metric:not(:nth-child(4)):after{content:"";position:absolute;right:0;top:10px;width:1px;height:92px;background:#aec8df77}.metric-title{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;font-size:26px;font-weight:600;height:38px;line-height:1.2}.icon{width:44px;height:44px;flex:none}.clipboard{color:#007cff;filter:drop-shadow(0 0 4px #008fff66)}.cycle,.calendar{color:#00baff;stroke-width:3}.round-icon{display:inline-flex;width:42px;height:42px;border-radius:50%;align-items:center;justify-content:center;flex:none;box-shadow:inset 3px 2px 6px #ffffff18}.round-icon svg{width:37px;height:37px;color:white}.green{background:linear-gradient(120deg,#00bb67,#008936)}.red{background:linear-gradient(120deg,#ff7862,#ff3022 65%,#f4251c);box-shadow:0 0 15px #ff3a222b,inset 4px 0 5px #ffffff23}.blue{background:linear-gradient(140deg,#009dff,#0053e5)}.metric-value{display:flex;align-items:baseline;justify-content:center;gap:10px;line-height:1;height:62px;margin-top:8px}.metric-value strong{font-family:Arial,sans-serif;font-size:60px;font-weight:700;line-height:1;letter-spacing:1px}.metric-value>span{font-size:25px;line-height:1}.metric:nth-child(3) strong{color:#89f6fc}.late-metric strong{color:#ff493b}.completion{width:130px;height:130px;margin:auto;position:relative;display:grid;place-items:center}.ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);stroke-width:13}.ring-track{stroke:#0060bc}.ring #ring-value{stroke:url(#ring-gradient);stroke-linecap:round;transition:stroke-dasharray .6s}.completion>div{display:flex;flex-direction:column;align-items:center;gap:4px}.completion span{font-size:18px;font-weight:600;line-height:1.2}.completion strong{font-size:32px;line-height:1.1;font-family:Arial,sans-serif}.delivery{height:267px;margin-top:21px;padding:19px 17px 20px}.section-title{display:flex;align-items:center;gap:14px;min-width:0}.section-title h2{font-size:37px;letter-spacing:1px;line-height:1.2;margin:0;font-weight:650;white-space:nowrap}.section-title small{font-size:25px;letter-spacing:0;font-weight:500}.delivery>.section-title{padding-left:9px}.people-grid{display:grid;grid-template-columns:1.15fr repeat(6,1fr);gap:13px;margin-top:18px;height:170px}.person-card{min-width:0;border:1px solid #00dcff;border-top-color:#0093f5;border-radius:17px;background:linear-gradient(125deg,#003c6655,#00203980 65%,#00355499);box-shadow:inset 0 6px 15px #0088ef5c,inset 0 -5px 12px #00bbff33;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 5px;color:#fff}.person-card:hover{background-color:#0050805c}.person-avatar{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#00b0ff,#0060ec 70%);box-shadow:0 0 15px #008cff44,inset 2px 2px 5px #ffffff18}.person-avatar svg{width:35px;height:35px;stroke-width:0}.person-name{font-size:27px;font-weight:500;line-height:1.3;margin-top:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-number{display:flex;align-items:baseline;gap:7px;line-height:1.1;margin-top:3px}.person-number strong{font-family:Arial,sans-serif;font-size:49px;color:#f4f6ff}.person-number span{font-size:23px}.person-card.overdue{border:2px solid #fff5dc;box-shadow:0 0 7px 3px #ff534d,inset 0 0 19px #ff4f45;background:linear-gradient(130deg,#8d241ee6,#341721 70%)}.person-card.overdue .person-avatar{background:linear-gradient(135deg,#ffb474,#ff3e28)}.person-card.overdue .person-number strong{color:#ff995a}.person-card.other .person-avatar{background:linear-gradient(140deg,#00699b,#002447)}.person-card.other .person-avatar svg{stroke:none}.person-card.placeholder{opacity:.42;cursor:default}.overdue-banner{width:100%;height:75px;margin:24px 0 24px;padding:0 25px;border:1px solid #ff554c;border-radius:20px;background:linear-gradient(90deg,#711d22b0,#211824ee 70%,#361d31d9);box-shadow:inset 0 3px 14px #ff735060,inset 0 -2px 12px #ff32262b;display:flex;align-items:center;text-align:left;gap:20px;white-space:nowrap}.overdue-title{display:flex;align-items:center;gap:13px}.overdue-title .round-icon{width:48px;height:48px}.overdue-title strong{font-size:35px;letter-spacing:.5px}.overdue-title small{font-size:26px;font-weight:500}.chevron{width:24px;height:28px;color:#ffa256;stroke-width:3;margin-left:5px}.overdue-detail,.overdue-persons{display:flex;align-items:center;gap:10px;padding-left:25px;border-left:1px solid #bdafbb80;font-size:22px;letter-spacing:1px;min-width:0}.overdue-detail svg,.overdue-persons svg{width:27px;height:30px;flex:none}.overdue-detail b,.overdue-persons b{font-weight:500}.overdue-persons{flex:1}.overdue-persons>span{overflow:hidden;text-overflow:ellipsis}.overview{padding:18px 12px 18px;height:806px;min-height:806px}.overview-heading{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 12px;gap:8px}.overview-heading .round-icon{width:52px;height:52px}.overview-heading .round-icon svg{width:38px;height:38px}.overview-heading h2{font-size:36px}.overview-heading h2 small{font-size:24px}.tabs{display:flex;border:1px solid #48617e;border-radius:28px;box-shadow:inset 0 1px 3px #d7ebff44;height:50px}.tabs button{border:0;border-right:1px solid #49627c;border-radius:28px;background:transparent;padding:0 22px;font-size:23px;white-space:nowrap;box-shadow:inset 0 2px 3px #ffffff0c}.tabs button:last-child{border:0}.tabs button[aria-selected=true]{background:linear-gradient(110deg,#00edff,#84eaff 60%,#16bdff);box-shadow:0 0 15px #00d8ff66;color:#002130;font-weight:700}.table-wrap{height:640px;min-height:640px}table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;font-size:23px;text-align:center}th{height:55px;background:linear-gradient(100deg,#0c4d80ba,#1c3b5deb);font-size:23px;font-weight:500;white-space:nowrap;padding:0 4px}th:first-child{border-radius:12px 0 0 12px}th:last-child{border-radius:0 12px 12px 0}.col-index{width:5%}.col-description{width:28%}.col-person{width:14%}.col-group{width:13%}.col-date{width:10%}.col-status{width:10%}th:nth-child(2),td:nth-child(2){text-align:left;padding-left:10px}td{height:58px;padding:3px 5px;border-bottom:1px solid #aecce333;line-height:1.35;font-weight:450}td:nth-child(2){font-weight:500;font-size:23px}.task-description{background:none;border:0;padding:0;text-align:left;width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;font-size:inherit;letter-spacing:.1px}.task-description:hover{color:#7cefff}.person-cell,.group-cell{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35}.date-cell{font-family:BoardSans,"Noto Sans CJK SC",sans-serif;font-size:24px;white-space:nowrap}.badge{display:inline-block;min-width:92px;border-radius:11px;padding:8px 7px;font-size:23px;line-height:1.2;white-space:nowrap;font-weight:600;box-shadow:inset 1px 1px 3px #ffffff2b,0 0 9px #0084ff20}.badge.active{background:linear-gradient(110deg,#0075ed,#005ad1)}.badge.late{background:linear-gradient(110deg,#da302d,#ed211c);box-shadow:0 0 10px #ff43213d,inset 0 0 8px #ff888829}.badge.done{background:linear-gradient(110deg,#00a943,#008c32)}.table-footer{height:68px;display:flex;align-items:flex-end;justify-content:space-between;padding:0 5px 3px 18px;font-size:24px}.table-footer nav{display:flex;gap:15px;align-items:center}.page-button{height:45px;min-width:46px;padding:0 9px;border-radius:9px;background:linear-gradient(130deg,#153554,#0c2948);border:1px solid transparent;font-size:25px;display:grid;place-items:center}.page-button.selected{background:#006be4;border-color:#008bff}.page-button svg{width:22px;height:26px}.page-button.previous svg{transform:rotate(180deg)}.pagination-gap{font-size:18px}.empty{height:570px!important;text-align:center!important;color:#8aaec9;font-size:23px}.empty-delivery{grid-column:1/-1;display:flex;align-items:center;justify-content:center;color:#92c6dd;font-size:25px;gap:15px}.empty-delivery svg{width:48px;height:48px;color:#008cba}#notice{padding:12px 18px;margin:5px 10px 12px;border-radius:8px;background:#572126;color:#ffcfbd;font-size:18px}input,select{padding:9px 12px;background:#001b30;border:1px solid #2c6485;border-radius:7px;color:#ecf9ff;font-size:18px}dialog{width:min(800px,92vw);max-height:85vh;overflow:auto;background:#04223b;border:1px solid #00beff;border-radius:17px;color:white;padding:28px;box-shadow:0 0 40px #0090ff40}dialog::backdrop{background:#000b18b0;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-head h2{margin:0;font-size:28px}.dialog-head button{border:0;background:none;font-size:34px}#detail-content dl{display:grid;grid-template-columns:140px 1fr;gap:18px;font-size:19px;line-height:1.6}#detail-content dt{color:#73abc9}#detail-content dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.metric-title{font-weight:650}.company strong{font-weight:750}.person-name{font-weight:550}.table-wrap table th{background:#153a5dd9}td{font-weight:500}
/* Keep two-line task titles inside the fixed ten-row portrait viewport. */
td,td:nth-child(2){font-size:21px;line-height:1.22}.task-description,.person-cell,.group-cell{line-height:1.22}.date-cell{font-size:23px}.table-wrap th{font-size:21px}.badge{font-size:22px;min-width:88px}

/* A fixed 1080 × 1920 canvas. The table receives the remaining screen space. */
html,body{width:100%;height:100%;overflow:hidden}
body{height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center}
.board{width:1080px;max-width:none;min-width:1080px;height:1920px;min-height:1920px;max-height:1920px;flex:none;display:flex;flex-direction:column;margin:0;padding:17px 18px 18px;zoom:1;overflow:hidden}
.masthead,.stats,.delivery,.overdue-banner{flex-shrink:0}
.overdue-banner{margin:24px 0 0}
.overview{flex:1;display:flex;flex-direction:column;min-height:0;height:auto;margin-top:24px;padding:18px 12px 12px;overflow:hidden}
.overview-heading{height:66px;flex-shrink:0}
.group-tabs{height:46px}.group-tabs button{padding:0 25px;font-size:23px}
.quick-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 12px 18px;flex-shrink:0;min-height:68px}
.status-tabs{height:46px}.status-tabs button{padding:0 20px;font-size:22px}
#clear-scope{max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:7px 12px;border:1px solid #167dac;background:#073a57;border-radius:8px;font-size:19px}
.table-wrap{flex:1;min-height:0;height:auto;overflow:hidden}
table{display:flex;flex-direction:column;height:100%}
colgroup{display:none}thead{display:block;flex:0 0 55px}tbody{display:grid;grid-template-rows:repeat(10,minmax(0,1fr));flex:1;min-height:0}
tr{display:grid;grid-template-columns:4% 40% 11% 7% 9% 9% 9% 11%;min-width:0;min-height:0}
th,td{min-width:0;height:auto;display:flex;align-items:center;justify-content:center;overflow:hidden}
th{height:55px;font-size:20px!important;padding:0 2px}
th:nth-child(2),td:nth-child(2){justify-content:flex-start;padding-left:12px}
td,td:nth-child(2){font-size:23px;padding-top:5px;padding-bottom:5px}
.task-description{display:block;-webkit-line-clamp:unset;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:23px;line-height:1.5}
.person-cell,.group-cell{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.date-cell{font-size:22px}.badge{font-size:22px;min-width:88px}
tr:has(.empty){grid-template-columns:1fr;grid-row:1/-1}.empty{height:auto!important;min-height:0}
.table-footer{height:78px;flex:0 0 78px;align-items:center;padding-top:12px;padding-bottom:0}
#notice{flex-shrink:0}

.range-tabs{height:46px;margin-left:auto}.range-tabs button{font-size:21px;padding:0 19px}
.quick-filters{flex-wrap:nowrap}.scope-row{padding:0 12px;flex-shrink:0}.scope-row:has(#clear-scope:not([hidden])){padding-bottom:12px}
#people-navigation{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:17px}#people-navigation button{width:34px;height:34px;border:1px solid #217db0;background:#073559;border-radius:7px;font-size:26px;line-height:1}








.people-grid{display:flex;gap:13px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:none;padding:5px 3px;margin-top:13px;height:180px;cursor:grab}
.people-grid::-webkit-scrollbar{display:none}.people-grid .person-card{flex:0 0 calc((100% - 78px)/7);height:170px;scroll-snap-align:start;user-select:none;-webkit-user-select:none}
.people-grid.dragging{scroll-snap-type:none;cursor:grabbing}.people-grid.dragging .person-card{cursor:grabbing}.people-grid .empty-delivery{flex:1}
.people-grid[data-count="1"] .person-card{flex-basis:calc((100% - 0px)/1)}
.people-grid[data-count="2"] .person-card{flex-basis:calc((100% - 13px)/2)}
.people-grid[data-count="3"] .person-card{flex-basis:calc((100% - 26px)/3)}
.people-grid[data-count="4"] .person-card{flex-basis:calc((100% - 39px)/4)}
.people-grid[data-count="5"] .person-card{flex-basis:calc((100% - 52px)/5)}
.people-grid[data-count="6"] .person-card{flex-basis:calc((100% - 65px)/6)}
.people-grid[data-count="7"] .person-card{flex-basis:calc((100% - 78px)/7)}

/* Statistic contents fit the 131px inner height without clipping. */
.stats .metric-title>.icon,.stats .metric-title>.round-icon{width:38px;height:38px}.stats .metric-title>.round-icon svg{width:33px;height:33px}

/* Four progress states plus an independent overdue view fit the portrait filter row. */
.status-tabs button{padding:0 10px;font-size:18px}
.range-tabs button{padding:0 13px;font-size:19px}
.badge.stalled{background:linear-gradient(110deg,#b46d17,#855014)}
.badge.pending,.badge.unknown{background:linear-gradient(110deg,#536a85,#35475e)}

/* Delivery ratios use the existing number row and card dimensions. */
.person-number strong{font-size:35px;letter-spacing:-1px;white-space:nowrap}.person-number{gap:5px}.person-number span{font-size:20px}.person-card.completed .person-number strong{color:#65f3b4}.delivery .section-title h2 small{font-size:22px;letter-spacing:0}

/* Overlay stays outside the scaled board and never changes its 1080 × 1920 layout. */
html,body{overscroll-behavior-y:none}
.pull-refresh{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:100;padding:10px 22px;border:1px solid #4385aa;border-radius:24px;background:#06233bee;color:#f4f6ff;font-size:16px;box-shadow:0 4px 18px #0006;pointer-events:none;white-space:nowrap}
.pull-refresh.ready{border-color:#63caff;color:#c2eaff}

/* Keep dashboard gestures free of text selection and long-press callouts. */
.board,.board *,.pull-refresh{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.board img,.board svg{-webkit-user-drag:none}
#detail-content{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

/* Completion seal sits inside the card without shifting its contents. */
.person-card{position:relative}
.delivery-complete-mark{position:absolute;top:9px;right:9px;width:27px;height:27px;display:grid;place-items:center;border:1px solid #99ffcf;border-radius:50%;background:linear-gradient(145deg,#38d893,#079951);color:#fff;box-shadow:0 0 10px #30de8140,inset 0 1px 2px #ffffff55;pointer-events:none}
.delivery-complete-mark svg{width:24px;height:24px}
