:root{
  --accent:#ff1f28;
  --accent-2:#ef1019;
  --accent-soft:#fff0f1;
  --accent-soft-2:#ffe2e5;
  --text:#0f1115;
  --muted:#77818f;
  --muted-2:#9aa3ad;
  --line:#e4e8ed;
  --line-2:#d9dee5;
  --surface:#ffffff;
  --surface-2:#f6f8fa;
  --surface-3:#eef2f5;
  --black:#121317;
  --blue:#2578f5;
  --blue-soft:#e8f2ff;
  --green:#24b56f;
  --green-soft:#e5f7ed;
  --amber:#d99100;
  --amber-soft:#fff3d2;
  --purple:#7657df;
  --purple-soft:#f0eaff;
  --danger:#ff2933;
  --shadow:0 18px 55px rgba(20,28,38,.12);
  --shadow-soft:0 8px 28px rgba(18,25,35,.07);
  --radius-xl:22px;
  --radius-lg:18px;
  --radius-md:14px;
  --sidebar:248px;
  --header:80px;
  --mobile-nav:72px;
}
*{box-sizing:border-box}
html{background:#eef1f4}
body{margin:0;color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:#eef1f4;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button{color:inherit}
button,input,select,textarea{outline:none}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 3px rgba(255,31,40,.16)}
svg{display:block}
.app-shell{min-height:100vh;background:#fff}
.desktop-sidebar{display:none}
.app-main{min-width:0;background:#fff;min-height:100vh}
.top-header{position:sticky;top:0;z-index:50;height:74px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);display:grid;grid-template-columns:66px minmax(0,1fr) 82px;align-items:center;padding:10px 14px;gap:8px}
.mobile-brand{border:0;background:none;padding:0;width:58px;height:50px;display:flex;align-items:center;justify-content:flex-start}
.mobile-brand img{width:54px;height:42px;object-fit:contain;object-position:left center}
.desktop-breadcrumb{display:none}
.mobile-greeting{text-align:center;min-width:0;line-height:1.1;overflow:hidden}
.mobile-greeting>div{font-size:15px;font-weight:830;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-greeting>div span{color:var(--accent)}
.mobile-greeting small{display:block;margin-top:6px;font-size:11.5px;color:#9aa2ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.header-icon-button,.header-avatar-button{border:0;background:none;padding:0;transition:transform .18s ease,background .18s ease}
.header-icon-button:active,.header-avatar-button:active{transform:scale(.92)}
.header-icon-button{position:relative;width:32px;height:42px;display:grid;place-items:center;border-radius:12px}
.header-icon{width:24px;height:24px;display:grid;place-items:center}
.header-icon svg{width:24px;height:24px;fill:none;stroke:#171a1e;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.notification-dot{position:absolute;right:2px;top:7px;width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid #fff}
.header-avatar-button{width:44px;height:44px;border-radius:50%;background:#ff9da2;font-size:20px;font-weight:800;display:grid;place-items:center}
.page-root{padding:22px 18px calc(var(--mobile-nav) + 28px);min-height:calc(100vh - 74px);overflow:hidden}
.page-enter{animation:pageIn .26s cubic-bezier(.2,.8,.2,1)}
@keyframes pageIn{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}
.mobile-bottom-nav{position:fixed;z-index:48;left:0;right:0;bottom:0;height:calc(var(--mobile-nav) + env(safe-area-inset-bottom));padding:7px 8px max(7px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}
.mobile-nav-item{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#1b1e22;transition:color .18s ease,transform .18s ease}
.mobile-nav-item:active{transform:scale(.94)}
.mobile-nav-icon{width:28px;height:27px;display:grid;place-items:center;transition:transform .22s ease}
.mobile-nav-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mobile-nav-item.active{color:var(--accent)}
.mobile-nav-item.active .mobile-nav-icon{transform:translateY(-1px)}
.mobile-nav-dots{display:flex;align-items:center;justify-content:center;gap:3px}
.mobile-nav-dots i{width:5px;height:5px;border-radius:50%;background:currentColor}
.page-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:22px}
.page-title-copy{min-width:0}
.page-title{font-size:31px;line-height:1.06;letter-spacing:-.035em;margin:0;font-weight:850}
.page-subtitle{font-size:15px;color:var(--muted);margin:6px 0 0}
.page-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.btn{min-height:44px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:0 15px;font-weight:710;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .16s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.btn:hover{background:#fafbfc}
.btn:active{transform:scale(.975)}
.btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.btn-primary{background:linear-gradient(180deg,#17191d,#101115);border-color:#101115;color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.btn-primary:hover{background:#07080a}
.btn-red{background:linear-gradient(180deg,#ff333a,#ef151e);border-color:#ee141d;color:#fff;box-shadow:0 8px 18px rgba(255,31,40,.18)}
.btn-danger{color:var(--danger);border-color:#ffd1d5;background:#fff5f6}
.btn-ghost{border-color:transparent;background:transparent}
.btn-small{min-height:36px;padding:0 11px;font-size:13px;border-radius:10px}
.icon-only{width:42px;padding:0}
.mobile-only{display:block}
.desktop-only{display:none}
.top-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line);margin:4px 0 22px}
.top-tab{border:0;background:transparent;height:50px;color:#7d8691;font-size:16px;font-weight:740;position:relative;transition:color .18s ease,transform .18s ease}
.top-tab:active{transform:scale(.97)}
.top-tab.active{color:var(--accent)}
.top-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--accent);border-radius:3px 3px 0 0;animation:tabLine .24s ease}
@keyframes tabLine{from{transform:scaleX(.45);opacity:.2}to{transform:scaleX(1);opacity:1}}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:26px}
.metric-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;padding:13px 11px;box-shadow:0 4px 14px rgba(20,28,38,.025)}
.metric-label{font-size:12px;color:#74808e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric-main{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;margin-top:10px}
.metric-value{font-size:31px;line-height:1;font-weight:820}
.metric-icon{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#f0f3f6;color:#687381;flex:0 0 35px}
.metric-icon.red{background:var(--accent-soft);color:var(--accent)}
.metric-icon.amber{background:var(--amber-soft);color:var(--amber)}
.metric-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
.section{margin:0 0 28px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.section-heading h2{font-size:23px;letter-spacing:-.025em;margin:0;font-weight:820}
.text-link{border:0;background:none;color:#2e7df4;font-weight:700;padding:6px}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 3px 12px rgba(20,28,38,.02)}
.task-card{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 20px;gap:10px;align-items:start;padding:16px 14px;margin-bottom:10px;text-align:left;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease,background .17s ease}
.task-card:hover{border-color:#cfd5dc;box-shadow:0 8px 24px rgba(20,28,38,.07)}
.task-card:active{transform:scale(.988);background:#fcfcfd}
.task-check{width:30px;height:30px;border:2px solid #d3d9e1;background:#fff;border-radius:9px;margin-top:2px;display:grid;place-items:center;transition:all .18s ease}
.task-check.done{background:#16181c;border-color:#16181c;color:#fff}
.task-check svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.3}
.task-main{min-width:0}
.task-title{font-size:17px;font-weight:790;line-height:1.22;letter-spacing:-.01em}
.task-project{font-size:13.5px;color:#7c8794;margin-top:3px}
.task-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.chevron{align-self:center;width:18px;height:18px;fill:none;stroke:#66717e;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tag{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:5px 9px;border-radius:10px;font-size:12.5px;font-weight:700;white-space:nowrap}
.tag svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.tag.red{background:var(--accent-soft);color:var(--accent)}
.tag.blue{background:var(--blue-soft);color:#226edb}
.tag.green{background:var(--green-soft);color:#1d8e58}
.tag.amber{background:var(--amber-soft);color:#a56d00}
.tag.purple{background:var(--purple-soft);color:#6948d0}
.tag.gray{background:#f0f2f4;color:#65707d}
.quick-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:18px}
.quick-action{min-height:54px;border:1px solid var(--line);border-radius:15px;background:#fff;display:flex;align-items:center;gap:12px;padding:0 15px;text-align:left;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}
.quick-action:hover{border-color:#cfd5dc;box-shadow:var(--shadow-soft)}
.quick-action:active{transform:scale(.985)}
.quick-action.primary{background:linear-gradient(180deg,#ff333a,#ed141d);border-color:#ed141d;color:#fff}
.quick-action-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f1f3f6}
.quick-action.primary .quick-action-icon{background:rgba(255,255,255,.15)}
.quick-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}
.quick-action b{display:block;font-size:15px}
.quick-action small{display:block;font-size:11px;color:#88929e;margin-top:2px}
.quick-action.primary small{color:#ffd8da}
.search-row{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:14px}
.search-box{height:52px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:center;gap:11px;padding:0 15px}
.search-box svg{width:21px;height:21px;fill:none;stroke:#687381;stroke-width:2}
.search-box input{border:0;background:transparent;width:100%;font-size:15px;color:#111;min-width:0}
.search-box input::placeholder{color:#9ba3ad}
.filter-toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.filter-select,.filter-button{height:46px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:0 13px;color:#30343a;font-weight:650}
.filter-select{min-width:140px}
.filter-button{display:inline-flex;align-items:center;gap:8px}
.filter-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 15px}
.segment{height:46px;border:1px solid var(--line);background:#fff;border-radius:12px;font-weight:720;color:#5f6976;transition:all .18s ease}
.segment.active{background:var(--accent-soft);border-color:#ffd0d4;color:var(--accent)}
.projects-grid{display:grid;grid-template-columns:1fr;gap:11px}
.project-card{position:relative;padding:16px 14px;text-align:left;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}
.project-card:hover{border-color:#cfd5dc;box-shadow:var(--shadow-soft)}
.project-card:active{transform:scale(.99)}
.project-card-head{display:flex;justify-content:space-between;gap:10px}
.project-title-wrap{min-width:0}
.project-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.project-title{font-size:20px;font-weight:830;letter-spacing:-.02em}
.project-code{font-size:13px;color:#8b94a0;margin-top:4px}
.kebab{border:0;background:transparent;font-size:19px;letter-spacing:2px;color:#505b67;padding:2px 0 2px 8px}
.project-info{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:15px 0}
.info-label{font-size:12px;color:#87909b;margin-bottom:6px}
.person-line,.deadline-line{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:680;min-width:0}
.mini-avatar{width:31px;height:31px;border-radius:50%;background:#dceaff;color:#31597e;display:grid;place-items:center;font-size:12px;font-weight:800;flex:0 0 31px}
.deadline-line svg{width:19px;height:19px;fill:none;stroke:var(--accent);stroke-width:2}
.progress-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#66717d;margin-bottom:7px}
.progress-track{height:8px;border-radius:6px;background:#e7ecf0;overflow:hidden}
.progress-bar{height:100%;border-radius:6px;background:#2d88ff}
.member-line{display:flex;align-items:center;justify-content:space-between;margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.member-line-label{font-size:12px;color:#7c8794}
.member-stack{display:flex;align-items:center}
.member-stack span{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;border:2px solid #fff;margin-left:-7px}
.member-stack span:first-child{margin-left:0}.member-stack span:nth-child(1){background:#d8e9ff}.member-stack span:nth-child(2){background:#daf4e4}.member-stack span:nth-child(3){background:#ffe2e4}.member-stack span:nth-child(4){background:#eee5ff}.member-stack span:nth-child(5){background:#eef0f3}
.page-note{font-size:12px;color:#838d99;margin-top:10px}
.activity-groups{display:grid;gap:20px}
.activity-date{font-size:18px;font-weight:820;margin-bottom:10px}
.activity-list{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
.activity-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto 18px;gap:12px;align-items:center;padding:14px 14px;border-bottom:1px solid var(--line);text-align:left;background:#fff;transition:background .16s ease}
.activity-row:last-child{border-bottom:0}
.activity-row:hover{background:#fbfcfd}
.activity-row:active{background:#f7f8fa}
.activity-avatar{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#ffe1e3;color:#9a1b23;font-size:12px;font-weight:820}
.activity-avatar.purple{background:#e8ddff;color:#6548bd}.activity-avatar.blue{background:#dceaff;color:#2a5e9c}.activity-avatar.green{background:#ddf5e7;color:#21714a}
.activity-main{min-width:0}
.activity-main p{margin:0;font-size:14px;line-height:1.35}
.activity-link{display:inline-flex;align-items:center;gap:5px;margin-top:6px;color:#2c78eb;font-size:14px;font-weight:760}
.activity-extra{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:7px;color:#76818e;font-size:12px}
.activity-source{font-size:12px;color:#6f7986;white-space:nowrap}
.activity-time{font-size:12px;color:#89929d;white-space:nowrap}
.load-more{width:100%;height:50px;margin-top:10px;border:1px solid var(--line);border-radius:13px;background:#fff;font-weight:720}
.calendar-layout{display:grid;grid-template-columns:1fr;gap:18px}
.calendar-main{min-width:0}
.calendar-toolbar{display:grid;grid-template-columns:44px 1fr 44px;gap:8px;align-items:center;margin-bottom:14px}
.calendar-toolbar button{height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:22px}
.month-title{text-align:center;font-size:18px;font-weight:790;text-transform:capitalize}
.calendar-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.weekdays{margin-bottom:6px}
.weekdays span{text-align:center;font-size:11px;color:#7e8895}
.calendar-day{min-width:0;aspect-ratio:1;border:1px solid #edf0f2;border-radius:10px;background:#fff;padding:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:13px;font-weight:680;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.calendar-day:hover{background:#fbfcfd}.calendar-day:active{transform:scale(.96)}
.calendar-day.muted{background:#f7f8f9;color:#c0c5ca}.calendar-day.selected{border:2px solid var(--accent);color:var(--accent)}
.calendar-day-dots{display:flex;gap:3px}.calendar-day-dots i{width:5px;height:5px;border-radius:50%}
.dot-task{background:var(--amber)}.dot-project{background:var(--green)}.dot-personal{background:var(--blue)}
.calendar-side{border-top:1px solid var(--line);padding-top:16px}
.calendar-side h2{font-size:21px;margin:0}.calendar-side p{font-size:13px;color:var(--muted);margin:4px 0 14px}
.calendar-event{position:relative;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px 13px 13px 20px;margin-bottom:9px;text-align:left;width:100%;transition:transform .17s ease,border-color .17s ease}
.calendar-event:active{transform:scale(.985)}.calendar-event:hover{border-color:#ced5dc}
.calendar-event:before{content:"";position:absolute;left:8px;top:12px;bottom:12px;width:5px;border-radius:4px;background:var(--amber)}
.calendar-event.project:before{background:var(--green)}.calendar-event.personal:before{background:var(--blue)}
.calendar-event-title{font-size:15px;font-weight:770}.calendar-event-meta{font-size:12px;color:#727d89;margin-top:7px;display:flex;flex-wrap:wrap;gap:8px}
.calendar-legend{display:flex;gap:14px;flex-wrap:wrap;padding-top:14px;margin-top:14px;border-top:1px solid var(--line);color:#697480;font-size:12px}.calendar-legend span{display:flex;align-items:center;gap:7px}.calendar-legend i{width:9px;height:9px;border-radius:50%}
.team-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 15px}
.team-stat{border:1px solid var(--line);border-radius:15px;padding:13px 10px;background:#fff;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}.team-stat svg{width:22px;height:22px;fill:none;stroke:#5c6875;stroke-width:2;flex:0 0 auto}.team-stat.red svg{stroke:var(--accent)}.team-stat b{font-size:21px}.team-stat span{font-size:11px;color:#7e8894;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-grid{display:grid;grid-template-columns:1fr;gap:10px}
.team-card{padding:13px 13px 10px;text-align:left;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}
.team-card:hover{border-color:#cfd5dc;box-shadow:var(--shadow-soft)}.team-card:active{transform:scale(.99)}
.team-person{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:10px;align-items:center}.person-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:800;background:#ffe0e2;color:#7d262a}.person-avatar.blue{background:#e0ebff;color:#2d5685}.person-avatar.green{background:#e1f4e8;color:#2e704b}.person-avatar.purple{background:#ece1ff;color:#684a9b}
.person-name{font-size:16px;font-weight:800}.person-role{font-size:12.5px;color:#798490;margin-top:2px}.role-pill{padding:6px 9px;border-radius:10px;background:#f0f2f4;color:#65707d;font-size:10.5px;font-weight:750}.role-pill.admin{background:var(--accent-soft);color:var(--accent)}
.team-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:11px}.team-metric{padding:8px 4px;text-align:center;min-width:0}.team-metric+.team-metric{border-left:1px solid var(--line)}.team-metric b{font-size:15px}.team-metric span{display:block;font-size:9.5px;color:#7c8793;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-metric.danger b,.team-metric.danger span{color:var(--accent)}
.team-card-foot{height:37px;display:flex;align-items:flex-end;justify-content:space-between;font-size:12.5px;font-weight:710}.team-card-foot svg{width:16px;height:16px;fill:none;stroke:#53606c;stroke-width:2}
.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.admin-summary-card{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff}.admin-summary-card span{font-size:11px;color:#7d8793}.admin-summary-card b{display:block;font-size:25px;margin-top:4px}.admin-summary-card small{font-size:10px;color:#9aa2ab}
.admin-table{border:1px solid var(--line);border-radius:16px;overflow:hidden}.admin-row{display:grid;grid-template-columns:minmax(170px,1.6fr) minmax(90px,.8fr) minmax(100px,.8fr) minmax(85px,.7fr) auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px}.admin-row:last-child{border-bottom:0}.admin-row.head{background:#f8f9fb;color:#76818e;font-size:11px;font-weight:760;text-transform:uppercase;letter-spacing:.04em}.admin-person{display:flex;align-items:center;gap:10px;min-width:0}.admin-person .mini-avatar{flex:0 0 34px}.admin-person-copy{min-width:0}.admin-person-copy b,.admin-person-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-person-copy span{font-size:11px;color:#7c8793;margin-top:2px}.admin-actions{display:flex;justify-content:flex-end;gap:7px}.status-dot{display:inline-flex;align-items:center;gap:6px}.status-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:#27b66e}.status-dot.disabled:before{background:#a7afb9}
.settings-grid{display:grid;grid-template-columns:1fr;gap:12px}.settings-card{border:1px solid var(--line);border-radius:17px;background:#fff;padding:16px}.settings-card h3{margin:0;font-size:17px}.settings-card p{margin:5px 0 14px;color:#7c8793;font-size:13px}.settings-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-top:1px solid var(--line)}.settings-line:first-of-type{border-top:0}.settings-line b{font-size:14px}.settings-line span{font-size:12px;color:#7d8793}.toggle{width:46px;height:26px;border:0;border-radius:20px;background:#dfe4e9;padding:3px;display:flex;align-items:center;transition:background .2s ease}.toggle i{width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:transform .2s ease}.toggle.on{background:var(--accent)}.toggle.on i{transform:translateX(20px)}
.empty-state{border:1px dashed #d8dde3;border-radius:16px;padding:24px;text-align:center;color:#7c8793;background:#fafbfc}.empty-state b{display:block;color:#30353b;margin-bottom:5px}
.desktop-today-grid{display:block}.today-side{display:none}
.side-panel-card{border:1px solid var(--line);border-radius:17px;padding:15px;background:#fff;margin-bottom:14px}.side-panel-card .section-heading{margin-bottom:10px}.project-mini-row,.change-mini-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line);text-align:left;width:100%;background:none;border-left:0;border-right:0;border-bottom:0}.project-mini-row:first-of-type,.change-mini-row:first-of-type{border-top:0}.project-mini-icon{width:40px;height:40px;border-radius:10px;background:#0aa0a7;color:#fff;display:grid;place-items:center;font-weight:820}.project-mini-icon.drive{background:#f5f6f7;color:#236bd6}.mini-progress{width:84px;height:7px;border-radius:6px;background:#e7ebef;overflow:hidden}.mini-progress i{display:block;height:100%;background:#2b85ff;border-radius:6px}.change-mini-avatar{width:38px;height:38px;border-radius:50%;background:#edf0f3;display:grid;place-items:center;font-weight:780}.change-mini-copy{min-width:0}.change-mini-copy b,.change-mini-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.change-mini-copy small{color:#87919d;margin-top:3px}.change-mini-file{font-size:11px;color:#73808c}
/* Overlays */
.overlay-backdrop{position:fixed;inset:0;z-index:100;background:rgba(15,18,23,.34);display:flex;align-items:flex-end;justify-content:center;animation:backdropIn .2s ease}
@keyframes backdropIn{from{opacity:0}to{opacity:1}}
.sheet{width:100%;max-height:88vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -22px 60px rgba(0,0,0,.17);animation:sheetUp .28s cubic-bezier(.2,.78,.22,1)}
@keyframes sheetUp{from{transform:translateY(28px);opacity:.1}to{transform:none;opacity:1}}
.sheet-handle{width:42px;height:5px;border-radius:4px;background:#d8dde3;margin:0 auto 15px}.sheet-title{font-size:21px;font-weight:830;margin:0 0 14px}.sheet-list{display:grid;gap:8px}.sheet-item{min-height:66px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:11px 13px;display:grid;grid-template-columns:32px minmax(0,1fr) 18px;gap:10px;align-items:center;text-align:left;transition:transform .16s ease,border-color .16s ease}.sheet-item:hover{border-color:#ccd3da}.sheet-item:active{transform:scale(.985)}.sheet-item>svg{width:23px;height:23px;fill:none;stroke:#171a1e;stroke-width:2}.sheet-item b{font-size:14px}.sheet-item small{display:block;color:#84909c;margin-top:2px}.sheet-item .chevron{margin:0}
.drawer-backdrop{position:fixed;inset:0;z-index:102;background:rgba(12,15,20,.28);display:flex;justify-content:flex-end;animation:backdropIn .18s ease}
.detail-drawer{width:min(560px,100%);height:100%;overflow:auto;background:#fff;border-left:1px solid var(--line);box-shadow:-20px 0 60px rgba(20,28,38,.14);animation:drawerIn .3s cubic-bezier(.2,.8,.2,1)}
@keyframes drawerIn{from{transform:translateX(28px);opacity:.25}to{transform:none;opacity:1}}
.drawer-head{position:sticky;top:0;z-index:4;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);padding:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.drawer-kicker{font-size:10px;color:#8b95a1;font-weight:800;letter-spacing:.12em}.drawer-head h2{margin:4px 0 0;font-size:23px;letter-spacing:-.02em}.drawer-close{width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:22px}.drawer-body{padding:18px}.drawer-project-link{display:flex;align-items:center;gap:8px;border:0;background:#f5f7f9;border-radius:12px;padding:10px 12px;color:#46515e;font-weight:700;margin-bottom:14px}.drawer-project-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}.detail-field{border:1px solid var(--line);border-radius:13px;padding:11px}.detail-field label{display:block;font-size:10px;color:#8a94a0;margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}.detail-field b{font-size:13px}.detail-section{border-top:1px solid var(--line);padding:16px 0}.detail-section:first-child{border-top:0}.detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.detail-section-head h3{font-size:15px;margin:0}.detail-section p{font-size:13.5px;color:#3a424a;line-height:1.55}.status-actions{display:flex;gap:7px;flex-wrap:wrap}.status-action{height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 10px;font-size:12px;font-weight:700}.status-action.active{background:#16181c;color:#fff;border-color:#16181c}.comment-compose textarea,.link-form input,.modal-form input,.modal-form select,.modal-form textarea,.inline-form input,.inline-form select{width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 11px;font-size:14px}.comment-compose textarea,.modal-form textarea{resize:vertical;min-height:90px}.comment-compose-actions{display:flex;justify-content:flex-end;margin-top:8px}.comment-list{display:grid;gap:8px}.comment-item{border:1px solid var(--line);border-radius:12px;padding:11px}.comment-item-head{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#818b97}.comment-item p{margin:8px 0 0;color:#24292f}.resource-list{display:grid;gap:8px}.resource-row{border:1px solid var(--line);border-radius:12px;padding:10px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center}.resource-icon{width:31px;height:31px;border-radius:9px;background:#f1f3f6;display:grid;place-items:center}.resource-icon svg{width:17px;height:17px;fill:none;stroke:#46515d;stroke-width:2}.resource-row b,.resource-row small{display:block}.resource-row small{font-size:10px;color:#858f9a;margin-top:2px}.resource-action{font-size:12px;color:#2b75e8;font-weight:700}
.fullscreen-overlay{position:fixed;inset:0;z-index:103;background:#fff;overflow:auto;animation:screenIn .28s cubic-bezier(.2,.8,.2,1)}
@keyframes screenIn{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}
.workspace-head{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);padding:15px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workspace-head h2{margin:4px 0 0;font-size:24px}.workspace-head p{margin:5px 0 0;color:#798490;font-size:12px}.workspace-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.workspace-tabs{position:sticky;top:77px;z-index:4;background:#fff;border-bottom:1px solid var(--line);display:flex;overflow:auto;padding:0 10px}.workspace-tab{height:49px;border:0;background:none;padding:0 13px;font-weight:720;color:#7c8793;white-space:nowrap;position:relative}.workspace-tab.active{color:var(--accent)}.workspace-tab.active:after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}.workspace-body{padding:18px}.workspace-grid{display:grid;grid-template-columns:1fr;gap:14px}.workspace-card{border:1px solid var(--line);border-radius:16px;padding:14px}.workspace-card h3{font-size:15px;margin:0 0 10px}.workspace-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.workspace-stat{background:#f7f8fa;border-radius:12px;padding:11px}.workspace-stat b{display:block;font-size:20px}.workspace-stat span{font-size:10px;color:#7f8995}.participant-list{display:flex;flex-wrap:wrap;gap:8px}.participant{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:22px;padding:5px 9px 5px 5px;font-size:12px;font-weight:680}.participant i{width:28px;height:28px;border-radius:50%;background:#e2ebf7;display:grid;place-items:center;font-style:normal}.discussion-compose{display:grid;gap:8px}.discussion-compose textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px;min-height:90px;resize:vertical}.event-mini{padding:10px 0;border-top:1px solid var(--line);font-size:12px}.event-mini:first-child{border-top:0}.event-mini b{display:block}.event-mini span{color:#7e8894}
.modal-backdrop{position:fixed;inset:0;z-index:110;background:rgba(14,17,22,.36);display:flex;align-items:center;justify-content:center;padding:16px;animation:backdropIn .18s ease}.modal{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:var(--shadow);animation:modalIn .22s cubic-bezier(.2,.8,.2,1)}@keyframes modalIn{from{transform:translateY(12px) scale(.985);opacity:.2}to{transform:none;opacity:1}}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 18px;border-bottom:1px solid var(--line)}.modal-head span{font-size:10px;color:#8b95a1;font-weight:800;letter-spacing:.12em}.modal-head h2{margin:4px 0 0;font-size:22px}.modal-close{width:37px;height:37px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:22px}.modal-body{padding:18px}.modal-form{display:grid;grid-template-columns:1fr;gap:12px}.field label,.modal-form label>span{display:block;font-size:11px;color:#6f7a86;font-weight:700;margin-bottom:6px}.field-wide{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:4px}.dropzone{border:1px dashed #cfd5dc;border-radius:13px;padding:18px;text-align:center;background:#fafbfc;color:#74808d}.dropzone input{display:none}.dropzone b{display:block;color:#30363d}.dropzone small{display:block;margin-top:4px}.toast-root{position:fixed;z-index:130;right:16px;bottom:calc(var(--mobile-nav) + 18px);display:grid;gap:8px}.toast{background:#16181c;color:#fff;border-radius:12px;padding:11px 13px;box-shadow:var(--shadow);font-size:13px;animation:toastIn .24s ease}@keyframes toastIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.notifications-popover{position:fixed;z-index:108;top:68px;right:10px;width:min(410px,calc(100% - 20px));max-height:68vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);animation:popoverIn .2s ease}@keyframes popoverIn{from{transform:translateY(-7px);opacity:0}to{transform:none;opacity:1}}.notifications-head{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);padding:13px 14px;display:flex;align-items:center;justify-content:space-between}.notifications-head h3{margin:0;font-size:15px}.notification-row{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;width:100%;background:#fff}.notification-row:last-child{border-bottom:0}.notification-row:hover{background:#fafbfc}.notification-row b{display:block;font-size:12.5px}.notification-row p{margin:4px 0;font-size:11px;color:#68737f;line-height:1.4}.notification-row small{font-size:10px;color:#9aa2ab}
.context-menu{position:fixed;z-index:115;width:190px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-soft);padding:6px;animation:popoverIn .16s ease}.context-menu button{width:100%;height:38px;border:0;background:#fff;border-radius:8px;text-align:left;padding:0 10px;font-size:12.5px}.context-menu button:hover{background:#f5f7f9}.context-menu button.danger{color:var(--danger)}
@media (min-width:760px){
  .app-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}
  .desktop-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fff;padding:22px 14px 14px;z-index:60}
  .desktop-brand{height:56px;border:0;background:none;padding:0 13px;display:flex;align-items:center;margin-bottom:18px}.desktop-brand img{width:76px;height:52px;object-fit:contain;object-position:left center}
  .desktop-nav{display:grid;gap:4px}.desktop-nav-item,.sidebar-settings{height:49px;border:0;background:transparent;border-radius:12px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:center;padding:0 14px;text-align:left;font-size:14px;font-weight:670;color:#20242a;transition:all .18s ease}.desktop-nav-item:hover,.sidebar-settings:hover{background:#f7f8fa}.desktop-nav-item.active{background:linear-gradient(90deg,#fff0f1,#ffe9eb);color:var(--accent)}.desktop-nav-item.active:before{content:"";position:absolute;left:6px;width:5px;height:34px;border-radius:5px;background:var(--accent)}.desktop-nav-item{position:relative}.nav-glyph{width:24px;height:24px;display:grid;place-items:center}.nav-glyph svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:10px}.sidebar-settings{width:100%;margin-bottom:8px}.sidebar-profile{width:100%;height:56px;border:0;background:#fff;border-radius:12px;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;gap:9px;align-items:center;padding:0 10px;text-align:left}.sidebar-profile:hover{background:#f7f8fa}.sidebar-avatar{width:36px;height:36px;border-radius:50%;background:#e9edf2;display:grid;place-items:center;font-weight:800}.sidebar-profile-name{font-weight:720;font-size:13px}.sidebar-chevron{font-size:24px;color:#5a6570}
  .top-header{height:var(--header);grid-template-columns:1fr auto;padding:0 28px}.mobile-brand,.mobile-greeting{display:none}.desktop-breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px;color:#74808c}.desktop-breadcrumb span{font-size:20px;color:#9ea6ae}.top-actions{gap:13px}.header-icon-button{width:42px}.header-avatar-button{width:44px;height:44px;background:#e9edf2}.page-root{padding:28px 34px 38px;min-height:calc(100vh - var(--header));max-width:1500px;width:100%;margin:0 auto}.mobile-bottom-nav{display:none}.mobile-only{display:none}.desktop-only{display:block}.page-title-row{align-items:center;margin-bottom:24px}.page-title{font-size:38px}.page-subtitle{font-size:16px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}.search-row{grid-template-columns:minmax(300px,1fr) auto}.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-layout{grid-template-columns:minmax(0,1fr) 320px;gap:22px}.calendar-side{border-top:0;border-left:1px solid var(--line);padding-top:0;padding-left:20px}.calendar-day{aspect-ratio:auto;min-height:82px;align-items:flex-start;justify-content:flex-start;font-size:13px}.calendar-day-dots{margin-top:auto}.weekdays span{font-size:12px}.desktop-today-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.8fr);gap:24px}.today-side{display:block}.modal-form{grid-template-columns:repeat(2,minmax(0,1fr))}.fullscreen-overlay{left:var(--sidebar);top:var(--header)}.workspace-head{padding:18px 24px}.workspace-tabs{top:81px;padding:0 18px}.workspace-body{padding:22px 24px}.workspace-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr)}.overlay-backdrop{align-items:center;padding:30px}.sheet{width:min(520px,calc(100% - 40px));border-radius:20px;padding:14px 18px 20px}.toast-root{bottom:18px}.notifications-popover{top:70px;right:24px}.detail-drawer{width:min(590px,calc(100% - var(--sidebar)))}
}
@media (min-width:1180px){
  .projects-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{padding:18px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-root{padding-left:36px;padding-right:36px}.calendar-day{min-height:105px}.admin-row{font-size:13.5px}
}
@media (max-width:420px){
  .top-header{grid-template-columns:61px minmax(0,1fr) 76px;padding-left:10px;padding-right:10px}.mobile-brand{width:54px}.mobile-brand img{width:50px;height:39px}.mobile-greeting>div{font-size:14px}.header-avatar-button{width:42px;height:42px}.metric-grid{gap:8px}.metric-card{padding:12px 9px}.metric-label{font-size:11.5px}.metric-value{font-size:29px}.task-title{font-size:16px}.page-root{padding-left:16px;padding-right:16px}.team-summary{gap:7px}.team-stat{padding:11px 7px;gap:6px}.team-stat b{font-size:19px}.team-stat span{font-size:9.5px}.detail-grid{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Preview polish */
.task-title,.task-project{display:block}
.project-mini-row>span:nth-child(2) b,.project-mini-row>span:nth-child(2) small,.project-mini-row>span:nth-child(3)>b{display:block}
.project-mini-row>span:nth-child(3){text-align:right}
.change-mini-copy b{max-width:190px}
/* Final layout corrections */
.activity-row{width:100%;border:0;border-bottom:1px solid var(--line)}
.activity-row:last-child{border-bottom:0}
.person-name,.person-role{display:block}
.team-stat b{margin-right:3px}
.calendar-chip{display:none}
@media (min-width:760px){
  .search-row{grid-template-columns:minmax(280px,1.15fr) minmax(560px,1.85fr)}
  .filter-toolbar{flex-wrap:nowrap}
  .filter-select{min-width:0;flex:1}
  .calendar-chip{display:block;width:100%;margin-top:5px;padding:4px 6px;border-radius:8px;font-size:9.5px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-weight:700}
  .calendar-chip.task{background:var(--amber-soft);color:#9c6900}
  .calendar-chip.project{background:var(--green-soft);color:#228052}
  .calendar-chip.personal{background:var(--blue-soft);color:#286bd0}
}
@media (max-width:759px){
  .admin-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .admin-row{min-width:720px}
}

/* ============================================================
   V5 MOBILE SYSTEM PASS — spacing, controls, notifications
   ============================================================ */
.page-primary-action{white-space:nowrap;min-width:148px;min-height:50px;border-radius:14px;padding:0 18px;font-size:15px;line-height:1}
.page-primary-action svg{flex:0 0 19px;width:19px;height:19px}
.page-primary-action span{white-space:nowrap}
.filter-button.active{background:#15171b;border-color:#15171b;color:#fff}
.equal-filter-grid{min-width:0}
.equal-filter-grid>*{min-width:0;width:100%}
.mobile-filter-toggle{width:100%;justify-content:flex-start;margin:0 0 12px;min-height:46px}
.mobile-filter-toggle .filter-toggle-arrow{margin-left:auto;font-size:14px;transition:transform .2s ease}
.mobile-filter-toggle.collapsed .filter-toggle-arrow{transform:rotate(180deg)}

.notifications-list{padding:7px}
.notifications-head>div{min-width:0}
.notifications-head span{display:block;margin-top:3px;font-size:10.5px;color:#8a94a0}
.notification-row{position:relative;display:grid;grid-template-columns:9px minmax(0,1fr) 18px;gap:10px;align-items:center;width:100%;margin:0 0 7px;padding:12px;border:1px solid transparent;border-radius:13px;background:#f7f8fa;text-align:left;transition:transform .16s ease,background .16s ease,border-color .16s ease}
.notification-row:last-child{margin-bottom:0;border-bottom:0}
.notification-row:hover{background:#f3f5f7;border-color:#e6e9ed}
.notification-row:active{transform:scale(.992)}
.notification-row.unread{background:#fff5f6;border-color:#ffe2e4}
.notification-state{width:7px;height:7px;border-radius:50%;background:#c6ccd3;align-self:start;margin-top:5px}
.notification-row.unread .notification-state{background:var(--accent)}
.notification-copy{min-width:0}
.notification-row b{display:block;font-size:13px;line-height:1.3}
.notification-row p{margin:4px 0 7px;font-size:11.5px;color:#68737f;line-height:1.45}
.notification-row small{font-size:10.5px;color:#929ba5}
.notification-row>svg{width:16px;height:16px;fill:none;stroke:#79838f;stroke-width:2}
.notification-backdrop{z-index:107;background:rgba(15,18,22,.10)}

@media (max-width:759px){
  .page-root{padding-top:18px}

  /* Mobile section hierarchy: section name stays in the sticky header.
     The description lives in the content row next to the primary action. */
  .page-title-row.has-actions{
    min-height:50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:0 0 16px;
  }
  .page-title-row.has-actions .page-title-copy{
    display:block;
    flex:1 1 auto;
    min-width:0;
  }
  .page-title-row.has-actions .page-title-copy .page-title{display:none}
  .page-title-row.has-actions .page-subtitle{
    margin:0;
    max-width:180px;
    font-size:14px;
    line-height:1.35;
    color:var(--muted);
  }
  .page-title-row.has-actions .page-actions{
    width:auto;
    flex:0 0 auto;
    justify-content:flex-end;
    flex-wrap:nowrap;
  }

  .page-title-row.no-actions{
    display:flex;
    min-height:auto;
    margin:0 0 16px;
  }
  .page-title-row.no-actions .page-title{display:none}
  .page-title-row.no-actions .page-subtitle{
    margin:0;
    font-size:14px;
    line-height:1.35;
    color:var(--muted);
  }

  .today-mobile-date{margin:0 0 10px;font-size:14px;line-height:1.35;color:var(--muted)}

  .page-primary-action{width:148px;height:50px;min-width:148px;max-width:148px;padding:0 14px}
  .admin-primary-action{width:148px;min-width:148px;max-width:148px}

  .search-row{display:block;margin-bottom:14px}
  .search-row>.search-box{margin-bottom:10px}
  .filter-toolbar.equal-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
  .filter-toolbar.equal-filter-grid .filter-select,
  .filter-toolbar.equal-filter-grid .filter-button{width:100%;min-width:0;height:46px;padding:0 12px;border-radius:12px;font-size:14px}
  .project-filter-grid{max-height:120px;opacity:1;overflow:hidden;transform:translateY(0);transition:max-height .25s ease,opacity .2s ease,transform .25s ease,margin .25s ease;margin-bottom:12px!important}
  .project-filter-grid.collapsed{max-height:0;opacity:0;transform:translateY(-5px);margin-bottom:0!important;pointer-events:none}
  .task-filter-grid{margin-bottom:0!important}
  .team-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:0!important}
  .team-search-row>.search-box{margin-bottom:10px}

  .team-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
  .team-stat{height:76px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;overflow:hidden}
  .team-stat>svg{width:18px;height:18px;flex:0 0 18px}
  .team-stat>div{min-width:0;width:100%}
  .team-stat b{display:block;margin:0;font-size:17px;line-height:1.05}
  .team-stat span{display:block;margin-top:3px;font-size:9.5px;line-height:1.15;white-space:normal;overflow:visible;text-overflow:clip}

  .team-card{overflow:hidden}
  .team-person{grid-template-columns:44px minmax(0,1fr) auto}
  .role-pill{max-width:100%;white-space:nowrap}
  .team-metrics{grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}
  .team-metric{min-width:0;padding:8px 3px;overflow:hidden}
  .team-metric b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .team-metric span{font-size:8.8px;line-height:1.15;white-space:normal;overflow:visible;text-overflow:clip;min-height:20px}

  .notifications-popover{top:82px;left:12px;right:12px;width:auto;max-height:calc(100vh - 102px);border-radius:20px;border:1px solid #e1e5ea;box-shadow:0 20px 55px rgba(18,25,35,.18);overflow:auto}
  .notifications-head{padding:13px 13px 10px;border-bottom:0}
  .notifications-head h3{font-size:17px}
  .notifications-head .modal-close{width:36px;height:36px;border-radius:11px;background:#f5f6f8}
  .notifications-list{padding:0 8px 9px}

  .modal-backdrop{align-items:flex-end;padding:0;background:rgba(14,17,22,.34)}
  .modal{width:100%;max-height:calc(100vh - 18px);border-radius:22px 22px 0 0;box-shadow:0 -18px 50px rgba(18,25,35,.16)}
  .modal-head{padding:15px 18px 13px;align-items:center}
  .modal-head h2{margin:0;font-size:22px}
  .modal-head span:empty{display:none}
  .modal-body{padding:16px 18px calc(18px + env(safe-area-inset-bottom))}
  .modal-form{gap:11px}
  .modal-form input,.modal-form select,.modal-form textarea{font-size:16px}
  .modal-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px}
  .modal-actions .btn{width:100%;min-width:0;padding:0 10px;white-space:nowrap}
}

@media (min-width:760px){
  .page-primary-action{min-height:48px;min-width:154px}
  .project-filter-grid,.team-filter-grid,.task-filter-grid{display:flex!important;max-height:none!important;opacity:1!important;transform:none!important;margin-bottom:14px!important}
  .mobile-filter-toggle{display:none!important}
  .notifications-list{padding:8px}
}


@media (max-width:759px){
  .mobile-greeting{display:flex;align-items:center;justify-content:center;min-height:44px}
  .mobile-greeting>div{width:100%}
}


/* v8 task review workflow */
.sheet-badge{justify-self:end;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#ff2633;color:#fff;font-size:12px;font-style:normal;font-weight:800;display:grid;place-items:center}
.review-summary{border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-bottom:14px;display:flex;align-items:center;gap:16px;background:#fff}
.review-summary>div{min-width:92px}.review-summary b{display:block;font-size:28px;line-height:1}.review-summary span{font-size:11px;color:var(--muted)}.review-summary p{margin:0;color:#69737e;font-size:13px;line-height:1.45}
.review-list{display:grid;gap:10px}.review-card{width:100%;padding:14px;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:10px;align-items:center}.review-card-main{min-width:0}.review-card-title{display:block;font-size:16px;font-weight:800}.review-card-project{display:block;color:var(--muted);font-size:12px;margin-top:3px}.review-card-meta{display:flex;align-items:center;gap:7px;color:#6f7984;font-size:11px;margin-top:9px}.review-card-meta .mini-avatar{width:25px;height:25px}.review-card-meta i{width:3px;height:3px;border-radius:50%;background:#bcc3ca}
.review-decision{background:#fbf8ff;border:1px solid #eadfff;border-radius:15px;padding:14px;margin:6px 0 10px}.review-decision.detail-section{border-top:1px solid #eadfff}.review-decision p{margin:0 0 12px}.review-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.review-actions .btn{height:44px}.review-actions .btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.review-rework-button{border-color:#ffd0d4;color:#d92935;background:#fff8f8}
.workflow-info .workflow-main-action{width:100%;height:44px}.rework-alert{border:1px solid #ffd2d6;background:#fff7f8;border-radius:12px;padding:11px 12px;margin-bottom:12px}.rework-alert b{color:#d8202d}.rework-alert p{margin:4px 0 0;color:#6d363b}.rework-modal-copy{display:flex;flex-direction:column;gap:3px;padding:11px 12px;border-radius:12px;background:#f6f7f9}.rework-modal-copy b{font-size:14px}.rework-modal-copy span{font-size:11px;color:var(--muted)}
.team-current-work{margin:10px 0 0;border:1px solid var(--line);background:#fafbfc;border-radius:11px;padding:9px 10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;min-width:0}.team-current-work span{font-size:10px;color:#87919c}.team-current-work b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-current-work small{font-size:10px;color:#65707a}.team-current-work.active{background:#f2f7ff;border-color:#d9e7ff}.team-current-work.active span{color:#2875e4}
@media(max-width:719px){.review-summary{align-items:flex-start}.review-summary p{font-size:12px}.review-card{grid-template-columns:minmax(0,1fr) auto 14px;padding:13px 12px}.review-card .tag{display:none}.review-card-meta{flex-wrap:wrap}.review-actions{grid-template-columns:1fr}.team-current-work{grid-template-columns:1fr}.team-current-work b{white-space:normal}.team-current-work small{display:none}}

/* Production authentication */
[hidden]{display:none!important}
body.auth-mode{background:#f4f5f7;min-height:100vh}
body.auth-mode .app-shell{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#fff 0,#f6f7f9 45%,#eef0f3 100%)}
.login-card{width:min(410px,100%);background:#fff;border:1px solid #e2e5e9;border-radius:24px;padding:30px;box-shadow:0 24px 70px rgba(20,24,30,.10)}
.login-brand{display:flex;justify-content:center;margin-bottom:24px}
.login-logo{width:132px;height:auto;display:block;border-radius:2px}
.login-copy{text-align:center;margin-bottom:24px}
.login-copy h1{margin:0;font-size:27px;letter-spacing:-.035em;color:#17191d}
.login-copy p{margin:7px 0 0;color:#7a8490;font-size:13px}
.login-form{display:grid;gap:13px}
.login-form label span{display:block;margin-bottom:6px;font-size:11px;font-weight:750;color:#68727d}
.login-form input{width:100%;height:48px;border:1px solid #dfe3e8;border-radius:12px;background:#fff;padding:0 13px;font:inherit;color:#17191d;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.login-form input:focus{border-color:#b5bbc4;box-shadow:0 0 0 3px rgba(26,31,37,.06)}
.login-submit{height:49px;border:0;border-radius:12px;background:#15171a;color:#fff;font:inherit;font-weight:760;cursor:pointer;transition:transform .15s ease,opacity .15s ease}
.login-submit:active{transform:scale(.985)}
.login-submit:disabled{opacity:.58;cursor:wait}
.login-error{display:none;background:#fff0f1;color:#b3262e;border:1px solid #ffd4d7;border-radius:11px;padding:10px 12px;font-size:12px;line-height:1.4}
.login-foot{margin:18px 0 0;text-align:center;color:#9aa2ab;font-size:10.5px}
@media(max-width:520px){.login-screen{padding:16px}.login-card{padding:25px 20px;border-radius:20px}.login-logo{width:118px}}

/* Production v8 profile / form compatibility */
.sidebar-avatar.has-image,.header-avatar-button.has-image,.person-avatar.has-image{background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent}
.person-avatar.has-image{overflow:hidden}.person-avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block}
.employee-detail-avatar{width:58px!important;height:58px!important;font-size:21px!important;flex:0 0 58px}
.profile-sheet-avatar{width:52px!important;height:52px!important;flex:0 0 52px}
.form-field-title{display:block;font-size:12px;color:#7a8591;font-weight:700;margin-bottom:8px}
.project-create-members{max-height:180px;overflow:auto;padding:4px 1px}
.project-create-members .participant input{width:auto;margin:0 2px 0 0}

/* Multi-assignee task picker */
.form-hint{display:block;margin-top:7px;font-size:11px;line-height:1.4;color:#8a94a0}
.task-assignee-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:7px;padding:9px;border:1px solid #e1e5ea;border-radius:13px;background:#f8f9fa;max-height:210px;overflow:auto}
.task-assignee-picker.is-empty{display:flex;align-items:center;min-height:46px;color:#8a94a0;font-size:12px}
.task-assignee-option{display:flex!important;align-items:center;gap:9px;min-height:44px;padding:7px 9px!important;border:1px solid transparent;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.task-assignee-option:hover{border-color:#d8dde4;background:#fff}
.task-assignee-option:active{transform:scale(.99)}
.task-assignee-option input{width:17px!important;height:17px!important;min-width:17px;margin:0;accent-color:#ff2836;box-shadow:none!important}
.task-assignee-option .mini-avatar{width:28px;height:28px;min-width:28px;font-size:10px}
.task-assignee-option>span:last-child{font-size:12px;font-weight:700;color:#272b30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-assignee-option:has(input:checked){border-color:#ffc7cc;background:#fff4f5}
@media(max-width:720px){.task-assignee-picker{grid-template-columns:1fr;max-height:230px}}


.detail-edit-button{margin-top:8px;align-self:flex-start}


/* Task/project file previews and drag-and-drop */
.resource-file-row{grid-template-columns:minmax(0,1fr) auto;text-decoration:none;color:inherit}
.resource-file-row .resource-copy{min-width:0}
.resource-file-row .resource-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-thumb{width:42px;height:42px;border-radius:9px;overflow:hidden;background:#f1f3f6;border:1px solid #e1e5ea;display:block}
.resource-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.file-dropzone{display:flex;align-items:center;gap:10px;min-height:58px;padding:11px 13px;margin:0 0 10px;border:1.5px dashed #cfd6df;border-radius:12px;background:#fafbfc;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.file-dropzone:hover,.file-dropzone.is-dragover{border-color:#ff727c;background:#fff3f4}
.file-dropzone.is-dragover{transform:scale(.995)}
.file-dropzone-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#fff;border:1px solid #e4e8ed}
.file-dropzone-icon svg{width:18px;height:18px}
.file-dropzone>span:last-of-type{display:grid;gap:2px}
.file-dropzone b{font-size:12px;color:#1f2328}
.file-dropzone small{font-size:10px;color:#87919d}

.task-assignee-copy{display:grid;gap:2px;min-width:0}
.task-assignee-copy>span{font-size:12px;font-weight:700;color:#272b30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-assignee-copy small{font-size:9px;font-weight:600;color:#9a6a00;white-space:normal}
.task-assignee-option .mini-avatar.has-image{overflow:hidden}
.task-assignee-option .mini-avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block}


/* Admin team report */
.report-intro{font-size:12px;line-height:1.55;color:#6f7a86;padding:10px 12px;border:1px solid #e2e6eb;border-radius:12px;background:#f8f9fa}
.report-result-modal{width:min(920px,calc(100vw - 28px));max-height:min(88vh,900px);overflow:hidden}
.report-result-body{padding:16px;display:grid;gap:12px}
.report-result-body>p{margin:0;font-size:12px;line-height:1.5;color:#74808c}
#team-report-output{width:100%;min-height:55vh;max-height:62vh;resize:vertical;padding:14px;border:1px solid #dce1e7;border-radius:12px;background:#f8f9fa;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;color:#20252a;white-space:pre-wrap}
@media(max-width:720px){.report-result-modal{width:100%;max-height:100vh;border-radius:0}.report-result-body{padding:12px}#team-report-output{min-height:58vh;max-height:65vh}.page-actions{gap:7px;flex-wrap:wrap}}


/* Task trash */
.task-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:12px;border-color:#ffd1d5;background:#fff8f8}
.task-danger-zone small{font-size:10px;line-height:1.4;color:#8d6b6f}
.task-trash-modal{width:min(760px,calc(100vw - 28px));max-height:min(84vh,820px);overflow:hidden}
.task-trash-body{padding:16px;display:grid;gap:12px}
.task-trash-note{margin:0;padding:10px 12px;border:1px solid #e1e5ea;border-radius:12px;background:#f8f9fa;color:#6f7a86;font-size:12px;line-height:1.5}
.task-trash-list{display:grid;gap:8px;max-height:58vh;overflow:auto}
.task-trash-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #e1e5ea;border-radius:12px;background:#fff}
.task-trash-row>div{display:grid;gap:3px;min-width:0}
.task-trash-row b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-trash-row span,.task-trash-row small{font-size:10px;color:#7e8894}
@media(max-width:720px){.task-danger-zone{align-items:flex-start;flex-direction:column}.task-trash-modal{width:100%;max-height:100vh;border-radius:0}.task-trash-row{align-items:flex-start;flex-direction:column}.task-trash-row .btn{width:100%}}

.resource-file-main{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;min-width:0;color:inherit;text-decoration:none}
.resource-detach{white-space:nowrap}
@media(max-width:720px){
  .resource-file-row{grid-template-columns:minmax(0,1fr);align-items:stretch}
  .resource-detach{width:100%}
}

.resource-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.resource-file-actions .btn{white-space:nowrap}
@media(max-width:720px){
  .resource-file-actions{justify-content:flex-start}
  .resource-file-actions .btn{flex:1 1 auto}
}


/* Profile photos everywhere */
.activity-avatar.has-image,.change-mini-avatar.has-image,.mini-avatar.has-image,.member-stack-avatar.has-image,.participant-avatar.has-image,.comment-avatar.has-image{overflow:hidden;background:#eef1f4;color:transparent}
.activity-avatar.has-image img,.change-mini-avatar.has-image img,.mini-avatar.has-image img,.member-stack-avatar.has-image img,.participant-avatar.has-image img,.comment-avatar.has-image img{width:100%;height:100%;display:block;object-fit:cover}
.member-stack-avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;border:2px solid #fff;margin-left:-7px;background:#e7edf4;overflow:hidden}
.member-stack-avatar:first-child{margin-left:0}
.participant-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e2ebf7;font-size:10px;font-weight:800;flex:0 0 28px;overflow:hidden}
.comment-with-avatar{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start}
.comment-copy{min-width:0}
.comment-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e2ebf7;font-size:10px;font-weight:800;overflow:hidden}
.review-assignee-avatars{display:flex;align-items:center}
.review-assignee-avatars .mini-avatar{margin-left:-6px;border:2px solid #fff}
.review-assignee-avatars .mini-avatar:first-child{margin-left:0}

.mobile-greeting .greeting-prefix{color:#8a94a0}

/* FigCraft project catalogue, 2026-10-17 */
.design-heading{gap:16px;align-items:flex-start;flex-wrap:wrap}
.design-heading h2{font-size:20px;margin:0}
.design-subtitle{font-size:13px;color:#737d88;margin:6px 0 0}
.design-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.design-actions a.btn{display:inline-flex;align-items:center;text-decoration:none;min-height:34px}
.design-list{margin-top:20px}
.design-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-top:1px solid #eceef1}
.design-copy{flex:1;min-width:150px}
.design-copy h3{margin:0 0 5px;font-size:15px;overflow-wrap:anywhere}
.design-copy small{font-size:12px;color:#75818d}
.design-form .design-checkbox{display:flex;align-items:center;gap:10px}
.design-form .design-checkbox input{width:auto}
.design-form-error{color:#a82929;font-size:13px;margin:0;min-height:20px}
@media(max-width:760px){.design-row{flex-wrap:wrap}.design-row>.design-actions{width:100%;padding-left:0}.design-heading>.design-actions{width:100%}.design-actions .btn{white-space:normal}.design-row>.resource-icon{display:none}}
