.rl-panel{max-width:1450px}.rl-tabs{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap}.rl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.rl-grid label{display:flex;flex-direction:column;gap:6px}.rl-grid input,.rl-grid textarea,.rl-grid select{width:100%;box-sizing:border-box}.rl-wide{grid-column:1/-1}.rl-details{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:8px 20px}.rl-details dt{font-weight:600}.rl-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.rl-table{overflow:auto}.rl-table table{width:100%;min-width:800px}.rl-allocation{display:grid;grid-template-columns:1fr 130px;gap:16px;margin:10px 0}.rl-grid .rl-check,.rl-allocation label:first-child{display:flex;flex-direction:row;align-items:center;gap:8px}.rl-check input,.rl-allocation input[type=checkbox]{width:auto}.rl-warning{background:#fff4d6;border-left:4px solid #a87900;padding:12px}[data-rl-message]:not(:empty){padding:12px;margin-bottom:14px;background:#fff0ec;border-left:4px solid #b23b20}.rl-panel details{margin:12px 0}.rl-panel summary{cursor:pointer;font-weight:600}.rl-panel fieldset{border:1px solid #c8d6d1;border-radius:8px;padding:16px}.rl-panel .toolbar{align-items:end}.rl-panel .toolbar label{min-width:160px}.rl-panel .actions{flex-wrap:wrap}@media(max-width:700px){.rl-grid{grid-template-columns:1fr}.rl-details{grid-template-columns:1fr}.rl-details dt{margin-top:10px}.rl-allocation{grid-template-columns:1fr}}

.resources-views{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.resources-views button{min-height:44px}.resources-view-heading{align-items:center;margin-bottom:16px}.resources-record-context{display:flex;flex-direction:column;gap:6px;border-left:4px solid #167969;background:#edf6f2;padding:14px 18px;margin:14px 0;overflow-wrap:anywhere}.resources-save-impact{border:1px solid #aac2b7;border-radius:8px;padding:12px}.rl-panel{max-width:none;min-width:0}.rl-panel .toolbar{display:flex;flex-wrap:wrap;gap:12px}.rl-panel .uw-summary{margin-bottom:18px}.rl-panel form{min-width:0}.rl-panel .resources-views{margin-top:0}.resources-views{order:-1}#content>.resources-views{position:relative} .resources-record-context span{font-size:.95em}@media(max-width:700px){.resources-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.resources-views button{white-space:normal;padding:10px}.rl-panel .toolbar label{min-width:0;flex:1 1 150px}.resources-view-heading{flex-wrap:wrap}.resources-record-context{padding:12px}}

/* Internal navigation/context must not inherit the legacy sidebar element rules. */
#content .resources-views{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px;padding:0;background:transparent;border:0;position:static;height:auto;overflow:visible}
#content .resources-views>button{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;width:auto;min-height:44px;margin:0;padding:10px 14px;border:1px solid #c8d6d1;border-radius:7px;background:#fff;color:#15333c;white-space:normal;text-align:center;font-weight:600}
#content .resources-views>button:is([aria-current="page"],[role="tab"][aria-selected="true"]){background:#147466;border-color:#147466;color:#fff}
#content .resources-views>button:hover{background:#eef5f2;color:#15333c}
#content .resources-views>button:is([aria-current="page"],[role="tab"][aria-selected="true"]):hover{background:#0e5c50;color:#fff}
#content .resources-views>button:focus-visible{outline:2px solid #147466;outline-offset:3px}
#content .resources-record-context{position:static;top:auto;height:auto;min-height:0;overflow:visible;color:#15333c}
@media(max-width:700px){#content .resources-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}#content .resources-views>button{width:100%;min-width:0}}

/* Separate list guidance from the table controls. */
#content .rl-panel .rl-table{margin-top:24px}
/* The no-overflow label needs text height, not a forced native scrollbar. */
#content .rl-panel .rl-resource-top-scroll[aria-label$="all columns visible"]{height:auto!important;min-height:32px;overflow-x:auto!important;box-sizing:border-box;padding:4px 8px}
#content .rl-panel .rl-resource-top-scroll[aria-label$="all columns visible"]>div{height:auto!important;min-height:22px;line-height:1.5}

/* Spreadsheet-style editing stays inside Resources and uses its own selection. */
#content .rl-bulk-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:18px 0}
#content .rl-bulk-controls label{display:flex;flex-direction:column;gap:6px;min-width:180px;max-width:100%}
#content .rl-bulk-scroll{max-width:100%;overflow:auto;max-height:65vh;border:1px solid #c8d6d1;margin:18px 0}
#content .rl-bulk-grid{width:max-content;min-width:100%}
#content .rl-bulk-grid>[role=row]{display:grid;grid-template-columns:240px repeat(var(--bulk-columns),210px)}
#content .rl-bulk-picker>[role=row]{display:grid;grid-template-columns:220px minmax(240px,1fr) 260px 180px;min-width:900px}
#content .rl-bulk [role=cell],#content .rl-bulk [role=columnheader]{padding:10px;border-right:1px solid #dce5e1;border-bottom:1px solid #dce5e1;background:#fff}
#content .rl-bulk [role=columnheader]{background:#edf6f2;position:sticky;top:0;z-index:2}
#content .rl-bulk-unit{position:sticky;left:0;z-index:1;display:flex;align-items:start;flex-wrap:wrap;gap:6px;overflow-wrap:anywhere}
#content .rl-bulk-unit span{flex-basis:100%;font-size:.9em}
#content .rl-bulk [role=cell] input:not([type=checkbox]),#content .rl-bulk [role=cell] select,#content .rl-bulk [role=cell] textarea{width:100%;min-height:40px;box-sizing:border-box}
#content .rl-bulk [type=checkbox]{width:18px;min-width:18px;height:18px}
#content .rl-bulk-review{border:1px solid #c8d6d1;padding:12px;margin:12px 0;border-radius:6px}
#content .rl-bulk [data-bulk-message]:not(:empty){padding:12px;background:#fff4d6;margin:12px 0}
@media(max-width:700px){#content .rl-bulk-controls label{width:100%;min-width:0}#content .rl-bulk-grid>[role=row]{grid-template-columns:180px repeat(var(--bulk-columns),190px)}}

/* Visible controls work even when macOS hides native scrollbars. */
#content .rl-bulk-scroll-controls{display:grid;grid-template-columns:minmax(100px,180px) 44px minmax(70px,1fr) 44px;align-items:center;gap:8px;min-height:48px;padding:6px 8px;border:1px solid #c8d6d1;background:#edf6f2;box-sizing:border-box;max-width:100%}
#content .rl-bulk-scroll-controls input[type=range]{width:100%;min-width:0;height:28px;accent-color:#147466;padding:0}
#content .rl-bulk-scroll-controls button{min-height:36px;padding:4px}
#content .rl-bulk-scroll{margin:0;scrollbar-gutter:stable}
#content .rl-bulk-grid>[role=row],#content .rl-bulk-picker>[role=row]{grid-template-columns:var(--rl-bulk-template)}
#content .rl-bulk [role=columnheader]{position:sticky;min-width:0;padding-right:18px;overflow-wrap:anywhere}
#content .rl-bulk [role=columnheader] label{display:flex;align-items:center;gap:6px}
#content .rl-bulk [role=columnheader]:first-child{left:0;z-index:3}
#content .rl-bulk [role=cell]{min-width:0}
#content .rl-bulk [role=cell] input:not([type=checkbox]),#content .rl-bulk [role=cell] select,#content .rl-bulk [role=cell] textarea{min-width:0}
#content .rl-bulk-column-resize{position:absolute;right:0;top:0;bottom:0;width:12px;cursor:col-resize;touch-action:none;border-right:2px solid #8caaa0}
#content .rl-bulk-column-resize:hover,#content .rl-bulk-column-resize:focus-visible{background:#b5d6c7;outline:2px solid #147466;outline-offset:-2px}
@media(max-width:700px){#content .rl-bulk-scroll-controls{grid-template-columns:36px minmax(60px,1fr) 36px}#content .rl-bulk-scroll-controls>span{grid-column:1/-1;font-size:.9em}}

#content .rl-bulk-shared{margin:18px 0;padding:16px;border:1px solid #aac2b7;border-radius:8px;background:#f7fbf9;min-width:0}
#content .rl-bulk-shared-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0}
#content .rl-bulk-shared-field{display:flex;flex-direction:column;gap:6px;min-width:0}
#content .rl-bulk-shared-field label{display:flex;align-items:center;gap:6px;font-weight:600}
#content .rl-bulk-shared-field input:not([type=checkbox]),#content .rl-bulk-shared-field select,#content .rl-bulk-shared-field textarea{width:100%;box-sizing:border-box;min-width:0;min-height:42px}
#content .rl-bulk-shared details{margin:14px 0;border-top:1px solid #d5e4dc;padding-top:12px}
#content .rl-bulk-shared .actions{margin-top:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:1000px){#content .rl-bulk-shared-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#content .rl-bulk-shared-fields{grid-template-columns:minmax(0,1fr)}}

[data-editor-feedback]{color:var(--ui-danger,currentColor)}
[data-editor-invalid]{outline:2px solid var(--ui-danger,#d64a51);outline-offset:-2px}
small[data-editor-feedback],[data-default-note]{display:block}
[data-editor-feedback="sticky"]{position:sticky;top:0;z-index:5}
[data-editor-feedback="sticky"],[data-editor-feedback="summary"]{background:var(--white,Canvas);border:1px solid currentColor;padding:.5rem}

.rl-action-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.65rem;margin:1rem 0}
.rl-action-cards button{width:100%;text-align:start}
.rl-action-cards small{display:block;overflow-wrap:anywhere;padding:.25rem}
