.resources-view .topbar { padding: 18px 26px; }
.resources-view .topbar h1 { font-size: 21px; letter-spacing: -.35px; }
.resources-view #top-actions button { font-size: 12px; padding: 8px 12px; }
.resources-view #content { padding: 0; background: #fafbfc; }
.resources-workspace { padding: 26px; color: #303744; }
.resources-workspace [hidden], .runner-detail [hidden] { display: none !important; }
.resource-icon { width: 18px; height: 18px; flex: none; }
.resources-workspace button:focus-visible, .runner-detail button:focus-visible { outline: 2px solid #76558a; outline-offset: 3px; }
.resources-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.resources-intro h2 { margin: 0; font-size: 21px; font-weight: 650; color: #29313d; letter-spacing: -.35px; }
.resources-intro p { margin: 8px 0 0; color: #707987; font-size: 12px; line-height: 1.6; max-width: 560px; }
.resources-capacity { flex: none; color: #697486; font-size: 11px; text-align: right; }
.resources-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 27px; }
.resources-summary .resource-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 17px 19px; border: 1px solid #e1e5ec; border-radius: 8px; color: #6b7583; background: #fff; text-align: left; }
.resources-summary .resource-stat:hover { border-color: #c5c1d1; box-shadow: 0 2px 8px #25233a06; }
.resource-stat-label { font-size: 11px; font-weight: 550; }
.resource-stat strong { margin: 4px 0 2px; color: #2b3542; font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.resource-stat > span:last-child { color: #788291; font-size: 10px; }
.resource-stat.online .resource-stat-label:before, .resource-stat.available .resource-stat-label:before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #439375; margin-right: 6px; }
.resources-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid #e4e7ed; }
.resources-tabs { display: flex; gap: 18px; min-width: 0; overflow: auto; scrollbar-width: none; }
.resources-tabs .resources-tab { display: inline-flex; align-items: center; flex: none; gap: 6px; padding: 13px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #738090; background: none; font-size: 12px; white-space: nowrap; }
.resources-tab > span:last-child { padding: 2px 5px; border-radius: 4px; background: #eaeef3; font-size: 10px; }
.resources-tabs .resources-tab[aria-pressed=true] { border-bottom-color: #765387; color: #654877; font-weight: 600; }
.resources-tab[aria-pressed=true] > span:last-child { background: #eee6f4; color: #745588; }
.resources-search { position: relative; width: 245px; flex: 0 1 245px; }
.resources-search > svg { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: #8c97a6; pointer-events: none; }
.resources-search input { height: 34px; width: 100%; padding: 7px 9px 7px 32px; border: 1px solid #dce2eb; border-radius: 6px; background: white; font-size: 11px; color: #394554; }
.resources-search input:focus { border-color: #897199; box-shadow: 0 0 0 2px #eee7f3; }
.resources-results-heading { display: flex; gap: 12px; align-items: center; min-height: 49px; font-size: 11px; color: #737e8e; }
.resources-clear { padding: 3px 0; color: #72517f; border: 0; background: none; font-size: 11px; }
.resources-clear:hover { background: none; text-decoration: underline; }
.runner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 18px; }
.runner-card { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 0; border: 1px solid #dfe5ed; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px #16213c04; }
.runner-card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.runner-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.runner-picture { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; flex: none; border: 1px solid #e2e6f0; border-radius: 8px; background: #f3f5fa; color: #717e98; }
.runner-picture > svg { width: 21px; height: 21px; }
.runner-name-wrap { display: grid; gap: 5px; min-width: 0; }
.runner-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; border-radius: 2px; background: none; color: #313d4c; font-size: 14px; font-weight: 650; text-align: left; }
.runner-name:hover { text-decoration: underline; background: none; color: #684779; }
.runner-platform { color: #7d8898; font-size: 10px; }
.runner-status { display: inline-flex; align-items: center; gap: 5px; flex: none; border-radius: 5px; padding: 4px 7px; background: #f0f2f6; color: #6f7b8c; font-size: 10px; font-weight: 550; white-space: nowrap; }
.runner-status:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.runner-status.available { color: #39806a; background: #eaf5ef; }
.runner-status.assigned { color: #587dac; background: #edf3fb; }
.runner-status.paused { color: #826935; background: #f7f0db; }
.runner-status.attention { color: #ac7137; background: #fff3e4; }
.runner-capacity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 21px; }
.runner-capacity > div { padding: 0 12px; border-left: 1px solid #ecf0f4; min-width: 0; }
.runner-capacity > div:first-child { padding-left: 0; border: 0; }
.runner-capacity > div:last-child { padding-right: 0; }
.runner-capacity dt { display: flex; align-items: center; gap: 6px; color: #7b8797; font-size: 10px; }
.runner-capacity dt > svg { width: 14px; height: 14px; }
.runner-capacity dd { margin: 9px 0 0; color: #3c495a; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.runner-allocation { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; min-width: 0; }
.runner-agent-avatar { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex: none; border-radius: 50%; background: #eee7f4; color: #7a5b8d; font-size: 9px; font-weight: 650; }
.runner-agent-avatar.unassigned { color: #98a4b2; background: #f0f3f6; }
.runner-allocation > div { display: grid; gap: 4px; min-width: 0; }
.runner-owner { padding: 0; border: 0; border-radius: 2px; background: none; color: #5c6577; font-size: 11px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-owner:hover:not(:disabled) { text-decoration: underline; background: none; }
.runner-owner:disabled { opacity: 1; cursor: default; color: #7d8998; }
.runner-owner-hint { color: #8793a1; font-size: 10px; }
.runner-labels { display: flex; gap: 5px; margin-bottom: 17px; min-width: 0; }
.runner-label { padding: 3px 6px; border: 1px solid #e8ecf1; border-radius: 4px; color: #7b8798; background: #fafbfd; font-size: 9px; max-width: 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-error { padding: 9px 11px; margin: 0 0 14px; border-radius: 5px; color: #a3583d; background: #fff4eb; line-height: 1.6; font-size: 11px; overflow-wrap: anywhere; }
.runner-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto -18px 0; padding: 11px 14px 11px 18px; border-top: 1px solid #edf0f5; }
.runner-seen { display: flex; align-items: center; gap: 5px; color: #8994a4; font-size: 10px; }
.runner-seen > svg { width: 12px; height: 12px; }
.runner-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.runner-card-actions button { padding: 6px 9px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; color: #7b8797; background: none; }
.runner-card-actions .runner-terminal-button { display: inline-flex; align-items: center; gap: 5px; color: #645070; border-color: #dfd7e6; background: #fbf9fd; }
.runner-terminal-button > svg { width: 13px; height: 13px; }
.runner-card-actions button:hover:not(:disabled) { background: #f0ebf5; }
.runner-card-actions button:disabled { opacity: .48; cursor: not-allowed; }
.resources-footnote { margin: 24px 0 0; color: #8c97a5; font-size: 10px; line-height: 1.7; }
.resources-empty { display: flex; flex-direction: column; align-items: center; padding: 50px 20px; border: 1px dashed #d9dfeb; border-radius: 9px; background: white; text-align: center; }
.resources-empty > svg { width: 40px; height: 40px; color: #adb5c6; }
.resources-empty h3 { margin: 19px 0 9px; font-size: 18px; color: #4d596b; }
.resources-empty p { color: #7d8899; font-size: 12px; line-height: 1.7; max-width: 350px; margin: 0 0 21px; }
.resources-empty button { font-size: 12px; }
.runner-detail-hero { display: flex; align-items: center; gap: 12px; padding: 19px 0 23px; }
.runner-detail-hero > div { display: grid; gap: 7px; justify-items: start; }
.runner-detail-facts { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 15px; margin: 0; padding: 19px 0; border-top: 1px solid #e7eaf1; font-size: 12px; line-height: 1.6; }
.runner-detail-facts dt { color: #7e899b; }
.runner-detail-facts dd { margin: 0; color: #475569; overflow-wrap: anywhere; white-space: pre-wrap; }
.runner-technical { padding: 10px 0 18px; color: #8490a2; font-size: 11px; }
.runner-technical summary { cursor: pointer; }
.runner-technical .runner-detail-facts { margin-top: 15px; font-size: 11px; }
.runner-detail-actions { display: flex; gap: 8px; margin-top: 15px; }
.runner-detail-actions button { font-size: 12px; }
.runner-terminal-dialog { width: min(1200px, calc(100vw - 36px)); height: min(790px, calc(100dvh - 40px)); max-height: none; padding: 0; border: 1px solid #3a3748; border-radius: 11px; background: #161823; overflow: hidden; }
.runner-terminal-dialog::backdrop { background: #18202d99; }
.runner-terminal-dialog > header { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 15px 0 20px; border-bottom: 1px solid #313240; color: #d1d5e3; background: #202230; }
.runner-terminal-dialog > header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.runner-terminal-dialog h2 { margin: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-terminal-close { display: grid; place-items: center; padding: 6px; color: #b7bbcc; border: 0; background: none; }
.runner-terminal-close:hover { background: #36384a; }
.runner-terminal-dialog iframe { display: block; width: 100%; height: calc(100% - 50px); border: 0; }
@media (max-width: 1100px) {
  .resources-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .resources-toolbar { flex-wrap: wrap; gap: 12px; padding-bottom: 12px; }
  .resources-tabs { flex-basis: 100%; }
  .resources-search { flex: 1; }
  .resources-summary { gap: 9px; }
  .resources-summary .resource-stat { padding: 14px; }
  .resource-stat > span:last-child { line-height: 1.5; }
}
@media (max-width: 700px) {
  .resources-view .topbar { padding: 15px; flex-wrap: wrap; gap: 13px; }
  .resources-view #top-actions { flex-wrap: wrap; }
  .resources-view #top-actions button { padding: 7px 9px; font-size: 11px; }
  .resources-workspace { padding: 20px 15px; }
  .resources-intro h2 { font-size: 19px; line-height: 1.4; }
  .resources-intro p { font-size: 11px; }
  .resources-capacity { font-size: 10px; }
  .resources-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
  .resource-stat strong { font-size: 23px; }
  .resources-tabs { gap: 15px; }
  .resources-tabs .resources-tab { font-size: 11px; }
  .runner-grid { gap: 13px; }
  .runner-card { padding: 14px 14px 0; }
  .runner-card-header { gap: 8px; }
  .runner-identity { gap: 9px; }
  .runner-picture { width: 33px; height: 33px; }
  .runner-name { font-size: 12px; }
  .runner-status { font-size: 9px; padding: 4px 5px; }
  .runner-platform { font-size: 9px; }
  .runner-capacity dd { font-size: 15px; }
  .runner-capacity dt { font-size: 9px; gap: 4px; }
  .runner-capacity > div { padding: 0 8px; }
  .runner-card-footer { margin-left: -14px; margin-right: -14px; padding: 11px 10px 11px 14px; gap: 5px; }
  .runner-card-actions { gap: 2px; }
  .runner-card-actions button { font-size: 9px; padding: 6px 7px; }
  .runner-seen { font-size: 9px; }
  .runner-detail-facts { grid-template-columns: 84px minmax(0, 1fr); font-size: 11px; }
  .runner-terminal-dialog { width: calc(100vw - 10px); height: calc(100dvh - 16px); border-radius: 8px; }
  .runner-terminal-dialog > header { padding-left: 12px; }
}
