/* TeamX Staff Hub — all styling and decorative elements are local. */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#00262f;background:#fff4fd;font-synthesis:none;--ink:#00262f;--muted:#526b74;--line:#d5e7e8;--accent:#05f2db;--accent-dark:#00c8b9;--green:#0b3b48;--soft:#eaf9f7;--radius:14px}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid #e38a39!important;outline-offset:3px}.skip-link{position:fixed;top:8px;left:8px;z-index:1000;background:white;padding:10px 14px;border-radius:6px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loading-screen{min-height:100vh;display:grid;place-items:center;color:var(--muted);font-size:14px}.muted{color:var(--muted)}
.brand{display:flex;align-items:center;gap:9px;color:#00262f;font-size:18px;font-weight:900;line-height:.9;letter-spacing:-.065em;white-space:nowrap}.brand>span:last-child{display:block}.brand small{display:block;color:#526b74;font-size:8px;font-weight:800;letter-spacing:.2em;margin-top:5px}.brand-x{color:var(--accent)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--accent);color:#fff;border-radius:9px;font-size:23px;font-weight:900;letter-spacing:-.08em;transform:skew(-8deg)}.brand-light{color:white}.brand-light small{color:#c5e6e3}.brand-light .brand-mark{background:#fff;color:var(--green)}.brand-light .brand-x{color:#05f2db}.pilot-label{display:inline-flex;align-items:center;gap:7px;border:1px solid #d5e7e8;background:#fff;border-radius:99px;padding:7px 10px;color:#526b74;font-size:9px;letter-spacing:.09em;font-weight:800;white-space:nowrap}.status-dot{height:7px;width:7px;border-radius:50%;background:#007c76;box-shadow:0 0 0 3px #d9f6f2}.eyebrow{display:block;color:#526b74;font-size:10px;letter-spacing:.14em;line-height:1.3;font-weight:800}.eyebrow-light{color:#d2f3ef}.accent-dot{color:#f205cb}
.auth-screen{display:grid;grid-template-columns:minmax(360px,1fr) minmax(420px,1fr);min-height:100vh;background:#fff}.auth-brand-panel{background:#0b3b48;color:#fff;padding:40px 50px 30px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.auth-brand-copy{max-width:570px;padding:42px 0}.auth-brand-copy h1{font-size:clamp(42px,5.1vw,75px);line-height:1.04;letter-spacing:-.055em;margin:18px 0 22px}.auth-brand-copy p{max-width:420px;font-size:15px;line-height:1.8;color:#d2f3ef}.auth-decoration{display:flex;gap:7px;margin-top:56px;align-items:end}.auth-decoration span{display:block;height:9px;width:9px;border-radius:50%;background:#7bbebc}.auth-decoration span:first-child{width:40px;border-radius:8px;background:#f205cb}.auth-footer{color:#c5e6e3;font-size:11px;display:flex;justify-content:space-between}.auth-footer span{letter-spacing:.12em;font-weight:700}.auth-form-panel{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 34px;position:relative}.auth-form-wrap{width:min(100%,390px)}.auth-form-wrap .pilot-label{margin-bottom:43px}.auth-form-wrap h2{font-size:clamp(34px,3.4vw,48px);letter-spacing:-.05em;line-height:1.08;margin:11px 0 12px}.auth-form-wrap>.muted{font-size:14px;line-height:1.7;margin:0 0 32px}.auth-note{margin-top:28px;color:#526b74;font-size:12px;line-height:1.65}.auth-bottom{position:absolute;bottom:22px;color:#526b74;font-size:11px}.auth-mobile-brand{display:none}.stack-form{display:flex;flex-direction:column;gap:18px}.field{display:flex;flex-direction:column;gap:7px}.field label,.weekday-field legend,.scope-field legend{font-size:12px;color:#0b3b48;font-weight:750}.field input,.field select,.field textarea,.search-field input,.copy-fallback textarea{width:100%;border:1px solid #d5e7e8;border-radius:8px;background:#fff;color:var(--ink);padding:11px 12px;line-height:1.4;min-height:43px}.field input::placeholder,.field textarea::placeholder,.search-field input::placeholder{color:#526b74}.field textarea,.copy-fallback textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.search-field input:focus{border-color:#0b3b48;outline:3px solid #d9f6f2}.field-help{color:#526b74;font-size:11px;line-height:1.55}.optional{font-weight:400;color:#526b74}.form-error{margin:0;color:#a72820;background:#fef0ed;border:1px solid #f5d5cf;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.5}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border-radius:8px;border:1px solid transparent;font-size:12px;font-weight:750;line-height:1.2;white-space:nowrap;transition:background .15s,border-color .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button-primary{background:var(--accent);color:#fff}.button-primary:hover:not(:disabled){background:var(--accent-dark)}.button-secondary{background:#fff;border-color:#d5e7e8;color:#0b3b48}.button-secondary:hover:not(:disabled){background:#eaf9f7}.button-block{width:100%;justify-content:space-between;min-height:49px}.button-plus{font-size:18px;line-height:.8}.text-button{border:0;background:transparent;color:#526b74;font-size:12px;font-weight:700;padding:8px}.icon-button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d5e7e8;background:#fff;color:#526b74;border-radius:8px;font-size:23px;line-height:1}.icon-button:hover{background:#eaf9f7}
.topbar{height:72px;background:#fff;border-bottom:1px solid #d5e7e8;display:flex;justify-content:space-between;align-items:center;padding:0 34px;gap:20px}.topbar-right{display:flex;align-items:center;gap:17px}.topbar-divider{height:22px;width:1px;background:#d5e7e8}.header-date{font-size:12px;color:#526b74;font-weight:600}.mobile-logout{display:none}.shell-body{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{background:#fff;border-right:1px solid #d5e7e8;padding:32px 14px 20px;display:flex;flex-direction:column;justify-content:space-between;gap:25px}.sidebar-label{padding:0 14px;color:#526b74;font-size:9px;font-weight:800;letter-spacing:.13em;margin:0 0 16px}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;width:100%;border:0;border-radius:8px;background:transparent;color:#526b74;font-size:12px;font-weight:700;padding:12px 13px}.nav-item:hover{background:#eaf9f7;color:#0b3b48}.nav-item.is-active{background:#eaf9f7;color:#0b3b48}.nav-icon{width:18px;text-align:center;font-size:18px;font-weight:400}.nav-arrow{margin-left:auto;font-size:13px;opacity:0}.nav-item.is-active .nav-arrow{opacity:1}.sidebar-quote{background:#eaf9f7;border-radius:10px;padding:16px;color:#526b74;font-size:11px;line-height:1.55;margin:0 0 19px}.sidebar-quote p{margin:8px 0 0}.sidebar-quote strong{color:#0b3b48}.quote-spark{font-size:19px;color:#f205cb}.profile{display:flex;align-items:center;gap:10px;padding:13px 4px 0;border-top:1px solid #d5e7e8}.avatar{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;background:#eaf9f7;color:#526b74;border-radius:50%;font-size:11px;font-weight:800}.profile-text{min-width:0;display:flex;flex-direction:column;gap:3px}.profile-text strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-text small{font-size:10px;color:#526b74}.logout-button{margin-left:auto;color:#526b74;background:transparent;border:0;font-size:17px;padding:5px}.main-content{padding:43px clamp(24px,4.6vw,68px) 70px;max-width:1540px;width:100%;margin:0 auto;min-width:0}.view{max-width:1220px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:30px}.breadcrumb{color:#526b74;font-size:9px;letter-spacing:.14em;font-weight:800;margin-bottom:17px}.breadcrumb span{padding:0 6px;color:#526b74}.page-heading h1{font-size:clamp(29px,2.9vw,41px);line-height:1.12;letter-spacing:-.047em;margin:0 0 8px}.page-subtitle{font-size:13px;color:#526b74;margin:0;line-height:1.6}.heading-actions{display:flex;gap:9px;align-items:center}.overview-strip{display:grid;grid-template-columns:1.35fr repeat(3,1fr);background:#eaf9f7;border:1px solid #d5e7e8;border-radius:12px;padding:20px 25px;min-height:104px;margin-bottom:43px;gap:15px}.overview-intro{display:flex;align-items:center;gap:13px}.overview-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:11px;background:#d9f6f2;color:#0b3b48;font-size:21px}.overview-intro strong{display:block;color:#0b3b48;font-size:13px;margin-top:5px}.overview-label{display:block;color:#526b74;font-size:9px;letter-spacing:.1em;font-weight:800}.overview-stat{display:flex;flex-direction:column;justify-content:center;padding-left:28px;border-left:1px solid #d5e7e8;gap:3px}.overview-stat strong{font-size:25px;line-height:1;color:#0b3b48;letter-spacing:-.04em}.overview-stat span{font-size:11px;color:#526b74}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.section-heading h2{font-size:21px;letter-spacing:-.035em;line-height:1.2;margin:7px 0 5px}.section-heading p{font-size:12px;color:#526b74;margin:0;line-height:1.6}.count-pill{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;margin-left:4px;border-radius:99px;background:#eaf9f7;color:#526b74;font-size:10px;letter-spacing:0}.assignee-field{display:flex;align-items:center;gap:9px}.assignee-field label{font-size:11px;color:#526b74}.assignee-field select{max-width:190px;background:#fff;color:#526b74;border:1px solid #d5e7e8;border-radius:7px;padding:9px 30px 9px 10px;font-size:11px;font-weight:700}.content-card{background:#fff;border:1px solid #d5e7e8;border-radius:12px;box-shadow:0 6px 24px rgba(0,38,47,.035)}.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;border-bottom:1px solid #d5e7e8}.segmented{display:flex;gap:4px;background:#eaf9f7;border-radius:8px;padding:3px}.segmented button{border:0;border-radius:6px;background:transparent;color:#526b74;padding:8px 12px;font-size:11px;font-weight:700}.segmented button.is-selected{background:#fff;color:#0b3b48;box-shadow:0 1px 5px rgba(0,38,47,.08)}.toolbar-note{color:#526b74;font-size:10px}.task-row{display:flex;gap:13px;padding:19px 20px;border-bottom:1px solid #d5e7e8;align-items:flex-start}.task-row:last-child{border-bottom:0}.task-toggle{width:21px;height:21px;flex:0 0 21px;margin:2px 0 0;border:1.5px solid #9ec9c9;border-radius:50%;background:#fff;color:#fff;font-size:13px;font-weight:800;line-height:1}.task-toggle:hover{border-color:#0b3b48}.task-toggle.is-complete{background:#007c76;border-color:#007c76}.task-main{flex:1;min-width:0}.task-title{font-size:13px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}.task-row.is-complete .task-title{color:#526b74;text-decoration:line-through}.task-description{font-size:12px;color:#526b74;line-height:1.55;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}.meta-chip,.status-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:5px;background:#eaf9f7;color:#526b74;font-size:10px;font-weight:700;line-height:1.2}.meta-chip.overdue{background:#fdf0ed;color:#a52c23}.meta-chip.today{background:#fff4e5;color:#906022}.status-badge.draft{background:#fff0d4;color:#875700;border:1px solid #f3d08e}.status-badge.approved{background:#d9f6f2;color:#38734b}.status-badge.stopped{background:#ebf5f4;color:#526b74}.task-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.action-link{border:0;background:transparent;color:#526b74;border-radius:5px;font-size:10px;font-weight:750;padding:6px}.action-link:hover{background:#eaf9f7;color:#0b3b48}.action-link.danger{color:#a8372e}.action-link.danger:hover{background:#fdf1ee}.empty-state{text-align:center;padding:44px 20px;color:#526b74;font-size:12px;line-height:1.6}.empty-state strong{display:block;color:#526b74;font-size:13px;margin-bottom:3px}.empty-symbol{display:grid;place-items:center;margin:0 auto 12px;width:38px;height:38px;border-radius:12px;background:#eaf9f7;color:#78a085;font-size:19px}
.library-banner{display:flex;justify-content:space-between;overflow:hidden;background:#0b3b48;color:white;border-radius:12px;padding:26px 30px;margin:0 0 41px;min-height:152px;position:relative}.library-banner h2{font-size:23px;letter-spacing:-.035em;margin:9px 0 7px}.library-banner p{font-size:12px;color:#d2f3ef;line-height:1.6;margin:0;max-width:410px}.library-banner-art{position:absolute;right:32px;top:-53px;color:#7bbebc;opacity:.45;font-family:Georgia,serif;font-size:230px;line-height:1}.search-field{position:relative;max-width:480px;margin-bottom:18px}.search-field span{position:absolute;left:14px;top:5px;font-size:24px;color:#526b74;line-height:1}.search-field input{padding-left:41px;background:#fff;font-size:12px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.template-card{display:flex;flex-direction:column;min-width:0;min-height:205px;background:white;border:1px solid #d5e7e8;border-radius:11px;padding:19px;box-shadow:0 6px 24px rgba(0,38,47,.035)}.template-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.template-category{color:#526b74;font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;overflow-wrap:anywhere}.template-card h3{font-size:14px;letter-spacing:-.01em;margin:14px 0 8px;line-height:1.35;overflow-wrap:anywhere}.template-preview{color:#526b74;font-size:11px;line-height:1.65;white-space:pre-wrap;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere;margin:0 0 12px}.template-card .source-inline{font-size:10px;color:#936825;background:#fff6e6;border-radius:5px;padding:6px 7px;margin:0 0 10px;overflow-wrap:anywhere}.template-card-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid #d5e7e8}.template-card-footer .action-link{font-size:11px;padding:5px 0}.template-card-footer .action-link:last-child{margin-left:auto}.template-grid>.empty-state{grid-column:1/-1;background:#fff;border:1px solid #d5e7e8;border-radius:12px}.user-list{overflow:hidden}.user-row{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #d5e7e8}.user-row:last-child{border-bottom:0}.user-info{flex:1;min-width:0}.user-info strong{display:block;font-size:12px;overflow-wrap:anywhere}.user-info small{display:block;color:#526b74;margin-top:3px;font-size:10px;text-transform:capitalize}.user-row .status-badge{margin-right:12px}.global-message{padding:12px 15px;margin:0 0 22px;border-radius:8px;background:#d9f6f2;color:#2d6941;font-size:12px;line-height:1.5}.global-message.error{background:#fdf0ed;color:#a52c23}
.dialog{width:min(510px,calc(100vw - 28px));max-height:min(90vh,900px);border:0;border-radius:15px;padding:0;box-shadow:0 25px 90px rgba(0,38,47,.25);color:var(--ink);overflow:auto}.dialog::backdrop{background:rgba(0,38,47,.58)}.dialog-wide{width:min(840px,calc(100vw - 28px))}.dialog-inner{padding:25px}.dialog-header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:20px}.dialog-header h2{font-size:24px;letter-spacing:-.04em;margin:7px 0 0}.dialog-intro{color:#526b74;font-size:12px;line-height:1.6;margin:7px 0 17px;overflow-wrap:anywhere}.dialog-header .dialog-intro{margin-bottom:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}.info-note,.source-note{border:1px solid #f0ddb5;background:#fff8e9;color:#785a24;border-radius:8px;padding:10px 12px;font-size:11px;line-height:1.6;margin:0;overflow-wrap:anywhere}.source-note{margin:12px 0}.scope-field,.weekday-field{border:0;padding:0;margin:0;min-width:0}.scope-field legend,.weekday-field legend{padding:0;margin-bottom:8px}.radio-card{display:flex;gap:10px;align-items:flex-start;border:1px solid #d5e7e8;border-radius:8px;padding:11px;margin:7px 0;font-size:12px}.radio-card input{accent-color:var(--green);margin:3px 0 0}.radio-card strong,.radio-card small{display:block}.radio-card small{font-size:11px;font-weight:400;color:#526b74;margin-top:4px;line-height:1.4}.weekday-options{display:flex;flex-wrap:wrap;gap:5px}.weekday-options label{position:relative}.weekday-options input{position:absolute;opacity:0;inset:0}.weekday-options span{display:inline-flex;align-items:center;justify-content:center;padding:9px 8px;border:1px solid #d5e7e8;border-radius:7px;color:#526b74;font-size:10px;font-weight:750}.weekday-options input:checked+span{background:#eaf9f7;color:#0b3b48;border-color:#9ec9c9}.weekday-options input:focus-visible+span{outline:3px solid #e38a39;outline-offset:2px}.recurring-columns{display:grid;grid-template-columns:1fr 1fr;gap:26px}.recurring-form{padding-right:26px;border-right:1px solid #d5e7e8}.recurring-columns h3{font-size:13px;margin:0}.recurring-existing>.field-help{margin:6px 0 12px}.recurrence-row{border-bottom:1px solid #d5e7e8;padding:13px 0}.recurrence-row strong{display:block;font-size:12px;overflow-wrap:anywhere}.recurrence-row p{font-size:11px;color:#526b74;line-height:1.5;margin:5px 0}.recurrence-row-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.history-item{padding:13px 0;border-bottom:1px solid #d5e7e8}.history-item:last-child{border-bottom:0}.history-item strong{font-size:12px}.history-item p{font-size:11px;color:#526b74;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:5px 0}.history-item time{font-size:10px;color:#526b74}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px;background:#eaf9f7;border:1px solid #d5e7e8;border-radius:9px;padding:15px;margin:15px 0;max-height:40vh;overflow:auto}.copy-fallback{display:flex;flex-direction:column;gap:7px;margin-top:15px}.copy-fallback label{font-size:11px;color:#775d2c;font-weight:700}.copy-fallback textarea{font-size:12px}.dialog #message-feedback{min-height:0;margin:8px 0}
@media(max-width:1050px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-content{padding-left:32px;padding-right:32px}.shell-body{grid-template-columns:205px minmax(0,1fr)}.page-heading{align-items:flex-start}.heading-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:700px){.auth-screen{display:block}.auth-brand-panel{display:none}.auth-form-panel{min-height:100vh;justify-content:center;padding:85px 24px 75px}.auth-mobile-brand{display:flex;position:absolute;top:27px;left:24px}.auth-form-wrap .pilot-label{margin-bottom:30px}.auth-bottom{bottom:22px}.topbar{height:65px;padding:0 20px}.topbar-right{gap:8px}.topbar-divider,.header-date{display:none}.mobile-logout{display:block}.shell-body{display:block;min-height:calc(100vh - 65px)}.sidebar{padding:0 16px;background:#fff;border-right:0;border-bottom:1px solid #d5e7e8;display:block;overflow-x:auto}.sidebar-label,.sidebar-bottom{display:none}.nav-list{flex-direction:row;gap:4px;min-width:max-content}.nav-item{width:auto;border-radius:0;padding:14px 10px;border-bottom:2px solid transparent}.nav-item.is-active{border-color:var(--accent);background:transparent;color:#0b3b48}.nav-arrow{display:none}.nav-icon{font-size:16px}.main-content{padding:29px 20px 55px}.page-heading{display:block;margin-bottom:24px}.page-heading h1{font-size:31px}.heading-actions{justify-content:flex-start;margin-top:20px}.overview-strip{grid-template-columns:repeat(3,minmax(0,1fr));padding:17px 14px;gap:16px 5px;margin-bottom:33px}.overview-intro{grid-column:1/-1}.overview-stat{padding-left:10px}.overview-stat:nth-child(2){border-left:0;padding-left:0}.overview-stat strong{font-size:22px}.overview-stat span{font-size:10px}.section-heading{align-items:flex-start;gap:12px}.assignee-field{display:block}.assignee-field label{display:block;margin-bottom:4px}.assignee-field select{max-width:150px}.toolbar-note{display:none}.task-row{padding:17px 14px;flex-wrap:wrap}.task-main{width:calc(100% - 36px)}.task-actions{width:100%;justify-content:flex-start;margin-left:32px;margin-top:-2px}.task-actions .action-link:first-child{padding-left:0}.library-banner{padding:23px;margin-bottom:32px}.library-banner-art{right:5px;opacity:.24}.template-grid{grid-template-columns:1fr}.template-card{min-height:0}.recurring-columns{grid-template-columns:1fr}.recurring-form{padding:0 0 24px;border-right:0;border-bottom:1px solid #d5e7e8}.dialog-inner{padding:21px}.dialog{max-height:90dvh}.user-row{padding:15px}.user-row .status-badge{display:none}}
@media(max-width:370px){.pilot-label{font-size:8px;padding:6px 8px}.topbar{padding:0 13px}.main-content{padding-left:15px;padding-right:15px}.heading-actions .button{font-size:11px;padding:10px}.segmented button{padding:8px}.task-actions{gap:2px}.weekday-options span{padding:8px 6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Task group and recurring-assignment controls. */
.task-group-heading{margin:0;padding:15px 20px 8px;background:#eaf9f7;color:#526b74;font-size:11px;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid #d5e7e8}
.recurrence-transfer{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.recurrence-transfer select{min-width:125px;max-width:100%;border:1px solid #d5e7e8;border-radius:7px;background:white;color:#526b74;padding:8px;font-size:11px}
.recurrence-transfer .button{min-height:34px;font-size:10px}
@media(max-width:410px){.topbar-right .pilot-label{display:none}.topbar-right .text-button{padding:6px;font-size:11px}}

/* Phone ergonomics: generous touch targets and readable inputs. */
@media(max-width:700px){
  .button,.segmented button,.topbar-right .text-button{min-height:44px}
  .nav-item{min-height:48px}
  .task-toggle{width:44px;height:44px;flex-basis:44px;margin:-7px 0 0 -8px}
  .task-main{width:calc(100% - 57px)}
  .task-actions{margin-left:49px}
  .action-link,.task-actions .action-link,.template-card-footer .action-link{font-size:12px;min-width:44px;min-height:44px;padding:10px 8px}
  .field input,.field select,.field textarea,.search-field input,.copy-fallback textarea,.assignee-field select,.recurrence-transfer select{font-size:16px}
  .weekday-options span{min-height:44px}
  .icon-button{width:44px;height:44px}
}
@media(max-width:370px){
  .sidebar{padding:0 6px}
  .nav-list{gap:0;min-width:0}
  .nav-item{gap:5px;padding:12px 6px}
  .nav-icon{width:14px}
}

/* TeamX brand system: accessible teal text, aqua surfaces and magenta accents. */
:root{--ink:#00262f;--muted:#526b74;--line:#d5e7e8;--accent:#05f2db;--accent-dark:#00c8b9;--green:#0b3b48;--soft:#eaf9f7;color:var(--ink);background:#fff4fd}
:focus-visible{outline:3px solid #00262f!important;outline-offset:3px;box-shadow:0 0 0 6px #05f2db}
.weekday-options input:focus-visible+span{outline:3px solid #00262f;outline-offset:2px;box-shadow:0 0 0 5px #05f2db}
.field input:focus,.field select:focus,.field textarea:focus,.search-field input:focus{border-color:#0b3b48;outline:3px solid #05f2db}
.field input,.field select,.field textarea,.search-field input,.copy-fallback textarea,.assignee-field select,.recurrence-transfer select{border-color:#758f95}
.button-primary{background:#05f2db;color:#00262f}
.button-primary:hover:not(:disabled){background:#0b3b48;color:#fff4fd}
.button-secondary{border-color:#758f95;color:#00262f}
.button-secondary:hover:not(:disabled){background:#eaf9f7}
.auth-brand-panel{background:#0b3b48;color:#fff4fd}
.auth-brand-copy p,.auth-footer,.eyebrow-light{color:#d2f3ef}
.auth-decoration span{background:#05f2db}.auth-decoration span:first-child{background:#f205cb}
.library-banner{background:#0b3b48;color:#fff4fd}.library-banner p{color:#d2f3ef}.library-banner-art{color:#05f2db}
.nav-item.is-active{background:#d9f6f2;color:#00262f}
.task-toggle.is-complete{background:#0b3b48;border-color:#0b3b48;color:#fff}
.overview-strip{background:#eaf9f7;border-color:#d5e7e8}.overview-icon{background:#05f2db;color:#00262f}
.weekday-options input:checked+span{background:#d9f6f2;border-color:#007c76;color:#00262f}
.status-dot{background:#007c76;box-shadow:0 0 0 3px #d9f6f2}
/* The source is an unaltered black mark; a light tile keeps it legible on dark panels. */
.brand{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;color:#00262f;letter-spacing:normal;line-height:1}
.brand-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0;border-radius:6px;text-decoration:none}
.brand-logo{display:block;width:118px;max-width:100%;height:auto}
.brand-subtitle{display:block;color:#0b3b48;font-size:10px;font-weight:800;line-height:1.2;letter-spacing:.1em;white-space:nowrap}
.brand-light .brand-link,.auth-brand-panel .brand-link{background:#fff4fd;padding:6px 8px}
.brand-light .brand-subtitle,.auth-brand-panel .brand-subtitle{color:#fff4fd}
.brand-mark{color:#00262f}.brand-light .brand-mark{color:#0b3b48}.brand-x{color:#0b3b48}.brand-light .brand-x{color:#05f2db}
@media(max-width:700px){
  .nav-item.is-active{background:transparent;border-color:#0b3b48;color:#00262f}
  .topbar{gap:8px}
  .topbar .brand-logo,.auth-mobile-brand .brand-logo{width:94px}
  .topbar .brand-link,.auth-mobile-brand .brand-link{min-height:44px}
  .topbar .brand-subtitle,.auth-mobile-brand .brand-subtitle{font-size:9px;letter-spacing:.08em}
}
@media(max-width:370px){
  .topbar{gap:6px}
  .topbar-right{gap:1px}
  .topbar .brand{gap:5px}
  .topbar .brand-logo{width:74px}
  .topbar .brand-subtitle{font-size:8px;letter-spacing:.06em}
}
