/* Real workspace sections, scoped to avoid altering production v1. */
/* Keep long task names within the page; only boards and time tracks may pan. */
body[data-interface=emerald] :is(.content,.shell,main,.task-information,.task-start-panel){min-width:0}
body[data-interface=emerald] :is(.content,.shell) :is(h1,h2,h3,.description,.linked-task-list a){overflow-wrap:anywhere}
body[data-interface=emerald] :is(.grid,.task-grid)>*{min-width:0;max-width:100%}
body[data-interface=emerald] :is(.task-card,.candidate,.plan-row) :is(h3,.task-title,.meta){min-width:0;overflow-wrap:anywhere}
body:has(.wa-manager[open]) .m-beam>i{animation-play-state:paused}
[hidden]{display:none!important}
body[data-interface=emerald]{--workspace-line:var(--line,#dce6e1);--workspace-muted:var(--muted,#71847b)}
.workspace-tabs,.team-status-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 22px;border-bottom:1px solid var(--workspace-line);padding:0 0 12px}
.workspace-tabs button,.team-status-tabs button{background:transparent;border:0;border-radius:10px;padding:11px 15px;color:var(--workspace-muted);font-weight:600}
.workspace-tabs .selected,.team-status-tabs .selected{background:var(--tint,#e3f1e9);color:var(--green,#087f5b)}
.shift-check{display:flex!important;align-items:center;gap:10px;font-size:14px;font-weight:600;margin:14px 0;min-height:30px}
.shift-check input[type=checkbox]{width:18px!important;height:18px!important;flex:none;accent-color:#087f5b;margin:0!important}
.presence-caption{display:block;color:var(--workspace-muted);font-size:12px;margin-bottom:8px}
.person-list,.settings-list{border:1px solid var(--workspace-line);border-radius:20px;overflow:hidden;background:var(--surface,#fff)}
.person-row{display:grid;grid-template-columns:minmax(210px,1.05fr) minmax(220px,1.2fr) minmax(160px,.85fr) 40px;align-items:center;gap:22px;padding:23px 25px;border-bottom:1px solid var(--workspace-line)}
.person-row:last-child,.settings-row:last-child{border-bottom:0}
.person-open{display:flex;align-items:center;gap:14px;color:inherit;text-align:left;background:none!important;border:0!important;padding:0!important;min-width:0}
.person-open strong{display:block;font-size:16px;line-height:1.4}
.person-open small,.person-current small,.person-presence small{display:block;font-size:12px;line-height:1.6;color:var(--workspace-muted)}
.person-current{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}.person-current strong{line-height:1.4;font-size:14px;overflow-wrap:anywhere}
.presence-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;border-radius:7px;padding:6px 9px;background:var(--soft,#f2f5f3);color:var(--workspace-muted)}
.presence-badge:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.presence-badge.inside{background:var(--tint,#e4f3eb);color:var(--strong,#177750)}.presence-badge.outside{background:var(--soft,#f3f4f3)}
.person-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.person-detail-grid>section{min-width:0}.person-detail-grid aside{align-self:start}
.v2-person-dialog{width:min(1020px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--workspace-line);border-radius:24px;color:inherit;background:var(--surface,#fff)}
.v2-person-dialog .dialog-head{padding:23px 28px;border-bottom:1px solid var(--workspace-line);margin:0;display:flex;align-items:flex-start;justify-content:space-between}
.person-detail-scroll{padding:28px;overflow:auto;max-height:calc(100dvh - 180px);overscroll-behavior:contain;touch-action:pan-y}
.person-detail-grid h3{font-size:18px;margin:0 0 18px}.person-detail-grid .event-list{margin-bottom:32px}.person-day{margin-bottom:20px}.person-day h4{color:var(--workspace-muted);font-size:13px}
.event-row{display:grid;grid-template-columns:115px minmax(0,1fr);gap:20px;padding:16px 0;border-bottom:1px solid var(--workspace-line);line-height:1.5}.event-row time{font-size:12px;color:var(--workspace-muted)}.event-row time small{display:block}.event-row p{font-size:13px;color:var(--workspace-muted);margin:5px 0}.event-row strong{font-size:14px}
.person-passages{margin:20px 0}.person-passages dt{font-size:12px;color:var(--workspace-muted);margin-top:15px}.person-passages dd{margin:5px 0;font-size:14px;line-height:1.5}
body[data-page=settings] .content{max-width:1480px!important;margin:0 auto;padding:32px!important}.settings-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:35px;align-items:start}.settings-workspace #settings-tabs{display:flex;flex-direction:column;align-items:stretch;gap:5px;position:sticky;top:100px;margin:0;background:var(--surface,#fff);border:1px solid var(--workspace-line);border-radius:18px;padding:14px}
#settings-tabs button,#settings-tabs a{background:transparent;color:var(--workspace-muted);border:0;border-radius:9px;text-align:left;padding:11px 13px;font-size:14px;font-weight:500;line-height:1.4}#settings-tabs .selected{background:var(--tint,#e3f1e9);color:var(--green,#087f5b);font-weight:700}#settings-tabs .nav-label{font-size:10px;margin:13px 10px 5px;padding:0;color:var(--workspace-muted)}
#settings-content{min-width:0}#settings-content>.section-heading{margin-bottom:18px}#settings-content #settings-search,#settings-content #employee-search{margin-bottom:18px;max-width:460px;width:100%}
.settings-row{padding:25px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--workspace-line)}.settings-row>div{min-width:0}.settings-row h3{font-size:17px;margin:0 0 8px;line-height:1.4}.settings-row p{margin:8px 0;line-height:1.6;max-width:800px}.settings-row>.secondary{flex:none}.settings-row-meta{display:flex;gap:20px;font-size:13px;color:var(--workspace-muted);flex-wrap:wrap}.settings-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.type-dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:10px}
#editor-dialog.settings-dialog{padding:0!important;width:min(850px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);border-radius:22px;color:inherit;background:var(--surface,#fff)}
#editor-form{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}#editor-form .dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--workspace-line);padding:22px 26px;flex:none;gap:20px;margin:0}#editor-title{font-size:22px;margin:0}#editor-form .settings-editor-scroll{padding:25px 27px;overflow:auto;min-height:0;overscroll-behavior:contain;touch-action:pan-y}#editor-form .settings-editor-footer{display:flex;align-items:center;justify-content:space-between;padding:18px 26px;border-top:1px solid var(--workspace-line);background:var(--surface,#fff);flex:none;gap:16px}.settings-editor-footer span{font-size:12px;color:var(--workspace-muted)}
#editor-body .field{margin:0 0 20px}#editor-body h3{margin:25px 0 13px;font-size:17px}#editor-body .check-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:230px;overflow:auto;background:var(--soft,#f5f8f6);padding:14px;border:1px solid var(--workspace-line);border-radius:12px}#editor-body .check-option{display:flex;align-items:flex-start;gap:10px;margin:0;padding:8px;font-size:13px;line-height:1.5;min-width:0}#editor-body .check-option input{width:17px!important;height:17px!important;flex:none;margin:2px 0!important}.question-row{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:16px;padding:18px 0;border-bottom:1px solid var(--workspace-line)}.question-options{display:flex;align-items:center;gap:6px;font-size:12px}.question-options input{width:16px!important;height:16px!important}
.presence-mapping{display:grid;grid-template-columns:minmax(170px,1fr) minmax(200px,1.2fr);align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--workspace-line)}.presence-mapping small{font-size:11px;font-weight:400;color:var(--workspace-muted)}.presence-mapping button{grid-column:2;justify-self:start;font-size:11px;padding:6px 10px}.presence-mapping select{width:100%;min-width:0}.settings-save-bar{position:sticky;bottom:0;display:flex;gap:15px;justify-content:space-between;align-items:center;padding:17px 0;background:var(--surface,#fff)}
/* Reports are a workbench with readable answers and visible work context. */
body:has(#report-list) .shell{max-width:1450px!important}.report-tabs{gap:5px;flex-wrap:wrap}.report-draft-link{padding:12px;color:var(--green,#087f5b);font-size:14px;font-weight:600}.report-entry{padding:12px 23px!important;border-bottom:1px solid var(--workspace-line)}.report-entry .report-row{padding:15px 0!important;border:0!important;border-radius:0!important}.report-entry>.secondary{margin:0 12px 12px 0}.report-row h3{font-size:16px;line-height:1.5}.report-row p{max-width:520px;line-height:1.5}.report-row .secondary-info small{margin-top:7px}
body:has(#report-list) #detail-dialog{width:min(1280px,calc(100vw - 32px))!important;max-width:none!important;height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important;display:none;border-radius:22px;color:inherit;background:var(--surface,#fff)}body:has(#report-list) #detail-dialog[open]{display:flex;flex-direction:column}body:has(#report-list) #detail-dialog .dialog-head{padding:22px 28px!important;margin:0!important;flex:none;border-bottom:1px solid var(--workspace-line)}body:has(#report-list) #detail-title{font-size:23px!important;line-height:1.4}body:has(#report-list) #detail-body.report-detail-columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:0 30px;overflow:auto;min-height:0;padding:26px 30px;overscroll-behavior:contain;touch-action:pan-y}.report-detail-main{grid-column:1;min-width:0}.report-detail-main:first-child{grid-row:1}.report-detail-aside{grid-column:2;grid-row:1/span 2;align-self:start;padding:23px;background:var(--soft,#f5f8f6);border-radius:16px;border:1px solid var(--workspace-line)}.report-detail-history{grid-column:1/span 2}body:has(#report-list) #detail-body .meta-grid{display:block!important;grid-template-columns:none!important}body:has(#report-list) #detail-body .meta-box{background:transparent!important;padding:14px 0!important;border:0!important;border-bottom:1px solid var(--workspace-line);border-radius:0!important}body:has(#report-list) #detail-body .meta-box span{font-size:12px;display:block;margin-bottom:5px;color:var(--workspace-muted)}body:has(#report-list) #detail-body .question{align-items:start;border-bottom:1px solid var(--workspace-line);padding:20px 0!important}.question textarea{width:100%;min-height:88px;padding:14px!important;line-height:1.6!important;font-size:15px!important;resize:vertical}.question textarea[readonly]{border:0!important;background:transparent!important;padding:12px 0!important;resize:none}.question label b{font-size:14px;line-height:1.5}body:has(#report-list) #detail-body .history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body:has(#report-list) #detail-body .history article{padding:16px;border:1px solid var(--workspace-line);border-radius:12px;line-height:1.5}.report-detail-main .section:first-of-type{padding-top:0}
/* Feedback uses the prototype's focused tabs and full-size review window. */
body:has(#requests) main{max-width:1450px!important}body:has(#requests) .hero{margin-bottom:15px!important}body:has(#requests) .hero h1{font-size:30px!important}.workspace-tabs{margin-top:25px}body:has(#requests) .stats button.stat{text-align:left;display:block;background:var(--surface,#fff);color:inherit;border:1px solid var(--workspace-line);padding:22px;border-radius:16px;font-weight:400}body:has(#requests) .stat strong{display:block;font-size:28px;margin-top:10px;color:var(--green,#087f5b)}body:has(#requests) .stat span{font-size:13px;color:var(--workspace-muted)}body:has(#requests) #health{font-size:12px;max-height:44px;overflow:auto}body:has(#requests) .request{padding:23px;border:1px solid var(--workspace-line);border-radius:15px;margin:14px 0;background:var(--surface,#fff)}body:has(#requests) .request h3{font-size:17px;line-height:1.5;margin:12px 0 5px}body:has(#requests) .excerpt{font-size:15px;line-height:1.7;white-space:pre-wrap}.workspace-tabs button{cursor:pointer}
body:has(#requests) dialog{width:min(1000px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 32px)!important;padding:26px!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y;background:var(--surface,#fff);color:inherit;border-radius:22px}body:has(#requests) #review-form,body:has(#requests) #settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}body:has(#requests) #review-form>div,body:has(#requests) #review-form>p,body:has(#requests) #review-form>.primary,body:has(#requests) #settings-form>div,body:has(#requests) #settings-form>p,body:has(#requests) #settings-form>.primary{grid-column:1/span 2}body:has(#requests) dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin:0!important}body:has(#requests) dialog label.check{flex-direction:row;align-items:center}body:has(#requests) dialog label.check input{width:18px!important;flex:none}.timeline-shift-filter{align-self:end;font-size:13px;white-space:nowrap}
@media(max-width:1050px){.person-row{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 150px 32px;gap:13px;padding:20px 18px}.settings-workspace{grid-template-columns:185px minmax(0,1fr);gap:22px}.settings-row{padding:20px;align-items:flex-start}.person-detail-grid{grid-template-columns:minmax(0,1fr) 230px}body:has(#report-list) #detail-body.report-detail-columns{grid-template-columns:minmax(0,1fr) 240px;gap:20px;padding:20px}.settings-row-meta{gap:8px 15px}}
@media(max-width:700px){body[data-page=settings] .content{padding:20px 16px 90px!important}.settings-workspace{display:block}.settings-workspace #settings-tabs{position:static;flex-direction:row;overflow:auto;flex-wrap:nowrap;border:0;padding:0;background:transparent;margin-bottom:25px;border-radius:0}.settings-workspace #settings-tabs button,.settings-workspace #settings-tabs a{white-space:nowrap;flex:none}.settings-workspace #settings-tabs .nav-label{display:none}.settings-row{display:block;padding:20px}.settings-row>.secondary,.settings-row>.actions{margin-top:15px}.settings-row-meta{font-size:12px}.settings-editor-footer span{display:none}#editor-body .check-options{grid-template-columns:1fr}.question-row{grid-template-columns:1fr}.question-row>div:last-child{display:flex;justify-content:space-between;align-items:center}.presence-mapping{grid-template-columns:1fr}.presence-mapping button{grid-column:1}.settings-save-bar{padding:15px;bottom:0}.settings-save-bar .primary{width:100%}.person-row{grid-template-columns:minmax(0,1fr) 35px;gap:15px;padding:20px}.person-open{grid-column:1}.person-row>.round-action{grid-column:2;grid-row:1}.person-current{grid-column:1/span 2}.person-presence{grid-column:1/span 2}.team-filter-bar{flex-wrap:wrap}.team-filter-bar select,.team-filter-bar input{width:100%}.v2-person-dialog{width:calc(100vw - 16px);border-radius:18px;max-height:calc(100dvh - 16px)}.person-detail-scroll{padding:20px;max-height:calc(100dvh - 150px)}.person-detail-grid{display:flex;flex-direction:column-reverse;gap:25px}.person-detail-grid aside{width:100%;box-sizing:border-box}.event-row{grid-template-columns:80px minmax(0,1fr);gap:15px}.report-entry{padding:10px 15px!important}.report-row .secondary-info{font-size:12px}body:has(#report-list) #detail-dialog{width:calc(100vw - 12px)!important;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)!important;border-radius:16px}body:has(#report-list) #detail-dialog .dialog-head{padding:18px!important}body:has(#report-list) #detail-title{font-size:19px!important}body:has(#report-list) #detail-body.report-detail-columns{display:flex;flex-direction:column;padding:18px}.report-detail-aside{order:0;padding:16px;align-self:stretch;width:100%;min-width:0;box-sizing:border-box}body:has(#report-list) #detail-body .report-detail-aside .meta-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 15px}.report-detail-history .history{grid-template-columns:1fr!important}.report-detail-aside h3{font-size:16px;margin:0}body:has(#requests) #review-form,body:has(#requests) #settings-form{display:flex;flex-direction:column}body:has(#requests) dialog{padding:20px!important}.workspace-tabs,.team-status-tabs{flex-wrap:nowrap;overflow:auto;white-space:nowrap}.workspace-tabs>*{flex:none}body:has(#requests) .hero h1{font-size:26px!important}}

@media(max-width:700px){.team-status-tabs>*{flex:0 0 auto;white-space:nowrap}.team-status-tabs button{white-space:nowrap}.team-status-tabs a{padding:11px 15px}.presence-mapping>div{min-width:0}.presence-mapping>div input{width:100%;margin-bottom:8px}}
.settings-workspace #settings-tabs button{text-align:left!important}.presence-mapping>div input{width:100%;margin-bottom:7px}.settings-row .meta{overflow-wrap:anywhere}.settings-list>.panel-empty{padding:20px}

.feedback-people-select{font-weight:400;min-width:0}.feedback-people-select>input{width:100%;margin:4px 0}.feedback-selected{display:block;margin:8px 0;color:var(--workspace-muted)}.feedback-people-options{max-height:210px;overflow:auto;border:1px solid var(--workspace-line);border-radius:12px;padding:8px}.feedback-people-options label{display:flex!important;flex-direction:row!important;align-items:start;gap:9px;padding:8px;font-weight:400!important;font-size:12px!important;line-height:1.5}.feedback-people-options input{width:16px!important;height:16px!important;flex:none;margin:2px 0!important;accent-color:#087f5b}

body:has(#report-list) #detail-body .question{border:0!important;border-bottom:1px solid var(--workspace-line)!important;border-radius:0!important}body:has(#report-list) #detail-body .question textarea[readonly]{min-height:0!important}body:has(#report-list) #detail-dialog .dialog-head button.icon{display:flex;align-items:center;justify-content:center;border:1px solid var(--workspace-line);width:36px;height:36px;min-height:36px;padding:0;background:transparent;border-radius:50%;font-size:22px;line-height:1;flex:none}
.presence-rule{padding:16px 0;border-top:1px solid var(--line)}.presence-rule summary,.presence-extra summary{cursor:pointer;font-weight:650;padding:12px 0}.presence-rule-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.presence-checklist{max-height:250px;overflow:auto;padding:10px 0;display:grid;gap:6px}.presence-checklist label{padding:8px;display:flex;align-items:center;gap:10px}.presence-checklist label[hidden]{display:none}.presence-people-search{width:100%;margin:10px 0}.presence-directory-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px}.presence-directory-filters .field{min-width:0;margin:8px 0}.presence-directory-filters input,.presence-directory-filters select{width:100%;min-width:0}.presence-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px}.directory-person-row .person-open{text-align:left;min-width:0}.directory-person-row .person-current{display:flex;flex-direction:column;gap:8px}.directory-person-row .person-open small{overflow-wrap:anywhere}.presence-workspace #presence-source{margin:16px 0}.presence-periods{flex-wrap:wrap}.presence-workspace>section.card{padding:22px}.legacy-version-link{font:inherit;color:inherit;text-decoration:none;border:1px solid currentColor;border-radius:9px;padding:8px 12px;white-space:nowrap}
@media(max-width:850px){.presence-directory-filters,.presence-rule-columns{grid-template-columns:1fr 1fr}.directory-person-row .person-current{grid-column:1/-1}.directory-person-row .person-presence{grid-column:1/-1}.presence-pagination{gap:10px;margin:24px 0}}
@media(max-width:540px){.presence-directory-filters,.presence-rule-columns{grid-template-columns:1fr}.presence-workspace>section.card{padding:16px}.presence-periods button{flex:1}.presence-pagination{font-size:13px}.presence-workspace .section-heading{flex-wrap:wrap}}
@media(max-width:540px){.presence-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.presence-periods button{white-space:nowrap;word-break:normal;overflow-wrap:normal;padding:10px 12px}}
/* 1 October: prevent v1 button/card styles from leaking into compact v2 rows. */
body[data-interface=emerald] .person-open{justify-content:flex-start;align-items:center;text-align:left;min-height:0;white-space:normal;line-height:1.4}
.person-open>span:last-child{min-width:0;text-align:left}.person-open strong,.person-open small{text-align:left;margin:0}.person-row{min-height:116px}.person-presence{min-width:0}
.work-panel .panel-head{align-items:flex-start}.work-panel .panel-head h2{min-width:0}.work-panel .panel-head .text-link{flex:0 0 auto;white-space:nowrap}
body[data-interface=emerald] .work-panel .work-list-card{margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body[data-interface=emerald] .work-panel .work-list-card:last-child{border-bottom:0!important}
.work-list-labels{flex-wrap:wrap;gap:5px 10px}.work-list-labels>span{white-space:nowrap}.work-list-labels .pill{margin:0}.work-list-main h3{overflow-wrap:break-word}
body:has(#report-list) .summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:transparent;padding:0;margin:0 0 24px;border:0;box-shadow:none}
body:has(#report-list) .summary .metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:8px;padding:20px 23px;min-height:100px;background:var(--surface);border:1px solid var(--line);box-shadow:none;color:var(--ink);border-radius:17px;overflow-wrap:normal}
body:has(#report-list) .summary .metric.active{background:var(--tint);border-color:var(--green);color:var(--strong)}
body:has(#report-list) .summary .metric span{font-size:12px;color:var(--muted);line-height:1.45}body:has(#report-list) .summary .metric strong{font-size:28px;color:var(--strong);line-height:1.1;margin:0}
body:has(#report-list) .report-entry{margin:0!important;border-bottom:1px solid var(--line);border-radius:0}.report-summary,.employee-info{min-width:0}.report-summary h3{overflow-wrap:break-word}.report-kind-info,.report-status-info{min-width:0}
.day-navigation{display:flex;align-items:center;gap:8px}.day-navigation #previous-day,.day-navigation #next-day{width:38px;min-width:38px;padding:6px;flex:0 0 38px}.day-navigation #today{flex:1;white-space:nowrap}
.v2-title-controls{display:flex;align-items:center;gap:13px;min-width:0}.v2-title-controls>strong{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;min-width:36px;padding:0;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:10px;flex:none}.sidebar-toggle:hover{background:var(--tint);color:var(--strong)}
.tasks-loading{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:270px;padding:32px 20px;text-align:center;color:var(--muted)}.tasks-loading .v2-clock{width:54px;height:54px;color:var(--strong);margin-bottom:4px}.tasks-loading strong{font-size:15px;font-weight:600;color:var(--ink)}.tasks-loading>span{font-size:12px}.loading-lines{display:grid;gap:7px;width:min(230px,80%);margin-top:12px}.loading-lines i{height:7px;border-radius:5px;background:var(--tint)}.loading-lines i:nth-child(2){width:85%;justify-self:center}.loading-lines i:last-child{width:60%;justify-self:center}
@media(min-width:761px){body.sidebar-collapsed{--sidebar-width:78px}.sidebar-collapsed .design-sidebar{padding:28px 10px 18px}.sidebar-collapsed .design-logo{padding:0;justify-content:center}.sidebar-collapsed .design-logo>div,.sidebar-collapsed .design-sidebar nav a>span,.sidebar-collapsed .design-sidebar nav small,.sidebar-collapsed .design-sidebar .nav-label,.sidebar-collapsed .profile-button>span:nth-child(2),.sidebar-collapsed .profile-button>.icon{display:none}.sidebar-collapsed .design-sidebar nav{padding:0}.sidebar-collapsed .design-sidebar nav a{justify-content:center;padding:12px;gap:0}.sidebar-collapsed .profile-button{justify-content:center;padding:20px 0 5px}.sidebar-collapsed .profile-menu{width:240px;left:0;right:auto}.sidebar-collapsed .v2-sidebar-toggle .icon{transform:rotate(180deg)}}
@media(max-width:760px){.v2-title-controls{gap:0}.v2-title-controls>strong{font-size:14px}.sidebar-toggle{display:none}.design-mobile-dock .nav-report-count,#navigation .nav-report-count{display:none!important}
body[data-interface=emerald] .work-panel .work-list-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px!important;padding:18px 0!important;align-items:center}
.work-panel .work-list-main{min-width:0;flex:none}.work-panel .work-list-actions{display:flex;flex-direction:column;align-items:stretch;flex:none;max-width:none;width:auto;border:0;padding:0;margin:0;gap:7px}.work-panel .work-list-actions button{flex:none;width:auto;padding:8px 10px;min-height:34px;white-space:nowrap}.work-panel .work-list-card h3{font-size:14px;margin:7px 0;line-height:1.5}.work-panel .work-list-labels{font-size:10px}.work-panel .work-list-card .meta{font-size:11px}.work-panel .panel-head h2{font-size:20px}.work-panel .panel-head{gap:10px}.work-panel .panel-head .text-link{font-size:12px}
body:has(#report-list) .summary{gap:10px;margin-bottom:20px}body:has(#report-list) .summary .metric{padding:17px 15px;min-height:105px}body:has(#report-list) .summary .metric span{font-size:11px}body:has(#report-list) .summary .metric strong{font-size:25px}
body:has(#report-list) .report-tabs{gap:7px}body:has(#report-list) .report-tabs>*{min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}body:has(#report-list) .report-draft-link{padding:9px 10px;font-size:12px}
body:has(#report-list) .report-row{display:grid;grid-template-columns:minmax(0,1fr) 22px;gap:7px 10px;text-align:left;justify-items:start;align-items:start;padding:18px 0!important}
body:has(#report-list) .report-row .report-summary{grid-column:1;grid-row:1;max-width:100%;width:100%}body:has(#report-list) .report-row .employee-info{display:block!important;grid-column:1;grid-row:2;line-height:1.5}body:has(#report-list) .report-row .employee-info small{display:block;margin-top:2px}body:has(#report-list) .report-row .report-kind-info{display:flex!important;grid-column:1;grid-row:3;flex-wrap:wrap;gap:5px}body:has(#report-list) .report-row .report-status-info{display:flex!important;grid-column:1;grid-row:4;flex-wrap:wrap;align-items:center;gap:7px}body:has(#report-list) .report-row .open-mark{grid-column:2;grid-row:1/span 4;align-self:center;justify-self:end}body:has(#report-list) .report-row h3{font-size:15px;margin:0 0 5px;line-height:1.5}body:has(#report-list) .report-row p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.5}
body:has(#report-list) .report-entry>.secondary{margin:0 5px 12px 0!important;white-space:normal;font-size:11px}
.timeline-page .page-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}.timeline-page .page-filters .compact-field{min-width:0;width:auto;max-width:none;margin:0}.timeline-page .page-filters .timeline-shift-filter{grid-column:1/-1;margin:0}.timeline-page .page-filters .day-navigation{grid-column:1/-1;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;margin:0;width:100%}.timeline-page .day-navigation .btn{width:100%;max-width:none;min-width:0;min-height:38px;margin:0;flex:none}.tasks-loading{min-height:220px}}
@media(min-width:701px) and (max-width:1050px){.directory-person-row .person-current,.directory-person-row .person-presence{grid-column:auto}}
.sidebar-collapsed #v2-sidebar-toggle .icon{transform:rotate(180deg)}
body:has(#report-list) .employee-info small{display:block;margin-top:3px;line-height:1.45}
body:has(#report-list) .report-status-info{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
body:has(#report-list) .report-entry:last-child{border-bottom:0}
.presence-quick-filters{display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px}.presence-quick-filters .shift-check{margin:8px 0}.team-today-filter{margin:0 0 16px}

/* Compact task order and presence controls, shared by desktop and phone. */
body[data-view=tasks] .task-filters{padding:16px 18px}
body[data-view=tasks] .task-filter-controls{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;margin:0 0 12px}
body[data-view=tasks] .task-filter-controls .field{margin:0!important;min-width:0}
body[data-view=tasks] .task-filter-controls .field>span{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:5px}
body[data-view=tasks] .task-filter-controls select{width:100%;min-width:0;height:40px;padding:0 30px 0 11px;font-size:13px;background-color:var(--soft);border:1px solid var(--line);border-radius:10px}
body[data-view=tasks] .task-filters .search{margin:0;gap:8px}
body[data-view=tasks] .task-filters .search input{min-width:0;height:42px;font-size:13px}
body[data-view=tasks] .task-filters .search button{min-height:42px;padding:9px 17px}
body[data-view=tasks] .task-search-hint{font-size:11px;margin:9px 2px 0;color:var(--muted)}
.presence-quick-filters{gap:8px;margin:8px 0 12px;min-width:0}
.presence-chip,.presence-quick-filters .presence-chip{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-height:36px;margin:0;padding:7px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font:600 12px/1.4 Inter,'Segoe UI',sans-serif;white-space:nowrap;cursor:pointer;box-shadow:none;flex:0 0 auto}
.presence-chip input[type=checkbox]{width:14px!important;height:14px!important;min-width:14px;accent-color:var(--green);margin:0!important}
.presence-chip:has(input:checked),.presence-chip.selected{background:var(--tint);border-color:var(--green);color:var(--strong)}
.presence-chip:has(input:disabled){opacity:.55;cursor:default}
.presence-chip:focus-visible,.presence-chip:focus-within{outline:2px solid var(--green);outline-offset:2px}
.presence-caption:empty{display:none}
.team-presence-filters{margin:0 0 14px}
.timeline-shift-filter{align-self:end;gap:8px;margin:0}
.presence-workspace .presence-chip{margin:12px 0}
@media(min-width:761px){body[data-view=tasks] .task-filter-controls{margin-bottom:0}body[data-view=tasks] .task-filter-controls select{height:42px}}
@media(max-width:760px){body[data-view=tasks] .task-filters{padding:14px}body[data-view=tasks] .task-filter-controls{gap:9px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}body[data-view=tasks] .task-filter-controls select{font-size:12px;padding-left:9px;padding-right:23px}.presence-quick-filters{gap:7px}.presence-chip,.presence-quick-filters .presence-chip{padding:7px 9px;font-size:12px}.timeline-shift-filter{width:100%;margin:0 0 4px}}
.task-extra-fields{margin:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0}.task-extra-fields summary{cursor:pointer;color:var(--strong);font-size:14px;font-weight:600;min-height:30px;line-height:30px}.task-extra-fields .collapse-label,.task-extra-fields[open] .expand-label{display:none}.task-extra-fields[open] .collapse-label{display:inline}.task-extra-fields h3{font-size:15px;margin:20px 0 8px}.task-extra-fields .description{line-height:1.7}
/* Feedback content must shrink within the viewport; tables scroll locally. */
body[data-interface=emerald]:has(#requests){min-width:0;overflow-x:clip}body:has(#requests)>main{width:100%;min-width:0}body:has(#requests) .v2-title-controls{flex:1;min-width:0}body:has(#requests) .v2-top-actions{flex:none}
body:has(#requests) .hero{padding:10px 0;min-height:0;gap:16px}body:has(#requests) .hero>div{min-width:0}body:has(#requests) .stats{grid-template-columns:repeat(4,minmax(0,1fr))}body:has(#requests) .stats .stat{min-width:0;white-space:normal;overflow-wrap:break-word}body:has(#requests) .panel,body:has(#requests) .request,body:has(#requests) .request>div{min-width:0;max-width:100%}body:has(#requests) #notice,body:has(#requests) #health,body:has(#requests) .excerpt{overflow-wrap:anywhere}
body:has(#requests) #people,body:has(#requests) #usage-log,body:has(#requests) #deadline-list{max-width:100%;overflow-x:auto}body:has(#requests) .toolbar>label{min-width:0}body:has(#requests) input,body:has(#requests) select,body:has(#requests) textarea{min-width:0;max-width:100%}
@media(min-width:761px) and (max-width:1050px){body:has(#requests) .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body[data-interface=emerald]:has(#requests){padding-left:0!important;width:100%;max-width:100%}body:has(#requests)>main{padding:16px!important}body:has(#requests) .v2-topbar{width:100%;min-width:0;padding:0 12px}body:has(#requests) .v2-top-actions{gap:5px}body:has(#requests) .v2-title-controls>strong{font-size:12px}body:has(#requests) .v2-page-tools{padding:12px 16px}body:has(#requests) .hero{display:flex;flex-wrap:wrap;padding:4px 0;margin:0 0 18px!important}body:has(#requests) .hero h1{font-size:26px!important}body:has(#requests) .hero .eyebrow{font-size:9px;letter-spacing:1px}body:has(#requests) .hero button{font-size:12px}
body:has(#requests) .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:has(#requests) .stats button.stat{padding:17px 15px}body:has(#requests) .stat span{font-size:12px}body:has(#requests) .workspace-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:6px}body:has(#requests) .workspace-tabs button{min-width:0;white-space:normal;font-size:12px;padding:10px 8px;line-height:1.4}
body:has(#requests) .panel{padding:16px}body:has(#requests) .panel>.actions{flex-wrap:wrap;gap:10px}body:has(#requests) .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}body:has(#requests) .toolbar label{min-width:0;max-width:100%;font-size:12px}body:has(#requests) .toolbar label:has(#search){grid-column:1/-1}body:has(#requests) .toolbar input,body:has(#requests) .toolbar select{width:100%;font-size:13px}body:has(#requests) .request{grid-template-columns:minmax(0,1fr);padding:16px;margin:14px 0}body:has(#requests) .request h3{font-size:15px}body:has(#requests) .excerpt{padding:12px;font-size:13px}body:has(#requests) dialog .actions{flex-wrap:wrap}body:has(#requests) dialog .toolbar{grid-template-columns:minmax(0,1fr)}
}

.rework-link{display:flex;align-items:center;gap:12px;padding:14px 17px;margin:18px 0;border:1px solid var(--line,#d8dfda);border-radius:15px;background:var(--surface,#fff);color:var(--muted,#62766e);text-decoration:none}.rework-link>svg{width:22px;height:22px;flex:none}.rework-link>span{flex:1;min-width:0}.rework-link strong{display:block;font-size:14px;font-weight:600}.rework-link small{display:block;margin-top:3px;font-size:12px;line-height:1.4}.rework-link.has-rework{background:var(--tint,#e8f3ed);border-color:#25856960;color:var(--strong,#23624f)}.rework-link:hover{border-color:#25856980}.rework-reason{padding:16px;border:1px solid #25856960;border-radius:14px;background:var(--tint,#e8f3ed);margin-bottom:18px}.rework-reason p{white-space:pre-wrap}.rework-reason small{line-height:1.5}#incoming-card{color:var(--muted,#62766e)}#incoming-card.has-rework{border-color:#25856970!important;background:var(--tint,#e8f3ed)!important;color:var(--strong,#23624f)}

#incoming-card{display:flex!important;flex-direction:row;align-items:center;justify-content:center;gap:9px;padding:14px 18px!important}#incoming-card strong{font-size:22px!important}#incoming-card span{font-size:13px!important}.report-detail-main>.rework-reason{margin-bottom:18px}

/* Reports: a clean page heading and compact, quiet counters. */
body:has(#report-list) .shell>.topbar{display:block;padding:0!important;margin:0 0 22px!important;min-height:0;background:transparent!important;border:0;border-radius:0;box-shadow:none!important;color:var(--ink)}
body:has(#report-list) .shell>.topbar .eyebrow{display:none}
body:has(#report-list) .shell>.topbar h1{margin:0 0 7px;font-size:30px;line-height:1.2;color:var(--strong)}
body:has(#report-list) .shell>.topbar .subtitle{margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
body:has(#report-list) .summary{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
body:has(#report-list) .summary .metric{flex:0 1 auto;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:48px;padding:12px 16px!important;border-radius:12px}
body:has(#report-list) .summary .metric strong{font-size:20px!important;margin:0;line-height:1.2}
body:has(#report-list) .summary .metric span{font-size:13px!important;line-height:1.4}
body:has(#report-list) #incoming-card:not(.has-rework){background:var(--surface)!important;border-color:var(--line)!important;color:var(--muted)}
body:has(#report-list) #incoming-card:not(.has-rework) strong{color:var(--muted)}
body:has(#report-list) #incoming-card:not(.has-rework).active{box-shadow:inset 0 -2px var(--line)}
@media(max-width:760px){
body:has(#report-list) .shell>.topbar{margin-bottom:18px!important}
body:has(#report-list) .shell>.topbar h1{font-size:26px}
body:has(#report-list) .summary{gap:8px}
body:has(#report-list) .summary .metric{padding:10px 12px!important;min-height:44px;gap:7px}
body:has(#report-list) .summary .metric strong{font-size:18px!important}
body:has(#report-list) .summary .metric span{font-size:12px!important}
}

.reports-library-link{display:inline-flex;align-items:center;gap:8px;margin:4px 0 8px;text-decoration:none}.reports-library-link .icon{width:18px;height:18px}

.personal-report-section{margin-top:26px}.personal-report-section>.heading-row{display:flex;align-items:center;gap:10px;margin-bottom:14px}.personal-report-section h2{font-size:20px;margin:0}.report-personal-tabs{margin:14px 0}.report-personal-tabs .selected{background:var(--tint);border-color:var(--green);color:var(--strong)}

/* Report destinations share one compact, predictable navigation row. */
.report-destinations{display:flex;gap:4px;align-items:center;width:fit-content;max-width:100%;padding:5px;margin:0 0 24px;border:1px solid var(--line);background:var(--soft,var(--page));border-radius:16px}
.report-destinations a{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;color:var(--muted);border:1px solid transparent;border-radius:12px;text-decoration:none;font:inherit;font-size:13px;font-weight:600;white-space:nowrap}
.report-destinations a[aria-current=page]{background:var(--surface);color:var(--strong,var(--green));border-color:var(--line);box-shadow:0 2px 6px #173a2510}
.report-destinations a:hover{color:var(--strong,var(--green))}.report-destinations a:focus-visible{outline:2px solid var(--green);outline-offset:2px}.report-destinations svg{width:18px;height:18px;flex:none}
.home-summary{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.metrics:not(.manager-metrics){grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.metric-card[hidden],.design-status-tabs button[hidden]{display:none!important}
:root[data-theme=graphite] .timeline-card-head h2,:root[data-theme=graphite] .timeline-page select,:root[data-theme=graphite] .timeline-page input,:root[data-theme=graphite] .timeline-page select option{color:var(--ink,#e0eee7)}
:root[data-theme=graphite] .timeline-card-head h2{color:var(--strong,#84ddbc)}
@media(max-width:760px){.report-destinations{width:100%;margin-bottom:20px}.report-destinations a{flex:1;min-width:0;padding:10px;font-size:12px}.report-destinations svg{display:none}.home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics:not(.manager-metrics){grid-template-columns:repeat(2,minmax(0,1fr))}}
:root[data-theme=graphite] .timeline-page .day-navigation .btn,:root[data-theme=graphite] .timeline-page .view-tab,:root[data-theme=graphite] .v2-topbar #v2-header-buttons>button{background:var(--surface,#1b2c24);color:var(--ink,#e0eee7);border-color:var(--line,#30483b)}
:root[data-theme=graphite] .timeline-page .view-tab.active,:root[data-theme=graphite] .timeline-page .view-tab.selected{background:var(--tint,#224b3b);color:var(--strong,#84ddbc)}
@media(max-width:760px){.metrics:not(.manager-metrics)>.metric-card:nth-child(3):has(+[hidden]),.home-summary>div:nth-child(3):last-child{grid-column:1/-1}}

/* Report details: one scroll container, with a full-width mobile facts panel. */
body:has(#report-list) #detail-body.report-detail-columns{flex:1;overflow-x:hidden}
body:has(#report-list) #detail-dialog .dialog-head>div{min-width:0}
body:has(#report-list) #detail-title{overflow-wrap:anywhere}
body:has(#report-list) #detail-body .meta-box b,body:has(#report-list) #detail-body .meta-box a{line-height:1.5}
body:has(#report-list) #detail-body .question label{min-width:0}
body:has(#report-list) #detail-body .attachment>div{min-width:0;overflow-wrap:anywhere}
.timeline-page #detail-dialog{width:min(780px,calc(100vw - 24px));max-width:780px;max-height:calc(100dvh - 24px);padding:0;overflow:hidden;background:var(--surface);color:var(--ink)}
.timeline-page #detail-dialog[open]{display:flex;flex-direction:column}
.timeline-page #detail-dialog .dialog-head{flex:none;position:static;align-items:flex-start;gap:12px;background:var(--surface)}
.timeline-page #detail-dialog .dialog-head>div{min-width:0}
.timeline-page #detail-title{margin:6px 0 0;font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.timeline-page #detail-dialog #detail-body{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:20px 24px}
.timeline-page #detail-dialog .dialog-actions{flex:none;padding:14px 20px;background:var(--surface)}
.timeline-page #detail-dialog .detail-grid>div{min-width:0;overflow-wrap:anywhere;background:var(--soft);color:var(--ink);border-color:var(--line)}
@media(max-width:700px){
 body:has(#report-list) #detail-dialog{width:100%!important;max-width:100%!important;height:100dvh;max-height:100dvh!important;border-radius:0;border:0;margin:0}
 body:has(#report-list) #detail-dialog .dialog-head{padding:16px!important}
 body:has(#report-list) #detail-body.report-detail-columns{padding:16px;gap:16px}
 .report-detail-main,.report-detail-aside,.report-detail-history{flex:none;min-width:0;width:100%}
 .report-detail-main:first-child .status-line{margin:0}
 body:has(#report-list) #detail-body .report-detail-aside .meta-box{padding:10px 0!important}
 body:has(#report-list) #detail-body .report-detail-aside .meta-box span{font-size:10px;line-height:1.4;letter-spacing:.02em}
 body:has(#report-list) #detail-body .report-detail-aside .meta-box b,body:has(#report-list) #detail-body .report-detail-aside .meta-box a{font-size:12px}
 .report-detail-aside>.secondary{display:inline-flex;margin-top:10px;font-size:12px}
 body:has(#report-list) #detail-body .report-detail-history .history{grid-template-columns:minmax(0,1fr)!important}
 .timeline-page .timeline-grid{--person-width:128px}
 .timeline-page .person{padding:14px 10px!important;gap:0!important}
 .timeline-page .person>.design-avatar{display:none}
 .timeline-page .design-person-body{max-width:108px;min-width:0}
 .timeline-page .person-name{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 .timeline-page .person-head{font-size:9px;letter-spacing:0;padding:10px!important}
 .timeline-page .person-kpis{font-size:10px;line-height:1.5;display:grid;gap:2px}
 .timeline-page .design-person-status{font-size:10px;line-height:1.4}
 .timeline-page .timeline-scroll{max-height:65dvh;scrollbar-width:thin}
 .timeline-page #detail-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 .timeline-page #detail-dialog .dialog-head{padding:16px}
 .timeline-page #detail-dialog #detail-body{padding:16px;flex:1}
 .timeline-page #detail-dialog .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .timeline-page #detail-dialog .detail-grid>div{padding:10px}
 .timeline-page #detail-dialog .detail-grid dd{margin:5px 0 0;font-size:12px;line-height:1.5}
 .timeline-page #detail-dialog .dialog-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;gap:8px}
 .timeline-page #detail-dialog .dialog-actions .btn{flex:1 1 140px;min-width:0;min-height:42px;white-space:normal;font-size:12px;padding:10px}
}

body:has(#report-list) #detail-body .section{border-color:var(--workspace-line)}
body:has(#report-list) #detail-body .report-publication button.secondary{background:var(--surface,#fff)!important;color:var(--strong,#23624f)!important;border:1px solid var(--workspace-line)!important;border-radius:10px!important}
body:has(#report-list) #detail-dialog .dialog-head button.icon{color:var(--workspace-muted)}
/* Report form and report card: one clear next step on the phone. */
.v2-report-main input[type=file]{display:block;width:100%;min-width:0;padding:6px;font:inherit;font-size:13px;color:var(--muted);background:var(--soft);border:1px dashed var(--line);border-radius:12px;cursor:pointer}
.v2-report-main input[type=file]::file-selector-button{margin-right:12px;padding:9px 16px;font:inherit;font-size:13px;font-weight:600;color:var(--strong);background:var(--surface);border:1px solid var(--line);border-radius:100px;cursor:pointer}
.v2-report-main input[type=file]:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.v2-report-main>button.quiet[data-action=reload-report]{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:4px 0 0;padding:8px 12px;font-size:13px;font-weight:550;color:var(--strong)}
@media(min-width:761px) and (max-width:900px){.v2-report-main>.actions{bottom:16px}}
@media(max-width:760px){
.v2-report-main>.actions{bottom:calc(80px + env(safe-area-inset-bottom));margin-bottom:16px}
.android-app .v2-report-main>.actions{bottom:calc(80px + var(--app-bottom))}
.v2-report-main>.actions::after{content:"";position:absolute;left:-1px;right:-1px;top:100%;height:16px;background:var(--page);pointer-events:none}
.v2-report-main>.actions button{font-size:12px}
}
@media(max-width:380px){.v2-report-main>.actions button{font-size:11px;padding:10px 8px}}
body:has(#report-list) #detail-body .submit-box{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
body:has(#report-list) #detail-body .submit-box h3{margin-top:0}
body:has(#report-list) #detail-body .submit-box .actions{justify-content:flex-end}
body:has(#report-list) #detail-body .question textarea,body:has(#report-list) #detail-body .edit-field :is(input,textarea,select){background:var(--surface);color:var(--ink)}
[data-theme=graphite] body:has(#report-list) #detail-body .return-box{background:#2b281b;border-color:#5a4b2a}
/* reports.css paints the return message with !important; only the dark surface is replaced. */
[data-theme=graphite] body:has(#report-list) #detail-body .history article.message{background:#2b281b!important;border-color:#5a4b2a;border-left-color:#c99a4a!important}
@media(max-width:700px){
body:has(#report-list) #detail-body.needs-action>.report-detail-aside{order:1}
body:has(#report-list) #detail-body.needs-action>.report-detail-history{order:2}
body:has(#report-list) #detail-body .submit-box .actions button{width:100%}
}
/* Reports journal on phones: one scrollable row of kinds; the kind select duplicates those tabs. */
@media(max-width:760px){
body:has(#report-list) .report-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding-bottom:2px}
body:has(#report-list) .report-tabs::-webkit-scrollbar{display:none}
body:has(#report-list) .report-tabs>*{flex:none;white-space:nowrap}
body:has(#report-list) .filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 10px;padding:14px!important;margin-bottom:14px}
body:has(#report-list) .filters>*{max-width:none;min-width:0}
body:has(#report-list) .filters>label:first-child{grid-column:1/-1}
body:has(#report-list) .filters>label:has(#kind-filter){display:none}
body:has(#report-list) .filters:has(#employee-field[hidden])>label:has(#state-filter){grid-column:1/-1}
body:has(#report-list) .filters label{gap:4px}
body:has(#report-list) .list-card{padding:2px 16px 10px!important}
body:has(#report-list) .list-head{padding:14px 0!important;margin:0!important}
}
/* Timeline on phones: the grid starts sooner. */
@media(max-width:760px){
.timeline-page .view-tabs{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;margin-bottom:14px}
.timeline-page .view-tabs::-webkit-scrollbar{display:none}
.timeline-page .view-tabs>*{flex:none;white-space:nowrap}
.timeline-page .metrics{gap:8px!important;margin-bottom:14px}
.timeline-page .metric-card{padding:12px 14px!important;min-height:0!important;border-radius:14px}
.timeline-page .metric-card strong{font-size:20px!important;line-height:1.25}
.timeline-page .metric-card small{font-size:12px!important;line-height:1.4}
.timeline-page .metric-card .metric-icon{display:none}
}

/* Foldable / compact workspace: width, not device identity or aspect ratio, owns navigation.
   Keep the desktop collapse preference intact when the display changes while open. */
@media (max-width:1024px) {
 body[data-interface=emerald],body[data-interface=emerald].sidebar-collapsed {
  --sidebar-width:0px;padding-left:0!important;
  padding-bottom:calc(78px + env(safe-area-inset-bottom));
 }
 body[data-interface=emerald] .design-sidebar,
 body[data-interface=emerald] .sidebar-toggle {display:none}
 body[data-interface=emerald] .v2-topbar {height:62px;min-height:62px;width:100%;padding:0 16px;gap:12px}
 body[data-interface=emerald] .v2-title-controls {flex:1;min-width:0;gap:0}
 body[data-interface=emerald] .v2-top-actions {flex:none;gap:6px}
 body[data-interface=emerald] .search-trigger {width:38px;min-width:38px;height:38px;padding:0;justify-content:center;border:0;background:transparent}
 body[data-interface=emerald] .search-trigger :is(span,kbd) {display:none}
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) {
  display:flex;position:fixed;inset:auto 0 0;background:var(--surface);
  border-top:1px solid var(--line);padding:7px 6px calc(7px + env(safe-area-inset-bottom));
  gap:2px;z-index:35;align-items:stretch;justify-content:space-evenly;
 }
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) :is(a,button) {
  display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;width:auto;min-width:0;max-width:none;min-height:50px;padding:5px 2px;
  text-decoration:none;border:0;background:transparent;border-radius:8px;color:var(--muted);
 }
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) span {font-size:11px;line-height:1.25;text-align:center;font-weight:550}
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) :is(.current,.selected) {color:var(--strong);background:transparent}
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) svg {width:22px;height:22px}
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) .nav-report-count {display:none!important}
 body[data-interface=emerald] :is(.content,.shell,.timeline-shell) {padding-left:16px;padding-right:16px;max-width:100%}
 body[data-interface=emerald] .home-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 body[data-interface=emerald] .home-summary>div {min-width:0;padding:16px 20px}
 body[data-interface=emerald] .home-summary>div:nth-child(-n+2) {border-bottom:1px solid var(--line)}
 body[data-interface=emerald] .home-summary>div:nth-child(2) {border-right:0}
 body[data-interface=emerald] .v2-feedback {bottom:calc(85px + env(safe-area-inset-bottom));left:50%;width:calc(100vw - 28px);max-width:480px}
 .android-app body[data-interface=emerald] {padding-bottom:calc(78px + var(--app-bottom,0px))!important}
 .android-app body[data-interface=emerald] :is(.design-mobile-dock,#navigation) {padding-bottom:calc(7px + var(--app-bottom,0px))!important;bottom:0!important;border-radius:0!important}
 .android-keyboard body[data-interface=emerald] :is(.design-mobile-dock,#navigation) {display:none!important}
 .android-keyboard body[data-interface=emerald] {padding-bottom:0!important}
}
/* The toolbar may be compact even on a wide but short unfolded screen. */
@media (min-width:761px) and (max-width:1024px) {
 body[data-interface=emerald] .person-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:12px}
 body[data-interface=emerald] .person-row .person-presence {grid-column:2;grid-row:2}
 body[data-interface=emerald] .person-row>.round-action {grid-column:3;grid-row:1/span 2}
 body[data-interface=emerald] .settings-workspace {grid-template-columns:180px minmax(0,1fr)}
}

/* Labels must remain inside their own equal-width cell, including WebView text scaling. */
@media (max-width:1024px) {
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) > :is(a,button) {flex:1 1 0;box-sizing:border-box;overflow:hidden;justify-content:flex-start}
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) > :is(a,button) > span {display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
 body[data-interface=emerald] :is(.design-mobile-dock,#navigation) svg {flex-shrink:0}
}

@media (max-width:1024px) {
 body[data-interface=emerald] {padding-bottom:max(calc(78px + env(safe-area-inset-bottom)),var(--worklog-dock-height,0px))!important}
 .android-app body[data-interface=emerald] {padding-bottom:max(calc(78px + var(--app-bottom,0px)),var(--worklog-dock-height,0px))!important}
 .android-keyboard body[data-interface=emerald] {padding-bottom:0!important}
}
