:root{--blue:#0067d5;--blue-dark:#0058b8;--text:#202124;--secondary:#62656b;--tertiary:#71747a;--bg:#fafafb;--surface:#fff;--raised:#f2f3f5;--active:#e9eaee;--line:#e6e7eb;--rule:#eff0f3;--control:#d5d7dc;--radius:16px;--ease:cubic-bezier(.23,1,.32,1);color-scheme:light}
*{box-sizing:border-box}
html{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.5;-webkit-text-size-adjust:100%;font-synthesis:none;-webkit-font-smoothing:antialiased}
body{margin:0;min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.65}button,input,textarea,select{transition:background-color 140ms var(--ease),border-color 140ms var(--ease),box-shadow 140ms var(--ease)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[data-task]:focus-visible,[data-day]:focus-visible{outline:3px solid #1680e7;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.eyebrow{font-size:12px;color:var(--secondary);font-weight:500}.small{font-size:12px}.muted{color:var(--secondary)}.full{width:100%}.error-text{color:#b62331;font-size:13px;margin:10px 0 0;min-height:16px;line-height:1.6}svg{flex-shrink:0}
/* A stable reading surface; materials belong only to controls. */
.shell{display:grid;grid-template-columns:236px minmax(0,1fr);grid-template-rows:64px 1fr;min-height:100dvh}.workspace{display:contents}.topbar{grid-column:2;grid-row:1;position:sticky;top:0;z-index:50;height:64px;display:flex;justify-content:space-between;align-items:center;padding:0 40px;gap:20px;background:var(--bg);border-bottom:1px solid var(--line)}.topbar-brand{display:flex;align-items:center;gap:13px;min-width:0;white-space:nowrap}.brand-subtitle{font-size:13px;color:var(--secondary)}.breadcrumb-divider{color:#a1a4aa}.breadcrumb-current{font-size:13px;color:var(--text)}.mobile-wordmark{display:none}.top-actions{display:flex;align-items:center;gap:22px;position:relative}.sync-state{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:var(--secondary);font-size:12px}.sync-dot{width:6px;height:6px;border-radius:50%;background:#348563}.user-button{display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:22px;min-height:40px;background:var(--surface);padding:4px 12px 4px 4px;font-size:13px;color:var(--text)}.user-button:hover{border-color:var(--control)}.avatar,.member-avatar,.person-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:12px;font-weight:600;flex:none}.avatar{width:30px;height:30px}.person-avatar{width:26px;height:26px}.member-h{background:#e5eef9;color:#305f96}.member-c{background:#f5ead9;color:#886025}.member-j{background:#e0eee8;color:#39745e}.chevron{color:var(--secondary)}.user-dropdown{position:absolute;right:0;top:48px;z-index:65;width:230px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:7px;box-shadow:0 12px 40px #1d23321c}.user-dropdown button{width:100%;min-height:42px;text-align:left;border:0;background:transparent;border-radius:9px;padding:10px 12px;color:var(--text);font-size:13px}.user-dropdown button:hover{background:var(--raised)}.dropdown-title{padding:9px 12px;color:var(--secondary);font-size:12px}.dropdown-divider{height:1px;background:var(--line);margin:5px 8px}
/* Sidebar: identity, plan, people, then the shared-space state. */
.sidebar{grid-column:1;grid-row:1/3;position:sticky;top:0;height:100dvh;background:#f4f5f7;border-right:1px solid var(--line);padding:32px 16px 24px;display:flex;flex-direction:column;min-width:0;overflow:auto}.sidebar-brand{display:flex;flex-direction:column;padding:0 16px;gap:4px}.brand-cngr{font-size:25px;letter-spacing:-.065em;font-weight:740;line-height:1.25;display:flex;align-items:baseline;gap:3px}.brand-point{width:5px;height:5px;background:var(--blue);border-radius:50%}.sidebar-brand>span:last-child{font-size:12px;color:var(--secondary)}.workspace-label{margin:32px 4px 25px;display:flex;align-items:center;gap:11px;padding:13px 11px;background:#fff;border:1px solid var(--line);border-radius:12px}.workspace-symbol{display:grid;place-items:center;width:30px;height:32px;color:#5b626d}.workspace-symbol svg{width:24px;height:24px}.workspace-label strong{font-size:13px;font-weight:600;display:block}.workspace-label small{display:block;color:var(--secondary);font-size:12px;margin-top:3px}.nav-caption{font-size:12px;color:var(--secondary);padding:0 15px 10px}.sidebar nav{display:grid;gap:5px}.nav-button{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:0 15px;background:transparent;border:0;border-radius:10px;text-align:left;color:#555b65;font-size:14px;font-weight:450}.nav-button:hover{background:#ebedf0}.nav-button.selected{background:#e4e6eb;color:var(--text);font-weight:600}.nav-button.selected .nav-icon{color:var(--blue)}.nav-icon{width:19px;height:19px}.sidebar-team{margin-top:28px}.team-person{display:flex;align-items:center;gap:12px;min-height:42px;padding:5px 15px;font-size:13px;color:#525862}.team-person .person-avatar{width:25px;height:25px;font-size:11px}.sidebar-foot{margin-top:auto;padding:24px 15px 0;display:flex;align-items:center;gap:8px;color:var(--secondary);font-size:12px}
.main{grid-column:2;grid-row:2;min-width:0;width:100%;max-width:1500px;margin:0 auto;padding:38px 40px 70px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px}.page-head h1{font-size:30px;line-height:1.25;letter-spacing:-.035em;font-weight:680;margin:0 0 9px}.page-desc{color:var(--secondary);font-size:14px;margin:0}.btn{border:1px solid transparent;min-height:40px;padding:0 17px;border-radius:10px;background:var(--raised);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:13px;font-weight:550}.btn:hover{background:var(--active)}.btn:active{transform:scale(.98)}.btn-primary{background:#23262c;color:#fff}.btn-primary:hover{background:#40444c}.btn-quiet{background:var(--raised)}.btn-danger{background:#fff1f2;color:#ad2332}.btn-danger:hover{background:#ffe2e6}.plus{font-weight:400;font-size:20px;line-height:1}.overview-strip{display:flex;align-items:center;gap:26px;margin:0 0 25px;padding:0 0 22px;border-bottom:1px solid var(--line);font-size:13px;color:var(--secondary);font-variant-numeric:tabular-nums}.summary-total{color:var(--text);padding-right:25px;border-right:1px solid var(--line)}.summary-total strong{font-size:20px;line-height:1;letter-spacing:-.03em;font-weight:550;margin-right:3px}.summary-item{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.summary-item strong{font-weight:550;color:var(--text);margin-left:2px}.summary-dot{width:5px;height:5px;border-radius:50%;background:#858a92;display:inline-block}.active-dot{background:#3776b8}.waiting-dot{background:#987030}
/* A compact toolbar keeps the task list close to the page title. */
.filters{display:flex;align-items:center;gap:9px;margin-bottom:22px}.search-box{display:flex;align-items:center;gap:9px;flex:1 1 280px;min-width:160px;max-width:380px;min-height:40px;padding:0 12px;border:1px solid var(--line);background:var(--surface);border-radius:10px;color:var(--secondary)}.search-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #0067d515}.search-box input{background:transparent;border:0;min-width:0;width:100%;outline:none;padding:9px 0;color:var(--text);font-size:13px}.search-box input:focus-visible{outline:none}.search-box input::placeholder{color:var(--tertiary)}.search-icon{width:16px;height:16px}.filter-field{display:flex;align-items:center;min-width:0}.filter-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.filter-field select{min-height:40px;border:1px solid var(--line);border-radius:10px;padding:0 28px 0 12px;background-color:var(--surface);color:#4a505a;font-size:13px;width:100%;max-width:100%;outline-offset:3px}.filter-field:last-child{margin-left:auto}
/* One collection instead of a stack of independently floating cards. */
.list-surface{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.list-columns{display:grid;grid-template-columns:46% 21% 16% 14% 3%;padding:13px 0;color:var(--secondary);font-size:12px;border-bottom:1px solid var(--line)}.list-columns>span:first-child{padding-left:22px}.task-table col:nth-child(1){width:46%}.task-table col:nth-child(2){width:21%}.task-table col:nth-child(3){width:16%}.task-table col:nth-child(4){width:14%}.task-table col:nth-child(5){width:3%}.list-surface section{border:0;border-radius:0;box-shadow:none;margin:0}.list-surface section+section{border-top:1px solid var(--line)}.section-head{display:flex;align-items:center;gap:10px;padding:17px 22px 10px}.section-head h2{margin:0;font-size:14px;font-weight:650;letter-spacing:0}.section-count{font-size:12px;color:var(--secondary);font-variant-numeric:tabular-nums}.task-table{width:100%;border-collapse:collapse;table-layout:fixed}.task-table th:nth-child(1){width:46%}.task-table th:nth-child(2){width:21%}.task-table th:nth-child(3){width:16%}.task-table th:nth-child(4){width:14%}.task-table th:nth-child(5){width:3%}.task-table td{padding:14px 12px 14px 0;border-bottom:1px solid var(--rule);font-size:13px;color:var(--secondary);vertical-align:middle;line-height:1.5}.task-table td:first-child{padding-left:22px}.task-table td:last-child{padding-right:18px}.task-table tr:last-child td{border-bottom:0}.task-table tr{cursor:pointer}.task-table tr:hover{background:#f7f9fc}.title-line{display:flex;align-items:center;gap:12px;min-width:0}.task-title{font-size:14px;font-weight:500;line-height:1.6;color:var(--text);overflow-wrap:anywhere;letter-spacing:0}.task-table .task-title{max-width:100%}.type-mark{display:inline-block;width:7px;height:7px;flex:none;border-radius:2px;background:#7b94b3}.type-mark.report{transform:rotate(45deg);border-radius:1px;background:#426992}.type-mark.client_meeting{background:#497b73;border-radius:50%}.type-mark.internal_meeting{background:#7d838c;border-radius:50%}.type-mark.milestone{background:#997b4f;transform:rotate(45deg);border-radius:1px}.task-date{color:#4d5560;font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap}.date-tag{display:block;color:var(--tertiary);font-size:12px;margin-top:2px}.owner-cell{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#505762;white-space:nowrap}.owner-cell .person-avatar{width:24px;height:24px;font-size:11px}.row-arrow{display:inline-block;color:#9297a1}.status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:4px 8px;font-size:12px;line-height:1.4;font-weight:450;border-radius:6px;background:#f2f3f5;color:#626873}.status.进行中{background:#edf4fc;color:#315e90}.status.待客户确认,.status.待外部反馈{background:#faf4e8;color:#805f2d}.status.已完成{background:#eaf3ed;color:#36714d}.status.暂停{background:#fcf0f1;color:#9d3e49}.task-cards{display:none}.empty-state{padding:50px 24px;text-align:center;color:var(--secondary);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);font-size:14px}.bottom-nav{display:none}
/* Schedule: readable labels, finite day columns, scroll contained in its own frame. */
.legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;color:var(--secondary);font-size:12px}.legend span{display:inline-flex;align-items:center;gap:7px}.timeline-toolbar,.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}.range-control{display:flex;align-items:center;gap:7px}.range-control button{height:36px;min-width:36px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:0 9px;font-size:14px}.range-control button:hover{background:var(--raised)}.range-control strong{font-size:15px;font-weight:600;text-align:center;min-width:144px;padding:0 7px}.seg-control{display:flex;background:#eaecf0;padding:3px;border-radius:10px;gap:2px}.seg-control button{border:0;background:transparent;color:var(--secondary);border-radius:7px;font-size:12px;min-height:31px;padding:0 14px}.seg-control button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #1c233018}.timeline-wrap{overflow:auto;max-width:100%;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);margin-top:16px;max-height:650px}.timeline-grid{display:grid;position:relative;min-width:960px}.timeline-header{display:grid;position:sticky;top:0;z-index:5;min-height:46px;background:#f7f8fa;border-bottom:1px solid var(--line)}.timeline-side-head{position:sticky;left:0;z-index:7;background:#f7f8fa;padding:13px 18px;font-size:12px;color:var(--secondary);border-right:1px solid var(--line)}.timeline-day{font-size:11px;color:var(--secondary);border-left:1px solid var(--rule);text-align:center;padding:14px 0}.timeline-day.weekend{background:#f0f2f5}.timeline-day.is-today{background:#e5effc;color:#18568f;font-weight:650;border-left:1px solid #2e76bd}.timeline-row{display:grid;min-height:56px;border-bottom:1px solid var(--rule);align-items:stretch;position:relative}.timeline-row:last-child{border-bottom:0}.timeline-label{position:sticky;left:0;z-index:3;background:var(--surface);border-right:1px solid var(--line);padding:9px 18px;display:flex;flex-direction:column;justify-content:center;gap:3px;overflow:hidden;cursor:pointer}.timeline-label:hover{background:#f5f8fc}.timeline-label strong{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}.timeline-label span{font-size:11px;color:var(--secondary)}.timeline-lane{position:relative;display:flex;align-items:center;background-image:linear-gradient(to right,var(--rule) 1px,transparent 1px);cursor:pointer}.timeline-bar{position:absolute;display:flex;align-items:center;padding:0 9px;color:#fff;font-size:11px;white-space:nowrap;overflow:hidden;z-index:2;height:23px;min-width:7px;border-radius:4px;background:#3d77b7}.timeline-bar.report{background:#3d6087}.timeline-bar.client_meeting{background:#4a7e75}.timeline-bar.internal_meeting{background:#737d8b}.timeline-bar.milestone{background:#92754d}.timeline-bar.tentative{background-image:repeating-linear-gradient(120deg,transparent,transparent 7px,#ffffff18 7px,#ffffff18 11px)}.timeline-bar:hover{filter:brightness(.92)}.unscheduled{margin-top:24px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);padding:20px 22px}.unscheduled h3{font-size:14px;font-weight:600;margin:0 0 10px}.unscheduled-item{padding:12px 0;border-bottom:1px solid var(--rule);font-size:13px;line-height:1.7;cursor:pointer}.unscheduled-item:last-child{border-bottom:0}.unscheduled-item:hover{color:var(--blue)}
/* Calendar: quiet cells, an explicit selected day, and the day's readable agenda. */
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:var(--radius) var(--radius) 0 0;overflow:hidden}.calendar-weekdays div{text-align:center;padding:14px 5px;color:var(--secondary);font-weight:500;font-size:12px}.calendar-grid{background:var(--surface);border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);overflow:hidden}.calendar-day{height:120px;padding:10px 8px;min-width:0;overflow:hidden;border-right:1px solid var(--rule);border-top:1px solid var(--rule);cursor:pointer}.calendar-day:nth-child(7n){border-right:0}.calendar-day:hover{background:#f7f9fc}.calendar-day.outside{background:#f7f8fa;color:#777e88}.calendar-day.today{background:#f1f6fc}.calendar-day.selected{box-shadow:inset 0 0 0 2px #3b78ba}.calendar-day-num{display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;width:27px;height:27px;border-radius:50%;font-variant-numeric:tabular-nums}.calendar-day.today .calendar-day-num{background:#2767ab;color:white}.calendar-entry{font-size:11px;line-height:1.4;margin-top:4px;padding:3px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:4px;color:#365d89;background:#edf3fb;cursor:pointer}.calendar-entry.report{background:#e8eef6;color:#3c5e83}.calendar-entry.client_meeting{background:#e8f2ef;color:#3e7065}.calendar-entry.internal_meeting{background:#eff0f3;color:#626c7b}.calendar-entry.milestone{background:#f8f1e5;color:#84693c}.calendar-more{font-size:11px;color:var(--secondary);margin-top:3px}.calendar-focus{margin-top:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px}.calendar-focus h3{font-weight:600;font-size:14px;margin:0 0 8px}.calendar-focus .focus-row{cursor:pointer;padding:12px 0;border-bottom:1px solid var(--rule);font-size:13px;line-height:1.7}.calendar-focus .focus-row:last-child{border-bottom:0}.calendar-focus .focus-row:hover{color:var(--blue)}
/* Editor: labels and fields keep their order, with a stable action row. */
.editor-dialog{border:1px solid var(--line);padding:0;border-radius:20px;width:min(660px,calc(100vw - 40px));max-height:min(92dvh,880px);background:var(--surface);box-shadow:0 24px 80px #141c3030;color:var(--text);overflow:auto}.editor-dialog::backdrop{background:#1c26365c}.editor-head{display:flex;align-items:center;justify-content:space-between;padding:25px 30px 22px;border-bottom:1px solid var(--line)}.editor-head h3{font-size:24px;font-weight:650;letter-spacing:-.03em;margin:3px 0 0}.icon-button{width:36px;height:36px;border:0;border-radius:50%;background:var(--raised);color:var(--secondary);font-size:24px;line-height:1}.icon-button:hover{background:var(--active)}.editor-body{display:grid;gap:18px;padding:24px 30px 12px}.editor-body label{display:flex;flex-direction:column;gap:8px;color:#565f6a;font-size:13px;font-weight:500}.editor-body input,.editor-body select,.editor-body textarea{width:100%;min-height:44px;border-radius:9px;border:1px solid var(--control);background:var(--surface);padding:10px 12px;color:var(--text);outline:none;font-size:14px}.editor-body input:focus,.editor-body select:focus,.editor-body textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #0067d515}.editor-body input::placeholder,.editor-body textarea::placeholder{color:var(--tertiary)}.editor-body textarea{resize:vertical;line-height:1.7;min-height:110px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.collab-field{display:grid;gap:10px}.collab-label{font-size:13px;font-weight:500;color:#565f6a}.collab-options{display:flex;gap:20px;flex-wrap:wrap}.collab-options label{display:flex;flex-direction:row;align-items:center;gap:7px;font-size:13px;font-weight:400;min-height:28px}.collab-options input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--blue)}.editor-actions{display:flex;align-items:center;gap:10px;padding:20px 30px 26px;background:var(--surface)}.editor-spacer{flex:1}.editor-error{padding:0 30px 15px}.toast{position:fixed;bottom:24px;right:24px;z-index:200;padding:13px 18px;background:#272b33;color:#fff;border-radius:11px;box-shadow:0 8px 30px #17213b1c;font-size:13px;max-width:min(430px,90vw)}
/* Member picker: real names are the only decision. */
.auth-screen{min-height:100dvh;display:grid;place-items:center;background:#f4f5f7;padding:50px 24px}.auth-wrap{width:min(540px,100%);text-align:center}.auth-monogram{display:flex;align-items:center;justify-content:center;margin:0 auto 45px;color:#25282e;letter-spacing:-.07em;font-size:29px;font-weight:750}.auth-kicker{display:none}.auth-wrap h1{font-size:36px;font-weight:650;letter-spacing:-.04em;line-height:1.25;margin:0}.auth-sub{color:var(--secondary);font-size:15px;margin:16px 0 35px}.auth-box{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:26px}.auth-question{font-size:16px;font-weight:600}.auth-hint{font-size:13px;color:var(--secondary);margin:7px 0 22px}.member-options{display:grid;gap:10px}.member-choice{display:flex;align-items:center;gap:15px;min-height:70px;padding:12px 16px;border:1px solid var(--line);background:#fafbfc;border-radius:12px;color:var(--text)}.member-choice:hover{background:#f1f5fa;border-color:#b7c8dd}.member-avatar{width:39px;height:39px;font-size:15px}.member-name{font-size:15px;font-weight:500}.member-arrow{margin-left:auto;font-size:24px;font-weight:300;color:#747c89}.auth-footer{font-size:13px;color:var(--secondary);margin-top:24px}
.module-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;min-width:0}.module-button{min-height:36px;border:1px solid #dfe4eb;border-radius:9px;padding:0 13px;background:#fff;color:#566170;font-size:13px;white-space:nowrap}.module-button:hover{background:#f3f6fa}.module-button.is-selected{background:#e8f0fb;border-color:#b4c8e1;color:#245d96;font-weight:600}.filter-controls{display:flex;align-items:center;gap:9px;margin-left:auto}.filter-controls .filter-field{min-width:130px}.filter-toggle,.reset-filters{display:none}
/* Tablet removes the sidebar instead of squeezing task identity. */
@media(min-width:1500px){.main{padding-top:46px}.task-table td{padding-top:16px;padding-bottom:16px}}
@media(max-width:1150px){.shell{grid-template-columns:208px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.main{padding:32px 26px 60px}.topbar{padding:0 26px}.filters{flex-wrap:wrap}.search-box{max-width:none;flex-basis:100%;min-height:38px}.filter-field{flex:1 1 130px}.filter-field:last-child{margin-left:0}.overview-strip{gap:17px}.summary-total{padding-right:17px}.task-table td:first-child{padding-left:18px}.section-head{padding-left:18px}.list-columns>span:first-child{padding-left:18px}.task-table .task-title{font-size:13px}.owner-cell .person-avatar{display:none}.status{padding:4px 6px}.task-date{font-size:12px}}
@media(min-width:721px) and (max-width:950px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.topbar,.main{grid-column:1}.mobile-wordmark{display:inline;font-size:18px;font-weight:730;letter-spacing:-.05em;margin-right:7px}.task-table .task-title{font-size:14px}.owner-cell .person-avatar{display:inline-flex}.main{padding:32px 30px 60px}.topbar{padding:0 30px}.filters{flex-wrap:nowrap}.search-box{flex-basis:200px;max-width:none}.filter-field{flex:0 1 140px}}
@media(min-width:721px) and (max-width:950px){.main{padding-bottom:120px}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:340px;z-index:55;border:1px solid #dcdee4;border-radius:25px;background:#fafafbf5;box-shadow:0 4px 20px #1d263614;padding:5px 8px}.bottom-nav button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:0;border-radius:19px;background:transparent;color:#626a76;font-size:13px}.bottom-nav button svg{width:21px;height:21px}.bottom-nav button.active{background:#e8ebf0;color:#1d4f87;font-weight:600}}
@media(max-width:720px){
 html,body{max-width:100%;overflow-x:hidden}
 .shell{display:flex;flex-direction:column;height:100vh;height:var(--app-height,100dvh);min-height:0;overflow:hidden}.workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.sidebar{display:none}
 .topbar{height:54px;min-height:54px;flex:none;padding:0 16px;gap:12px;background:#fafafb;position:relative;top:auto}.mobile-wordmark{display:inline;font-size:19px;font-weight:740;letter-spacing:-.055em}.topbar-brand{gap:9px;min-width:0}.brand-subtitle{font-size:13px;overflow:hidden;text-overflow:ellipsis}.breadcrumb-current,.breadcrumb-divider{display:none}.top-actions{gap:0}.sync-state{display:none}.user-button{width:44px;min-height:44px;padding:5px;background:transparent}.user-button #user-name,.user-button .chevron{display:none}.avatar{width:32px;height:32px}.user-dropdown{top:47px;right:0;max-width:calc(100vw - 32px)}
 .main{width:100%;max-width:none;min-width:0;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 16px 24px;margin:0;grid-column:auto;grid-row:auto}.page-head{min-height:44px;margin:0 0 14px;gap:12px}.page-head h1{font-size:26px;line-height:1.3;letter-spacing:-.025em;margin:0}.page-desc{display:none}.page-head #new-task{width:44px;min-width:44px;min-height:44px;border-radius:13px;padding:0}.page-head #new-task .plus{display:inline;font-size:27px;font-weight:300}.page-head #new-task>span:last-child{display:none}.overview-strip{display:none}
 .module-switch{gap:6px;margin-bottom:14px}.module-button{min-height:44px;flex:none;max-width:100%;padding:0 10px;border-radius:9px;font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.module-button.is-selected{font-weight:600}
 .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0 0 20px;align-items:stretch;min-width:0}.search-box{grid-column:1;max-width:none;min-width:0;min-height:44px;margin:0;border-radius:10px;padding:0 11px}.search-box input{min-width:0;font-size:16px;line-height:24px;padding:9px 0}.filter-toggle{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:0 12px;background:#fff;color:#4a5563;font-size:14px}.filter-toggle.has-filters{border-color:#a7bfdb;color:#225b93;background:#f0f5fc}#filter-count{font-size:12px;font-variant-numeric:tabular-nums}.filter-controls{display:none;grid-column:1/-1;margin:0;padding:12px;background:#f0f2f5;border-radius:12px;gap:10px;min-width:0}.filters.is-expanded .filter-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.filter-controls .filter-field{min-width:0;width:100%;flex:none}.filter-field:last-child{margin:0}.filter-field>span{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:block;font-size:13px;color:var(--secondary);margin:0 0 6px}.filter-field{display:block}.filter-field select{display:block;width:100%;min-width:0;max-width:100%;min-height:46px;font-size:16px;padding:0 8px;border-color:#d3d8df;border-radius:9px;background:#fff}.reset-filters{display:block;grid-column:1/-1;justify-self:end;min-height:40px;padding:0 4px;border:0;background:transparent;color:#315e90;font-size:14px}
 .list-surface{background:transparent;border:0;border-radius:0;overflow:visible}.list-columns,.task-table{display:none}.list-surface section{margin:0 0 22px;border:0}.list-surface section+section{border:0}.section-head{padding:0 2px 10px;min-height:31px;gap:10px}.section-head h2{font-size:15px;font-weight:650}.section-count{font-size:13px;margin-left:auto}.task-cards{display:block;background:#fff;border:1px solid #e2e6ec;border-radius:13px;overflow:hidden}.card-task{padding:15px 14px 16px;border-bottom:1px solid #e9ecf1;cursor:pointer;min-width:0}.card-task:last-child{border:0}.card-task:hover{background:#f8fafd}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}.card-head .task-title{font-size:16px;line-height:1.6;letter-spacing:0;font-weight:550;min-width:0;white-space:normal;overflow-wrap:anywhere}.card-head>.row-arrow{width:14px;margin-top:6px;flex:none}.card-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:7px 0 11px;font-size:14px;line-height:1.6;color:#626b77;overflow-wrap:anywhere}.card-kind{font-size:13px;color:#637489}.card-owner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;min-width:0}.card-owner .owner-cell{font-size:14px;line-height:24px;color:#56616d;gap:7px}.card-owner .person-avatar{display:inline-flex;width:23px;height:23px;font-size:11px}.card-owner .status{font-size:13px;line-height:20px;padding:3px 8px;flex:none;max-width:100%}.empty-state{padding:28px 18px;font-size:15px;line-height:1.7;border-radius:13px}
 /* Phone scheduling is a readable monthly agenda; the desktop grid is unchanged. */
 .agenda-period{display:flex;align-items:center;gap:8px;padding:0 0 11px;min-width:0}.agenda-period button{width:44px;min-width:44px;min-height:44px;border:1px solid #dfe4eb;border-radius:10px;background:#fff;color:#3d4b5a;font-size:23px}.agenda-period strong{flex:1;min-width:0;text-align:center;font-size:17px;font-weight:600;white-space:nowrap}.agenda-period button:last-child{width:auto;min-width:54px;padding:0 10px;font-size:14px;margin-left:3px}.agenda-context{font-size:13px;color:#697380;line-height:1.6;margin:0 0 21px}.agenda-section{margin:0 0 22px;min-width:0}.agenda-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 10px}.agenda-section-head h2{font-size:15px;font-weight:650;margin:0}.agenda-section-head>span{font-size:13px;color:var(--secondary);white-space:nowrap}.agenda-rows{border:1px solid #e2e6ec;background:#fff;border-radius:13px;overflow:hidden}.agenda-row{padding:14px;cursor:pointer;border-bottom:1px solid #e9ecf1;min-width:0}.agenda-row:last-child{border-bottom:0}.agenda-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.agenda-date{font-size:14px;line-height:1.6;color:#3d6895;font-weight:500;overflow-wrap:anywhere;min-width:0}.agenda-row-head>.row-arrow{margin-top:5px;flex:none;width:13px}.agenda-row h3{font-size:16px;font-weight:550;line-height:1.65;letter-spacing:0;margin:7px 0 11px;overflow-wrap:anywhere}.agenda-row-meta{display:flex;align-items:center;gap:7px 10px;flex-wrap:wrap;font-size:13px;line-height:1.6;color:#6a7480}.agenda-row-meta .owner-cell{font-size:14px}.agenda-row-meta .person-avatar{width:23px;height:23px;font-size:11px}.agenda-row-meta .status{margin-left:auto;font-size:13px;line-height:20px;padding:3px 8px}.agenda-empty{margin:0;padding:16px 14px;font-size:14px;line-height:1.6;color:var(--secondary);border:1px solid #e2e6ec;background:#fff;border-radius:13px}
 /* A full-width tab bar reserves its own safe area instead of floating over a row. */
 .bottom-nav{display:flex;align-items:center;justify-content:space-around;position:relative;left:auto;right:auto;bottom:auto;z-index:55;flex:none;transform:none;width:100%;gap:8px;padding:6px 16px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid #dde3eb;border-radius:0;background:#fff;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.bottom-nav button{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#697381;font-size:14px}.bottom-nav button svg{width:21px;height:21px}.bottom-nav button.active{background:#edf3fa;color:#255f98;font-weight:600}.bottom-nav button[data-view="calendar"]{display:none}.text-input-active .bottom-nav{display:none}
 /* Dialog body scrolls independently, keeping its actions outside the scrolling fields. */
 .editor-dialog{max-height:calc(100vh - 12px);max-height:calc(var(--app-height,100dvh) - 12px);width:100%;max-width:100%;border:0;border-radius:18px 18px 0 0;padding:0;margin:12px 0 0;inset:auto 0 0;overflow:hidden}.editor-dialog[open]{display:flex;flex-direction:column}#task-form{display:flex;flex-direction:column;min-height:0;width:100%;max-height:calc(100vh - 12px);max-height:calc(var(--app-height,100dvh) - 12px)}.editor-head{position:static;padding:18px 18px 15px;flex:none;background:#fff}.editor-head .eyebrow{display:none}.editor-head h3{font-size:22px;margin:0}.icon-button{width:44px;height:44px;flex:none}.editor-body{padding:18px;gap:17px;overflow:auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.editor-body label,.collab-label{font-size:14px}.editor-body input,.editor-body select,.editor-body textarea{font-size:16px;min-height:46px;max-width:100%;min-width:0;line-height:1.5}.editor-body input[type="date"]{min-width:0;display:block}.form-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.collab-options{gap:10px 16px}.collab-options label{min-height:40px;font-size:14px}.editor-actions{position:static;flex:none;gap:8px;padding:13px 18px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #e4e7ed;background:#fff}.editor-actions .btn{min-height:44px;padding:0 12px;font-size:14px}.editor-error{flex:none;margin:0;padding:0 18px 10px;font-size:14px}.editor-error:empty{padding:0;min-height:0}.toast{left:16px;right:16px;bottom:calc(78px + env(safe-area-inset-bottom));font-size:14px;line-height:1.6;max-width:none}
 .auth-screen{min-height:100vh;min-height:100dvh;padding:30px 18px}.auth-wrap h1{font-size:30px;line-height:1.35}.auth-monogram{margin-bottom:28px}.auth-sub{font-size:14px;line-height:1.65;margin-bottom:26px}.auth-box{padding:21px 18px}.auth-hint,.auth-footer{font-size:14px;line-height:1.65}.member-name{font-size:16px}
}
@media(max-width:359px){.module-button{padding:0 8px;font-size:14px}.main{padding-left:14px;padding-right:14px}.page-head h1{font-size:25px}.agenda-period{gap:5px}.agenda-period strong{font-size:16px}.agenda-period button{min-width:44px;width:44px}.agenda-period button:last-child{min-width:48px;padding:0 7px}.card-owner .status,.agenda-row-meta .status{font-size:12px}.form-two{grid-template-columns:minmax(0,1fr)}.editor-actions{padding-left:14px;padding-right:14px}}

@media(prefers-reduced-transparency:reduce){.topbar,.bottom-nav{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}.editor-dialog::backdrop{background:#444a57}}
@media(prefers-contrast:more){:root{--secondary:#3e4651;--tertiary:#49505a;--line:#abb0b9;--control:#6d7683}.status{border:1px solid currentColor}.type-mark{outline:1px solid currentColor}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}.btn:active{transform:none}}
