/* Personal project content stays in its approved columns. No fixed operation cells. */
#page .personal-table .project-summary-row>td:last-child,#page .personal-table thead th:last-child{position:static!important;right:auto!important;z-index:auto!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important}
#page .personal-table tbody.project-row-group{--personal-surface:rgba(255,255,255,.72);--personal-edge:#c8d9eb}
#page .personal-table tbody.project-row-group:has(.priority-dot.priority){--personal-surface:rgba(255,241,242,.83);--personal-edge:#d88b94}
#page .personal-table tbody.project-row-group:has(.priority-dot.normal){--personal-surface:rgba(255,249,233,.84);--personal-edge:#cfaf68}
#page .personal-table tbody.project-row-group:has(.priority-dot.flexible){--personal-surface:rgba(238,249,243,.83);--personal-edge:#80b29a}
#page .personal-table tbody.project-row-group>tr:not(.project-group-gap)>td{background:var(--personal-surface)!important}
#page .personal-table tbody.project-row-group>.project-summary-row:not([data-project-state="landed"])>td:first-child{box-shadow:inset 3px 0 0 var(--personal-edge)!important}
#page .personal-table .project-summary-row>td{padding-block:10px;line-height:1.5}
#page .personal-table .closure-label .status-text{display:inline;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
#page .personal-table col.col-priority{width:124px}#page .personal-table col.col-action{width:102px}
#page .personal-table .priority-control{display:inline-flex;width:111px;min-width:111px;max-width:111px;align-items:center;gap:5px;padding:0}
#page .priority-control .priority-dot{width:8px;height:8px;flex:0 0 8px}
#page .priority-control select{flex:none!important;width:98px!important;min-width:98px!important;max-width:98px!important;height:32px;min-height:32px;line-height:18px;font-size:13px!important;padding:6px 23px 6px 8px;box-sizing:border-box;background-color:var(--personal-surface,#f6faff)}
#page .personal-table .view-project-action{min-height:32px!important;height:32px!important;font-size:13px!important;padding:6px 9px!important;line-height:18px!important;width:88px;max-width:100%}
#project-results .personal-table .personal-work-line{width:fit-content!important;max-width:calc(100cqw - 32px);gap:6px;margin:0;padding-top:7px}
#page .personal-work-line>.work-actions{display:flex;width:fit-content!important;max-width:100%;justify-content:flex-start!important;flex-wrap:wrap!important;gap:7px;overflow:visible;align-items:center;padding:1px 0 3px}
#page .personal-work-line .work-actions>button,#page .personal-work-line .work-actions>.download-action{margin-inline:0!important;flex:0 0 auto!important;width:auto!important;min-height:32px!important;height:32px!important;font-size:13px!important;line-height:18px!important;padding:6px 10px!important}
#page .personal-table .personal-actions-row>td{padding-bottom:10px!important}
@media(min-width:761px) and (max-width:1480px){
 #page .personal-table{min-width:810px!important;width:100%;table-layout:fixed}
 #page .personal-table:has(col.col-money){min-width:900px!important}
 #page .personal-table col.col-title{width:auto}#page .personal-table col.col-region{width:70px}#page .personal-table col.col-date{width:86px}#page .personal-table col.col-owner{width:80px}#page .personal-table col.col-progress{width:120px}#page .personal-table col.col-state{width:90px}
 #page .personal-table .state-col,#page .personal-table col.col-state{min-width:90px}
 #page .personal-table .project-summary-row>td,#page .personal-table thead th{padding-left:7px;padding-right:7px}
 #page .personal-table:not(:has(col.col-money)) .project-summary-row>td:nth-child(3),#page .personal-table:has(col.col-money) .project-summary-row>td:nth-child(4){font-size:12px;white-space:nowrap}
 #page .project-table-wrap[data-table-mode=personal]:has(col.col-money)::before{content:'左右滑动查看完整项目';display:block;position:sticky;left:0;width:fit-content;font-size:12px;color:#60758d;padding:3px 0 8px}
}
@media(min-width:761px) and (max-width:1050px){#page .project-table-wrap[data-table-mode=personal]::before{content:'左右滑动查看完整项目';display:block;position:sticky;left:0;width:fit-content;font-size:12px;color:#60758d;padding:3px 0 8px}}
/* The timeline header holds a name and one workload line without clipping. */
#staff-work-timeline .scheduler_default_rowheader_inner{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;text-align:left!important;padding:5px 10px!important;box-sizing:border-box}
#staff-work-timeline .sw-person-name{width:100%;text-align:left;font-size:13px;font-weight:650;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#staff-work-timeline .sw-person-count{width:100%;font-size:11px;line-height:18px;white-space:nowrap;color:#667d94}
#staff-work-timeline [class*='_timeheadercol_inner'],#staff-work-timeline [class*='_timeheadergroup_inner']{font-size:14px!important;font-weight:650!important;line-height:20px!important;color:#385b80!important;display:flex;align-items:center;justify-content:center}
#staff-work-timeline .sw-weekday{font-size:12px;font-weight:500;color:#6b829b;margin-left:5px}
.resource-placeholder{max-width:800px;margin:28px auto;padding:30px 28px;text-align:center;background:linear-gradient(140deg,#ffffffba,#f2f8ff91);border:1px solid #cfdfee;border-radius:24px;box-shadow:0 12px 40px #345c8110}
.resource-placeholder svg{width:min(300px,70%);height:auto;margin:5px auto 18px;display:block}.resource-placeholder h2{font-size:22px;color:#355e87;margin:5px 0 12px}.resource-placeholder p{font-size:14px;line-height:1.8;color:#6a7f96;max-width:43ch;margin:0 auto 18px}.resource-placeholder .coming-status{display:inline-flex;padding:7px 15px;border-radius:99px;background:#e8f3ffbf;border:1px solid #c8ddef;color:#4c769e;font-size:13px}

#staff-work-timeline [class*='_timeheadercol_inner']{flex-direction:column;gap:1px;line-height:17px!important;padding:2px 0!important}.sw-date-number{font-size:14px;font-weight:650;line-height:18px}#staff-work-timeline .sw-weekday{margin:0;font-size:11px;line-height:14px}
.personal-cards .mobile-project:has(.priority-dot.priority){background:rgba(255,241,242,.83)!important;border-color:#d88b94}.personal-cards .mobile-project:has(.priority-dot.normal){background:rgba(255,249,233,.84)!important;border-color:#cfaf68}.personal-cards .mobile-project:has(.priority-dot.flexible){background:rgba(238,249,243,.83)!important;border-color:#80b29a}

#staff-work-timeline .scheduler_default_rowheader_inner_indent,#staff-work-timeline .scheduler_default_rowheader_inner_text{padding:0!important;display:block!important;box-sizing:border-box;min-width:0}
#staff-work-timeline .scheduler_default_rowheader_inner_indent:has(.sw-person-name){margin-left:8px!important;width:calc(100% - 8px)}
#staff-work-timeline .scheduler_default_rowheader_inner_text:has(.sw-person-name){margin-left:0!important;width:100%}
#staff-work-timeline .scheduler_default_tree_image_no_children{display:none}
#app .icon-utilities path,#app .icon-resources path{stroke:currentColor!important;fill:none!important}#app .icon-utilities rect{stroke:currentColor!important;fill:currentColor!important;fill-opacity:.12}

#page .queue-tabs .workbench-project-count {color:#36679c;background:none;-webkit-text-fill-color:currentColor}

/* Keep the preview readable and align its actions against the right edge. */
#notice-results.notification-list {
 display:grid;
 grid-auto-flow:row;
 direction:ltr;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
 align-items:start;
 padding:0;
 border:0;
 box-shadow:none;
 background:none;
}
#notice-results>.notification {
 display:grid;
 grid-template-columns:minmax(0,1fr) max-content;
 align-items:center;
 box-sizing:border-box;
 width:100%;
 min-width:0;
 height:auto;
 gap:10px;
 padding:13px 15px;
 margin:0;
 border:1px solid rgba(104,140,175,.25);
 border-radius:15px;
 background-color:rgba(255,255,255,.64);
}
#notice-results>.notification.unread {background-color:#fff1f1}
#notice-results .message-content {min-width:0;width:100%}
#notice-results .message-title {max-width:100%;overflow-wrap:anywhere}
#notice-results .message-description {
 display:-webkit-box;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:2;
 overflow:hidden;
 overflow-wrap:anywhere;
 white-space:normal;
}
#notice-results .message-buttons {width:auto;margin:0;align-self:center;justify-self:end;justify-content:flex-end;align-items:flex-end;flex-direction:column;gap:6px;max-width:100%}
#notice-results>.empty,#notice-results>.error {grid-column:1/-1}
@media(max-width:860px){#notice-results.notification-list{grid-template-columns:1fr}}
@media(max-width:520px){
 #notice-results>.notification{grid-template-columns:minmax(0,1fr);gap:5px}
 #notice-results .message-buttons{flex-direction:row;flex-wrap:wrap}
}

.action-date-preview{container:action-dates / inline-size;font-variant-numeric:tabular-nums}
.action-final-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 9px}
.action-final-grid.single-final,.action-final-grid>.action-final-item:last-child:nth-child(odd){grid-column:1/-1}
.action-final-grid.single-final{grid-template-columns:minmax(0,1fr)}
.action-final-item,.action-landing,.action-date-details{font-size:12px;line-height:1.6}
.action-final-item{min-width:0;overflow-wrap:anywhere}
.action-final-item .work-date--final,.action-date-line time{white-space:nowrap}
.action-landing,.action-date-details{margin-top:3px}
.action-date-details>summary{width:fit-content;color:var(--glass-focus,#315c82)}
.action-date-line{display:block;overflow-wrap:anywhere}
@container action-dates (max-width:205px){.action-final-grid{grid-template-columns:minmax(0,1fr)}}

.company-order-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.company-order-grid>fieldset {min-width:0}
.company-order-brand-list {display:flex;flex-wrap:wrap;gap:5px 10px}
.company-order-brand-list>label {display:inline-flex;align-items:center;gap:5px}

#value-service-form .value-policy {margin:0 0 9px}
#value-service-form .value-month-context {min-height:46px;margin-bottom:12px}
#value-service-form .value-type-quantity[hidden],
#value-service-form #value-expand-types[hidden] {display:none!important}
#value-service-form .value-type-quantity {min-width:0;flex-wrap:wrap;gap:5px 9px}
#value-service-form .value-quantity-label {white-space:nowrap}
.login-control-row {
 display:grid;
 grid-template-columns:minmax(0,1fr) auto auto;
 align-items:center;
 gap:10px 17px;
 padding:10px 0;
 border-bottom:1px solid #dce6f1;
}
.login-control-row:last-child {border-bottom:0}
@media(max-width:620px){#value-service-form .value-work-types{grid-template-columns:minmax(0,1fr)}}
@media(min-width:621px){#value-service-form .value-work-types{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the closeout actions inside the same surface as the project summary. */
#page .personal-table .personal-actions-row:has(.project-closeout-line)>td {
 padding-top:0!important;
 border-top:0;
}
#project-results .personal-table .project-closeout-line {
 position:sticky;
 left:12px;
 width:min(100%,calc(100cqw - 28px))!important;
 max-width:100%;
}
#page .project-closeout-line {
 border-top:1px solid rgba(126,155,187,.27);
 padding-block:8px 2px;
 gap:6px 14px;
 flex-flow:row wrap;
 align-items:center;
}
#page .project-closeout-line .closeout-hint {color:#4b6178}
#page .project-closeout-line>.work-actions {margin:0;flex:0 1 auto}
#page .project-closeout-line .work-actions .action-acceptance {
 background:#e9f3fe;
 border-color:#a9c6e1;
}
@media(max-width:760px) {
 #page .project-closeout-line {align-items:flex-start;flex-direction:column}
}

#matter-handle-form [hidden] {display:none!important}
.notice-focus {
 --focus-ink:#1f5287;
 --focus-fill:#eff6ff;
 --focus-edge:#c6d9ee;
 margin:10px 0 14px;
 padding:11px 14px;
 border:1px solid var(--focus-edge);
 border-radius:12px;
 background:var(--focus-fill);
 overflow-wrap:anywhere;
}
.notice-focus[data-tone="urge"] {
 --focus-ink:#893c20;
 --focus-fill:#fff3ea;
 --focus-edge:#edc8b2;
}
.notice-focus-label,.notice-focus-main {display:block;color:var(--focus-ink)}
.notice-focus-label {font-size:12px;font-weight:650;margin-bottom:3px}
.notice-focus-main {font-size:14px;line-height:1.6;white-space:pre-wrap}
.notice-focus-note {margin:5px 0 0;color:#495d73;line-height:1.55;white-space:pre-wrap}
.notice-focus-list>.notice-focus {margin:0}
.notice-focus-list>.notice-focus + .notice-focus {margin-top:7px}
.notice-focus-list {margin:0 0 14px}

.project-copy-under {display:block;margin:4px auto 0;white-space:nowrap}
.project-copy-people {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));
 gap:6px 14px;margin:10px 0;padding:0;border:0;max-height:15rem;overflow:auto
}
.project-copy-people label {display:flex;align-items:center;gap:7px;padding:3px 1px;overflow-wrap:anywhere}
.project-copy-people input {flex:none;width:auto}

.upload-filename-review { border-color: #8eb1d4; background: #f1f7fe; }
.upload-filename-review .upload-issues-heading { color: #194b76; }
.upload-filename-review .upload-issues-note { color: #304e6c; }

.order-allocation { margin: 8px 0 12px; color: #304e6c; background: #edf6ff; border-color: #c6d9ed; }
.order-allocation strong { font-size: 14px; }
.order-allocation p { margin: 4px 0 0; font-size: 13px; }

#detail .detail-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#detail .detail-action-row > :is(button, a),
#detail .dialog-top-actions > :is(button, a) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin: 0;
  flex: 0 0 auto;
}
#detail .detail-action-row > .download-action svg { width: 16px; height: 16px; }
#detail .detail-action-row > .download-action.compact span { font-weight: 600; }

/* Keep work visible on small screens while preserving the desktop controls. */
.list-filter-layout{margin:8px 0 12px;min-width:0}
.list-search-row{display:flex;align-items:center;gap:8px;min-width:0}
.list-search-row input{min-width:0;max-width:420px;width:100%}
.list-filter-toggle{display:none}
.list-filter-extra .category-tabs{margin:8px 0}
.list-filter-extra .filters{margin:8px 0}
.project-more-actions{position:relative}
.project-more-actions>summary{display:flex;align-items:center;justify-content:center;min-height:36px;padding:5px 11px;cursor:pointer;list-style:none;border:1px solid #bed0e4;border-radius:999px;background:#f8fbff;color:#274b70;white-space:nowrap}
.project-more-actions>summary::-webkit-details-marker{display:none}
.project-more-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:10;display:grid;gap:6px;padding:8px;min-width:148px;border:1px solid #cddbeb;border-radius:12px;background:#f8fbff;box-shadow:0 5px 18px #213b5b22}
.project-more-menu>span{font-size:12px;text-align:center}
.project-more-menu>button{width:100%;min-height:38px}
#detail .project-dialog-head:has(.project-more-actions[open]){z-index:11}
.project-milestones-detail .milestone-track{flex-wrap:wrap;overflow:visible}
.order-upload-panel .drop{min-height:0;padding:18px 14px}
.order-template-link{margin-top:10px;display:flex;justify-content:center}
.order-template-link .download-action{min-height:44px;padding:6px 12px}
#page .order-types button{min-width:0;min-height:44px;padding:8px 14px}
.acceptance-preview-head>div:first-child{min-width:0}
.acceptance-preview-head h2{overflow-wrap:anywhere}
.acceptance-preview-details summary,.acceptance-legend-details summary{cursor:pointer;color:#345778;min-height:36px;padding:6px 0}
.acceptance-preview-details .acceptance-preview-grid{margin-top:3px}
.acceptance-next-label{margin:6px 0 0;color:#3d5874}
.acceptance-overview .project-overview-heading{flex-wrap:wrap;justify-content:flex-start}
.acceptance-overview .project-overview-heading h3{margin-right:auto}
.acceptance-item{scroll-margin-top:14px}
@media(max-width:760px){
 .layout>.sidebar{padding:8px 12px 6px;gap:4px}
 .layout>.sidebar .brand{align-self:flex-start;width:auto;min-height:36px;padding:2px 7px}
 .layout>.sidebar .brand small{display:none}
 .layout>.sidebar .mobile-navigation>button,.layout>.sidebar .mobile-more>summary{min-height:44px}
 .layout>main>.top{min-height:0;flex-wrap:nowrap;gap:6px;margin:0 0 14px;padding:3px 0 6px}
 .layout>main>.top .top-actions{width:auto;flex-shrink:0}
 .layout>main>.top .current-person{flex:1 1 auto;overflow:hidden}
 .layout>main>.top .person-context,.layout>main>.top #header-home{display:none}
 .layout>main>.top .identity-caption{display:block;min-width:0}
 .layout>main>.top .identity-name-button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .layout>main>.top :is(.top-actions>button,.identity-name-button){min-height:44px}
 .layout>main>.top .top-actions button{padding:5px 8px;font-size:12px}
 .list-filter-toggle{display:inline-flex;align-items:center;white-space:nowrap}
 .list-search-row :is(input,button){min-height:44px}
 .list-filter-layout:has(.list-filter-toggle[aria-expanded="false"]) .list-filter-extra{display:none}
 .list-filter-extra .filters>*{min-width:0}
 #page .queue-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0;gap:6px}
 #page .queue-tabs button{min-height:44px;padding:6px;gap:2px;justify-content:center;white-space:nowrap;font-size:12px}
 #page .queue-tabs button strong{font-size:14px}
 .notice-sections>button{min-height:44px}
 .management-purpose{padding:4px 0;border:0;background:transparent;box-shadow:none;flex-direction:row;align-items:center;margin-bottom:7px}
 .management-purpose>div{display:none}
 #page .order-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #page .order-types button{padding:6px 4px}
 .order-upload-panel .drop{padding:13px 10px}
 #detail .project-dialog-head .dialog-top-actions{gap:5px}
 #detail .project-dialog-head .dialog-top-actions>button,.project-more-actions>summary{min-height:44px}
 .project-more-menu .action-notice{white-space:normal}
 #detail .project-milestones-detail .milestone-group{gap:2px}
 #detail .project-milestones-detail .milestone-mark{padding:3px 2px;min-height:34px;font-size:11px}
 #detail .project-milestones-detail .milestone-icon{width:9px;height:9px}
 .acceptance-preview-head h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .acceptance-preview-details summary,.acceptance-legend-details summary,.acceptance-next-action{min-height:44px}
 .acceptance-item{scroll-margin-top:8px}
 #page .home-dashboard{gap:8px}
 #page .home-card-heading{margin-bottom:5px}
 #page .home-section-kicker{display:none}
 #page .home-responsibility p{margin-top:4px}
 #page .home-glass-card{padding:11px 12px}
 #page .home-project-stat{min-height:56px}
 #page .home-calendar .calendar-compact-popover,.personnel-calendar .calendar-compact-popover{position:static;width:100%;min-width:0;max-height:none;margin-top:8px;box-shadow:none}
 #page .home-calendar .calendar-event span,#page .home-calendar .calendar-event code{display:none}
 #page .home-calendar .calendar-event{min-height:4px;height:4px;padding:0;margin:2px 3px}
 #page .home-calendar .calendar-event-range{display:none}
 #page .home-calendar .calendar-day{min-height:36px}
 #page button.account-feature-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-height:76px;padding:12px;gap:3px 10px}
 .account-feature-card>strong,.account-feature-card>.account-feature-description,.account-feature-card>.account-status-summary{grid-column:2}
 .account-feature-card>.account-feature-icon{grid-column:1;grid-row:1/span 2}
 .account-feature-card>.account-feature-arrow{display:none}
 #page .personal-overview:not(.compact-overview){grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #page .personal-overview:not(.compact-overview) .overview-card{display:flex;min-height:72px;padding:8px;gap:4px}
 #page .personal-overview:not(.compact-overview) :is(.overview-card small,.overview-arrow){display:none}
}

@media(max-width:760px){
 #staff-work-board:not(:has(.inline-error)){display:none}
 #staff-work-summary .sw-help{display:none}
 .sw-current-list summary{min-height:44px;padding:9px 0}
 #page .sw-week-nav{margin-bottom:8px}
 .sw-week-nav>.sw-jump{flex:1 1 100%}
}
