.board-tools{display:flex;align-items:center;gap:.75rem;margin:.2rem 0 .75rem;min-height:2.5rem}
.board-message,.board-form p{margin:0;font-size:.9rem}
.board-button,.board-card-controls select{border:1px solid var(--gl-edge,#ccdafa);border-radius:.45rem;background:var(--gl-surface,#fff);color:var(--gl-link,#203e77);font:inherit;min-height:2.45rem;padding:.32rem .65rem;cursor:pointer}
.board-button:disabled{opacity:.5;cursor:default}
.board-button[hidden]{display:none}
.task-column header .board-button{color:white;background:var(--gl-button,#2358b7);border-color:var(--gl-control,#2358b7);min-width:2.45rem;font-weight:750;padding:.2rem;font-size:1.15rem}
.board-card-title{padding:0;min-height:2rem;display:block;text-align:left;font-weight:700;background:none;border:0}
.board-card-title:hover{text-decoration:underline}
.board-card-controls{margin-top:.35rem;font-size:.86rem}
.board-card-controls summary{cursor:pointer;width:fit-content;padding:.35rem 0;color:var(--gl-link,#294d83)}
.board-card-controls select{width:100%;margin-top:.4rem}
.board-actions{display:flex;flex-wrap:wrap;gap:.4rem}
.task-card[draggable="true"]{cursor:grab}
.task-card.board-dragging{opacity:.45}
.task-column.board-drop-target{outline:2px solid var(--gl-focus,#2860c6);outline-offset:-2px}
.board-dialog{width:min(30rem,calc(100% - 2rem));box-sizing:border-box;border:1px solid var(--gl-edge,#ccdafa);border-radius:1rem;padding:1.25rem;color:var(--gl-link,#17345e)}
.board-dialog::backdrop{background:#122a56aa}
.board-form{display:grid;gap:.8rem}
.board-form h2{margin:0}
.board-form label{display:grid;gap:.3rem;font-weight:650}
.board-form input,.board-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--gl-edge,#ccdafa);border-radius:.45rem;padding:.5rem;font:inherit}
.board-form textarea{resize:vertical}
.board-form [type="submit"]{background:var(--gl-button,#2358b7);color:#fff}

/* Folder tabs and a continuous sheet for the project phases. */
.phase-progress{margin:0 0 1.15rem;padding:.85rem 1rem;background:var(--gl-surface,#fff);border:1px solid var(--line);border-radius:.76rem}
.phase-progress-label{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;font-size:.94rem;font-weight:670}
.phase-progress-label strong{color:var(--blue-hover);white-space:nowrap}
.phase-progress progress{display:block;width:100%;height:.6rem;margin:.55rem 0;border:0;border-radius:99px;overflow:hidden;background:var(--gl-wash,#e6eefc);accent-color:var(--blue)}
.phase-progress progress::-webkit-progress-bar{background:var(--gl-wash,#e6eefc)}
.phase-progress progress::-webkit-progress-value{background:var(--gl-button,var(--blue));border-radius:99px}
.phase-progress progress::-moz-progress-bar{background:var(--gl-button,var(--blue));border-radius:99px}
.phase-progress p{margin:0;color:var(--muted);font-size:.86rem}
.project-phases{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.42rem;align-items:end;margin:0 0 -1px;padding:0 .55rem}
.project-phases a{display:flex;flex-direction:column;justify-content:center;gap:.1rem;min-width:0;min-height:3rem;border:1px solid var(--gl-edge,#cbdcf3);border-radius:.64rem .64rem 0 0;padding:.42rem .67rem;background:var(--gl-wash,#eaf2ff);color:var(--gl-link,#284a77);font-size:.92rem;line-height:1.2}
.project-phases a span{font-size:.76rem;color:var(--gl-subtext,#4d6280)}
.project-phases a:hover{background:var(--gl-raised,#f5f9ff)}
.project-phases a[aria-current]{min-height:3.35rem;color:var(--blue-hover);background:var(--gl-surface,#fff);border-color:var(--gl-edge,#b9cfee);border-bottom-color:var(--gl-surface,#fff);box-shadow:0 -2px 5px #244c9812}
.project-phases a:focus-visible{outline-offset:-3px}
.project-phase-sheet{padding:.85rem;border:1px solid var(--gl-edge,#b9cfee);border-radius:.76rem;background:var(--gl-surface,#fff);box-shadow:var(--shadow)}
.project-phase-sheet .panel:last-child{margin-bottom:0}
.phase-empty{padding:1.15rem}
.phase-status{cursor:default}
.phase-status:hover{background:var(--gl-surface,#fff);border-color:var(--gl-edge,#e0eafa)}
@media(max-width:440px){.project-phases{gap:.25rem;padding:0 .35rem}.project-phases a{padding:.4rem;font-size:.82rem}.project-phase-sheet{padding:.5rem}.phase-progress{padding:.65rem}.phase-progress-label{font-size:.85rem}.phase-status .revision{font-size:.73rem}}
