/* R68 · Apple/Google-inspired project workspace and responsive analytics sidebar.
 * Scoped to data/project/scope panes; avoids touching R63 personal timeline. */
.layout.workspace-mode-data>.workspace{padding:18px clamp(18px,2.1vw,38px) 24px!important;min-width:0}
.layout.workspace-mode-data .workspace-toolbar{margin:0 auto 9px;max-width:1740px}
.layout.workspace-mode-data .workbench{display:block!important;height:auto!important;min-height:calc(100vh - var(--topbar) - 110px)!important;overflow:visible}
.layout.workspace-mode-data .analysis-panel{width:100%;height:auto!important;min-width:0;max-width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important}
.layout.workspace-mode-data .analysis-head{display:none!important}
.layout.workspace-mode-data .analysis-body{padding:0!important;overflow:visible!important;height:auto!important}
.r68-data-studio{display:grid;grid-template-columns:minmax(0,1fr) clamp(230px,21vw,305px);gap:20px;
 align-items:start;width:100%;max-width:1740px;margin:0 auto;min-width:0}
.r68-data-main{min-width:0;display:flex;flex-direction:column;gap:14px}
.r68-studio-summary,.r68-overview-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.r68-studio-summary>div,.r68-overview-cards>div{min-width:0;background:#fff;border:1px solid #e8edf2;
 border-radius:13px;padding:13px 15px;box-shadow:0 2px 12px rgba(33,65,97,.025);
 display:flex;flex-direction:column;gap:4px;align-items:flex-start;justify-content:center}
.r68-studio-summary span,.r68-overview-cards span{color:#8897a7;font-size:11px}
.r68-studio-summary strong,.r68-overview-cards strong{color:#284863;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.r68-studio-card,.r68-rail-card{background:#fff;border:1px solid #e7edf3;border-radius:14px;
 box-shadow:0 3px 22px rgba(33,63,93,.027);min-width:0;overflow:hidden}
.r68-studio-card{padding:20px 22px 24px}
.r68-cardhead{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:19px}
.r68-cardhead h3{margin:0;font-size:15px;font-weight:720;color:#314d64}
.r68-cardhead p{margin:6px 0 0;font-size:11.5px;color:#889aac;line-height:1.65}
.r68-btn{font:inherit;font-size:11.5px;font-weight:600;border:1px solid #dce7f0;border-radius:9px;
 background:white;color:#4e759b;padding:8px 12px;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
.r68-btn:hover:not(:disabled){background:#f2f7fc;border-color:#b9d3ed}
.r68-btn.primary{background:#498bd7;color:white;border-color:#498bd7}
.r68-btn:disabled{opacity:.42;cursor:not-allowed}
.r68-inline{font:inherit;font-size:11px;color:#4a88c3;background:none;border:0;padding:5px;cursor:pointer}
.r68-inline:hover{text-decoration:underline}
.r68-pill{display:inline-block;padding:4px 8px;border-radius:6px;font-size:10px!important;font-weight:650;
 background:#f0f3f8;color:#71849a;white-space:nowrap}
.r68-pill.healthy{background:#edf7f1;color:#368267}.r68-pill.warning{background:#fdf6e8;color:#a78039}
.r68-pill.critical{background:#fbeef0;color:#b85e67}
.r68-empty{font-size:12px;color:#9aa9b7;line-height:1.8;padding:25px 16px;text-align:center}
.r68-note{border-radius:9px;background:#f5f8fc;padding:13px 16px;font-size:11px;color:#69839a;line-height:1.9;margin:12px 0}
.r68-muted{font-size:11px;color:#91a2b2;line-height:1.7}
.r68-data-content{min-height:min(530px,65vh)}
.r68-roster-tools{display:flex;gap:9px;align-items:center;margin-bottom:12px}
.r68-roster-tools input,.r68-roster-tools select,.r68-roster-bulk select{font:inherit;font-size:12px;
 border:1px solid #dfe8f1;border-radius:8px;color:#547089;background:#fff;padding:9px 11px;min-width:0}
.r68-roster-tools input{flex:1 1 230px}
.r68-roster-tools select{max-width:150px;flex:0 1 150px}
.r68-roster-tools>span{color:#95a5b5;font-size:11px}
.r68-roster-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:10px;
 border-radius:9px;background:#f6f9fc;padding:10px 12px;margin-bottom:12px;color:#647d94;font-size:11px}
.r68-roster-bulk label{display:flex;gap:7px;align-items:center}
.r68-roster-bulk>span{margin-right:auto;color:#91a0ae}
.r68-roster-bulk select{padding:6px 9px;min-width:135px}
.r68-roster-list{border:1px solid #edf1f5;border-radius:10px;max-height:min(570px,63vh);overflow:auto}
.r68-roster-entry{display:grid;grid-template-columns:24px minmax(105px,1.35fr) minmax(110px,1fr) minmax(95px,.7fr) 55px;
 align-items:center;gap:10px;min-height:43px;padding:7px 15px;border-bottom:1px solid #eef2f6;color:#6b849a;font-size:12px}
.r68-roster-entry:last-child{border-bottom:0}
.r68-roster-entry:hover:not(.r68-roster-columns){background:#f8fbfe}
.r68-roster-entry input{accent-color:#478bd0;cursor:pointer}
.r68-roster-entry strong{color:#34546d;font-weight:630}
.r68-roster-entry small{font-size:10px;color:#9baabb}
.r68-roster-columns{position:sticky;top:0;z-index:2;background:#f6f9fc;color:#8da1b2;font-size:11px;min-height:35px}
.r68-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.r68-rule-grid>div{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #edf2f7;border-radius:11px}
.r68-rule-grid span{color:#8ca0af;font-size:11px}.r68-rule-grid strong{color:#365a79;font-size:13px}
.r68-template-grid,.r68-history{display:flex;flex-direction:column;gap:6px}
.r68-template-row,.r68-history-row,.r68-snapshot-row{display:flex;justify-content:space-between;align-items:center;gap:12px;
 border:1px solid #edf2f7;border-radius:10px;padding:12px 15px;min-width:0}
.r68-template-row>div,.r68-history-row>div,.r68-snapshot-row>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.r68-template-row strong,.r68-history-row strong,.r68-snapshot-row strong{color:#3c617c;font-size:12px}
.r68-template-row small,.r68-history-row small,.r68-snapshot-row small{color:#9daab9;font-size:11px}
.r68-history-row>span{font-size:11px;color:#66849b}
.r68-history-icon{font-size:18px!important;color:#86b6dc!important}
.r68-subtitle{font-size:12px;font-weight:700;color:#54708b;margin:21px 0 10px}
.r68-records-frame .inspector-bottom{border:1px solid #edf2f7!important;border-radius:10px;min-height:510px!important;
 height:min(620px,65vh)!important}
.r68-records-frame .raw-table{height:calc(100% - 45px)!important}
.r68-records-frame .raw-toolbar{padding:10px 12px!important}
.r68-data-rail{display:flex;flex-direction:column;gap:12px;min-width:0;position:sticky;top:calc(var(--topbar) + 12px);
 max-height:calc(100vh - var(--topbar) - 18px);overflow:auto;scrollbar-width:thin}
.r68-rail-card{padding:15px 16px}
.r68-rail-card h3{font-size:12px;margin:0 0 13px;color:#45647e}
.r68-rail-card>p{font-size:11px;color:#8ca0ae}
.r68-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px}
.r68-rail-heading h3{margin:0}.r68-rail-heading>span:not(.r68-pill){font-size:10px;color:#98a9b7}
.r68-rail-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.r68-rail-metrics>div{padding:10px;border-radius:9px;background:#f7fafc;color:#8b9dab;font-size:11px}
.r68-rail-metrics strong{display:block;color:#365c7c;font-size:17px;margin-top:3px}
.r68-filetree{font-size:11px;color:#748da1;line-height:1.5;overflow:auto;
 max-height:48vh;padding:7px 0 5px;scrollbar-width:thin}
.r68-tree-children{border-left:1px solid #e8eef5;margin-left:8px;padding-left:11px}
.r68-tree-dir summary,.r68-tree-file{display:flex;gap:7px;align-items:center;
 min-height:25px;white-space:nowrap;cursor:pointer;max-width:100%}
.r68-tree-dir summary{list-style:none}.r68-tree-dir summary::-webkit-details-marker{display:none}
.r68-tree-dir summary:hover,.r68-tree-file:hover{background:#f4f8fc;border-radius:5px}
.r68-tree-icon{font-size:13px;color:#7bb0db;flex:none}.r68-tree-icon.file{color:#b5c5d4}
.r68-tree-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.r68-tree-detail{margin-left:auto;color:#a7b6c2;font-size:9px;flex:none}
.r68-tree-truncated{font-size:10px;color:#ad8e65;padding:8px}
.layout.workspace-mode-project{display:grid;grid-template-columns:var(--p109-side) minmax(0,1fr);
 min-height:calc(100vh - var(--topbar))}
.layout.workspace-mode-project>.sidebar{display:flex;flex-direction:column;position:sticky;top:var(--topbar);
 height:calc(100vh - var(--topbar));padding:0 12px 12px;overflow:hidden}
.layout.workspace-mode-project>.workspace{padding:18px clamp(20px,2.25vw,40px) 30px;min-width:0}
.layout.workspace-mode-project .workbench{display:none!important}
.r68-project-workspace{width:100%;max-width:1740px;margin:0 auto;min-width:0}
.r68-project-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(235px,23vw,330px);gap:18px;align-items:start}
.r68-project-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.r68-overview-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.r68-project-rail{display:flex;flex-direction:column;gap:14px;position:sticky;top:calc(var(--topbar) + 12px)}
.r68-project-rail .r68-studio-card{padding:17px}
.r68-overview-tree{max-height:calc(100vh - var(--topbar) - 280px);min-height:210px}
.r68-month-table{overflow-x:auto;border:1px solid #edf2f7;border-radius:10px}
.r68-month-row{display:grid;grid-template-columns:minmax(76px,1.1fr) 48px 48px 86px 80px 48px 62px 79px;
 gap:9px;align-items:center;min-width:600px;padding:11px 12px;border-bottom:1px solid #edf2f7;font-size:11px;color:#638097}
.r68-month-row:last-child{border-bottom:0}.r68-month-row.heading{background:#f7fafc;color:#93a4b2;font-size:10px}
.r68-month-row strong{color:#35566e}
.r68-health-list{display:flex;flex-direction:column;gap:7px;max-height:300px;overflow:auto;margin-bottom:13px}
.r68-health-item{display:flex;gap:9px;align-items:flex-start;border:1px solid #edf2f7;border-radius:9px;padding:10px}
.r68-health-item>div{display:flex;flex-direction:column;gap:5px}
.r68-health-item strong{font-size:11px;color:#516f84;font-weight:620}
.r68-health-item small{font-size:10px;color:#92a4b4}
.r68-storage-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
.r68-storage-row>div:first-child{display:flex;justify-content:space-between;font-size:11px;color:#8298aa;margin-bottom:6px}
.r68-storage-row strong{color:#456984;font-weight:650}
.r68-storage-track{height:7px;background:#f0f4f7;border-radius:6px;overflow:hidden}
.r68-storage-track>i{display:block;height:100%;border-radius:6px}
.r68-project-actions{display:flex;flex-wrap:wrap;gap:8px}
.r68-loading{padding:90px 20px;text-align:center;color:#889dae;font-size:13px}
.r68-quiet{border:1px solid #e0e8f1;color:#6287a6;background:white;border-radius:8px;padding:8px 11px;cursor:pointer}
.workspace-mode-all .scope-insights,.workspace-mode-group .scope-insights{padding:13px 12px 15px 17px!important;
 border-left:1px solid #e8eef4;overflow-y:auto!important;scrollbar-width:thin}
.r68-scope-topline,.r68-scope-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.r68-scope-topline h3{font-size:14px;color:#344f64;margin:0;font-weight:750}
.r68-scope-topline>span,.r68-scope-section-title>span{font-size:10px;color:#9caebc}
.r68-scope-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.r68-kpi{background:#f8fafc;border:1px solid #eef2f6;padding:10px 12px;border-radius:10px;min-width:0}
.r68-kpi small{display:block;color:#8095a6;font-size:10px}
.r68-kpi strong{display:block;font-size:19px;font-variant-numeric:tabular-nums;margin-top:4px;color:#385f7e}
.r68-kpi.good strong{color:#4b9775}.r68-kpi.warn strong{color:#bd913e}.r68-kpi.bad strong{color:#c17579}
.r68-scope-section-title{font-size:11.5px;font-weight:730;color:#426079;margin:0 0 10px}
.r68-scope-composition{margin:15px 0 0}
.r68-stacked-track{width:100%;height:11px;border-radius:9px;overflow:hidden;background:#eef3f7;display:flex}
.r68-stacked-track>span{height:100%;display:block}
.r68-stacked-track .good,.r68-stacked-legend .good{background:#78c7a1}
.r68-stacked-track .warn,.r68-stacked-legend .warn{background:#e2c176}
.r68-stacked-track .bad,.r68-stacked-legend .bad{background:#da9195}
.r68-stacked-legend{display:flex;justify-content:space-between;gap:6px;margin:8px 0 0;font-size:10px;color:#8095a5}
.r68-stacked-legend>span{display:flex;align-items:center;gap:5px}
.r68-stacked-legend i{display:inline-block;width:7px;height:7px;border-radius:2px}
.r68-scope-block{margin-top:15px;padding-top:14px;border-top:1px solid #e9eff4}
.r68-scope-daily{width:100%;height:134px;min-width:0}
.r68-rank-switch{display:flex;gap:4px;margin:3px 0 10px;padding:3px;background:#f4f7fa;border-radius:8px}
.r68-rank-switch button{flex:1;font-size:10px;border:0;background:transparent;color:#7e95a7;
 border-radius:6px;padding:6px 3px;cursor:pointer;white-space:nowrap}
.r68-rank-switch button.active{background:white;box-shadow:0 1px 5px #263f5114;color:#406c98;font-weight:700}
.r68-scope-rank{display:flex;flex-direction:column;gap:2px}
.r68-rank-row{width:100%;display:grid;grid-template-columns:19px minmax(44px,78px) minmax(0,1fr) 44px;
 gap:6px;align-items:center;padding:7px 3px;font:inherit;border:0;background:transparent;text-align:left;cursor:pointer}
.r68-rank-row:hover{background:#f6f9fc;border-radius:7px}
.r68-rank-num{color:#a0afbf;font-size:10px}
.r68-rank-name{font-size:11px;color:#54738b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r68-rank-track{height:6px;border-radius:5px;background:#eff3f7;overflow:hidden}
.r68-rank-track>i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#c6d9f0,#8cb5e4)}
.r68-rank-row>strong{color:#4b6981;font-size:11px;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.r68-scope-note{margin:16px 0 0;padding:13px 14px;border-radius:10px;background:#f6f9fc}
.r68-scope-note p{font-size:11px;color:#8296a5;margin:7px 0;line-height:1.6}
.r68-scope-note p strong{color:#52728e}
.r68-scope-note>small{color:#9aabb9;font-size:10px;line-height:1.6;display:block;margin-top:9px}
@media(max-width:1450px){
 .r68-data-studio{grid-template-columns:minmax(0,1fr) 238px;gap:14px}
 .r68-project-layout{grid-template-columns:minmax(0,1fr) 248px;gap:12px}
 .r68-roster-entry{grid-template-columns:22px minmax(90px,1.1fr) minmax(78px,1fr) 85px 43px;padding:7px 9px}
 .r68-studio-card{padding:17px 16px}
}
@media(max-width:1120px){
 .r68-data-studio,.r68-project-layout{grid-template-columns:minmax(0,1fr)}
 .r68-data-rail,.r68-project-rail{position:static;max-height:none}
 .r68-data-rail{display:grid;grid-template-columns:1fr 1fr}
 .r68-storage-bars{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .layout.workspace-mode-project{grid-template-columns:1fr}
 .layout.workspace-mode-project>.sidebar{height:auto;position:relative;top:0}
 .r68-data-rail{grid-template-columns:1fr}
 .r68-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .r68-studio-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
 .r68-roster-tools{flex-wrap:wrap}
 .r68-roster-entry{grid-template-columns:21px minmax(80px,1fr) minmax(70px,1fr) 46px}
 .r68-roster-entry>*:nth-child(4){display:none}
 .r68-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
