:root{--navy:#142a43;--navy-2:#1d3855;--ink:#1b2c40;--muted:#78899c;--border:#dbe4ed;--page:#edf2f7;--accent:#3b80c7;--accent-2:#255d9b;--danger:#bb4c5b;--amber:#ce8529;--shadow:0 16px 40px rgba(23,48,75,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}body{background:var(--page)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8bb6ed;outline-offset:2px}button,textarea,input,select{transition:border .15s,background .15s,box-shadow .15s}button{border:0}.topbar{background:var(--navy);height:85px;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(34px,calc((100vw - 1512px)/2));gap:24px;border-bottom:4px solid #284762}.brand,.user-area,.login-mark{display:flex;align-items:center;gap:15px}.brand strong,.login-mark strong{display:block;font-size:19px;letter-spacing:1.1px;font-weight:800}.brand strong span,.login-mark em{color:#9ac7f5;font-style:normal}.brand small{font-size:10px;letter-spacing:2.1px;display:block;color:#97adc1;margin-top:4px;font-weight:700}.brand-mark{height:39px;width:39px;display:flex;gap:3px;align-items:end}.brand-mark span{height:30px;width:10px;background:#6fa7dc;border-radius:4px 4px 2px 2px;position:relative}.brand-mark span:nth-child(2){height:36px;background:#b9d7f3}.brand-mark span:nth-child(3){height:25px;background:#467fb9}.brand-mark span:before{content:"";position:absolute;top:-6px;left:2px;width:6px;height:7px;background:inherit;border-radius:3px 3px 0 0}.user-area{gap:16px;font-size:13px;color:#e2eaf2}.online-dot{background:#8ac8de;width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 4px #244867}.user-caption{font-weight:600}.ghost-light{color:#c6d8e9;background:transparent;border:1px solid #3f5770;border-radius:7px;padding:9px 13px;font-size:12px;font-weight:650}.ghost-light:hover{background:#2c4561}.content{max-width:1580px;margin:auto;padding:45px 34px 64px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:34px}.eyebrow{font-size:11px;font-weight:800;color:#5683af;letter-spacing:2px;display:flex;align-items:center;gap:10px}.eyebrow-rule{display:inline-block;width:19px;height:2px;background:var(--accent)}h1{font-size:clamp(29px,3.5vw,41px);letter-spacing:-1.6px;margin:12px 0 6px;line-height:1.2}h2{margin:6px 0 0;font-size:25px;letter-spacing:-.6px}h3{font-size:14px;margin:12px 0 16px;color:#223d59}.accent-dot{color:var(--accent)}.page-heading p{color:#78889a;margin:0;font-size:14px}.primary-btn{background:var(--accent-2);padding:13px 20px;color:white;border-radius:8px;font-weight:750;font-size:13px;box-shadow:0 5px 10px #225d9430;white-space:nowrap}.primary-btn:hover{background:#174a83}.plus{font-size:21px;vertical-align:-1px;margin-right:4px;line-height:0}.workspace{background:white;box-shadow:var(--shadow);border:1px solid #e0e8ef;border-radius:13px;overflow:hidden}.workspace-top{min-height:103px;padding:20px 27px;display:flex;align-items:center;justify-content:space-between;gap:22px}.week-controls,.workspace-right,.filter,.legend{display:flex;align-items:center;gap:11px}.week-controls{gap:16px}.icon-btn{border:1px solid var(--border);width:35px;height:35px;border-radius:7px;background:white;color:#607992;font-size:28px;line-height:15px;display:grid;place-items:center}.icon-btn:hover{background:#eaf2fc}.tiny-label{font-size:9px;font-weight:850;letter-spacing:1.8px;color:#9babba}.week-label{font-size:19px;font-weight:800;white-space:nowrap;letter-spacing:-.4px;margin-top:3px}.today-btn{background:#eef4fa;color:#3c6791;border-radius:6px;padding:8px 12px;font-weight:750;font-size:11px}.today-btn:hover{background:#dfeafa}.workspace-right{gap:19px}.filter{border:1px solid var(--border);padding:4px;border-radius:8px;background:#f9fbfd;gap:3px}.filter button{background:transparent;padding:9px 13px;color:#8191a1;border-radius:6px;font-size:12px;font-weight:750}.filter button.active{color:var(--accent-2);background:white;box-shadow:0 2px 8px #1e3c5d1a}.board-count{display:flex;align-items:baseline;gap:5px;padding-left:16px;border-left:1px solid var(--border);white-space:nowrap}.board-count #totalCount{font-weight:850;font-size:25px;color:#2f649d}.board-count span:last-child{font-size:11px;color:#8797a8;font-weight:750}.board-scroll{overflow-x:auto;background:#dae4ed;padding:0 12px 14px;scrollbar-color:#a9bfd2 #e4edf5}.board{display:grid;grid-template-columns:repeat(5,minmax(205px,1fr));gap:12px;min-width:1050px}.day-column{background:#f2f6fa;min-height:575px;border-radius:0 0 7px 7px;border:1px solid #d3e0eb;border-top:0;display:flex;flex-direction:column}.day-header{position:relative;background:var(--navy-2);color:white;min-height:98px;padding:16px 16px 13px;border-top:4px solid #407db9;display:flex;align-items:center;justify-content:space-between;gap:4px}.day-column.is-today .day-header{border-top-color:#a9d1f7;background:#244c76}.day-header .day-name{font-size:12px;letter-spacing:1.5px;font-weight:850}.day-header .day-date{font-size:25px;letter-spacing:-1.2px;font-weight:800;margin-top:5px;white-space:nowrap}.day-date small{font-size:11px;font-weight:550;color:#acc1d4;letter-spacing:0;margin-left:4px}.day-count{background:#35516e;color:#e1eefa;border-radius:30px;padding:5px 8px;font-size:11px;font-weight:800;align-self:flex-start}.day-column.is-today .day-count{background:#406b94}.lane{flex:1;padding:14px 13px 25px;min-height:440px;background:repeating-linear-gradient(180deg,#f3f7fa 0px,#f3f7fa 83px,#dfe7ee 84px,#f3f7fa 85px);display:flex;flex-direction:column;gap:11px}.lane.drag-over{background:#d9eafb;box-shadow:inset 0 0 0 3px #7eace1}.empty-lane{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:55px 8px;color:#91a5b8;text-align:center;font-size:12px;font-weight:650}.empty-lane:before{content:"+";display:grid;place-items:center;width:48px;height:48px;border-radius:12px;border:2px dashed #bdd0e0;font-size:27px;font-weight:300;color:#afc0d2}.tcard{position:relative;isolation:isolate;filter:drop-shadow(0 3px 2px rgba(21,53,82,.12));cursor:pointer;outline-offset:4px;transition:transform .14s,filter .14s;flex-shrink:0}.tcard:hover,.tcard:focus-visible{transform:translateY(-3px);filter:drop-shadow(0 5px 8px rgba(21,53,82,.2))}.tcard.dragging{opacity:.45}.tcard-shell{background:#ffffff;clip-path:polygon(0 21px,17% 21px,17% 0,83% 0,83% 21px,100% 21px,100% 100%,0 100%);padding-top:0;min-height:155px;border-bottom:3px solid #4d8ac4}.tcard.closed .tcard-shell{background:#e7edf2;border-bottom-color:#97a8ba}.tcard.overdue .tcard-shell{border-bottom-color:#d39440}.tcard-tab{height:27px;margin:0 17%;background:#69a3db;display:flex;align-items:flex-start;justify-content:center;padding:6px 8px 0;color:#fff;font-size:9px;font-weight:850;letter-spacing:.7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tcard.closed .tcard-tab{background:#9baebf;color:#f9fcff}.tcard.overdue .tcard-tab{background:#d39b54}.tcard-content{padding:8px 13px 12px;overflow:hidden}.tcard-topline{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}.tcard-id{color:#a3afbd;font-size:9px;font-weight:850;letter-spacing:1px}.tcard-time{font-size:11px;color:#3c6e9c;font-weight:850;white-space:nowrap}.tcard.closed .tcard-time{color:#708394}.tcard h3{font-size:13px;line-height:1.35;margin:0 0 6px;font-weight:800;overflow-wrap:anywhere;min-height:16px}.tcard p{font-size:11px;line-height:1.45;margin:0;color:#7d8e9d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:16px}.tcard.closed h3{text-decoration:line-through;text-decoration-color:#a9b7c6;color:#64798f}.tcard-footer{border-top:1px solid #e3e9ef;margin-top:12px;padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:4px}.card-person{font-size:10px;font-weight:750;color:#63819d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;display:flex;align-items:center;gap:5px}.person-dot{width:19px;height:19px;display:grid;place-items:center;background:#e3edf8;color:#38699b;border-radius:50%;font-size:9px;flex-shrink:0}.status-pill{background:#eaf2fd;border-radius:20px;padding:4px 6px;color:#3877b9;font-size:9px;font-weight:850;white-space:nowrap}.tcard.closed .status-pill{background:#d6e0e8;color:#596e83}.tcard.overdue .status-pill{background:#fcf0dd;color:#ac7429}.board-footer{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 27px}.legend{gap:18px;flex-wrap:wrap}.legend>span{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:700;color:#73889c}.legend-color{height:10px;width:10px;display:inline-block;border-radius:2px}.legend-color.blue{background:#6ea9e0}.legend-color.grey{background:#a0aebb}.legend-color.orange{background:#dba656}.footer-tip{font-size:11px;color:#9ba9b7}.modal{border:1px solid #dce5ed;border-radius:15px;padding:0;width:min(94vw,590px);max-height:min(90vh,860px);box-shadow:0 30px 100px #0e243b5c;color:var(--ink)}.modal::backdrop{background:rgba(15,31,50,.60);backdrop-filter:blur(3px)}.modal-head{padding:25px 29px 20px;border-bottom:1px solid #e6ecf2;display:flex;align-items:start;justify-content:space-between}.close-btn{background:#edf2f6;color:#7890a6;width:33px;height:33px;border-radius:7px;font-size:23px;line-height:1}.close-btn:hover{background:#e2eaf1}.modal-body{padding:22px 29px;max-height:66vh;overflow:auto}.modal label,.login-form label{font-size:12px;color:#43586d;font-weight:800;display:flex;flex-direction:column;gap:8px;margin-bottom:17px}.modal input,.modal select,.modal textarea,.login-form input{width:100%;border:1px solid #d4e0ea;background:#fbfcfe;border-radius:7px;padding:11px 12px;font-size:13px;color:#233c55;outline-offset:2px}.modal input:focus,.modal select:focus,.modal textarea:focus,.login-form input:focus{border-color:#639acb;box-shadow:0 0 0 3px #d8eafb}.modal textarea{resize:vertical;min-height:105px}.required{color:#b85959}.muted-label,.modal label small{color:#a0adbb;font-weight:500;font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-bottom{border-top:1px solid #e6ecf2;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 29px;background:#fafcfd;border-radius:0 0 15px 15px}.modal-secondary,.modal-actions{display:flex;align-items:center;gap:12px}.text-btn{color:#8190a0;background:transparent;padding:8px;font-size:12px;font-weight:750}.danger-link{color:#b8525c;background:transparent;font-size:12px;font-weight:750;padding:7px}.outline-btn{background:#fff;border:1px solid #c7d7e4;color:#4272a0;padding:10px 12px;border-radius:7px;font-size:12px;font-weight:800}.outline-btn:hover{background:#f0f6fb}.record-meta{background:#f4f7fa;padding:12px 13px;border-radius:7px;font-size:11px;color:#687d92;line-height:1.7;margin:3px 0 12px}.record-meta strong{color:#46647e}.history-panel{border:1px solid #e0e8ef;border-radius:7px;margin:12px 0 3px}.history-panel summary{cursor:pointer;font-size:12px;font-weight:800;color:#4f7598;padding:13px;display:flex;justify-content:space-between;list-style:none}.history-panel summary::-webkit-details-marker{display:none}.history-event{padding:10px 13px;border-top:1px solid #e9eef3;font-size:11px;display:flex;gap:9px;color:#708598}.history-event strong{color:#3c5873}.history-event time{font-size:10px;color:#9daebe;display:block;margin-top:3px}.event-mark{width:8px;height:8px;border-radius:50%;background:#7ca8d3;margin-top:3px;flex-shrink:0}.users-modal{width:min(94vw,700px)}.users-list{display:grid;gap:10px;margin-bottom:27px}.user-row{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:9px;padding:11px;background:#f3f7fa;border:1px solid #e2eaf2;border-radius:8px}.user-name{font-size:12px;font-weight:850}.user-name small{display:block;font-weight:500;color:#9aabb9;margin-top:3px}.mini-select{width:110px!important;padding:7px!important;margin:0!important}.mini-btn{font-size:11px;background:#e2edf8;color:#3f719f;padding:8px;border-radius:5px;font-weight:800}.mini-btn:hover{background:#d0e3f4}.disabled-user{opacity:.6}.right{text-align:right}.user-form{background:#f9fbfd;padding:15px 15px 0;border-radius:8px}.small-modal{width:min(94vw,450px)}.toast{position:fixed;bottom:25px;right:25px;color:white;background:#1e4669;box-shadow:0 9px 24px #12335344;border-radius:8px;padding:14px 21px;z-index:10;opacity:0;pointer-events:none;transform:translateY(15px);transition:all .2s;font-size:13px;max-width:min(420px,90vw)}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#a64a55}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at 12% 15%,#2a537b,transparent 50%),linear-gradient(135deg,#142a43,#0c1d30)}.login-card{width:min(100%,440px);background:white;border-radius:16px;padding:43px;box-shadow:0 22px 70px #09182960}.login-mark{margin-bottom:38px;color:#243d57}.login-mark .brand-mark{transform:scale(.9);transform-origin:left}.login-card h1{margin:10px 0;font-size:36px}.login-card p{font-size:13px;color:#8b9aaa;line-height:1.7;margin:0 0 29px}.login-form label{margin-bottom:18px}.login-form .primary-btn{width:100%;margin-top:4px;display:flex;justify-content:space-between;align-items:center}.login-foot{border-top:1px solid #e6edf4;margin-top:30px;padding-top:20px;color:#9faebb;font-size:11px;text-align:center}.login-error{color:#a44552!important;background:#fff0f1;padding:11px;border-radius:6px;margin-bottom:15px!important}
@media(max-width:1100px){.topbar{padding:0 23px}.content{padding:35px 21px}.footer-tip{max-width:310px;text-align:right}.workspace-top{flex-wrap:wrap}.workspace-right{margin-left:auto}}
@media(max-width:700px){.topbar{height:auto;min-height:80px;align-items:start;flex-direction:column;padding:17px 19px;gap:18px}.user-area{width:100%;justify-content:space-between;flex-wrap:wrap;gap:8px}.user-caption{margin-right:auto}.ghost-light{font-size:11px;padding:7px 10px}.content{padding:30px 12px}.page-heading{align-items:start;flex-direction:column;gap:20px;padding:0 7px}.page-heading p{line-height:1.6}.workspace-top{padding:18px 13px;gap:18px}.week-controls{gap:10px;flex-wrap:wrap}.week-label{font-size:16px}.today-btn{padding:8px}.workspace-right{width:100%;justify-content:space-between;margin:0}.filter button{font-size:11px;padding:8px 10px}.board-scroll{padding:0 7px 10px}.board{gap:7px;min-width:1050px}.board-footer{padding:15px;align-items:start;flex-direction:column}.footer-tip{text-align:left;max-width:none}.form-grid{grid-template-columns:1fr;gap:0}.modal-head{padding:22px}.modal-body{padding:18px 22px}.modal-bottom{padding:15px 22px;align-items:stretch;flex-wrap:wrap}.modal-actions{margin-left:auto}.user-row{grid-template-columns:1fr auto;gap:7px}.login-card{padding:30px 24px}}

.reset-desc{color:#7e90a2;font-size:12px;line-height:1.5;margin:0 0 15px}

/* Feedback inside native dialogs, always above their backdrop. */
.dialog-feedback{display:block;margin:0 0 16px;padding:12px 14px;border-radius:7px;font-size:12px;font-weight:650;line-height:1.5;border:1px solid #b6d6eb;background:#eaf4fd;color:#204f78;overflow-wrap:anywhere}
.dialog-feedback.error{background:#fff0f1;border-color:#ecc0c6;color:#9a2f40}
.dialog-feedback.success{background:#eaf4fd;border-color:#bdd5e8;color:#235d89}
.dialog-feedback[hidden]{display:none!important}
.modal .password-field{display:flex;align-items:center;gap:8px;min-width:0}
.modal .password-field input{width:auto;flex:1;min-width:0}
.password-toggle{flex:none;background:#e7f0f8;border:1px solid #cfdeea;color:#245c90;padding:11px 13px;border-radius:7px;font-size:12px;font-weight:800;white-space:nowrap}
.password-toggle:hover{background:#d8e8f5}
.password-help{color:#6c8094;font-size:11px;line-height:1.5;margin:-6px 0 14px}

/* Account administration */
.account-row{display:block;padding:14px;margin-bottom:10px}
.account-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.account-fields label,.account-actions label{margin:0!important;font-size:11px!important}
.account-fields input{padding:9px!important}
.account-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:10px}
.account-actions .mini-select{margin:0!important}
.account-actions .active-setting{display:flex;align-items:center;gap:5px;flex-direction:row;margin-bottom:7px!important}
.active-setting input{width:auto!important;margin:0!important}
.mini-btn.danger{background:#fff0f1;color:#a7374c}
.self-account{font-size:11px;color:#78899c;align-self:center}
.archived-panel{border:1px solid #dce5ed;border-radius:8px;margin:0 0 22px;padding:12px}
.archived-panel summary{cursor:pointer;font-size:12px;font-weight:800}
.archived-user{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #e6ecf2;margin-top:10px}
.archived-user strong,.archived-user small{display:block;font-size:12px}
.archived-user small,.empty-archived{color:#78899c;font-size:11px}
@media(max-width:600px){.account-fields{grid-template-columns:1fr}.archived-user{align-items:start;flex-direction:column}}

/* Mark disposable commercial staging clearly. */
.staging-banner,.demo-login-banner{padding:10px 18px;background:#eaf3ff;color:#173c66;text-align:center;font-weight:800;font-size:12px;letter-spacing:.03em;border-bottom:1px solid #abcde8}
.demo-login-banner{border:1px solid #abcde8;border-radius:8px;margin:12px 0}

/* Self-hosted authenticator QR enrolment. Never load the secret through third-party images. */
.mfa-setup-steps{padding-left:22px;margin:10px 0 18px;color:#354f6b;font-size:13px;line-height:1.6}
.mfa-setup-steps li{margin:6px 0}
.mfa-qr-panel{border:1px solid #d1dfed;border-radius:12px;background:#f3f8fc;padding:16px 12px;text-align:center;margin:12px 0 16px}
.mfa-qr-panel img{display:block;margin:0 auto;background:#fff;max-width:100%;height:auto;width:224px;aspect-ratio:1;padding:6px;border:1px solid #e1eaf4;border-radius:8px}
.mfa-qr-panel p{font-size:11px;color:#506c89;margin:9px 0 0}
.mfa-manual{border:1px solid #d1dfed;border-radius:9px;padding:11px 12px;margin:14px 0}
.mfa-manual summary{font-size:12px;font-weight:750;color:#245c90;cursor:pointer}
.mfa-manual label{margin-top:14px}
.mfa-manual input{width:100%;overflow:hidden;text-overflow:ellipsis}
.mfa-manual button{margin-top:8px}

/* Organisation theme variables are served locally at /static/branding.css.
   Operational RAG colours deliberately never depend on tenant branding. */
.org-header-logo{max-width:132px;max-height:58px;object-fit:contain;padding:4px;border-radius:8px;background:#fff}
.org-login-logo{max-width:210px;max-height:108px;object-fit:contain;display:block;margin:8px auto 17px;padding:9px;background:#fff;border:1px solid #dce5ed;border-radius:10px}
#brandHeading{font-size:16px;line-height:1.3;max-width:260px;word-break:break-word}
.rag-filter-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750;color:#405875}
.rag-filter-label select{font-size:12px;padding:8px 9px;border:1px solid #d5e1ed;border-radius:8px;background:#fff;color:#1b2c40}
.rag-help{display:block;font-weight:450;font-size:11px;color:#627a92;line-height:1.4}
.rag-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 3px}
.rag-dot{width:10px;height:10px;display:inline-block;border-radius:50%;background:#8b98a8;flex-shrink:0}
.rag-dot.red{background:#C52537}.rag-dot.amber{background:#C47C00}.rag-dot.green{background:#197543}.rag-dot.unassessed{background:#758598}
.rag-badge{display:inline-flex;gap:5px;align-items:center;font-size:10px;font-weight:800;border-radius:50px;padding:3px 6px;background:#e6ebf1;color:#3b5064}
.rag-badge.red{background:#ffe8e9;color:#A31D2D}.rag-badge.amber{background:#fff1d9;color:#855307}.rag-badge.green{background:#dbf3e5;color:#135d35}
.rag-auto{color:#a31d2d;font-weight:750;font-size:9px}
.branding-colours input[type=color],#brandingPage{width:100%;height:48px;cursor:pointer;padding:4px}
.branding-logo-preview{display:flex;justify-content:center;align-items:center;border:1px dashed #c8d5e4;background:#f6f9fc;padding:14px;border-radius:9px;margin:0 0 13px;min-height:80px;color:#78899c;font-size:12px}
.branding-logo-preview img{max-height:100px;max-width:200px;object-fit:contain}
.branding-remove-label{flex-direction:row!important;align-items:center;gap:10px!important}
.branding-remove-label input{width:auto!important}
.branding-modal{width:min(94vw,600px)}
.topbar .brand{min-width:0}
.topbar .user-area{flex-wrap:wrap;justify-content:flex-end}
@media (max-width:920px){
 .workspace-right{flex-wrap:wrap;gap:8px}
 .rag-filter-label{flex-wrap:wrap}
 .topbar{height:auto;min-height:85px;flex-wrap:wrap;padding:14px 18px}
 .org-header-logo{max-width:90px}
}

/* Physical T-card board: a recessed five-day rack with identifiable pockets.
   The front lip visually sits over the lower edge of an inserted card. */
.board-scroll{
 background:linear-gradient(135deg,#aebdca 0%,#d9e1e9 6%,#becbd6 50%,#9eafbd 100%);
 padding:16px 16px 19px;
 border-top:5px solid #7b8da0;
 box-shadow:inset 0 5px 15px #263c511f,inset 0 -7px 13px #293a4a30
}
.board{
 display:grid;
 grid-template-columns:repeat(5,minmax(205px,1fr));
 gap:9px;
 min-width:1110px;
 align-items:stretch;
}
.day-column{
 position:relative;
 min-height:0;
 background:linear-gradient(90deg,#8ea2b2 0,#a8b8c5 3%,#dae3eb 5%,#dae3eb 95%,#a8b8c5 97%,#8ea2b2 100%);
 border:2px solid #8197a9;
 border-top:0;
 border-radius:7px;
 box-shadow:0 5px 12px #263b4e38,inset 2px 0 4px #fff9,inset -2px 0 5px #4b60753c;
 overflow:hidden
}
.day-header{
 background:linear-gradient(180deg,var(--navy-2),var(--navy));
 border-top:5px solid #6e92b6;
 min-height:98px;
 padding:15px 14px 14px;
 box-shadow:inset 0 2px 0 #ffffff1c,0 3px 6px #1d33494d;
 position:relative;
 z-index:2
}
.day-column.is-today .day-header{border-top-color:#98c6f6}
.day-header:after{
 content:"";position:absolute;bottom:5px;left:15px;right:15px;
 height:1px;background:#ffffff2e
}
.rack-caption{
 display:flex;align-items:center;justify-content:space-between;
 gap:7px;padding:10px 11px 9px;
 background:linear-gradient(180deg,#e8edf1,#bccbd7);
 color:#3f5366;font-size:9px;letter-spacing:1.5px;font-weight:850;
 border-bottom:2px solid #7d93a6;
 text-shadow:0 1px #fff9
}
.lane{
 padding:11px 9px 14px;
 min-height:0;
 display:flex;flex-direction:column;gap:10px;
 background:linear-gradient(90deg,#869aac 0,#c0ceda 5%,#d3dee7 51%,#b3c4d2 95%,#8198aa 100%);
 border-left:1px solid #7d90a3;
 border-right:1px solid #7d90a3;
 box-shadow:inset 7px 0 10px #35506c26,inset -7px 0 10px #35506c26;
}
.lane.drag-over{
 background:linear-gradient(90deg,#8bb4e3,#daeaff 7%,#e8f4ff 93%,#8bb4e3);
 box-shadow:inset 0 0 0 3px #2c70bb;
}
.rack-slot{
 position:relative;
 min-height:185px;
 padding:7px 8px 17px 17px;
 border:1px solid #71869b;
 border-radius:4px;
 background:linear-gradient(180deg,#506579 0px,#8ba0b1 11px,#e3ebf1 16px,#dce6ed 85%,#a0b1c0 100%);
 box-shadow:inset 0 6px 9px #2c42565c,inset 0 -7px 10px #566f833f,0 1px 1px #fff9;
}
.rack-slot:before{
 content:"";position:absolute;pointer-events:none;
 left:2px;right:2px;top:3px;height:5px;
 background:linear-gradient(180deg,#31485e,#93a8b9);
 border-radius:3px;
 box-shadow:0 1px 1px #eaf1f5;
}
.rack-slot.occupied{min-height:217px}
.slot-number{
 position:absolute;top:18px;left:6px;
 writing-mode:vertical-rl;transform:rotate(180deg);
 color:#40586e;text-shadow:0 1px #fff9;
 font-size:9px;font-weight:900;letter-spacing:1px;
 z-index:2;
}
.rack-slot .tcard{
 margin:5px 0 4px;
 width:100%;
 z-index:1;
 filter:drop-shadow(0 5px 5px rgba(25,43,64,.22));
}
.rack-slot .tcard:hover,.rack-slot .tcard:focus-visible{
 transform:translateY(-3px);
 filter:drop-shadow(0 7px 8px #253e5f55);
}
.rack-slot .tcard-shell{
 min-height:177px;
 border-bottom:3px solid #4d8ac4;
 background:linear-gradient(#fff,#fbfcfe);
}
.rack-slot .tcard-tab{
 height:31px;
 padding-top:8px;
 background:var(--accent-2);
}
.rack-slot .tcard-content{padding:8px 10px 16px}
.rack-slot .tcard h3{font-size:12px}
.rack-slot .tcard p{font-size:10px}
.rack-slot .tcard-footer{margin-top:8px;padding-top:6px}
.slot-lip{
 position:absolute;left:0;right:0;bottom:0;height:23px;
 background:linear-gradient(180deg,#a3b4c0 0,#e5edf3 22%,#b8c8d4 48%,#8196a9 100%);
 border-top:2px solid #f8fcff;
 border-bottom:2px solid #5c7184;
 box-shadow:0 -3px 8px #2b435a44,inset 0 3px 2px #fff9;
 pointer-events:none;z-index:3;
}
.slot-lip:before,.slot-lip:after{
 content:"";position:absolute;top:7px;width:5px;height:5px;
 background:#526d81;border-radius:50%;
 border:1px solid #eff5f9;
 box-shadow:inset 1px 1px 1px #1b3544
}
.slot-lip:before{left:8px}.slot-lip:after{right:8px}
.rack-slot.vacant{min-height:155px}
.rack-slot.vacant:after{
 content:"";position:absolute;top:23px;bottom:30px;left:29px;right:13px;
 border:1px dashed #a4b4c2;border-radius:3px;pointer-events:none;
}
.insert-card-btn{
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 position:relative;z-index:2;
 width:calc(100% - 8px);min-height:100px;margin:14px 0 3px 8px;
 gap:6px;border:1px dashed #94aabd;border-radius:4px;
 color:#385a76;background:#ffffff86;
 text-shadow:0 1px #fff;letter-spacing:.1px;
 font-size:11px;font-weight:850;
}
.insert-card-btn span{font-size:22px;font-weight:350;line-height:1}
.insert-card-btn:hover,.insert-card-btn:focus-visible{
 background:#fff;outline-color:#2b6ead;border-color:#467eae;
}
.slot-empty-label{
 position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);
 text-align:center;color:#6b8295;font-weight:800;font-size:10px;letter-spacing:2px;
 opacity:.8;user-select:none;
}
.rack-foot{
 font-size:9px;font-weight:850;letter-spacing:1.5px;
 color:#426078;padding:11px 10px;
 background:linear-gradient(180deg,#cdd9e3,#9fb3c3);
 border-top:3px solid #667e93;
 text-align:center;text-shadow:0 1px #ffffffa1
}
.rack-slot .rag-line{align-items:center}
.rack-slot .rag-auto{font-size:9px}
.rack-slot .tcard.closed .tcard-shell{background:linear-gradient(#ecf0f3,#dce5ec)}
.rack-slot .tcard.overdue .tcard-shell{border-bottom-color:#cf8e3d}
@media (prefers-reduced-motion:reduce){
 .rack-slot .tcard{transition:none}
 .rack-slot .tcard:hover,.rack-slot .tcard:focus-visible{transform:none}
}

/* Customer-branded page backgrounds can be dark or light.
   Interior white cards, forms and the T-card rack keep their own readable ink. */
:root{--page-foreground:#1B2C40;--page-secondary:#435268}
.page-heading h1,.page-heading h1:not(.modal h1){color:var(--page-foreground)}
.page-heading p,.page-heading .eyebrow{color:var(--page-secondary)}
.page-heading .accent-dot{color:var(--page-foreground)}

/* T-Card Direct-inspired physical rack: densely stacked exposed card tabs, not tall tiles.
   Only the coloured T-shaped cap is visible until the user opens the full card modal. */
.board-scroll{
 background:linear-gradient(165deg,#53616e 0%,#8795a1 1.5%,#aab6bf 3%,#6f7d89 98%,#44525f 100%);
 border:10px solid #4b5966;border-radius:6px;
 padding:9px 8px 13px;
 box-shadow:inset 0 3px 8px #18232dc7,0 12px 30px #14283d33;
}
.board{gap:5px;min-width:1060px;grid-template-columns:repeat(5,minmax(200px,1fr));}
.day-column{
 border:1px solid #4e5a65;border-top:0;border-radius:0;
 min-height:0;overflow:hidden;
 background:linear-gradient(90deg,#89959f,#b6c0c6 7%,#9ba8b2 93%,#657582);
 box-shadow:inset 2px 0 #cdd7db87,inset -3px 0 #27374444;
}
.day-header{
 min-height:83px;padding:12px 11px;
 border-top:4px solid #c7d4df;
 background:linear-gradient(#243b52,#15283d);
 box-shadow:0 4px 5px #293b4b4d;
}
.day-column.is-today .day-header{background:linear-gradient(#214970,#1a3756);border-top-color:#8fc5f2;}
.day-header .day-name{font-size:10px;letter-spacing:1.1px;}
.day-header .day-date{font-size:23px;}
.rack-caption{
 padding:6px 11px;background:linear-gradient(#cbd3d8,#99a8b2);
 border-bottom:2px solid #536675;color:#364d5f;font-size:8px;
 letter-spacing:1.1px;
}
.lane{
 display:flex;flex-direction:column;gap:0;
 min-height:0;padding:7px 6px 13px;
 background:linear-gradient(90deg,#657682,#a2afb8 5%,#c0cbd2 50%,#a2afb8 95%,#657682);
 box-shadow:inset 3px 0 8px #25394b55,inset -3px 0 8px #25394b55;
}
.rack-slot,.rack-slot.occupied,.rack-slot.vacant{
 position:relative;display:block;
 flex:0 0 43px;height:43px;min-height:43px;
 margin:0;border-radius:0;border:0;
 padding:0 4px 0 23px;overflow:hidden;
 background:linear-gradient(180deg,#6c7e8a 0,#4d5f6c 13%,#b8c5ce 22%,#b5c2cc 82%,#667986 99%);
 box-shadow:inset 0 2px 2px #1b30416b,inset 1px 0 #edf2f58e,inset -1px 0 #30485c48;
}
.rack-slot:before{
 content:"";height:3px;top:0;left:22px;right:2px;position:absolute;z-index:1;
 border:0;border-radius:0;background:linear-gradient(#283d4c,#576f7e);
 box-shadow:0 1px #dbe4e8a6;
}
.rack-slot.vacant:after{display:none}
.slot-number{
 top:15px;left:5px;z-index:5;color:#223745;
 font-size:8px;letter-spacing:.1em;writing-mode:initial;transform:none;
 text-shadow:0 1px #ffffffa9;
}
.rack-slot .tcard{
 position:absolute;top:4px;left:24px;right:4px;bottom:auto;
 margin:0;width:auto;height:85px;
 z-index:3;display:block;
 border:0;border-radius:2px 2px 0 0;
 box-shadow:0 3px 7px #14293b4d;
 transform:translateY(0);
 filter:none;transition:transform .16s ease,filter .16s ease;
 cursor:grab;outline-offset:-3px;
}
.rack-slot .tcard:hover,.rack-slot .tcard:focus-visible{
 transform:translateY(-4px);filter:brightness(1.03);
 outline:2px solid #142c47;
}
.rack-slot .tcard:active{cursor:grabbing}
.tcard .tcard-tab{
 display:flex!important;align-items:center;justify-content:space-between;
 width:100%;height:37px;min-height:37px;margin:0;
 padding:6px 7px 6px 10px;
 border:1px solid #ffffffbf;border-bottom:2px solid #39506b57;
 border-radius:3px 3px 1px 1px;
 box-shadow:inset 0 1px #ffffffd1;
 background:#d9e9fb;color:#102d49;
 font-size:11px;text-align:left;
}
.tcard .tcard-neck{
 display:flex;align-items:center;justify-content:center;
 width:82%;height:50px;margin:0 auto;
 border:1px solid #ffffffa3;border-top:0;
 box-shadow:inset 0 4px 4px #182a3a1c;
 background:#b9d1ed;color:#26445f;
 font-size:9px;padding:7px;
}
.tcard-exposed-title{
 min-width:0;max-width:calc(100% - 43px);
 font-weight:850;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;
}
.tcard-exposed-time{
 font-weight:850;font-size:10px;font-variant-numeric:tabular-nums;
 border-radius:3px;padding:3px 2px;
}
.tcard-pull-details{
 display:block;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
.tcard.rag-green .tcard-tab{background:#a4e7bc;color:#164128;}
.tcard.rag-green .tcard-neck{background:#6bbf90;}
.tcard.rag-amber .tcard-tab{background:#ffe088;color:#553a04;}
.tcard.rag-amber .tcard-neck{background:#e5b547;}
.tcard.rag-red .tcard-tab{background:#ffc0c6;color:#5a111b;}
.tcard.rag-red .tcard-neck{background:#dc7d85;}
.tcard.rag-unassessed .tcard-tab{background:#b9d9fb;color:#153d67;}
.tcard.rag-unassessed .tcard-neck{background:#85b1dc;}
.tcard.closed .tcard-tab{background:#d3dce3;color:#405063;text-decoration:line-through;}
.tcard.closed .tcard-neck{background:#9aabb8;}
.tcard.overdue .tcard-tab{border-left:5px solid #b72539;}
.tcard .rag-notch{position:absolute;bottom:0;right:0;width:4px;height:100%;z-index:4;}
.tcard .rag-notch.red{background:#aa1728;}
.tcard .rag-notch.amber{background:#bb7900;}
.tcard .rag-notch.green{background:#117a43;}
.tcard .rag-notch.unassessed{background:#537796;}
.tcard .overdue-corner{
 position:absolute;z-index:6;right:2px;top:4px;display:grid;place-items:center;
 border:1px solid #fff7;width:13px;height:13px;border-radius:50%;
 color:white;background:#ab1d2f;font-size:9px;font-weight:900;
}
.slot-lip{
 position:absolute;z-index:4;bottom:0;left:20px;right:0;height:9px;
 pointer-events:none;
 background:linear-gradient(#e3ebee 0%,#9cabb6 34%,#71838f 80%,#3d5362 100%);
 box-shadow:0 -2px 2px #24394966,inset 0 1px #fff9;
 border:0;border-radius:0;
}
.slot-lip:before,.slot-lip:after{display:none;}
.empty-channel{
 display:block;position:absolute;z-index:2;
 left:25px;right:5px;top:12px;height:13px;
 border-top:1px solid #e1e9ed66;
 box-shadow:inset 0 4px 6px #273b4a66;
 background:linear-gradient(#8596a2,#9dabb5);
}
.insert-card-btn{
 position:relative;z-index:3;
 display:flex;flex-direction:row;align-items:center;justify-content:center;
 gap:6px;margin:5px 0 0 3px;height:28px;min-height:28px;
 width:calc(100% - 3px);padding:0 5px;
 border:1px dashed #718698;border-radius:2px;background:#e5eef4eb;
 color:#214d70;font-size:10px;letter-spacing:0;text-shadow:none;font-weight:800;
}
.insert-card-btn span{font-size:16px;font-weight:700;}
.insert-card-btn:hover,.insert-card-btn:focus-visible{background:#fff;}
.rack-foot{
 padding:8px 5px;border-top:4px solid #54697a;
 background:linear-gradient(#9aaebc,#6b8090);
 color:#1a3141;text-shadow:0 1px #eef7fa80;letter-spacing:1px;font-size:8px;
}
.board-legend{color:var(--ink);}
.card-detail-modal:modal{animation:pull-out-card .2s ease-out both;}
@keyframes pull-out-card{from{opacity:.65;transform:translateY(19px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.pulled-card-preview{
 border:2px solid #96aec3;border-radius:6px;
 margin-bottom:19px;box-shadow:0 6px 13px #142e4826;
 background:linear-gradient(#fff,#f7fafc);padding:0 14px 16px;
}
.pulled-card-tab{
 display:flex;justify-content:space-between;gap:9px;
 margin:0 -14px 13px;padding:11px 14px;
 background:linear-gradient(90deg,#dce9f7,#b8cde0);
 border-bottom:2px solid #7899b9;
 font-size:10px;letter-spacing:.8px;font-weight:900;color:#27435e;
}
.pulled-card-face{display:flex;flex-direction:column;gap:6px;}
.pulled-card-face strong{font-size:17px;color:#152e48;}
.pulled-card-face span{font-size:12px;color:#526c82;}
.pulled-rag{border-radius:30px;padding:4px 8px;background:#c5d7e7;color:#1b415f;}
.pulled-rag.red{background:#ffdade;color:#87202e;}
.pulled-rag.amber{background:#fff0c8;color:#76500a;}
.pulled-rag.green{background:#d0f2dc;color:#1a6339;}
/* No overlapping current/next logo previews or misleading saved-state messages. */
.branding-logo-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px;}
.branding-logo-box{min-width:0}
.branding-logo-box>strong{display:block;font-size:11px;color:#3d5b77;margin:0 0 7px;}
.branding-logo-box .branding-logo-preview{
 margin:0;padding:9px;min-height:120px;max-height:150px;
 display:flex;align-items:center;justify-content:center;
}
.branding-logo-box .branding-logo-preview img{width:auto;height:auto;max-width:100%;max-height:126px;object-fit:contain;}
.branding-logo-box .branding-logo-preview span{font-size:11px;text-align:center;line-height:1.5;}
.logo-prepare-status{font-size:11px;color:#506b83;overflow-wrap:anywhere;line-height:1.5;}
@media (max-width:580px){.branding-logo-comparison{grid-template-columns:1fr;}}
@media (prefers-reduced-motion:reduce){.card-detail-modal:modal{animation:none}.rack-slot .tcard{transition:none;}}

/* Customers can choose between the physical rack and full-card Kanban, while
   retaining the same week, RAG status, audit history and drag-to-day behaviour. */
.board-view-toggle{
 display:flex;align-items:center;gap:3px;padding:4px;
 border:1px solid #dbe5ef;border-radius:9px;
 background:#f2f6fa;white-space:nowrap;
}
.board-view-toggle button{
 background:transparent;color:#627b95;
 padding:9px 11px;border-radius:7px;font-size:11px;font-weight:850;
}
.board-view-toggle button.active,
.board-view-toggle button[aria-pressed=true]{
 color:#184575;background:#fff;
 box-shadow:0 2px 7px #1c3d5f27;
}
.board-view-toggle button:hover{background:#e2ebf6}
.board-view-toggle button.active:hover{background:#fff}
.workspace-right{gap:10px;flex-wrap:wrap;justify-content:flex-end}
.board-scroll.kanban-mode{
 border:0;border-top:3px solid #e1eaf2;border-radius:0;
 padding:16px;
 background:linear-gradient(180deg,#f1f6fa,#e9f0f6);
 box-shadow:inset 0 3px 8px #2340580d;
}
.board.board-kanban{
 min-width:1110px;display:grid;
 grid-template-columns:repeat(5,minmax(210px,1fr));
 gap:12px;align-items:stretch;
}
.board-kanban .day-column{
 border:1px solid #d7e3ed;border-radius:11px;
 background:#f5f8fb;min-height:525px;
 overflow:hidden;box-shadow:0 3px 12px #1c3c5817;
}
.board-kanban .day-header{
 min-height:83px;padding:13px 15px;
 border-top:4px solid var(--accent);
 border-bottom:1px solid #b9cddd;
 background:linear-gradient(175deg,var(--navy-2),var(--navy));
}
.board-kanban .day-column.is-today .day-header{border-top-color:#8fc5f2;}
.board-kanban .lane{
 display:flex;flex-direction:column;
 gap:12px;min-height:445px;
 padding:13px;border:0;
 background:transparent;box-shadow:none;
}
.board-kanban .lane.drag-over{
 background:#d6eafe;
 box-shadow:inset 0 0 0 3px #498ec6;
}
.kanban-card{
 display:flex;flex-direction:column;gap:9px;
 background:#fff;border:1px solid #dce5ed;
 border-left:5px solid #8499ad;
 border-radius:9px;padding:13px 12px;
 box-shadow:0 4px 12px #18344e16;
 cursor:grab;transition:transform .14s ease,box-shadow .14s ease;
}
.kanban-card.rag-red{border-left-color:#c02a3a;}
.kanban-card.rag-amber{border-left-color:#bd820d;}
.kanban-card.rag-green{border-left-color:#21804c;}
.kanban-card.rag-unassessed{border-left-color:#7394b4;}
.kanban-card.closed{background:#edf1f5;opacity:.85;}
.kanban-card:hover,.kanban-card:focus-visible{
 transform:translateY(-2px);
 box-shadow:0 6px 18px #1d405b29;outline:2px solid #98bfe3;outline-offset:1px;
}
.kanban-card:active{cursor:grabbing;}
.kanban-card h3{
 margin:1px 0 0;font-size:13px;color:#18344c;line-height:1.4;
 overflow-wrap:anywhere;
}
.kanban-card.closed h3{text-decoration:line-through;color:#66788a;}
.kanban-card-top,.kanban-badges,.kanban-owner{
 display:flex;justify-content:space-between;align-items:center;gap:6px;
}
.kanban-id{font-size:9px;letter-spacing:.8px;font-weight:850;color:#7991a9;}
.kanban-time{font-size:10px;font-weight:850;color:#3b6387;white-space:nowrap;font-variant-numeric:tabular-nums;}
.kanban-note{font-size:11px;line-height:1.55;color:#64798c;margin:0;overflow-wrap:anywhere;}
.kanban-badges{justify-content:flex-start;flex-wrap:wrap;gap:6px;}
.kanban-state{
 padding:4px 7px;font-size:10px;font-weight:850;border-radius:15px;
 background:#e4effb;color:#2d6194;
}
.kanban-state.done{background:#dce5ec;color:#465b6e;}
.kanban-state.late{background:#fff1db;color:#9d5a08;}
.kanban-owner{
 justify-content:flex-start;
 font-size:10px;color:#577088;font-weight:700;
 border-top:1px solid #edf1f5;padding-top:9px;margin-top:3px;
}
.kanban-avatar{
 width:22px;height:22px;border-radius:50%;
 display:grid;place-items:center;font-size:10px;
 color:#255680;background:#e2edf7;font-weight:850;
}
.kanban-empty{
 font-size:11px;color:#8094a6;text-align:center;
 border:1px dashed #c4d5e2;border-radius:8px;
 background:#fff7;padding:28px 6px;margin:0;
}
.kanban-add{
 width:100%;padding:12px 10px;border:1px dashed #b9cbdc;
 border-radius:8px;background:#e5eef7;color:#285e8b;
 font-size:11px;font-weight:800;
}
.kanban-add:hover,.kanban-add:focus-visible{background:#d5e8f9;border-color:#6598c2;}
/* Give the customer's artwork a prominent, readable place in the header.
   The logo is also clickable for an enlarged view. */
.topbar{height:auto;min-height:122px;padding:12px max(24px,calc((100vw - 1540px)/2));gap:22px;}
.topbar .brand{flex:0 1 auto;gap:17px;min-width:200px;}
.brand-logo-button{
 display:grid;place-items:center;flex:0 0 auto;
 width:118px;height:108px;border-radius:11px;padding:4px;
 background:#fff;border:2px solid #c3d7e9;box-shadow:0 4px 16px #091e3359;
}
.brand-logo-button[hidden]{display:none!important;}
.brand-logo-button:hover,.brand-logo-button:focus-visible{
 outline:3px solid #8bc3ff;outline-offset:2px;
}
.org-header-logo{
 display:block;max-width:100%;max-height:100%;
 object-fit:contain;padding:0;border:0;border-radius:7px;background:transparent;
}
.topbar #orgWelcome{display:none;}
#brandHeading{max-width:230px;font-size:17px;line-height:1.26;}
.topbar .user-area{flex:0 1 auto;justify-content:flex-end;gap:9px;row-gap:8px;}
.topbar .ghost-light{padding:9px 11px;font-size:11px;}
.logo-view-modal{width:min(90vw,510px);}
.logo-view-body{display:flex;justify-content:center;align-items:center;min-height:280px;background:#f2f6fa;}
.logo-view-body img{display:block;max-width:100%;max-height:min(58vh,420px);width:auto;height:auto;object-fit:contain;}
@media (max-width:1250px){
 .topbar{flex-wrap:wrap;}
 .topbar .user-area{width:100%;justify-content:flex-start;}
}
@media (max-width:700px){
 .topbar{padding:15px 17px;}
 .brand-logo-button{width:92px;height:92px;}
 #brandHeading{font-size:15px;max-width:200px;}
 .topbar .user-area{gap:7px;}
 .board-view-toggle button{font-size:11px;}
 .board-scroll.kanban-mode{padding:9px 7px 13px;}
 .board.board-kanban{min-width:1050px;}
}
@media(prefers-reduced-motion:reduce){.kanban-card{transition:none}.kanban-card:hover{transform:none}}

/* The customer artwork belongs directly on the header, without the old white
   outline, matte or raised tile. Preserve its proportions and click-to-enlarge. */
.topbar .brand-logo-button{
 width:112px;height:104px;flex:0 0 112px;
 display:grid;place-items:center;
 padding:0;margin:0;
 border:0;border-radius:0;
 background:transparent;
 box-shadow:none;overflow:visible;
}
.topbar .brand-logo-button[hidden]{display:none!important;}
.topbar .brand-logo-button:hover,
.topbar .brand-logo-button:focus-visible{
 background:transparent;
 outline:2px solid #8bc3ff;outline-offset:3px;border-radius:4px;
}
.topbar .brand-logo-button .org-header-logo{
 display:block;width:100%;height:100%;
 max-width:100%;max-height:100%;
 object-fit:contain;
 padding:0;margin:0;border:0;border-radius:0;
 background:transparent;box-shadow:none;
}
@media(max-width:700px){
 .topbar .brand-logo-button{
  width:92px;height:92px;flex-basis:92px;
 }
}

/* TCardover product identity, deliberately separated from customer logo/name. */
.topbar .brand{
 display:flex;align-items:center;flex-wrap:wrap;flex:0 1 auto;
 gap:17px;min-width:0;
}
.software-brand{
 display:flex;align-items:center;gap:10px;min-width:0;
 padding:4px 18px 4px 0;border-right:1px solid #ffffff3b;
}
.software-brand img{display:block;width:49px;height:49px;object-fit:contain;flex:0 0 49px;}
.software-brand strong{
 color:#fff;font-size:20px;font-weight:850;letter-spacing:-.6px;line-height:1.1;white-space:nowrap;
}
.software-brand small{
 display:block;color:#b8d4f0;font-size:8px;font-weight:800;
 letter-spacing:1.3px;margin-top:7px;white-space:nowrap;
}
.organisation-brand{display:flex;align-items:center;gap:14px;min-width:0;}
.organisation-brand #brandHeading{
 display:block;max-width:255px;font-size:16px;
 overflow-wrap:anywhere;line-height:1.25;
}
.organisation-brand small{
 font-size:9px;color:#a9c6e2;letter-spacing:1.25px;
}
.organisation-brand .brand-mark{flex-shrink:0;}
/* The product login artwork is hosted locally, with customer branding on its own panel. */
.login-layout{
 display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.84fr);
 width:min(1100px,100%);align-items:stretch;
 border-radius:18px;overflow:hidden;
 box-shadow:0 28px 85px #071a3180;
}
.login-showcase{
 display:flex;flex-direction:column;justify-content:space-between;gap:22px;
 padding:32px 34px 28px;color:#e9f4ff;
 background:linear-gradient(140deg,#132d4c 0%,#204772 47%,#10263e 100%);
}
.login-product-brand{display:flex;gap:10px;align-items:center;font-size:21px;font-weight:850;letter-spacing:-.4px;}
.login-product-brand img{display:block;width:48px;height:48px;object-fit:contain;}
.login-showcase-image{
 overflow:hidden;border-radius:14px;background:#fff;isolation:isolate;
 box-shadow:0 20px 36px #071a314d;
}
.login-showcase-image img{display:block;width:100%;height:auto;object-fit:contain;}
.login-showcase-copy strong{font-size:22px;letter-spacing:-.4px;line-height:1.25;}
.login-showcase-copy p{
 margin:8px 0 0;color:#c9ddef;font-size:12px;line-height:1.75;
 max-width:460px;
}
.login-layout .login-card{
 width:100%;max-width:none;border-radius:0;padding:31px 38px;
 box-shadow:none;align-self:stretch;
}
.login-layout .login-mark{margin-bottom:19px;display:flex;align-items:center;gap:9px;}
.login-layout .login-mark img{height:42px;width:42px;object-fit:contain;}
.login-layout .login-mark strong{font-size:19px;letter-spacing:-.3px;}
.login-customer{padding:17px 16px 15px;margin:0 0 12px;background:#f3f7fb;border:1px solid #e1eaf2;border-radius:12px;}
.login-customer>span{
 display:block;color:#5c7993;font-size:9px;font-weight:850;letter-spacing:1.4px;
 margin-bottom:9px;
}
.login-customer .org-login-logo{
 display:block;max-width:190px;max-height:92px;
 padding:6px;margin:8px auto 12px;background:#fff;object-fit:contain;
}
.login-customer .eyebrow{
 font-size:10px;letter-spacing:1px;line-height:1.4;
 overflow-wrap:anywhere;
}
@media(max-width:1140px){
 .topbar .brand{gap:11px;}
 .software-brand{padding-right:12px;}
 .software-brand strong{font-size:18px;}
}
@media(max-width:820px){
 .login-layout{grid-template-columns:1fr;max-width:490px;}
 .login-layout .login-card{padding:27px 27px 30px;}
 .login-showcase{padding:17px 26px;gap:7px;}
 .login-showcase-image{display:none;}
 .login-product-brand{font-size:19px;}
 .login-product-brand img{height:38px;width:38px;}
 .login-showcase-copy strong{font-size:15px;}
 .login-showcase-copy p{font-size:11px;line-height:1.5;margin:3px 0 0;}
}
@media(max-width:510px){
 .topbar .brand{width:100%;align-items:flex-start;gap:10px;}
 .software-brand{border-right:0;border-bottom:1px solid #ffffff26;padding-bottom:11px;width:100%;}
 .organisation-brand{width:100%;}
 .organisation-brand #brandHeading{max-width:200px;}
 .login-page{padding:13px;}
 .login-layout .login-card{padding:23px 22px 26px;}
 .login-showcase{padding:15px 20px;}
}

/* Trial state is per isolated workspace, not stored in the browser. */
.trial-plan-link{color:#154d84;font-size:12px;font-weight:850;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.trial-plan-link:hover{color:#226fc1}
.trial-banner.trial-expired .trial-plan-link{color:#872033}
.trial-banner.trial-expired .trial-plan-link:hover{color:#b22f49}
.trial-banner{
 display:flex;align-items:center;justify-content:space-between;gap:9px 24px;flex-wrap:wrap;
 padding:12px max(24px,calc((100vw - 1512px)/2));
 background:#e4f0ff;color:#173e67;border-bottom:1px solid #a9d2fb;
 font-size:12px;letter-spacing:.1px;line-height:1.45;
}
.trial-banner #trialBannerText{font-weight:850;font-size:13px}
.trial-banner #trialBannerDetails{font-weight:650;color:#365f81}
/* Expiry is a service-access warning, not a routine trial milestone.
   Keep the text legible without a full-strength, alarming red background. */
.trial-banner.trial-expired{
 background:#fff0f2;border-bottom:2px solid #d25c71;color:#832037;
 padding-top:14px;padding-bottom:14px;
}
.trial-banner.trial-expired #trialBannerText{
 display:inline-flex;align-items:center;gap:10px;
 flex:1 1 290px;min-width:0;
 color:#832037;line-height:1.5;font-size:13px;
}
.trial-banner.trial-expired #trialBannerText::before{
 content:"!";display:inline-grid;place-items:center;
 width:23px;height:23px;border:1px solid #ca4d66;
 border-radius:50%;background:#f8d9df;color:#802035;
 font-size:15px;font-weight:900;flex-shrink:0;
}
.trial-banner.trial-expired #trialBannerDetails{
 color:#792b3a;line-height:1.55;flex:1 1 360px;
}
@media(max-width:700px){
 .trial-banner.trial-expired{gap:8px 14px}
 .trial-banner.trial-expired #trialBannerText{flex:1 1 100%}
 .trial-banner.trial-expired #trialBannerDetails{flex:1 1 100%}
}
@media(max-width:700px){.trial-banner{padding:12px 18px;}}

.trial-login-note{
 background:#eaf2ff;color:#1e5381;border:1px solid #bad6f1;
 border-radius:8px;padding:11px 13px;margin:0 0 18px!important;
 font-size:12px;line-height:1.5;font-weight:750;
}
.trial-login-note.expired{background:#fff1e9;color:#7b3b1c;border-color:#e9c3a6}

/* Report a bug stays inside the authenticated workspace; never send private
   task content to third-party analytics or external forms. */
.bug-report-list{display:grid;gap:13px;max-height:520px;overflow:auto;margin-top:14px;}
.bug-report-entry{background:#f5f9fc;border:1px solid #dce8f3;padding:16px;border-radius:11px;}
.bug-report-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.bug-report-entry strong{color:#183b5b;font-size:12px;}
.bug-report-entry p{margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6;color:#57708a;}
.bug-status{font-size:10px;letter-spacing:.3px;border-radius:20px;text-transform:capitalize;padding:5px 11px;background:#d9eafb;color:#295f90;font-weight:900;}
.bug-status.investigating{background:#fff0c8;color:#805412;}
.bug-status.resolved{background:#d8f4df;color:#1d6c3d;}
.bug-status.closed{background:#e3e7eb;color:#506279;}
.bug-triage{display:grid;gap:10px;margin-top:15px;padding-top:13px;border-top:1px solid #dce8f1;}
.bug-triage label{display:grid;gap:6px;font-size:11px;color:#48637d;font-weight:750;}
.bug-triage textarea,.bug-triage select{width:100%;max-width:100%;border:1px solid #d0e0ee;border-radius:7px;padding:9px;background:#fff;color:#173a57;}
.bug-report-entry .bug-triage .mini-btn{justify-self:start;}
.invite-panel{padding:17px 17px 14px;margin-bottom:20px;border-radius:10px;border:1px solid #cbdff2;background:#f0f7ff;display:grid;justify-items:start;gap:10px;}
.invite-panel h3{margin:0;}
.invite-panel label{width:100%;font-size:11px;color:#3d5f7f;font-weight:800;}
.invite-panel input{font:12px ui-monospace,Consolas,monospace;max-width:100%;width:100%;padding:11px;border:1px solid #aac9e6;border-radius:6px;background:#fff;color:#183b5b;}
#bugsDialog textarea{width:100%;min-height:70px;padding:11px;border:1px solid #d2e0eb;border-radius:8px;resize:vertical;color:#173b5c;}
#bugsDialog label{min-width:0;}
#bugsDialog .user-form{display:grid;gap:13px;}
#bugsDialog .user-form>.primary-btn{justify-self:start;}
#bugsDialog .modal-body>h3{margin-top:28px;}

/* 2026-10-22: approved physical three-card T-card rack branding. */
.topbar .software-brand img{width:105px;height:48px;flex:0 0 105px;object-fit:contain;border-radius:8px;background:#fff;}
.login-product-brand img{width:98px;height:47px;object-fit:contain;background:#fff;border-radius:7px;}
.login-layout .login-mark img{width:89px;height:42px;object-fit:contain;border-radius:7px;}
@media(max-width:980px){.topbar .software-brand img{width:81px;height:39px;flex-basis:81px;}}
@media(max-width:560px){.topbar .software-brand img{width:68px;height:33px;flex-basis:68px}.login-product-brand img{width:78px;height:38px}.login-layout .login-mark img{width:76px;height:37px}}


/* Sign-in password reveal: positioned alongside, not over, the input. */
.login-form .login-password-field{display:grid;gap:8px;margin-bottom:18px}
.login-form .login-password-field>label{margin:0;font-size:12px;color:#43586d;font-weight:800}
.login-form .login-password-control{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px;align-items:stretch;min-width:0}
.login-form .login-password-control input{width:100%;min-width:0}
.login-form .login-password-toggle{border:1px solid #cfdfed;background:#edf5fc;color:#193f64;border-radius:7px;font-size:12px;font-weight:800;padding:0 8px;min-height:42px;cursor:pointer}
.login-form .login-password-toggle:hover{background:#dcecfb}
.login-form .login-password-toggle:focus-visible{outline:3px solid #8bb6ed;outline-offset:2px}


/* 2026-11 login identity refresh: reuse the actual rack mark; do not display
   the discontinued standalone T promotional graphic. Demo content is fictional. */
.login-board-preview{
 padding:21px 22px 18px;color:#182f4c;
 background:linear-gradient(155deg,#fff 0%,#f5faff 58%,#eaf3fd 100%);
}
.login-preview-top,.login-preview-brand,.login-preview-intro,.login-preview-foot{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.login-preview-brand{justify-content:flex-start;gap:8px;min-width:0;}
.login-preview-brand img{width:47px;height:36px;object-fit:contain;flex-shrink:0;}
.login-preview-brand div{display:grid;gap:1px;}
.login-preview-brand strong{font-size:19px;line-height:1.1;color:#173757;letter-spacing:-.5px;}
.login-preview-brand span{font-size:8px;letter-spacing:1.5px;font-weight:800;color:#6d8aa8;}
.login-preview-sample{font-size:9px;letter-spacing:1px;font-weight:800;color:#6689a9;white-space:nowrap;}
.login-preview-intro{margin:19px 0 16px;align-items:baseline;}
.login-preview-intro strong{font-size:21px;letter-spacing:-.7px;color:#132c48;line-height:1.2;}
.login-preview-intro span{font-size:10px;color:#607f9c;}
.login-preview-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:9px;background:#dfeaf4;border:1px solid #ccdae7;border-radius:10px;
 padding:9px;box-shadow:inset 0 2px 5px #0f324411;}
.login-preview-day{min-width:0;background:#f6f9fd;border-radius:6px;
 border:1px solid #d3e1ee;overflow:hidden;}
.login-preview-day-title{background:#21496f;color:white;padding:9px 10px;
 display:flex;align-items:center;justify-content:space-between;
 font-size:9px;letter-spacing:.6px;font-weight:850;}
.login-preview-day-title span{color:#deedfa;background:#3d6690;
 padding:2px 5px;border-radius:9px;font-size:9px;}
.login-preview-rack{display:grid;gap:8px;padding:12px 9px 10px;
 min-height:201px;background:repeating-linear-gradient(to bottom,#f6f9fd 0,#f6f9fd 70px,#d9e5f0 71px,#f6f9fd 72px);}
.login-preview-card{display:flex;flex-direction:column;min-width:0;
 background:white;border-bottom:3px solid #4f95d6;filter:drop-shadow(0 2px 2px #16395420);
 padding:16px 9px 9px;position:relative;
 clip-path:polygon(0 10px,18% 10px,18% 0,82% 0,82% 10px,100% 10px,100% 100%,0 100%);
 min-height:73px;}
.login-preview-card::before{content:'';position:absolute;top:0;left:18%;
 width:64%;height:10px;background:#438bd3;}
.login-preview-card>span{font-size:10px;line-height:1.3;font-weight:750;
 color:#24405d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.login-preview-card small{font-size:8px;color:#708ba3;margin-top:3px;}
.login-preview-card i{font-size:8px;color:#3e79ac;font-weight:750;
 font-style:normal;margin-top:5px;}
.login-preview-card.pale{border-bottom-color:#a7b8c7;}
.login-preview-card.pale::before{background:#91acc5;}
.login-preview-card.pale i{color:#68839d;}
.login-preview-card.sky{border-bottom-color:#65a8d8;}
.login-preview-card.sky::before{background:#65a8d8;}
.login-preview-card.done{border-bottom-color:#639fa8;}
.login-preview-card.done::before{background:#7fb0ad;}
.login-preview-card.done i{color:#427f78;}
.login-preview-empty{height:24px;background:#e5edf5;border:1px dashed #cad9e8;border-radius:4px;}
.login-preview-foot{margin-top:11px;color:#61819d;font-size:9px;
 font-weight:700;letter-spacing:.45px;}
@media(max-width:970px) and (min-width:821px){
 .login-board-preview{padding:16px;}
 .login-preview-intro{margin:12px 0;}
 .login-preview-intro strong{font-size:18px;}
 .login-preview-intro span{display:none;}
 .login-preview-board{gap:5px;padding:6px;}
 .login-preview-rack{padding:9px 5px;gap:6px;}
 .login-preview-card{padding-left:6px;padding-right:5px;}
}


/* Visible, keyboard-accessible recovery link next to the password control. */
.login-recovery-link{display:flex;justify-content:flex-end;margin:9px 0 15px;font-size:13px;line-height:1.5}
.login-recovery-link a{color:var(--accent-2);font-weight:750;text-decoration:underline;text-underline-offset:3px}
.login-recovery-link a:hover{color:#174a83}
.login-recovery-link a:focus-visible{outline:3px solid #8bb6ed;outline-offset:3px}

/* Per-user Account > Desktop T-card reminders (no board changes) */
.reminder-settings{border-bottom:1px solid #d9e2ee}
.reminder-settings h3{margin:0 0 10px;color:var(--ink,#173a5b)}
.reminder-settings .reminder-checkbox{display:flex;align-items:flex-start;gap:10px;margin:12px 0;line-height:1.5;cursor:pointer}
.reminder-settings .reminder-checkbox input[type="checkbox"]{width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#255d9b}
.reminder-settings #reminderStatus{min-height:1.4em}
.reminder-settings select{min-width:0;max-width:100%}


/* Consistent dialog design system for all TCardover workspace pop-ups.
   Widths vary by content, but headers, surfaces, fields and footers match. */
dialog.modal{
  width:min(94vw,640px);
  max-height:min(92vh,920px);
  overflow-y:auto;
  background:#fff;
  border:1px solid #d9e4ef;
  border-radius:16px;
  box-shadow:0 26px 80px rgba(9,31,56,.30);
}
dialog.modal::backdrop{background:rgba(11,27,48,.58);backdrop-filter:blur(4px)}
dialog.modal.small-modal{width:min(94vw,490px)}
dialog.modal.users-modal{width:min(94vw,790px)}
dialog.modal.branding-modal{width:min(94vw,670px)}
dialog.modal.logo-view-modal{width:min(94vw,520px)}
dialog.modal.account-modal{width:min(94vw,740px)}
dialog.modal .modal-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  position:sticky;top:0;z-index:5;
  padding:21px 25px 18px;
  background:#fff;border-bottom:1px solid #e3ebf3;
}
dialog.modal .modal-head h2{
  font-size:clamp(1.13rem,2vw,1.36rem);
  line-height:1.3;letter-spacing:-.02em;margin:3px 0 0;color:#17324e;
}
dialog.modal .modal-head .eyebrow{letter-spacing:.1em}
dialog.modal .modal-body{padding:21px 25px;max-height:min(67vh,660px)}
dialog.modal .modal-bottom{
  padding:16px 25px;gap:12px;min-height:64px;
  background:#f8fafc;border-top:1px solid #e3ebf3;
  align-items:center;justify-content:space-between;
}
dialog.modal .close-btn{
  flex:0 0 36px;width:36px;height:36px;
  display:inline-grid;place-items:center;
  border:1px solid #d8e2ed;border-radius:10px;
  font-size:23px;line-height:1;color:#4c647d;background:#f3f7fb;
}
dialog.modal .close-btn:hover{background:#e7eff8;color:#183b5b}
dialog.modal .close-btn:focus-visible,
dialog.modal .account-tabs button:focus-visible,
dialog.modal button:focus-visible{
  outline:3px solid #7faad1;outline-offset:3px;
}
dialog.modal input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
dialog.modal select,dialog.modal textarea{
  border-radius:9px;min-height:42px;
}
dialog.modal .modal-body>h3,dialog.modal .modal-body>section>h3{
  margin-top:0;color:#183b5b;
}
.modal-subtitle{font-size:13px;color:#62768c;line-height:1.5;margin:7px 0 0}

/* Account settings — keep the header and tabs visible while content scrolls.
   Earlier .account-panel.modal-body rules accidentally set overflow:visible and
   max-height:none, so reminders were cut off by the dialog's overflow:hidden. */
dialog.modal.account-modal[open]{
  display:flex;
  flex-direction:column;
  max-height:min(88dvh,820px);
  overflow:hidden;
}
dialog.modal.account-modal > .modal-head,
dialog.modal.account-modal > .account-tabs{
  flex:0 0 auto;
  position:relative;
}

.account-tabs{
  display:flex;gap:8px;padding:12px 24px;
  border-bottom:1px solid #e3ebf3;background:#f8fafc;
}
.account-tabs [role="tab"]{
  flex:1;min-width:0;padding:11px 12px;
  border:1px solid transparent;border-radius:10px;
  background:transparent;color:#50667e;font:inherit;
  font-size:13px;font-weight:750;cursor:pointer;
}
.account-tabs [role="tab"][aria-selected="true"]{
  border-color:#b9cee4;background:#fff;color:#174a77;
  box-shadow:0 2px 6px rgba(30,68,101,.08);
}
.account-tabs [role="tab"]:hover:not([aria-selected="true"]){background:#ecf2f8}
dialog.modal.account-modal > .account-panel{
  flex:0 1 auto;
  min-height:0;
  max-height:min(63dvh,670px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scroll-padding-block:18px;
}
.account-panel[hidden],.account-tabs button[hidden]{display:none!important}
/* IMPORTANT: the top-level Reminders tab MUST own the scrollbar. */
dialog.modal.account-modal > .account-panel.modal-body{
  overflow-y:auto;
  overflow-x:hidden;
  max-height:min(63dvh,670px);
  padding:22px 26px 26px;
}
/* Security/Billing panels scroll as a whole, not as nested mini-scrollboxes. */
dialog.modal.account-modal > .account-panel .modal-body{
  overflow:visible;
  max-height:none;
  padding:22px 26px;
}
.account-panel .modal-bottom{border-radius:0}
.account-panel #passwordForm{border-bottom:1px solid #e3ebf3}
.account-panel .reminder-settings h3{margin:0 0 10px;font-size:17px}
.account-panel .reset-desc{line-height:1.6}
.account-panel .reminder-checkbox{
  display:flex;flex-direction:row;align-items:flex-start;
  gap:11px;padding:13px 14px;border:1px solid #dfebf5;
  background:#f8fbff;border-radius:10px;
}
.account-panel .reminder-checkbox input[type="checkbox"]{
  width:18px;min-width:18px;margin:2px 0 0;
}
.account-panel .form-grid{gap:15px}
.reminder-device-info{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  padding:12px;border:1px solid #e3ebf3;
  background:#f9fbfd;border-radius:11px;margin:17px 0 12px;
}
.reminder-device-info span{
  display:flex;flex-direction:column;gap:4px;
  font-size:11px;color:#637890;line-height:1.35;
}
.reminder-device-info strong{color:#173b59;font-size:12px}
.reminder-test-actions{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px;
}
.reminder-test-feedback{
  margin:14px 0 0;padding:12px 14px;line-height:1.55;
  background:#edf5fc;color:#24517a;border:1px solid #cbdff0;
  border-radius:10px;font-size:13px;font-weight:600;
}
.reminder-test-feedback[data-tone="error"]{
  color:#8c3744;background:#fff0f2;border-color:#f0c5cd;
}
.reminder-test-feedback[data-tone="success"]{
  color:#276049;background:#edf8f2;border-color:#c1e4cf;
}
.reminder-test-feedback[hidden],.reminder-preview[hidden]{display:none!important}
.reminder-preview{
  display:flex;flex-direction:column;gap:5px;margin-top:12px;
  border:1px solid #d2deeb;border-left:4px solid #306da5;
  background:#fff;border-radius:10px;padding:14px 17px;
  box-shadow:0 8px 20px rgba(18,51,79,.08);
  font-size:13px;color:#2d4e6b;
}
.reminder-preview strong{font-size:14px;color:#193a58}
.reminder-preview small{color:#71869c;font-size:11px}

@media(max-width:650px){
  dialog.modal,dialog.modal.small-modal,dialog.modal.users-modal,
  dialog.modal.branding-modal,dialog.modal.account-modal{
    width:calc(100vw - 18px);max-height:calc(100dvh - 20px);
  }
  dialog.modal .modal-head{padding:17px 18px 14px}
  dialog.modal .modal-body{padding:18px}
  dialog.modal .modal-bottom{padding:14px 18px}
  dialog.modal.account-modal[open]{max-height:calc(100dvh - 20px)}
  dialog.modal.account-modal > .account-panel{max-height:calc(100dvh - 148px)}
  dialog.modal.account-modal > .account-panel.modal-body{
    padding:18px 18px 24px;
    max-height:calc(100dvh - 148px);
  }
  dialog.modal.account-modal > .account-panel .modal-body{padding:18px}
  .account-tabs{padding:10px 12px;gap:4px}
  .account-tabs [role="tab"]{padding:10px 6px;font-size:12px}
  .reminder-device-info{grid-template-columns:1fr;gap:9px}
  .reminder-device-info span{flex-direction:row;justify-content:space-between}
  .reminder-test-actions{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(prefers-reduced-motion:reduce){
 dialog.modal:modal{animation:none;transition:none}
}


/* Billing actions: equal button dimensions regardless of primary/mini styles.
   Scoped to the Account Billing tab; no global button or board changes. */
#accountBillingPanel .billing-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:min(100%,390px);
  margin:16px 0 12px auto;
}
#accountBillingPanel .billing-actions > button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:11px 13px;
  border-radius:9px;
  font-size:12px;
  line-height:1.35;
  font-weight:750;
  text-align:center;
  white-space:normal;
}
#accountBillingPanel .billing-actions > .mini-btn{
  border:1px solid #c3d7eb;
  box-shadow:none;
}
@media(max-width:420px){
  #accountBillingPanel .billing-actions{
    grid-template-columns:minmax(0,1fr);
    width:100%;
  }
}


/* Small recurring-card controls; keep rack and Kanban board layouts untouched. */
#cardDialog #repeatHelp{display:block;line-height:1.5}
#cardDialog .modal-bottom{flex-wrap:wrap;row-gap:10px}
#cardDialog .modal-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#cardDialog .modal-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
#cardDialog #duplicateBtn{min-height:34px;padding:8px 11px}
#cardDialog #stopRepeatBtn{min-height:34px;padding:8px 9px}
@media(max-width:600px){
  #cardDialog .modal-secondary,#cardDialog .modal-actions{width:100%}
  #cardDialog .modal-actions{justify-content:flex-end}
}


/* Current View: the status key belongs with the week controls, not beneath
   the physical rack. Card state and manual/automatic RAG health are distinct. */
.workspace-top{
 display:grid;
 grid-template-columns:minmax(285px,1fr) auto;
 grid-template-areas:"week actions" "legend legend";
 align-items:center;
 column-gap:18px;row-gap:12px;
 min-height:0;padding:16px 22px 12px;
}
.workspace-top>.week-controls{grid-area:week;min-width:0}
.workspace-top>.workspace-right{grid-area:actions;min-width:0}
.workspace-top>.workspace-legend-row{grid-area:legend}
.workspace-legend-row{
 display:flex;align-items:center;justify-content:space-between;
 gap:12px 22px;flex-wrap:wrap;
 min-width:0;padding-top:11px;border-top:1px solid #e6edf5;
}
.toolbar-legend{display:flex;flex-wrap:wrap;align-items:center;gap:11px 18px;min-width:0}
.toolbar-legend .legend-group{
 display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;
}
.toolbar-legend .legend-health{
 padding-left:18px;border-left:1px solid #dce5ee;
}
.toolbar-legend .legend-heading{
 flex:none;font-size:9px;letter-spacing:.11em;font-weight:850;
 color:#647c96;margin-right:2px;white-space:nowrap;
}
.toolbar-legend .legend-item{
 display:inline-flex;align-items:center;gap:5px;
 font-size:10px;font-weight:750;color:#385470;
 white-space:nowrap;transition:opacity .12s;
}
.toolbar-legend .legend-item.is-empty{opacity:.42}
.toolbar-legend .legend-count{
 padding:1px 5px;min-width:16px;text-align:center;
 border-radius:5px;background:#eff4f8;color:#3d5b76;
 font-size:10px;line-height:1.3;font-weight:800;
 font-variant-numeric:tabular-nums;
}
.toolbar-legend .legend-item.is-empty .legend-count{background:#f1f3f5}
.toolbar-legend .rag-dot{
 width:10px;height:10px;
 border:1px solid transparent;
}
.toolbar-legend .rag-dot.red{background:#ffc0c6;border-color:#aa1728}
.toolbar-legend .rag-dot.amber{background:#ffe088;border-color:#bb7900}
.toolbar-legend .rag-dot.green{background:#a4e7bc;border-color:#117a43}
.toolbar-legend .rag-dot.unassessed{background:#b9d9fb;border-color:#537796}
.legend-status-marker{
 display:inline-grid;place-items:center;
 flex:none;width:10px;height:10px;border-radius:3px;
}
.legend-status-marker.is-open{border:2px solid #477fae;background:#fff}
.legend-status-marker.is-closed{background:#a0aebb;border:1px solid #778b9e}
.legend-status-marker.is-overdue{
 width:12px;height:12px;border-radius:50%;
 background:#ab1d2f;color:#fff;font-size:9px;font-weight:900;
}
.workspace-legend-row .toolbar-help{
 font-size:10px;line-height:1.5;color:#7a8ea2;
 white-space:normal;max-width:400px;
}

/* Expand the actual five-day rack, not the Kanban card geometry. */
body.rack-view-active .content{
 max-width:1850px;
 padding:28px clamp(12px,1.55vw,27px) 48px;
}
body.rack-view-active .page-heading{margin-bottom:19px}
.board.board-rack{
 min-width:1140px;
 grid-template-columns:repeat(5,minmax(215px,1fr));
 gap:7px;
}
.board.board-rack .rack-slot,
.board.board-rack .rack-slot.occupied,
.board.board-rack .rack-slot.vacant{
 flex-basis:51px;height:51px;min-height:51px;
}
.board.board-rack .rack-slot .tcard{height:98px;top:5px}
.board.board-rack .tcard .tcard-tab{
 min-height:43px;height:43px;
 padding:7px 9px 7px 11px;
 font-size:12px;
}
.board.board-rack .tcard .tcard-neck{height:54px;font-size:10px}
.board.board-rack .slot-number{top:19px}
.board.board-rack .slot-lip{height:10px}
.board.board-rack .lane{padding:8px 7px 17px}
.board.board-rack .insert-card-btn{height:32px;min-height:32px;margin-top:8px}

/* Avoid squeezing the header at laptop widths; the legend remains in the
   toolbar and the five-day physical rack may scroll horizontally as before. */
@media(max-width:1260px){
 .workspace-top{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"week" "actions" "legend";
  row-gap:12px;
 }
 .workspace-top>.workspace-right{justify-content:flex-start}
 .workspace-legend-row .toolbar-help{max-width:none}
}
@media(max-width:700px){
 .workspace-top{padding:14px 12px 12px;gap:11px}
 .workspace-top>.workspace-right{width:100%;justify-content:flex-start}
 .toolbar-legend{gap:10px 12px}
 .toolbar-legend .legend-group{gap:7px 10px}
 .toolbar-legend .legend-health{
  border-left:0;padding-left:0;
 }
 .workspace-legend-row .toolbar-help{font-size:10px}
 body.rack-view-active .content{padding:24px 10px 40px}
 body.rack-view-active .page-heading{margin-bottom:16px}
}


/* Read-only payment verification stays separate from the two equal billing
   action buttons. It must never look like an additional checkout. */
#accountBillingPanel .billing-verification{
 display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;
 margin:0 0 4px; padding:10px 0;
 border-top:1px solid #e5ecf4;
}
#accountBillingPanel #billingVerify{
 min-height:36px;padding:9px 12px;
 background:#f1f6fa;border:1px solid #c7d8e9;
 border-radius:9px;font-size:12px;font-weight:700;
}
#accountBillingPanel #billingVerifyStatus{
 flex:1 1 240px;margin:0;line-height:1.5;
 color:#385874;font-size:12px;
}
#accountBillingPanel #billingVerifyStatus[hidden]{display:none}


/* Full calendar week by default; retain a compact Mon–Fri option for teams
   that do not operate weekends. Keep minimum readable pocket widths and
   allow horizontal scrolling on smaller displays, instead of shrinking tabs. */
.board.board-rack.board-seven{
 grid-template-columns:repeat(7,minmax(0,1fr));
 min-width:1400px;
}
.board.board-rack.board-five{
 grid-template-columns:repeat(5,minmax(215px,1fr));
 min-width:1140px;
}
.board.board-kanban.board-seven{
 grid-template-columns:repeat(7,minmax(0,1fr));
 min-width:1500px;
}
.board.board-kanban.board-five{
 grid-template-columns:repeat(5,minmax(210px,1fr));
 min-width:1110px;
}
/* Weekends use the same neutral header as all other non-current days.
   The shared .day-column.is-today rules above intentionally remain active,
   including when today happens to be Saturday or Sunday, in rack and Kanban. */
.board-scroll{overflow-x:auto;overscroll-behavior-x:contain}

/* Quiet Business-admin Data & Privacy settings; never a primary board action. */
.privacy-overview h3{margin:0 0 8px;color:#183b5b;font-size:18px}
.privacy-overview>.reset-desc{max-width:610px}
.privacy-overview-card{
  border:1px solid #dce8f3;background:#f6faff;border-radius:12px;
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:20px;margin:20px 0;
}
.privacy-overview-card strong{display:block;font-size:14px;color:#173a5b;margin-bottom:5px}
.privacy-overview-card p{margin:0;font-size:12px}
.privacy-overview-card .mini-btn{flex:0 0 auto;white-space:normal;text-align:center}

/* Advanced retention and rights tools stay available, but collapsed by
   default so the admin does not confront a long form on first opening. */
.privacy-tool-group{
  border:1px solid #dce7f2;border-radius:12px;
  background:#fff;margin:13px 0;overflow:hidden;
}
.privacy-tool-group>summary{
  list-style:none;display:flex;flex-direction:column;gap:4px;
  position:relative;cursor:pointer;padding:18px 50px 18px 19px;
  background:#f7fafd;color:#21496b;
}
.privacy-tool-group>summary::-webkit-details-marker{display:none}
.privacy-tool-group>summary strong{font-size:14px}
.privacy-tool-group>summary span{font-size:12px;line-height:1.5;color:#667d94}
.privacy-tool-group>summary:after{
  content:'+';font-size:24px;position:absolute;right:21px;top:16px;color:#3373bc;
}
.privacy-tool-group[open]>summary:after{content:'−'}
.privacy-tool-group>summary:hover{background:#eef5fb}
.privacy-tool-group>summary:focus-visible{outline:3px solid #77b2ee;outline-offset:-3px}
.privacy-tool-content{padding:18px 20px 23px;border-top:1px solid #e1ebf4}
.privacy-tool-content>h3{font-size:16px;margin:18px 0 12px;color:#173a5b}
.privacy-tool-content>h3:first-child{margin-top:0}
.privacy-tool-content .reset-desc{line-height:1.65}
@media(max-width:650px){
  .privacy-overview-card{flex-direction:column;align-items:stretch;padding:17px}
  .privacy-overview-card .mini-btn{width:100%}
  .privacy-tool-content{padding:16px}
}


/* Shared-rack ownership: the exposed tab must show the assigned colleague,
   not just a time marker. Compact two-line treatment fits seven-day columns
   while the full assignee is retained in title/ARIA and pulled-card detail. */
.tcard .tcard-tab{
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:2px;
  padding:4px 7px 4px 9px;
}
.tcard .tcard-exposed-title{
  display:block;
  flex:0 0 auto;
  width:100%;
  max-width:100%;
  min-width:0;
  font-size:10px;
  line-height:1.1;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.tcard .tcard-exposed-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  min-width:0;
  width:100%;
  max-width:100%;
  line-height:1;
}
.tcard .tcard-exposed-assignee{
  display:block;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:9px;
  font-weight:800;
}
.tcard .tcard-exposed-time{
  flex:0 0 auto;
  max-width:50%;
  white-space:nowrap;
  font-size:9px;
  padding:1px 0;
}
.board.board-rack .tcard .tcard-tab{
  padding:5px 9px 5px 11px;
}
.board.board-rack .tcard .tcard-exposed-title{
  font-size:11px;
}
.board.board-rack .tcard .tcard-exposed-assignee{
  font-size:10px;
}


.review-optin{border-top:1px solid #dce6f0;margin-top:20px;padding-top:20px;}
.review-optin .mini-btn{margin:10px 0 6px;}
.review-optin h3{margin-top:0;}
/* Keep all account actions accessible on laptop-width screens instead of
   clipping late header controls such as Branding or Export data. */
.topbar .user-area{flex-wrap:wrap;min-width:0;}
@media(max-width:1500px){
 .topbar{flex-wrap:wrap;}
 .topbar .user-area{flex:1 1 100%;width:100%;justify-content:flex-start;}
}
#accountBrandingPanel .primary-btn{margin-top:10px;}

/* Clear, keyboard-accessible homepage navigation from sign-in and board.
   The marketing site is public; these links never sign out or change tenants. */
.login-back-home{display:inline-flex;align-items:center;gap:5px;margin:0 0 18px;
 color:#356a9d;font-size:12px;font-weight:800;text-decoration:none;
 text-underline-offset:3px;}
.login-back-home:hover,.login-back-home:focus-visible{text-decoration:underline;}
.login-brand-home{text-decoration:none;color:inherit;}
.login-brand-home:hover,.login-brand-home:focus-visible{text-decoration:none;}
.login-product-brand.login-brand-home{color:inherit;}
.login-customer .login-company-name{display:block;color:#214463;font-size:16px;
 line-height:1.4;font-weight:800;overflow-wrap:anywhere;}
.topbar .software-brand{color:#fff;text-decoration:none;}
.topbar .software-brand:hover,.topbar .software-brand:focus-visible{text-decoration:none;}
.topbar a.ghost-light{display:inline-flex;align-items:center;justify-content:center;
 text-decoration:none;white-space:nowrap;}
.topbar a.ghost-light:hover,.topbar a.ghost-light:focus-visible{color:#fff;}

/* Quiet sign-in indicator in the account header.
   The mark reflects this authenticated screen, not cross-device
   presence tracking or visibility to other workspace members. */
.topbar .user-area .online-dot{
  position:relative;
  display:inline-block;
  flex:0 0 9px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#4be69e;
  box-shadow:0 0 0 3px rgba(75,230,158,.16),0 0 8px rgba(75,230,158,.25);
}
.topbar .user-area .online-dot::after{
  content:'';
  position:absolute;
  inset:-4px;
  border:1px solid rgba(75,230,158,.64);
  border-radius:50%;
  opacity:0;
  animation:tcard-signed-in-pulse 2.8s ease-out infinite;
  pointer-events:none;
}
@keyframes tcard-signed-in-pulse{
  0%{transform:scale(.7);opacity:.52}
  65%,100%{transform:scale(1.4);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .topbar .user-area .online-dot::after{animation:none;display:none}
}
