:root{font:14px/1.45 Inter,Segoe UI,Arial,sans-serif;color:#243246;background:#f5f7fa}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}input,select,textarea{color:inherit;border:1px solid #cdd6df;border-radius:8px;padding:9px 11px;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#5a82a9;box-shadow:0 0 0 3px #5a82a925}button{border:0;border-radius:8px;background:#244e79;color:#fff;padding:9px 13px;font-weight:650;cursor:pointer;white-space:nowrap}button:hover{background:#183e65}.quiet{background:#eef2f6;color:#34516b}.quiet:hover{background:#e0e8f0}.brand{font-size:15px;font-weight:800;letter-spacing:.065em;color:#173f68;white-space:nowrap}.brand span{font-weight:550;color:#75869a}header{height:64px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 20px;background:#fff;border-bottom:1px solid #e1e7ed;box-shadow:0 1px 5px #172b4409;position:relative;z-index:3}.tools{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0}#search{width:min(31vw,400px)}#labelFilter{width:180px}.userMenu{position:relative}.userMenu>button{max-width:190px;overflow:hidden;text-overflow:ellipsis}.userOptions{position:absolute;right:0;top:calc(100% + 8px);width:190px;padding:6px;background:#fff;border:1px solid #dfe6ed;border-radius:10px;box-shadow:0 12px 30px #1e385827}.userOptions button{display:block;width:100%;text-align:left;color:#334b62;background:none;padding:9px}.userOptions button:hover{background:#f0f4f8}.board{height:calc(100dvh - 64px);display:flex;gap:12px;padding:14px;overflow-x:auto;overflow-y:hidden;align-items:stretch}.column{flex:0 0 286px;min-width:286px;max-height:100%;display:flex;flex-direction:column;background:#f0f3f6;border:1px solid #e1e6eb;border-radius:10px;overflow:hidden}.columnHead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;background:color-mix(in srgb,var(--phase-color) 12%,white);border-top:3px solid var(--phase-color);border-bottom:1px solid #e1e6eb;font-weight:720;min-height:54px}.columnHead span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count{background:#fff;border:1px solid #dce3e9;border-radius:999px;padding:1px 8px;color:#526579;font-size:12px;min-width:26px;text-align:center;transition:transform .2s}.cards{padding:9px;overflow-y:auto;min-height:50px;flex:1}.card{background:#fff;border:1px solid #dce4eb;border-radius:9px;padding:10px 11px;margin-bottom:8px;box-shadow:0 1px 3px #1e36500a;cursor:grab;transition:box-shadow .2s,border-color .2s,transform .2s,opacity .2s}.card:hover{border-color:#aac0d3;box-shadow:0 4px 12px #1e36501a;transform:translateY(-1px)}.card.dragging{opacity:.55;cursor:grabbing;box-shadow:0 12px 24px #152f4a30;transform:rotate(1deg) scale(1.015)}.dropPlaceholder{margin:0;border:2px dashed #6f94b8;border-radius:9px;background:#dbe9f580}.card.filtered{display:none}.labels{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}.tag{display:inline-flex;align-items:center;max-width:100%;border:1px solid #dce4eb;border-radius:999px;padding:2px 7px;background:#eef3f7;color:#3f566a;font-size:10px;font-weight:650;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag.more{background:#f1f4f7}.title{font-size:13px;font-weight:700;line-height:1.38;margin-bottom:8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.due{font-size:11px;font-weight:650;margin:4px 0 8px}.due.green{color:#237a50}.due.yellow{color:#a47413}.due.red{color:#bd4444}.timers{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #edf0f3;padding-top:7px;color:#718092;font-size:10px}.login{height:100dvh;display:grid;place-items:center;background:linear-gradient(135deg,#f3f7fa,#e6eef5)}.login form{width:min(390px,92vw);background:white;border-radius:14px;padding:34px;box-shadow:0 14px 45px #2442651b}.login h1{font-size:24px;margin:28px 0 0}.login p{margin:3px 0 24px;color:#74849a}.login label,dialog label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;margin:0 0 14px}.login input,dialog label input,dialog label textarea,dialog label select{width:100%}.login button{width:100%;margin-top:6px}.error{color:#b63333;margin-top:12px;font-size:12px}dialog{border:0;padding:0;color:#243246;box-shadow:0 20px 70px #152b4750}dialog::backdrop{background:#17283b69}.drawer{position:fixed;inset:0 0 0 auto;width:min(740px,100vw);height:100dvh;max-height:100dvh;margin:0;border-radius:14px 0 0 14px}.drawer form{height:100%;display:flex;flex-direction:column}.drawerHead{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 25px 16px;border-bottom:1px solid #e5e9ee}.drawerHead h2{font-size:21px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere}.eyebrow{color:#6c8296;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.icon{font-size:22px;line-height:1;padding:3px 9px;background:none;color:#54708a}.icon:hover{background:#eef3f7}.drawerBody{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(210px,1fr);gap:22px;overflow:auto;padding:22px 25px;flex:1}.drawerMain,.drawerSide{min-width:0}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.drawerSide section{background:#f7f9fb;border:1px solid #e4eaf0;border-radius:10px;padding:14px;margin-bottom:12px}.drawerSide section h3{margin:0 0 11px}.drawerSide p{font-size:12px;color:#5b6e80;margin:0 0 10px}.drawerSide select,.drawerSide button:not(.selectedTag),#phaseComment{width:100%}.drawerSide button:not(.selectedTag){margin-top:8px}.selectedLabels{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px;color:#8290a0;font-size:12px}.selectedTag{cursor:pointer}.labelPopover{margin-top:9px;background:#fff;border:1px solid #dce5ed;border-radius:9px;padding:8px;box-shadow:0 8px 20px #1a365218}.labelPopover input{width:100%;margin-bottom:5px}.labelPopover #labelOptions{max-height:175px;overflow:auto}.labelOption{display:block;width:100%;margin:0!important;text-align:left;background:none!important;color:#344c63;border-radius:5px;padding:6px!important;font-size:12px}.labelOption:hover{background:#edf3f8!important}.drawerMain section{border-top:1px solid #e7ebef;margin-top:18px;padding-top:14px}.drawerMain h3,.drawerSide h3{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#63788a}.drawerMain section button{margin-top:8px}.history{display:grid;gap:0}.event{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-bottom:1px solid #e8edf2;font-size:12px}.event time,.event span{color:#7a8a9a;font-size:11px}.event strong{font-weight:620;color:#2c4053}.meta{font-size:11px;color:#6d7f91;white-space:pre-wrap}.actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 25px;border-top:1px solid #e5e9ee;background:#fff}.smallDialog{width:min(650px,94vw);max-height:90vh;border-radius:12px}.smallDialog form{padding:24px;overflow:auto;max-height:90vh}.modalHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modalHead h2{font-size:20px;margin:0}.userRow{flex-direction:row;justify-content:space-between;align-items:center}.toasts{position:fixed;bottom:18px;right:18px;z-index:20;display:grid;gap:8px}.toast{background:#243e56;color:#fff;border-radius:9px;padding:11px 15px;box-shadow:0 8px 24px #14283f30;font-size:13px;max-width:330px}.errorToast{background:#a84141}@media(max-width:900px){header{gap:10px;padding:0 12px}.brand{font-size:13px}#search{width:25vw}#labelFilter{width:140px}.column{flex-basis:268px;min-width:268px}}@media(max-width:650px){body{overflow:hidden}header{height:105px;flex-wrap:wrap;align-content:center}.tools{order:3;width:100%;flex:auto;justify-content:flex-start}#search{flex:1;width:10px}#labelFilter{width:110px}.userMenu{margin-left:auto}.board{height:calc(100dvh - 105px)}.column{flex-basis:84vw;min-width:84vw}.drawer{width:100vw;border-radius:0}.drawerBody{grid-template-columns:1fr;gap:4px;padding:18px}.drawerHead{padding:18px}.actions{padding:12px 18px}}

/* Post-approval interaction and spacing refinements. */
.board,.columnHead,.cards{cursor:grab}
.board.panning,.board.panning .columnHead,.board.panning .cards{cursor:grabbing;user-select:none}
.board.panning .card{pointer-events:none}
header{gap:16px}
.tools{gap:10px}
#search{min-width:150px}
#labelFilter{min-width:150px}
button,input,select,textarea,.card,.columnHead{transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s,transform .16s,opacity .16s}
button:active{transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.card:focus-visible{outline:2px solid #4078ae;outline-offset:2px}
button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.column{box-shadow:0 2px 8px #233e5908}
.columnHead{position:relative;flex:none;color:#30465b}
.count{font-weight:650}
.card{border-color:#d9e3ec;box-shadow:0 1px 4px #1e365010}
.card:hover{border-color:#9db9d0;box-shadow:0 5px 14px #1e365020}
.tag{letter-spacing:.005em}
.selectedTag:hover{filter:brightness(.97)}
.drawerHead{background:#fff}
.drawerBody{background:#fcfdfe}
.drawerSide section{background:#f6f9fc}
.drawerMain section{margin-top:20px}
.actions{justify-content:space-between;align-items:center}
.actionRight{display:flex;gap:8px;margin-left:auto}
.dangerQuiet{background:#fff5f4;color:#a33f39;border:1px solid #e8bfba}
.dangerQuiet:hover{background:#fce9e7;color:#912d29}
.danger{background:#a63d37;color:#fff}
.danger:hover{background:#8c2e29}
.confirmDialog{width:min(440px,94vw)}
.confirmBody{padding:26px}
.confirmBody h2{margin:0 0 14px;font-size:21px}
.confirmBody p{margin:0 0 16px;color:#506174}
.deleteIdentity{display:grid;gap:7px;padding:12px;background:#f7f9fb;border-radius:8px;overflow-wrap:anywhere}
.deleteIdentity strong{color:#243246}
.confirmActions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
@media(max-width:420px){.actions{flex-wrap:wrap}.actionRight{width:100%;justify-content:flex-end}.confirmActions{flex-wrap:wrap}}
.actions{box-shadow:0 -2px 8px #20395108}
.labelOption{background:var(--label-bg)!important;color:var(--label-text)!important;border:1px solid var(--label-border)!important;margin:3px 0!important;padding:7px 9px!important}
.labelOption:hover,.labelOption:focus-visible{filter:brightness(.97);box-shadow:0 0 0 2px #274f7822}
.labelOption:active{filter:brightness(.94)}
#labelFilter[data-label-key]{font-weight:650}
@media(max-width:900px){#search{min-width:100px}#labelFilter{min-width:125px}}

/* Keep one measured slot in the list while the browser paints the native drag image. */
.board.is-dragging .card{transition:none}
.card.dragging{opacity:.55;cursor:grabbing;box-shadow:0 12px 24px #152f4a30;transform:rotate(1deg) scale(1.015)}
.dropPlaceholder{border:2px dashed #6f94b8;border-radius:9px;background:#dbe9f580;flex:none}

.dbBadge{font-size:11px;color:#53677b;background:#edf3f8;border:1px solid #d5e1eb;border-radius:999px;padding:4px 8px;white-space:nowrap}

@font-face{font-family:SairaStencil;src:url('/assets/SairaStencil.ttf') format('truetype');font-display:swap}
.brandWordmark{font-family:SairaStencil,Segoe UI,sans-serif;color:#17446e;letter-spacing:.035em;line-height:1.12;white-space:nowrap}
.headerBrand{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.headerBrand img{width:38px;height:38px;object-fit:contain}
.headerBrand .brandWordmark{font-size:15px}
.headerBrand small{display:block;margin-top:2px;color:#70859a;font-size:10px;letter-spacing:.07em;text-transform:uppercase}
.headerStats{display:flex;align-items:center;gap:7px;flex:none}
.activeBadge{font-size:11px;color:#194c75;background:#e9f3fa;border:1px solid #c9e0ef;border-radius:999px;padding:4px 9px;white-space:nowrap}
.activeBadge strong{font-weight:750;font-variant-numeric:tabular-nums}
.login{background:linear-gradient(145deg,#f8fbfe,#e7f0f8)}
.login form{width:min(405px,92vw);padding:31px 37px 34px;border:1px solid #e1ebf3;box-shadow:0 17px 46px #1b47691c}
.loginBrand{text-align:center;border-bottom:1px solid #e6edf4;padding-bottom:22px;margin-bottom:20px}
.loginBrand img{display:block;width:87px;height:87px;object-fit:contain;margin:0 auto 10px}
.loginBrand .brandWordmark{font-size:25px}
.loginBrand p{margin:4px 0 0;color:#68829a;font-size:13px}
.login h1{font-size:17px;margin:0 0 17px;color:#29445b}
@media(max-width:1150px){header{gap:9px;padding:0 12px}.headerBrand .brandWordmark{font-size:13px}.headerBrand img{width:32px;height:32px}.headerStats{gap:4px}.dbBadge,.activeBadge{font-size:10px;padding:4px 6px}#search{min-width:100px}#labelFilter{min-width:125px}}
@media(max-width:800px){header{height:105px;flex-wrap:wrap;align-content:center;row-gap:6px}.headerStats{margin-left:auto}.tools{order:3;width:100%;flex:auto;justify-content:flex-start}.userMenu{order:2}.board{height:calc(100dvh - 105px)}}
@media(max-width:650px){.headerBrand .brandWordmark{font-size:12px}.headerBrand img{width:29px;height:29px}.headerStats{order:3;margin-left:0}.tools{order:4;width:100%}.userMenu{margin-left:auto}.loginBrand .brandWordmark{font-size:22px}}
.scheduleSection{padding:16px;border:1px solid #cbdde9;border-radius:10px;background:#f5f9fc}
.scheduleSection h3{margin:0 0 8px;color:#17446e}
.scheduleStatus{font-weight:650;color:#2d668e;background:#e6f2fa;border-radius:6px;padding:8px 10px}
.scheduleActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.scheduleLinks{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.scheduleLinks a{color:#185580;font-weight:650}
.scheduleCheck{display:flex!important;align-items:center;gap:8px;margin-top:10px}
.scheduleCheck input{width:auto!important;margin:0}
.scheduleHint{font-size:12px;color:#687f91}
.googleSettings{padding:24px}

.columnHead{display:grid;gap:3px;padding:7px 11px 6px;min-height:65px;cursor:default}
.columnHeadMain{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.columnName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sortControls{display:flex;align-items:center;gap:5px;min-height:25px}
.sortCriterion{width:133px;height:25px;padding:2px 19px 2px 7px;border-radius:6px;border-color:#d7e1e9;background:#ffffffd9;color:#516b80;font-size:11px;font-weight:650;cursor:pointer}
.sortDirection{width:25px;height:25px;padding:0;border:1px solid #d7e1e9;border-radius:6px;background:#ffffffd9;color:#315b7c;font-size:15px;line-height:1}
.sortDirection:hover{background:#e8f1f8}
.board.panning .columnHead{cursor:grabbing}
