.phase-shell{--accent:#244b82;--ink:#172b47;--muted:#63748b;background:#f5f7fb;min-height:100vh}.phase-shell .main{max-width:1540px;padding:32px 40px 64px}.phase-shell .top{margin-bottom:26px}.phase-shell .side{background:#fff;border-right:1px solid #e1e7ef}.phase-shell .side nav{display:grid;gap:7px}.phase-shell .side nav button{display:flex;align-items:center;gap:14px;border-radius:12px;min-height:48px}.phase-shell .side nav i{font-style:normal;width:22px;font-size:22px}.phase-shell .card{border:1px solid #e0e6ef;border-radius:16px;box-shadow:0 3px 12px #23334d04;padding:22px}.phase-shell .card.alert{border-left:4px solid #cb812b;background:#fffcf6}.phase-shell .card h3{font-size:17px}.phase-shell .section{margin:28px 0}.phase-shell .section-head h2{font-size:21px}.phase-quick,.phase-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.phase-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:16px 0}.phase-kpi{border:1px solid #e0e6ef;border-radius:12px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:7px}.phase-kpi strong{font-size:28px;font-variant-numeric:tabular-nums;color:#244b82}.phase-kpi small{font-size:12px;color:#63748b}.phase-shell details{margin-top:14px}.phase-shell summary{padding:10px 0;cursor:pointer;font-weight:600}.phase-shell button{min-height:42px}.phase-shell input,.phase-shell select,.phase-shell textarea{min-height:46px;font-size:16px}.phase-shell .numbers{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:15px 0}.phase-shell .numbers strong{font-size:30px}.phase-shell .numbers small{font-size:13px;font-weight:400}.phase-footer{display:none}.phase-preview{max-height:360px;overflow:auto;border:1px solid #dce3ed;padding:12px}.phase-case-extra{margin:16px 0}.phase-shell .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}.phase-shell .card p{overflow-wrap:anywhere}.phase-shell .card .primary{margin-top:12px}.phase-shell .phase-tabs button{border-radius:22px}
@media(max-width:760px){.phase-shell{display:block}.phase-shell .side{position:fixed;inset:auto 0 0 0;width:auto;height:auto;z-index:30;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #dce3ed;box-shadow:0 -4px 20px #243d6010;background:#fff}.phase-shell .side .brand,.phase-shell .side .user{display:none}.phase-shell .side nav{display:flex!important;gap:2px;justify-content:space-around}.phase-shell .side nav button{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;padding:6px 2px;font-size:10px;min-height:52px;margin:0}.phase-shell .side nav i{font-size:20px;line-height:23px}.phase-shell .main{margin:0;padding:20px 14px 105px;width:100%;min-width:0}.phase-shell .top h1{font-size:26px}.phase-shell .top{margin-bottom:16px}.phase-shell .card{padding:17px;border-radius:14px}.phase-shell .grid{grid-template-columns:1fr}.phase-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.phase-kpi{padding:12px}.phase-kpi strong{font-size:25px}.phase-quick>*{flex:1;white-space:normal}.phase-shell .section-head{align-items:flex-start;gap:8px}.phase-shell .section-head h2{font-size:19px}.phase-shell .formgrid{grid-template-columns:1fr}.phase-footer{display:block;margin-top:30px;color:#63748b;font-size:12px}.phase-shell .kanban{display:flex;flex-direction:column;overflow:visible}.phase-shell .kanban>section,.phase-shell .kanban>.column{min-width:0;width:100%}.phase-shell .scroll{max-width:100%}.phase-tabs{flex-wrap:nowrap;overflow-x:auto}.phase-tabs button{flex-shrink:0}dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);padding:18px}dialog .formgrid{grid-template-columns:1fr}dialog input,dialog select,dialog textarea{font-size:16px;min-height:44px}}
.phase-shell .side,.phase-shell .side .brand,.phase-shell .side .brand span,.phase-shell .side .user,.phase-shell .side .user small{color:#385070}.phase-shell .side nav button{color:#385070;background:transparent}.phase-shell .side nav button.active{color:#193f76;background:#edf3fb}.phase-shell .side nav button:hover{background:#f1f5fa}.phase-shell .side .user button{color:#385070}
@media(max-width:760px){.phase-shell .board{display:flex;flex-direction:column;overflow:visible}.phase-shell .board .lane{min-width:0;width:100%;max-width:none}.phase-shell .lane.empty-lane{display:none}.phase-shell .toolbar{flex-wrap:wrap}.phase-shell .toolbar>*{max-width:100%}.phase-shell .activity{max-width:100%}}

@media(max-width:760px){.phase-mobile-table{display:block;min-width:0;width:100%}.phase-mobile-table thead{display:none}.phase-mobile-table tbody{display:block}.phase-mobile-table tr{display:block;border:1px solid #dce3ed;border-radius:12px;margin:10px 0;background:white!important;padding:8px}.phase-mobile-table td,.phase-mobile-table th{display:flex;justify-content:space-between;gap:12px;border:0;white-space:normal;padding:7px;background:transparent;min-width:0;overflow-wrap:anywhere}.phase-mobile-table td:before,.phase-mobile-table th:before{content:attr(data-label);font-size:12px;color:#63748b;flex-shrink:0}.phase-shell .scroll:has(.phase-mobile-table){border:0;overflow:visible}}

.phase-shell .home-fold{border:1px solid #dce4ef;border-radius:14px;background:#fff;overflow:hidden}.phase-shell .home-fold>summary{display:flex;align-items:center;gap:12px;padding:18px 20px;list-style:none;border:0;cursor:pointer;background:#eef3fa;color:#203e75}.phase-shell .home-fold>summary::-webkit-details-marker{display:none}.phase-shell .home-fold>summary:before{content:'▸';font-size:18px;flex-shrink:0}.phase-shell .home-fold[open]>summary:before{content:'▾'}.phase-shell .home-fold>summary h2{font-size:19px;margin:0;flex:1;line-height:1.5}.home-fold-hint{font-size:12px;white-space:nowrap;font-weight:400}.home-fold:not([open])>summary .fold-close,.home-fold[open]>summary .fold-open{display:none}.home-fold-body{padding:20px}.home-fold-actions{margin-bottom:16px}.home-fold-body>.phase-quick{margin-bottom:0}.home-fold>summary:focus-visible{outline:3px solid #376daf;outline-offset:-3px}@media(max-width:760px){.phase-shell .home-fold>summary{padding:15px 12px;gap:8px}.phase-shell .home-fold>summary h2{font-size:17px}.home-fold-body{padding:12px}.home-fold-hint{font-size:11px}}
.board .lane > .home-fold {margin:0;border:0;box-shadow:none;background:transparent}
.board .lane > .home-fold > summary {padding:8px 0;gap:8px}
.board .lane > .home-fold h2 {font-size:17px}
.board .lane .home-fold-body {padding:8px 0}
.board .lane .home-fold-hint {font-size:11px}

.post-wide-wrap{overflow-x:auto;width:100%}.post-wide{width:100%;min-width:900px;table-layout:fixed;border-collapse:collapse}.post-wide th,.post-wide td{padding:10px 9px;vertical-align:top;text-align:left}.post-wide th{white-space:nowrap;background:#edf2fa}.post-wide td{border-bottom:1px solid #dce3ef}.post-wide tbody tr:nth-child(even){background:#f8faff}.post-wide th:nth-child(1){width:11%}.post-wide th:nth-child(2){width:21%}.post-wide th:nth-child(3){width:12%}.post-wide th:nth-child(4){width:13%}.post-wide th:nth-child(5){width:12%}.post-wide th:nth-child(6){width:20%}.post-wide th:nth-child(7){width:11%}.post-wide td{overflow-wrap:anywhere}.post-wide td:nth-child(6){overflow-wrap:anywhere}.post-wide button{white-space:nowrap;margin:2px}.post-wide td:first-child{white-space:nowrap}

/* Charts use SVG presentation attributes to work under the production CSP. */
.summary-chart-section{margin:24px 0}.summary-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.summary-chart-grid>.card{padding:20px;min-width:0}.summary-donut{margin:0;text-align:center}.summary-donut h3{margin:0 0 12px}.summary-donut-svg{display:block;width:200px;height:200px;max-width:100%;margin:0 auto}.summary-donut-legend{display:flex;justify-content:center;gap:8px 14px;flex-wrap:wrap;margin-top:12px;font-size:13px}.summary-donut-legend span{white-space:nowrap}.trend-chart{margin:20px 0}.trend-chart-row{margin:14px 0}.trend-chart-label{display:flex;justify-content:space-between;gap:12px}.trend-chart-bar{display:block;width:100%;height:22px;border-radius:4px;margin-top:5px}@media(max-width:540px){.summary-chart-grid{grid-template-columns:1fr}}

.summary-chart-grid>.card:only-child{max-width:560px;width:100%;justify-self:center;box-sizing:border-box}.summary-donut-legend span{white-space:normal;overflow-wrap:anywhere}
.si-target-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px;margin-top:20px}.si-target{min-width:0;overflow-wrap:anywhere}.si-target dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}.si-target dd{margin:0}.si-target .toolbar{flex-wrap:wrap}.si-metric{display:grid;gap:5px;margin:12px 0}.si-metric progress{width:100%;accent-color:#315892}.si-prewrap{white-space:pre-wrap}.si-panel .card{min-width:0;overflow-wrap:anywhere}dialog:has([data-si]),dialog:has(.si-target-grid){width:min(1200px,94vw);max-width:94vw}@media(max-width:640px){.si-target-grid{grid-template-columns:1fr}.si-target dl{grid-template-columns:80px minmax(0,1fr)}dialog:has([data-si]) .formgrid{grid-template-columns:1fr}}

/* Keep each case and its actions together, with consistent touch targets. */
.case-board-item{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #dce3ef;border-radius:16px;padding:14px;margin-bottom:16px;min-width:0;}
.case-board-item>.card.clickable{width:100%;margin:0;padding:8px;border:0;box-shadow:none;text-align:left;border-radius:8px;}
.case-board-item .card header{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;}
.case-board-item .card h3{font-size:18px;line-height:1.5;margin:0;overflow-wrap:anywhere;}
.case-board-item .card header .tag{flex-shrink:0;white-space:nowrap;}
.case-board-item .card p{font-size:14px;line-height:1.65;margin:12px 0;overflow-wrap:anywhere;}
.case-board-item .card footer{font-size:12px;line-height:1.6;padding-top:10px;}
.case-board-item>.toolbar{display:grid;grid-template-columns:1fr;gap:8px;margin:0;}
.case-board-item>.toolbar>button{width:100%;min-height:44px;margin:0;padding:10px 12px;font-size:14px;line-height:1.5;text-align:center;white-space:normal;}
.case-board-item>.toolbar>small{font-size:12px;color:#67758c;}
.case-card-footer{display:flex;justify-content:flex-end;border-top:1px solid #edf0f5;padding-top:6px;}
.case-card-footer .case-delete-button{min-height:40px;padding:8px 14px;font-size:13px;color:#a32938;background:#fff;border:1px solid #ead6da;}
#case-range-form .toolbar{align-items:end;gap:12px;flex-wrap:wrap;}
#case-range-form label{min-width:155px;}
#case-bulk-form input[type=checkbox]{min-width:22px;min-height:22px;}

.case-bulk-select{display:flex;align-items:center;gap:6px;font-size:13px;min-height:44px}.case-bulk-select input{width:18px;height:18px}#case-bulk-form td{vertical-align:top}#case-bulk-form [hidden]{display:none!important}#case-bulk-form td input:not([type=checkbox]),#case-bulk-form td select{min-width:155px}

.team-metric-number{padding:4px 8px;min-height:44px;border:0;background:transparent;color:#304f8d;text-decoration:underline;text-underline-offset:5px;font:inherit;font-weight:700}.phase-kpi>.team-metric-number{display:block;font-size:32px;text-align:left}.team-metric-number:hover{background:#eaf0fa}

/* Readability trial 2026-10-02. Restore with sales_os_design_restore_20261002.zip. */
:root{--accent:#245ea8;--ink:#172b43;--muted:#53667c;--line:#dbe3eb;background:#f2f5f8;color:#172b43;font-family:"Yu Gothic UI",Meiryo,"Segoe UI",sans-serif;font-size:15px}
.phase-shell{--accent:#245ea8;--ink:#172b43;--muted:#53667c;background:#f2f5f8;grid-template-columns:220px minmax(0,1fr)}
.phase-shell .main{width:100%;max-width:1680px;padding:28px clamp(20px,3vw,44px) 64px;margin:0 auto}
.phase-shell .top{padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid #dbe3eb}.phase-shell .top h1{font-size:28px;letter-spacing:.01em;line-height:1.4;margin-bottom:6px}.phase-shell .top p{font-size:13px;margin-bottom:0}.eyebrow{font-size:10px;letter-spacing:.12em;color:#53667c}
.phase-shell .side{background:#172e49;color:#fff;border:0;padding:26px 14px;gap:24px}
.phase-shell .side .brand,.phase-shell .side .user{color:#fff}.phase-shell .side .brand span,.phase-shell .side .user small{color:#bdcede}.phase-shell .side .brand{font-size:20px}.phase-shell .side .brandmark{background:#fff;color:#172e49;border:0;border-radius:9px}
.phase-shell .side nav{gap:6px}.phase-shell .side nav button{color:#dce6f1;background:transparent;border:1px solid transparent;min-height:48px;font-size:14px;padding:11px 14px;border-radius:9px;gap:12px;box-shadow:none}.phase-shell .side nav button:hover{background:#263f5b;color:white}.phase-shell .side nav button.active{background:#fff;color:#172e49;border-color:#fff;font-weight:750;box-shadow:inset 4px 0 #35a6ac}.phase-shell .side nav i{font-size:20px}.phase-shell .side .user{border-color:#ffffff26}.phase-shell .side .user button{color:#e2edf7}
button,.phase-shell button{font-size:14px;font-weight:650;line-height:1.45;min-height:44px;padding:10px 16px;border-radius:8px;border-color:#cbd7e4;box-shadow:none;white-space:normal;text-align:center;vertical-align:middle}button:hover{background:#edf4fb;border-color:#7797bb}button.primary,.phase-shell button.primary{background:#245ea8;border-color:#245ea8;color:#fff;box-shadow:0 2px 4px #173a6614}button.primary:hover{background:#1b4d8d}button.link{min-height:36px;padding:5px 8px;color:#245ea8}button.danger{color:#a62b38;border-color:#e3bfc4;background:#fffafa}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #4a8ac8;outline-offset:3px}
input,select,textarea,.phase-shell input,.phase-shell select,.phase-shell textarea{font-size:16px;line-height:1.5;min-height:44px;padding:10px 12px;border-radius:8px;border-color:#becddc;background:#fff;color:#172b43}label{font-size:13px;color:#344d66;gap:7px}.formgrid{gap:16px}.toolbar{gap:10px;align-items:end}.toolbar button{flex-shrink:0}
.phase-shell .section{margin:22px 0}.phase-shell .home-fold{border:1px solid #d9e2eb;border-radius:12px;box-shadow:0 2px 7px #1d395206}.phase-shell .home-fold>summary{background:#fff;border-bottom:1px solid transparent;padding:17px 20px;gap:12px;color:#172e49}.phase-shell .home-fold[open]>summary{background:#f8fafc;border-bottom-color:#e2e8f0}.phase-shell .home-fold>summary:before{color:#245ea8}.phase-shell .home-fold>summary h2{font-size:19px;font-weight:750;line-height:1.5}.home-fold-hint{color:#53667c;font-size:12px}.home-fold-body{padding:22px}.phase-shell h3{font-size:17px;line-height:1.5;margin-bottom:12px}.phase-shell p{line-height:1.75}.phase-shell .muted{color:#53667c}.phase-shell .card{border-radius:11px;border-color:#dbe3eb;padding:20px;box-shadow:0 2px 5px #18344b05}.phase-shell .card h3{font-size:17px}.phase-shell .grid{gap:16px}.phase-shell .card .primary{margin-top:8px}
.stats{border:0;border-radius:0;box-shadow:none;gap:12px;background:transparent;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));margin:16px 0}.stat{border:1px solid #dbe3eb;border-top:3px solid #245ea8;border-radius:10px;background:#fff;padding:18px 16px;min-width:0}.stat:last-child{border-top-color:#23878e}.stat span{font-size:13px;color:#465e76;line-height:1.5}.stat strong,.stat button{font-size:32px;color:#193f70;line-height:1.35;letter-spacing:0;font-variant-numeric:tabular-nums}.phase-kpi-grid{gap:12px}.phase-kpi{border-radius:10px;padding:17px}.phase-kpi strong{color:#193f70}
.scroll,.post-wide-wrap{border-radius:10px;border:1px solid #dbe3eb;overflow:auto}table{width:100%;font-size:14px;line-height:1.6;border-collapse:separate;border-spacing:0}th,td,.post-wide th,.post-wide td{padding:12px 14px;vertical-align:middle;border-bottom:1px solid #e3e9f0}thead th{background:#eaf0f6;color:#314e6b;font-size:13px;font-weight:750;white-space:nowrap}tbody th{background:#f7f9fc;color:#314e6b;font-weight:650;text-align:left}tbody tr:nth-child(even),.post-wide tbody tr:nth-child(even){background:#f7f9fc}tbody tr:hover{background:#edf4fc}tbody tr:last-child>td,tbody tr:last-child>th{border-bottom:0}td{font-variant-numeric:tabular-nums}.post-wide button{padding:9px 12px;min-height:40px}.phase-shell .phase-tabs button{border-radius:8px}.phase-tabs{padding-bottom:4px;gap:8px}
.phase-shell .board{gap:14px}.phase-shell .lane{background:#e8eef4;border-radius:12px;padding:12px;min-width:275px}.phase-shell .lane .card{padding:17px;margin-bottom:12px}.phase-shell .lane .card h3{line-height:1.5}.phase-shell .lane button{max-width:100%}.board .lane .home-fold-body{padding:10px 0}.board .lane>.home-fold>summary{padding:10px 8px;background:transparent}.tag{border-radius:6px;font-size:12px;white-space:nowrap}.notice{font-size:13px;line-height:1.7;background:#fff9ed;border-left:3px solid #d49b38;padding:12px 15px}.entry-toolbar{background:#f6f9fd;border-color:#cbd9e8;border-left-color:#245ea8;padding:16px 20px}.actions{gap:10px}.summary-chart-grid{gap:16px}
dialog{border-radius:14px;border-top:4px solid #245ea8;padding:26px;box-shadow:0 24px 80px #142c4933}dialog::backdrop{background:#13283f80}dialog h2{font-size:21px}dialog .close{border-radius:7px}.login{background:white;border-radius:16px;border-top-color:#245ea8;box-shadow:0 15px 50px #173a6610}.empty{border-radius:9px}
@media(max-width:1000px) and (min-width:761px){.phase-shell{grid-template-columns:190px minmax(0,1fr)}.phase-shell .main{padding:24px 20px}.phase-shell .side{padding:24px 10px}.phase-shell .side nav button{padding:10px}.home-fold-body{padding:18px}}
@media(max-width:760px){.phase-shell{display:block}.phase-shell .main{padding:18px 12px 110px}.phase-shell .top h1{font-size:25px}.phase-shell .side{background:#fff;padding:5px 4px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #dbe3eb;gap:0}.phase-shell .side nav{gap:2px}.phase-shell .side nav button{font-size:11px;padding:6px 2px;min-height:55px;color:#53667c;border:0;gap:4px;border-radius:8px}.phase-shell .side nav button.active{color:#245ea8;background:#eaf2fc;box-shadow:none}.phase-shell .side nav button:hover{background:#eaf2fc;color:#245ea8}.phase-shell .side nav i{font-size:20px}.phase-shell .home-fold>summary{padding:14px 12px;gap:8px}.phase-shell .home-fold>summary h2{font-size:17px}.home-fold-body{padding:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:13px 11px}.stat strong,.stat button{font-size:27px}.stat span{font-size:12px}.phase-shell .card{padding:16px}.phase-shell .lane{min-width:0}.phase-shell .toolbar{align-items:stretch}th,td,.post-wide th,.post-wide td{padding:10px 11px}dialog{padding:20px 16px}.phase-shell .phase-mobile-table td,.phase-shell .phase-mobile-table th{padding:8px;border:0}.phase-shell .phase-mobile-table tr{border-color:#dbe3eb}.login{margin:24px 14px}}
@media print{.phase-shell .side{display:none}.phase-shell{display:block}.phase-shell .main{max-width:none;padding:0}.home-fold{break-inside:avoid}}

/* Case board: consistent column widths and synchronized top scrollbar. */
.phase-shell .board{min-width:0;max-width:100%;grid-template-columns:repeat(6,minmax(300px,1fr));overflow-x:auto;scrollbar-width:auto}
.phase-shell .board>.lane{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.phase-shell .board .home-fold,.phase-shell .board .home-fold-body,.phase-shell .board .case-board-item{min-width:0;max-width:100%;box-sizing:border-box}
.phase-shell .board .case-board-item{width:100%;padding:12px}
.phase-shell .board .case-board-item>.card{width:100%;min-width:0;max-width:100%;padding:8px;margin:0;box-sizing:border-box}
.phase-shell .board .card header h3{min-width:0;overflow-wrap:anywhere}
.phase-shell .board .card p,.phase-shell .board .card footer{overflow-wrap:anywhere}
.phase-shell .board .case-board-item>.toolbar{min-width:0;grid-template-columns:minmax(0,1fr)}
.phase-shell .board .case-board-item>.toolbar>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.phase-shell .board .case-card-footer{flex-wrap:wrap;align-items:center;gap:8px}
.phase-shell .board .case-bulk-select{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}
.phase-shell .board .case-bulk-select input{width:18px;min-height:18px;flex:none}
.phase-shell .board .lane>.home-fold>summary{padding:10px 0;min-width:0;gap:6px}
.phase-shell .board .lane>.home-fold>summary h2{min-width:0;font-size:17px;overflow-wrap:anywhere}
.phase-shell .board .home-fold-hint{flex-shrink:0;white-space:nowrap}
.case-board-scroll-top{width:100%;max-width:100%;height:22px;overflow-x:scroll;overflow-y:hidden;margin:0 0 10px;scrollbar-width:auto;border-radius:4px;background:#e4eaf2}
.case-board-scroll-top>div{height:1px}
.case-board-scroll-top[hidden]{display:none}
@media(max-width:760px){.phase-shell .board{display:flex;flex-direction:column;overflow:visible}.case-board-scroll-top{display:none}}

.case-board-scroll-top::-webkit-scrollbar{height:16px}
.case-board-scroll-top::-webkit-scrollbar-track{background:#e2e8f0;border-radius:8px}
.case-board-scroll-top::-webkit-scrollbar-thumb{background:#8596ad;border:3px solid #e2e8f0;border-radius:8px}
.case-board-scroll-top::-webkit-scrollbar-thumb:hover{background:#526d90}

/* Do not animate mirrored positions; allow native drag/trackpad momentum. */
.phase-shell .board,.case-board-scroll-top{scroll-behavior:auto;overflow-anchor:none}
/* Skip painting off-screen cards on large boards (including 1,000+ records). */
@supports(content-visibility:auto){.phase-shell .board .case-board-item{content-visibility:auto;contain-intrinsic-size:auto 430px}}

.report-scroll{max-width:100%;overflow-x:auto}.report-scroll table{min-width:850px}.report-scroll input[type=number]{min-width:85px;width:100%;padding:10px}#mr-review,.report-action textarea{width:100%;box-sizing:border-box}.report-action{display:flex;gap:12px;margin:10px 0}.award-summary{display:flex;gap:28px;align-items:center;flex-wrap:wrap}.award-summary>strong{font-size:38px;color:#264d8c}.award-summary small{font-size:18px}.award-reach{padding:12px 16px;background:#fff3d8;color:#845219;border-radius:10px;font-weight:700}.award-reaches{display:flex;gap:12px;flex-wrap:wrap}#aw-review-form>label,#aw-history-form>label,#aw-settings-form>label{display:block;margin:12px 0}#aw-review-form textarea,#aw-history-form textarea{width:100%}@media(max-width:640px){.award-summary{gap:16px}.report-scroll .phase-mobile-table td{display:table-cell}.report-scroll .phase-mobile-table tr{display:table-row}.report-scroll .phase-mobile-table thead{display:table-header-group}.report-scroll td:before{display:none!important}}

/* Collapsible specialist tools, including the mobile bottom navigation. */
.phase-shell .side .phase-tools{min-width:0}
.phase-shell .side #phase-tools-toggle{width:100%}
.phase-shell .side .phase-tools-chevron{margin-left:auto;font-size:18px;transition:transform .15s}
.phase-shell .side #phase-tools-toggle[aria-expanded="true"] .phase-tools-chevron{transform:rotate(180deg)}
.phase-shell .side #phase-tools-menu{display:grid;gap:4px;margin:5px 0 3px 12px;padding-left:8px;border-left:1px solid #ffffff40}
.phase-shell .side #phase-tools-menu[hidden]{display:none}
.phase-shell .side #phase-tools-menu button{font-size:13px;padding:10px 8px;line-height:1.5}
.phase-shell .side #phase-tools-menu button span{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
 .phase-shell .side .phase-tools{flex:1;min-width:0}
 .phase-shell .side #phase-tools-toggle{height:100%;font-size:11px}
 .phase-shell .side .phase-tools-chevron{display:none}
 .phase-shell .side #phase-tools-menu{position:absolute;bottom:calc(100% + 8px);right:8px;width:min(310px,calc(100vw - 16px));max-height:60vh;overflow:auto;margin:0;padding:8px;border:1px solid #dbe3eb;border-radius:12px;background:#fff;box-shadow:0 8px 28px #172e4926}
 .phase-shell .side #phase-tools-menu button{flex-direction:row;text-align:left;font-size:14px;padding:12px;gap:12px;min-height:48px}
}

/* Home reminders share the same row and wrap on smaller screens. */
.home-notices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-bottom:20px}
.home-notices:empty{display:none}
.home-notices .notice{margin:0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px}
.home-notices .notice p{margin:0;line-height:1.6;flex:1}
.home-notices .notice strong{font-size:18px}
.home-notices .notice small{font-weight:400;font-size:14px;white-space:nowrap}
.home-notices .notice button{margin-top:auto;max-width:100%;white-space:normal}
.home-alert-list{display:grid;gap:14px}
.home-alert-item{border:1px solid #dbe3eb;border-radius:12px;padding:18px;overflow-wrap:anywhere}
.home-alert-item h3{margin:0 0 12px}
.home-alert-overdue{color:#945500;font-weight:700}

[data-report-missing] .report-field-missing{border:2px solid #c53e45;background:#fff5f5}
[data-report-missing] .report-missing-badge{display:block;color:#a8202a;font-size:12px;font-weight:700;margin-top:4px}
[data-report-missing] .report-missing-badge[hidden]{display:none}

/* Report detail widths belong in the stylesheet: production CSP blocks inline styles. */
.br-detail-scroll{width:100%;overflow-x:auto;border:1px solid #dbe3eb;border-radius:10px;margin-bottom:14px}
.report-scroll .br-detail-table{width:max-content;min-width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}
.br-detail-table th{white-space:nowrap}
.br-detail-table td,.br-detail-table th{box-sizing:border-box;vertical-align:top}
.br-detail-table input,.br-detail-table textarea{box-sizing:border-box;width:180px;min-width:180px}
.br-detail-table .br-col-owner{position:sticky;left:0;z-index:1;background:#f4f7fc;border-right:2px solid #cad6e5;min-width:304px}
.br-detail-table th.br-col-owner{z-index:2;background:#eaf0f7}
.br-detail-table .br-col-owner textarea{width:280px;min-width:280px;min-height:100px;line-height:1.6;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.br-detail-table .br-col-customer input{width:240px;min-width:240px}
.br-detail-table .br-col-property input,.br-detail-table .br-col-note input,.br-detail-table .br-col-status input{width:280px;min-width:280px}
.br-detail-table .br-col-rank input,.br-detail-table .br-col-age input,.br-detail-table .br-col-room input{width:100px;min-width:100px}
.br-detail-table .br-col-operation{min-width:130px}
.br-detail-table .br-col-operation button{white-space:nowrap}

dialog:has(#forecast-format-table){width:96vw;max-width:96vw}#forecast-format-table{min-width:1700px}#forecast-format-table input,#forecast-format-table select{min-width:140px;width:100%}#forecast-format-table th{white-space:nowrap}
.forecast-profile-scroll{overflow:auto;max-height:700px}.forecast-profile-table{min-width:1050px;width:100%;table-layout:auto}.forecast-profile-table th{white-space:nowrap;position:sticky;top:0;z-index:1}.forecast-profile-table td{vertical-align:top}.forecast-profile-table td:nth-child(1){min-width:170px}.forecast-profile-table td:nth-child(2){min-width:180px}.forecast-profile-table td:nth-child(3),.forecast-profile-table td:nth-child(4){min-width:200px}.forecast-profile-table .toolbar{flex-wrap:wrap}
.sidebar-collapse-control{display:none}@media(min-width:761px){.sidebar-collapse-control{display:block;position:fixed;left:12px;bottom:16px;z-index:40;background:#fff;color:#203e75;box-shadow:0 2px 8px #0002}.shell .side{padding-bottom:80px}.shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}.shell.sidebar-collapsed>.side{display:none}.shell.sidebar-collapsed>.main{grid-column:2;min-width:0}}
@media(min-width:761px){.shell .sidebar-collapse-control{top:8px;bottom:auto;left:12px;z-index:60}.shell .side{padding-top:72px}.shell.sidebar-collapsed>.main{max-width:none;padding-top:64px}}.forecast-profile-table input,.forecast-profile-table select{width:100%;min-width:120px}.forecast-profile-table input[type=date]{min-width:175px}.forecast-profile-table input[type=number]{max-width:160px}.forecast-profile-table td:nth-child(6){min-width:160px}[data-forecast-home-list][data-dirty="1"] [data-action="forecast-inline-save"]{outline:3px solid #d99a35}

.forecast-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:12px}.forecast-row-actions button{white-space:nowrap;min-height:40px}.forecast-row-actions .danger{color:#a32929;border-color:#d7a8a8;background:#fff}
