:root{color-scheme:light}.space-page{margin:0;background:#f4f7fb;color:#172d47;font:14px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.space-main{max-width:1240px;margin:auto;padding:30px 30px 72px;box-sizing:border-box}.space-main *{box-sizing:border-box}.space-main a{color:#156ca9;text-decoration:none}.space-main button,.space-main input{font:inherit}.space-breadcrumb{display:flex;gap:10px;color:#8190a3;font-size:12px;margin:0 0 34px}.space-breadcrumb a{color:#526a83}.space-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.space-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:750;color:#147bb1;margin:0 0 10px}.space-hero h1{font-size:clamp(36px,4vw,50px);letter-spacing:-.055em;line-height:1.1;margin:0 0 14px;font-weight:680}.space-hero h1 span{color:#1485c3}.space-lead{color:#61738a;margin:0;font-size:15px}.space-actions{display:flex;flex-wrap:wrap;gap:10px}.space-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;min-height:43px;border:1px solid #cbd8e5;border-radius:7px;background:white;color:#244663!important;font-size:12px;font-weight:650;cursor:pointer}.space-button.primary{background:#147cb8;color:white!important;border-color:#147cb8;box-shadow:0 3px 8px #147cb81c}.space-main button:disabled{opacity:.6;cursor:wait}.space-main :focus-visible{outline:3px solid #489bd0;outline-offset:4px}.space-account{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #dce5ee;border-radius:10px;padding:16px 20px;margin-bottom:22px}.space-account-mark{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#e9f3fb;color:#147cb8;border-radius:10px;font-size:18px;font-weight:700}.space-account strong{font-size:13px;font-weight:650}.space-account p{font-size:12px;color:#6a7d93;margin:2px 0 0}.space-account>.space-text-link{margin-left:auto;flex:none}.space-text-link{font-size:12px;font-weight:650}.space-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:34px}.space-stats>div{display:flex;align-items:center;gap:17px;padding:18px 22px;background:white;border:1px solid #dce5ee;border-radius:10px}.space-stat-icon{display:grid;place-items:center;width:42px;height:42px;background:#eff5fb;color:#4881b1;border-radius:9px;font-size:22px}.space-stats p{margin:0;display:flex;flex-direction:column}.space-stats strong{font-size:25px;line-height:1.25;font-weight:650;letter-spacing:-.04em}.space-stats p>span{font-size:11px;color:#7b8da1;margin-top:4px}.space-content{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:30px}.space-work{min-width:0}.space-tabs{display:flex;gap:25px;border-bottom:1px solid #d8e2ed;margin-bottom:25px}.space-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:0 2px 14px;cursor:pointer;color:#73849a;font-size:13px;font-weight:600;display:flex;gap:9px;align-items:center}.space-tabs button[aria-selected=true]{color:#0e70ae;border-bottom-color:#1484c1}.space-tabs button span{font-size:10px;padding:1px 6px;border-radius:4px;background:#e7eef6;color:#68829c}.space-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 18px}.space-section-head h2{font-size:20px;font-weight:650;letter-spacing:-.03em;margin:0 0 4px}.space-section-head p{margin:0;color:#73849a;font-size:12px}.space-icon-button{border:1px solid #d3dfeb;background:#fff;border-radius:6px;color:#55738c;width:34px;height:34px;font-size:20px!important;cursor:pointer}.space-search{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #d5e0eb;border-radius:7px;padding:8px 13px;margin-bottom:18px;color:#6d88a2}.space-search input{border:0;outline:0;min-width:0;width:100%;background:transparent;color:#203a54;font-size:12px;padding:3px}.space-search:focus-within{outline:2px solid #489bd0;outline-offset:2px}.space-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.space-project-card{background:#fff;border:1px solid #d8e3ed;border-radius:10px;padding:20px;display:flex;flex-direction:column;min-width:0;transition:border-color .15s,box-shadow .15s}.space-project-card:hover{border-color:#9ebfd9;box-shadow:0 5px 18px #1a426b08}.space-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:17px}.space-card-icon{color:#5b8cb5;font-size:19px}.space-badge{padding:3px 7px;border-radius:4px;background:#edf3f8;color:#6d8299;font-size:9px;font-weight:650;letter-spacing:.025em}.space-badge.update{background:#e4f5ed;color:#278162}.space-project-card h3{font-size:14px;line-height:1.5;font-weight:650;margin:0 0 9px;overflow-wrap:anywhere}.space-project-card h3 a{color:#1d3c58}.space-project-card p{font-size:11px;color:#7d8da1;margin:0 0 18px}.space-card-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:auto;padding-top:15px;border-top:1px solid #edf2f7}.space-card-actions a,.space-card-actions button{font-size:11px;font-weight:650;color:#1676ad;border:0;background:none;cursor:pointer;padding:0;text-align:left}.space-card-meta{display:flex;gap:7px;margin:4px 0 18px;flex-wrap:wrap}.space-card-meta span{font-size:10px;color:#657d94;background:#f3f6fa;border-radius:4px;padding:2px 6px}.space-empty{grid-column:1/-1;background:white;border:1px dashed #c9d9e7;border-radius:11px;text-align:center;padding:38px 24px;color:#6e8298}.space-empty .space-empty-icon{font-size:30px;color:#7ca8ca;margin-bottom:9px;display:block}.space-empty h3{font-size:17px;color:#35536f;margin:0 0 7px;font-weight:600}.space-empty p{font-size:12px;max-width:370px;margin:0 auto 18px}.space-empty .space-button{font-size:11px}.space-aside{padding-top:0}.space-aside-card{border-radius:12px;background:#10283e;color:#fff;padding:25px;position:relative;overflow:hidden}.space-aside-card:after{content:"";position:absolute;right:-40px;top:-55px;width:150px;height:150px;border:1px solid #ffffff0e;border-radius:50%;pointer-events:none}.space-aside-card .space-eyebrow{color:#7ab9dc;font-size:9px}.space-aside-card h2{font-size:23px;line-height:1.3;letter-spacing:-.035em;font-weight:600;margin:16px 0}.space-aside-card p{color:#a9bfd0;font-size:12px;line-height:1.9;margin-bottom:23px}.space-aside-card a{font-size:11px;color:#9dd5ee;display:flex;justify-content:space-between;border-top:1px solid #ffffff20;padding-top:16px}.space-shortcuts{margin-top:23px;padding:0 5px}.space-shortcuts h3{font-size:11px;color:#8393a6;font-weight:500;margin:0 0 10px}.space-shortcuts a{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #dfe7ef;color:#49647d;font-size:12px}.space-boundary{font-size:10px;line-height:1.8;color:#95a3b3;padding:0 5px;margin-top:23px}.space-notice{padding:12px 15px;font-size:12px;border-left:3px solid #75a8cc;background:#eaf3fa;border-radius:4px;margin:0 0 18px}.space-notice.error{background:#fff0ed;border-left-color:#c66d55;color:#89523e}.space-loading{color:#7d8fa3;padding:24px;grid-column:1/-1}.space-device{margin-top:30px;padding-top:23px;border-top:1px solid #d7e2ec}.space-device h3{font-size:15px}.space-device>p{color:#7a8ea3;font-size:12px}.space-main [hidden]{display:none!important}.space-main #community-space>h3{font-size:15px;margin:24px 0 13px}.space-main #community-space>.space-project-grid{margin-bottom:12px}.space-main #community-space>.space-notice{margin-top:12px}.space-profile-details{margin:7px 0 0;font-size:11px;color:#6a7d93}.space-profile-details summary{cursor:pointer}.space-profile-details code{font-size:10px;overflow-wrap:anywhere}.space-card-actions button[disabled]{cursor:wait}
@media(max-width:980px){.space-main{padding:24px 20px 50px}.space-content{grid-template-columns:minmax(0,1fr) 230px;gap:22px}.space-hero{align-items:flex-start}.space-actions{justify-content:flex-end;max-width:195px}.space-project-grid{grid-template-columns:1fr}.space-stats>div{padding:16px}.space-account>.space-text-link{font-size:11px}}@media(max-width:720px){.space-content{grid-template-columns:1fr}.space-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.space-shortcuts{margin:0}.space-boundary{grid-column:1/-1;margin:0}.space-hero{display:block}.space-actions{max-width:none;justify-content:flex-start;margin-top:23px}.space-stats{gap:9px;margin-bottom:26px}.space-stats>div{padding:14px 12px;gap:10px}.space-stat-icon{width:30px;height:32px;font-size:18px}.space-stats strong{font-size:22px}.space-stats p>span{font-size:10px}.space-account{flex-wrap:wrap}.space-account>.space-text-link{margin-left:54px}.space-search input{font-size:16px}}@media(max-width:440px){.space-main{padding:22px 15px 44px}.space-breadcrumb{margin-bottom:25px}.space-hero h1{font-size:40px}.space-lead{font-size:13px}.space-stats>div{display:block;padding:14px 10px}.space-stat-icon{display:none}.space-stats p>span{line-height:1.5}.space-tabs{gap:22px}.space-tabs button{font-size:12px}.space-aside{grid-template-columns:1fr}.space-project-card{padding:18px}.space-account{padding:15px}.space-account p{overflow-wrap:anywhere}.space-boundary{grid-column:auto}.space-button{font-size:11px;padding:10px 13px}}

.space-account-action{margin-left:auto}.space-account>div{min-width:0}.space-team{margin-top:24px;padding:20px;background:#fff;border:1px solid #dce5ee;border-radius:10px;min-width:0}.space-team h3{margin:0 0 14px;font-size:15px}.space-team label{display:block;font-size:11px;color:#657d94;margin-bottom:6px}.space-team input{width:100%;min-width:0;font:11px ui-monospace,monospace;padding:10px 8px;border:1px solid #d5e0eb;border-radius:6px;background:#f4f7fb;color:#244663}.space-team button{margin-top:10px;min-height:36px;padding:7px 12px;font-size:11px}.space-team p{font-size:11px;line-height:1.8;color:#6a7d93;overflow-wrap:anywhere}.space-team a{font-size:12px;font-weight:650}.space-team [role=status]:empty{display:none}@media(max-width:720px){.space-team{margin-top:0}.space-team input{font-size:12px}}

/* Settings stay inside the existing workspace. */
.space-account-mark img{width:100%;height:100%;object-fit:cover;border-radius:50%}.space-account #profile-settings{margin-left:10px}.profile-dialog{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid #d5e1ed;border-radius:14px;background:#fff;color:#223d56;font:14px/1.65 system-ui;box-shadow:0 25px 90px #172d4b40}.profile-dialog::backdrop{background:#12263e88}.profile-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-dialog h2{margin:0;font-size:23px}.profile-dialog h3{margin:0 0 8px;font-size:17px}.profile-dialog form{border-top:1px solid #dde6ef;padding-top:22px;margin-top:24px}.profile-dialog p{color:#60758b;font-size:13px}.profile-dialog label{display:block;font-size:13px;font-weight:600;margin:15px 0}.profile-dialog input{display:block;box-sizing:border-box;width:100%;padding:11px;margin-top:6px;border:1px solid #bdcddd;border-radius:6px;background:#fff;color:#203c55;font:16px system-ui}.profile-dialog button{min-height:44px;cursor:pointer}.profile-dialog button:disabled{opacity:.5;cursor:not-allowed}.profile-preview{display:grid;place-items:center;background:#e9f3fb;color:#1c79ad;width:80px;height:80px;border-radius:50%;font-size:30px;overflow:hidden}.profile-preview img{width:100%;height:100%;object-fit:cover}.profile-dialog .profile-status:not(:empty){padding:12px;border-radius:7px;background:#ecf7f0;color:#20563f}.profile-dialog .profile-status.error{background:#fff0ed;color:#9b392f}.profile-dialog .profile-danger{border-color:#efc9c2}.profile-dialog .profile-danger h3,.profile-dialog .profile-delete{color:#a53528}.profile-dialog .profile-delete{border-color:#d7a297;background:#fff5f3}.profile-dialog :focus-visible{outline:3px solid #2c87c5;outline-offset:3px}@media(max-width:520px){.profile-dialog{padding:18px}.space-account #profile-settings{margin-left:0}}

/* Collaborator management stays inside the My space side panel. */
.space-team,.space-team-manager{min-width:0;max-width:100%;box-sizing:border-box}.space-team-manager{display:grid;gap:9px;margin-top:14px}.space-team-manager input:not([type=checkbox]),.space-team-manager select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172b4d}.space-team-manager label{font-size:12px;font-weight:650}.space-team-manager .team-opt-in{display:flex;gap:7px;align-items:flex-start;font-size:12px;font-weight:400}.team-members{max-height:180px;overflow-y:auto;overflow-x:hidden}.team-member{display:flex;justify-content:space-between;align-items:center;gap:6px;border-bottom:1px solid #e5e7eb;padding:8px 0;min-width:0}.team-member span{overflow-wrap:anywhere;font-size:11px;min-width:0}.team-member button{flex-shrink:0}.team-search-hit{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px;border-bottom:1px solid #e5e7eb}.team-search-hit span{overflow-wrap:anywhere;min-width:0}.space-team-manager button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#team-manager-feedback{overflow-wrap:anywhere}

/* Compact collaboration workspace; no overflowing controls */
.space-page .workspace-command,.space-page .workspace-collaboration,.space-page .collab-pane{min-width:0;box-sizing:border-box}
.workspace-command{margin:24px 0 16px;padding:22px 26px;background:linear-gradient(115deg,#12283d,#0d1929);border:1px solid #28455b;border-radius:18px;display:flex;justify-content:space-between;align-items:center;gap:18px}
.workspace-command h2{margin:5px 0;color:#eefaff;font-size:clamp(21px,2.5vw,30px)}.workspace-command p{margin:4px 0;color:#a7becd;max-width:520px}.workspace-command-actions{display:flex;flex-wrap:wrap;gap:9px}
.workspace-collaboration{display:grid;grid-template-columns:1fr 1fr 1.14fr;gap:14px;margin-bottom:24px}.collab-pane{background:#101f30;border:1px solid #2a4156;border-radius:14px;padding:17px;overflow:hidden}.collab-pane-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.collab-pane-head h2{font-size:17px;color:#f0f7fd;margin:0}.workspace-caption{font-size:11px;color:#a8c6d4}.workspace-counter{padding:3px 8px;border-radius:10px;background:#1c384d;color:#a9e2e8}.workspace-list{max-height:245px;overflow:auto;overflow-wrap:anywhere;min-width:0;display:grid;gap:8px}.workspace-list-item{padding:10px 11px;background:#142a40;border:1px solid #2a4a60;border-radius:10px;color:#dce8f4;min-width:0}.workspace-list-item small{color:#9fbbcf;display:block;margin-top:3px}.workspace-list-item button{margin:7px 5px 0 0}.workspace-search{display:flex;gap:7px;align-items:center}.workspace-search input,.workspace-inline-form input,.workspace-compose input,.workspace-compose textarea{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid #34546b;background:#081a2b;color:#e5f6ff;border-radius:9px;padding:10px;margin:5px 0 10px;font:inherit}.workspace-compose label,.workspace-inline-form label{display:block;color:#afc7d9;font-size:12px}.workspace-compose{border-top:1px solid #294459;margin-top:12px;padding-top:11px}.workspace-compose textarea{resize:vertical;min-height:75px}.workspace-mini-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.workspace-mini-tabs button{background:#1a3046;color:#c5dcea;border:1px solid #335066;border-radius:8px;padding:7px 9px;cursor:pointer}.workspace-mini-tabs button[aria-pressed=true]{background:#245870;color:white}.workspace-form-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.workspace-form-row input{flex:1 1 130px}.workspace-collab-feedback{grid-column:1/-1;margin:0;color:#addbc8}.workspace-collaboration .space-button{font-size:12px;white-space:normal}.workspace-collaboration button{cursor:pointer}@media(max-width:1050px){.workspace-collaboration{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-inbox-pane{grid-column:1/-1}}@media(max-width:670px){.workspace-command{padding:18px;display:block}.workspace-command-actions{margin-top:15px}.workspace-collaboration{grid-template-columns:minmax(0,1fr)}.workspace-inbox-pane{grid-column:auto}}

/* Unified research collaboration workspace; retains existing Firebase components. */
.space-page{background:#f4f7fa;color:#172b41}
.space-main{max-width:1440px;padding-inline:clamp(16px,3vw,50px)}
.workspace-command{background:#12243a;border:0;border-radius:16px;margin:16px 0 0;padding:24px 28px;box-shadow:0 10px 32px #0c2c4b17}
.workspace-command h2{font-size:25px;letter-spacing:-.035em}.workspace-command p{max-width:690px;font-size:13px}
.workspace-hub{background:#fff;border:1px solid #dfe7ee;box-shadow:0 8px 30px #17395d0a;border-radius:0 0 17px 17px;margin:0 0 30px;min-width:0;overflow:hidden}
.hub-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px 15px}.hub-topline h2{margin:0 0 6px;font-size:23px;letter-spacing:-.035em;color:#162d46}.hub-topline p{margin:0;color:#6d8093;font-size:12px}.hub-private{white-space:nowrap;font-size:11px;color:#387b71;background:#e9f6f1;padding:7px 12px;border-radius:18px}
.hub-tabs{display:flex;gap:5px;border-bottom:1px solid #e4ebf1;padding:0 22px;overflow-x:auto}.hub-tab{white-space:nowrap;background:none;border:0;border-bottom:3px solid transparent;padding:15px 17px;color:#637b92;font-size:13px;font-weight:680;cursor:pointer}.hub-tab[aria-pressed=true]{color:#1079b0;border-bottom-color:#1686bd}.hub-tab span{display:inline-block;background:#eef3f7;color:#54758e;border-radius:20px;min-width:19px;padding:1px 6px;font-size:10px;margin-left:5px}
.workspace-collaboration{display:block;margin:0;padding:22px 28px 10px}.workspace-collaboration .collab-pane{display:block;border:0;padding:0;background:transparent;border-radius:0;overflow:visible;color:#1c3147;max-width:100%}.workspace-collaboration .collab-pane[hidden]{display:none!important}.workspace-collaboration .collab-pane-head{margin-bottom:14px}.workspace-collaboration .collab-pane-head h2{color:#1b314a;font-size:18px}.workspace-caption{color:#74889e!important}.workspace-counter{background:#e8f2fa;color:#24719d}
.workspace-collaboration .workspace-list{max-height:410px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workspace-collaboration .workspace-list-item{color:#233d55;background:#f9fbfd;border:1px solid #e0e8f0;padding:16px;border-radius:12px;min-width:0;overflow-wrap:anywhere}.workspace-list-item small{color:#6d849b}.workspace-collaboration .space-button{border-radius:8px}.workspace-collaboration .workspace-mini-tabs button{background:#f1f5f9;border-color:#e0e8ee;color:#3d5a74}.workspace-collaboration .workspace-mini-tabs button[aria-pressed=true]{background:#176d9e;color:white}
.workspace-collaboration .workspace-search input,.workspace-collaboration .workspace-inline-form input,.workspace-collaboration .workspace-compose input,.workspace-collaboration .workspace-compose textarea{background:#fff;color:#1b3851;border-color:#cfdee9}.workspace-collaboration .workspace-compose label,.workspace-collaboration .workspace-inline-form label{color:#516a83}.workspace-collaboration .workspace-compose{margin-top:20px;border-color:#e4edf3;max-width:850px}.workspace-collaboration .workspace-compose textarea{min-height:135px}.workspace-collab-feedback{padding:0 0 12px;color:#286d74}.workspace-inbox-pane .workspace-list{max-height:350px}
.space-content{grid-template-columns:minmax(0,1fr) 232px;gap:25px}.space-aside #space-team,.space-aside #research-inbox{display:none!important}.space-aside .space-aside-card{padding:20px}.space-aside .space-shortcuts{margin-top:15px}.space-aside .space-boundary{line-height:1.6}
.workspace-command-actions{align-items:center}.workspace-command-actions .space-button{border-color:#4d6a7f;background:#203e58;color:#f3f8fc!important}.workspace-command-actions .space-button.primary{background:#1386bb;border-color:#1386bb}
@media(max-width:850px){.space-content{grid-template-columns:1fr}.space-aside{display:none}.hub-topline{padding:20px}.workspace-collaboration{padding:20px}.workspace-collaboration .workspace-list{grid-template-columns:1fr}}
@media(max-width:600px){.workspace-command{padding:19px;border-radius:14px 14px 0 0}.workspace-hub{border-radius:0 0 13px 13px}.hub-topline{display:block}.hub-private{display:inline-block;margin-top:10px}.hub-tabs{padding:0 8px}.hub-tab{padding:13px 12px}.workspace-collaboration{padding:16px}.workspace-collaboration .workspace-list{max-height:430px}}

/* Inbox polish */
.workspace-inbox-pane .workspace-list-item{border-left:3px solid #83b8d3}
.workspace-inbox-pane .workspace-list-item:has(button:first-of-type){border-left-color:#1488b5}
.hub-notification-panel .workspace-list{grid-template-columns:minmax(0,1fr)}
.workspace-collaboration :is(input,textarea,button):focus-visible{outline:2px solid #1586ba;outline-offset:2px}
.space-page .workspace-hub,.space-page .workspace-collaboration,.space-page .workspace-list{min-width:0;max-width:100%}

/* Research activity timeline */
.space-activity-list{display:grid;gap:10px;min-width:0}
.space-activity-row{display:flex;justify-content:space-between;align-items:center;gap:18px;min-width:0;padding:15px 18px;border:1px solid #dce6f0;background:#fff;border-radius:12px}
.space-activity-row>div{display:grid;gap:5px;min-width:0}
.space-activity-row strong{font-size:14px;overflow-wrap:anywhere;color:#122c47}
.space-activity-row small{font-size:12px;color:#63788d}
.space-activity-kind{font-size:11px;color:#305a83;font-weight:700}
.space-activity-row>a{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){.space-activity-row{align-items:flex-start;flex-direction:column;gap:10px}}
