#displaySettings{position:fixed;top:12px;right:18px;z-index:110}
#displaySettings #settingsButton{color:#621127;background:#fff;border:1px solid #e0d4d8;border-radius:8px;width:38px;height:38px;padding:2px}
#displaySettings #settingsMenu{top:46px;bottom:auto;left:auto;right:0;max-height:calc(100vh - 80px);overflow:auto}
body:has(#loginScreen:not(.hidden)) #displaySettings{display:none}
main>header,.project-card-header,#projectsPage>header{padding-right:46px}
.plan-fullscreen #projectWorkspace{padding-top:54px!important}
#ganttWrap .task-row{position:relative;font-size:var(--plan-font-size,12px)}
#ganttWrap .task-row .task-name span,#ganttWrap .task-row .owner,#ganttWrap .task-row input,#ganttWrap .task-row .task-date,#ganttWrap .task-row .predecessor-cell{font-size:var(--plan-font-size,12px);line-height:1.2;max-height:calc(var(--row-height) - 4px)}
#ganttWrap .task-name span{white-space:normal}
#ganttWrap #taskList textarea.inline-text,#ganttWrap #taskList textarea.inline-comment{font-size:var(--plan-font-size,12px);line-height:1.2;height:calc(var(--plan-font-size,12px) * 2.4 + 4px);max-height:calc(var(--row-height) - 4px)}
#ganttWrap #taskList .inline-status,#ganttWrap #taskList .inline-progress{font-size:var(--plan-font-size,12px)}
#ganttWrap .bar-label{font-size:var(--plan-font-size,12px)}
#ganttWrap .task-head,#ganttWrap .task-head select{font-size:12px}
.task-row-resizer{position:absolute;bottom:-2px;left:0;right:0;height:6px;cursor:row-resize;touch-action:none;z-index:8}
.task-row-resizer:hover,.task-row-resizer:focus{background:#89607066;outline:none}
.resizing-task-row,.resizing-task-row *{cursor:row-resize!important;user-select:none!important}
#timeline{background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--day) - 1px),var(--line) calc(var(--day) - 1px),var(--line) var(--day))}
#timeline .bar-row{border-bottom:1px solid var(--line)}
.projects-registry{display:block;min-width:0;border:1px solid #e5dfe2;border-radius:8px;background:#fff;overflow:hidden}
.registry-toolbar{display:flex;align-items:center;gap:18px;padding:10px 12px;color:#766b73}
.registry-scroll{overflow:auto;max-height:calc(100vh - 220px)}
.registry-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:var(--plan-font-size,12px)}
.registry-table th{position:sticky;top:0;z-index:2;background:#faf7f9;text-align:left;font-weight:600;padding:8px;border-bottom:1px solid #dcd5da}
.registry-table td{height:38px;padding:4px 8px;border-bottom:1px solid #eee9ed;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.registry-table th,.registry-table td{border-right:1px solid #eee9ed}
.registry-table tbody tr:hover{background:#faf6f8}
.registry-column-title{cursor:grab;padding:3px 0 7px;white-space:normal}
.registry-table input{width:100%;min-width:0;padding:5px 6px;border-radius:4px;font:inherit}
.registry-table td input{border-color:transparent;background:transparent}
.registry-table td input:focus{border-color:#896070;background:white}
.registry-column-resizer{position:absolute;top:0;bottom:0;right:-3px;width:7px;cursor:col-resize;touch-action:none;z-index:3}
.registry-column-resizer:hover{background:#89607066}
.registry-project-link{border:0;background:transparent;padding:3px 0;text-align:left;font:inherit;font-weight:600;color:#621127;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.registry-tag{display:block;border-radius:3px;padding:5px 7px;overflow:hidden;text-overflow:ellipsis}
.registry-tag.manager{background:#eee8fb;color:#554773}.registry-tag.planned{background:#e4f3fc;color:#385b72}.registry-tag.actual{background:#e7f4e1;color:#46683a}
.registry-editor{padding:22px}.registry-editor p{line-height:1.5;color:#736974}
.registry-editor-list{max-height:60vh;overflow:auto;margin-bottom:16px}
.registry-editor-row{display:grid;grid-template-columns:22px 1fr 34px 34px;gap:6px;align-items:center;margin:8px 0}
.registry-editor-row input{min-width:0;width:100%}.registry-editor-row button{padding:5px}
:root{--text-spacing:2px}
.registry-heading{display:flex;align-items:center;gap:4px}.registry-heading .registry-column-title{flex:1;min-width:0;padding:3px 0}
.registry-heading button{flex:none;padding:3px;border:0;background:transparent;border-radius:4px;width:25px;height:28px;display:grid;place-items:center}
.registry-heading button.active{background:#ecdbe3;color:#92153b}
#registryFilterPopup,#cardAddPopup,#cardHelpPopup{margin:0;position:fixed;width:min(320px,calc(100vw - 16px));padding:14px;border:1px solid #e4dbe0;border-radius:10px;box-shadow:0 10px 35px #27162133;background:#fff;color:var(--text);max-height:calc(100vh - 24px);overflow:auto}
#registryFilterPopup h3{font-size:14px;margin:0 0 12px}#registryFilterPopup>input{width:100%;font-size:13px}
.registry-filter-actions{display:flex;gap:6px;margin-top:10px}.registry-filter-actions button{font-size:12px;padding:7px}
.registry-filter-values{max-height:220px;overflow:auto;margin-top:12px}.registry-filter-values label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:5px;margin:0;overflow-wrap:anywhere}
.registry-filter-values input{flex:none}.registry-table td{padding-top:calc(var(--text-spacing) + 2px);padding-bottom:calc(var(--text-spacing) + 2px);height:auto}
#ganttWrap #taskList textarea.inline-text,#ganttWrap #taskList textarea.inline-comment{padding-top:var(--text-spacing);padding-bottom:var(--text-spacing);height:calc(var(--plan-font-size,12px) * 2.4 + var(--text-spacing) * 2 + 4px)}
.card-task-table th,.card-task-table td{padding-top:calc(var(--text-spacing) + 4px);padding-bottom:calc(var(--text-spacing) + 4px);font-size:var(--plan-font-size,12px)}
.task-badge{display:inline-block;border-radius:5px;padding:4px 8px;font-size:11px;white-space:nowrap;font-weight:600}
.task-badge.done{background:#dcfce7;color:#15803d}.task-badge.late{background:#fee2e2;color:#b91c1c}.task-badge.doing{background:#dbeafe;color:#1d4ed8}.task-badge.todo,.task-badge.unknown{background:#f1f5f9;color:#64748b}
.task-badge.overdue{background:#fee2e2;color:#b91c1c}
.card-help{align-self:flex-start;padding:0 4px;border:0;background:transparent;color:#926278;font-size:15px}
#cardMetrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#cardMetrics article{padding:12px;background:#faf6f8;border:1px solid #eee5e9;border-radius:8px}
#cardMetrics span{display:block;color:#796975;font-size:12px}#cardMetrics strong{display:block;font-size:20px;margin-top:8px}
.project-dashboard>.card-block{position:relative;resize:none}.project-dashboard>.dashboard-card-hidden{display:none!important}
.hide-dashboard-card{display:none;position:absolute;top:6px;right:6px;font-size:20px;line-height:20px;padding:2px 5px;border:0;color:#ad204b;background:white}
.editing-card-layout .hide-dashboard-card{display:block}.editing-card-layout .card-block{resize:both;outline:1px dashed #bd8da0;min-height:160px}
.editing-card-layout .card-block h2{padding-right:20px}#cardLayoutBar:not(.hidden){display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;margin-bottom:16px;background:#f7e9ee;border-radius:8px}#cardLayoutBar span{flex:1;min-width:180px;font-size:13px}
#cardAddPopup button{display:block;width:100%;text-align:left;margin:4px 0}.custom-text-card textarea{min-height:100px}
.budget-halves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.budget-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.budget-table th,.budget-table td{border:1px solid #e6dce1;padding:7px 5px;text-align:left;overflow-wrap:anywhere}.budget-table thead th{background:#f6e9ee;text-align:center;padding:12px 5px}.budget-table th{font-weight:500}.budget-table input{width:100%;min-width:0;padding:6px 4px;border-radius:4px}.budget-table output{font-size:13px;font-variant-numeric:tabular-nums}.budget-table .budget-total{background:#f4f8f0;font-weight:700}
#payrollWarnings{margin-bottom:12px;color:#9b4b13;font-size:12px}#payrollWarnings summary{cursor:pointer}#payrollWarnings ul{padding-left:18px}
#cardCenterGuide,#cardHeightGuide{position:fixed;background:#ef2020;pointer-events:none;z-index:120;box-shadow:0 0 3px #fff}#cardCenterGuide{top:0;bottom:0;width:2px}#cardHeightGuide{height:2px}
.observer-mode .bar-move,.observer-mode .bar-resize,.observer-mode .row-grip{display:none!important}
.uniform-rows-option{display:flex;flex-direction:row;align-items:center;gap:8px}.uniform-rows-option input{margin:0}
#taskList .task-row input,#taskList .task-row select,#taskList .task-row textarea{max-height:calc(var(--row-height) - 2px)!important;min-height:0}
#taskList .task-row .row-controls button,#taskList .task-row .people-arrow{max-height:calc(var(--row-height) - 2px);min-height:0;padding-top:0;padding-bottom:0}
#timeline .bar:not(.milestone){height:min(24px,calc(var(--row-height) - 4px));top:max(2px,calc((var(--row-height) - 24px)/2))}
#cardMetrics [data-metric=total]{background:#eff6ff}#cardMetrics [data-metric=total] strong{color:#3b82f6}
#cardMetrics [data-metric=doing]{background:#f5f3ff}#cardMetrics [data-metric=doing] strong{color:#8b5cf6}
#cardMetrics [data-metric=done]{background:#f0fdf4}#cardMetrics [data-metric=done] strong{color:#16a34a}
#cardMetrics [data-metric=progress]{background:#fff7ed}#cardMetrics [data-metric=progress] strong{color:#ea580c}
#cardMetrics [data-metric=risk]{background:#fff6e6}#cardMetrics [data-metric=risk] strong{color:#a16207}
#cardMetrics [data-tone=none] strong{color:#15803d}#cardMetrics [data-tone=medium] strong{color:#a16207}#cardMetrics [data-tone=high] strong{color:#dc2626}
.card-task-table .task-badge{display:inline-flex;width:128px;height:34px;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:13px;padding:3px 6px;vertical-align:middle}
#cardWidthGuide{position:fixed;width:2px;background:#ef2020;pointer-events:none;z-index:120;box-shadow:0 0 3px white}
.project-type-badge{border-radius:4px;padding:3px 8px;display:inline-block;font-size:12px}
:root{--app-row-height:42px}
.company-logo{cursor:pointer}
.registry-table tbody td,.card-task-table tbody td,.budget-table tbody td,.budget-table tbody th{height:var(--app-row-height);padding-top:0;padding-bottom:0}
.registry-table td input,.budget-table input{height:calc(var(--app-row-height) - 4px);padding-top:0;padding-bottom:0;min-height:0}
.card-task-table .task-badge{height:min(34px,calc(var(--app-row-height) - 2px));padding-top:0;padding-bottom:0}
#taskList .task-row{font-size:12px;line-height:14px}
#ganttWrap #taskList textarea.inline-text,#ganttWrap #taskList textarea.inline-comment{font-size:12px;line-height:14px;padding:1px 3px;height:32px}
#taskList .task-row input,#taskList .task-row select{font-size:12px!important;line-height:16px;padding-top:0;padding-bottom:0}
#timeline .bar-label{font-size:10px!important;line-height:12px;height:100%;display:flex;align-items:center;top:0;padding-top:0;padding-bottom:0;white-space:nowrap;overflow:hidden}
.portfolio-scroll{overflow:auto;max-height:calc(100vh - 180px);background:white;border:1px solid var(--line)}
.portfolio-table{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;width:max-content;min-width:100%}
.portfolio-table th{position:sticky;top:0;z-index:2;background:#faf7f9;height:48px;text-align:left}
.portfolio-table th,.portfolio-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 8px}
.portfolio-table th:first-child{min-width:210px}.portfolio-table th:nth-child(2),.portfolio-table th:nth-child(3){min-width:150px}
.portfolio-table td{height:var(--app-row-height);white-space:nowrap}
.portfolio-axis{position:relative}.portfolio-axis span{position:absolute;top:15px;font-size:10px;transform:translateX(-50%)}.portfolio-axis span:first-child{transform:none}.portfolio-axis span:last-child{transform:translateX(-100%)}
.portfolio-track{position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),#eee 10%)}
.portfolio-bar{position:absolute;top:50%;transform:translateY(-50%);height:calc(var(--app-row-height) - 6px);min-width:3px;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #0002;font-size:12px;text-align:left}
.epic-name,.epic-track{height:var(--app-row-height);padding-top:0;padding-bottom:0}.epic-name{display:flex;align-items:center}.epic-summary-bar{top:50%;transform:translateY(-50%);height:min(24px,calc(var(--app-row-height) - 4px))}
.registry-table tbody tr,.card-task-table tbody tr,.budget-table tbody tr{height:var(--app-row-height)}
.sidebar .project-link,.sidebar .owner-heading{min-height:42px}
.registry-table td .project-type-badge{padding:0 8px;line-height:18px;max-height:calc(var(--app-row-height) - 2px)}
.portfolio-track>button:not(.portfolio-bar){height:calc(var(--app-row-height) - 2px);padding:0 6px;font-size:12px}
.sidebar .project-link{height:42px;padding-top:0;padding-bottom:0;display:flex;align-items:center}
.sidebar .owner-group>summary{min-height:42px;padding-top:0;padding-bottom:0;line-height:42px}
.epic-name.summary-head,.epic-axis{height:var(--app-row-height)}
.font-slider-wrap{position:relative;padding-bottom:10px;width:100%}.font-slider-wrap input{width:100%;margin:0}.font-baseline{position:absolute;left:calc(20% + 5px);bottom:0;transform:translateX(-50%);font-size:10px;color:#a52751;pointer-events:none}
#ganttWrap .task-row,#ganttWrap .task-row .task-name span,#ganttWrap .task-row .owner,#ganttWrap .task-row input,#ganttWrap .task-row select,#ganttWrap .task-row .task-date,#ganttWrap .task-row .predecessor-cell,#ganttWrap .task-row textarea.inline-comment{font-size:12px!important}
#ganttWrap #taskList textarea.inline-text,#ganttWrap #taskList input.inline-date,#ganttWrap #taskList .task-date{font-size:var(--plan-font-size,12px)!important;line-height:1.2}
#ganttWrap .day-head b{font-size:var(--plan-font-size,12px)}
#ganttWrap .task-head>.column-head:nth-child(n+4){align-self:stretch;align-items:flex-start;justify-content:flex-start;flex-direction:column;padding-top:5px}
#managerProjectsMenu{position:fixed;margin:0;padding:6px;border:1px solid #e0d4d8;border-radius:8px;box-shadow:0 8px 24px #0002;max-width:320px;background:white}#managerProjectsMenu button{text-align:left;border:0}
#ganttWrap #taskList textarea.inline-text{line-height:calc(var(--plan-font-size,12px) + 2px);height:calc(var(--plan-font-size,12px) * 2 + 8px)}
.portfolio-track .portfolio-bar{background:var(--primary)!important;color:#fff!important}
.registry-table thead,.card-task-table th{font-size:12px}
#cardGantt .epic-summary-bar{display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-size:11px;font-weight:600;line-height:1;padding:0 2px}
.registry-tag,.registry-project-link,.registry-table td input{padding-top:var(--text-spacing);padding-bottom:var(--text-spacing)}

/* Keep compact rows bounded even when their text is taller than the row. */
.compact-cell-content{height:max(0px,calc(var(--app-row-height) - 1px));min-height:0;overflow:hidden;display:flex;align-items:center;gap:4px}
.compact-cell-content>*{min-width:0;max-height:100%;flex-shrink:1}
#taskList .task-row{min-height:0}
#taskList .task-row>*:not(.task-row-resizer){min-height:0;max-height:max(0px,calc(var(--row-height) - 1px));overflow:hidden}
#timeline .bar-row{overflow:hidden;min-height:0}
#cardGantt .epic-track{overflow:hidden;min-width:0}
#cardGantt .epic-name{min-width:0;position:relative;display:block;align-content:center;padding-top:0;padding-bottom:0}
#cardGantt .epic-axis{min-width:0}

.visual-page{--plan-font-size:12px;--app-row-height:42px}
.visual-page .portfolio-table,.visual-page .portfolio-bar,.visual-page .epic-name,.visual-page .budget-table,.visual-page .user-list,.visual-page form input,.visual-page form textarea,.visual-page form select {font-size:var(--plan-font-size)}
#adminDialog .user-row{min-height:var(--app-row-height)}
