.sgr-workbench { max-width: 1240px; margin-inline: auto; }
.sgr-layout { display: grid; grid-template-columns: 156px minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 18px; }
.sg-detail-tabs.sgr-detail-nav { flex-direction: column; gap: 4px; margin: 0; padding: 7px; border: 1px solid #dae3f1; border-radius: 12px; background: #fff; }
.sgr-detail-nav a { display: block; padding: 10px 12px; border: 0; border-radius: 7px; line-height: 1.45; }
.sgr-detail-nav a:hover { background: #f5f8ff; }
.sgr-detail-nav a[aria-current="page"] { background: #edf2ff; box-shadow: inset 3px 0 #3659d8; }
.sgr-detail-content { min-width: 0; container-type: inline-size; }
.sgr-stack, .sgr-columns { display: grid; gap: 16px; align-items: start; }
.sgr-columns { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
.sgr-panel { min-width: 0; padding: 20px; background: #fff; border: 1px solid #dae3f1; border-radius: 13px; box-shadow: 0 2px 6px #1d335908; }
.sgr-panel-head { margin: 0 0 16px; }
.sgr-panel-head h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: #182d4e; }
.sgr-panel-head p { margin: 4px 0 0; font-size: 13px; color: #5b6c86; overflow-wrap: anywhere; }
.sgr-head-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.sgr-head-actions .button { min-height: 38px; }
.sgr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.sgr-fields dt, .sgr-label { font-size: 12px; font-weight: 500; line-height: 1.4; color: #576982; }
.sgr-fields dd { margin: 4px 0 0; color: #182d4e; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sgr-release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 16px 24px; padding: 15px 16px; background: #f4f7fd; border: 1px solid #e4ebf7; border-radius: 10px; }
.sgr-release-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sgr-release-status .sgr-label { flex-basis: 100%; }
.sgr-release-status strong { color: #192f53; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.sgr-release-times { padding-left: 20px; border-left: 1px solid #dce6f6; }
.sgr-tag { display: inline-flex; align-items: center; flex: none; max-width: 100%; width: fit-content; padding: 3px 8px; border-radius: 6px; background: #edf1f7; color: #4b5d77; font-size: 12px; font-weight: 600; line-height: 1.4; }
.sgr-tag.is-positive { background: #e4f4eb; color: #16634c; }
.sgr-tag.is-pending { background: #fff1db; color: #80521b; }
.sgr-switches, .sgr-maintenance-list { padding: 0; margin: 0; list-style: none; }
.sgr-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sgr-switches li, .sgr-maintenance-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: #243955; }
.sgr-switches li { flex-wrap: wrap; padding: 10px 11px; border: 1px solid #e5ecf6; border-radius: 8px; }
.sgr-metrics { margin-top: 13px; padding: 13px; border-radius: 9px; background: #f6f8fc; }
.sgr-metrics dd { font-size: 16px; }
.sgr-maintenance-list { display: grid; gap: 6px; }
.sgr-maintenance-list li { padding: 8px 10px; border-radius: 7px; background: #f6f8fc; }
.sgr-server-fields { padding: 13px; border-radius: 9px; background: #f6f8fc; }
.sgr-panel-section { margin-top: 16px; padding-top: 13px; border-top: 1px solid #e8edf6; }
.sgr-panel-section h3 { margin: 0 0 10px; color: #263a56; font-size: 14px; }
.sgr-check-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); }
.sgr-upload { display: grid; justify-items: start; gap: 14px; }
.sgr-upload p, .sgr-upload ul { margin: 0; }
.sgr-upload #sgr-preview { width: 100%; padding: 12px; border-radius: 8px; background: #f2f6ff; color: #273e65; }
.sgr-upload input[type="file"] { max-width: 100%; }
@container (max-width: 660px) {
  .sgr-columns { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 560px) {
  .sgr-release { grid-template-columns: minmax(0, 1fr); }
  .sgr-release-times { padding: 12px 0 0; border: 0; border-top: 1px solid #dce6f6; }
}
@media (max-width: 640px) {
  .sgr-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 500px) {
  .wb-metric b.sgd-status-ratio { font-size: 18px; overflow-wrap: anywhere; }
  .sgr-panel { padding: 15px; }
  .sgr-release { padding: 12px; }
}

.sgd-preview-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; padding: 9px 13px; border: 1px solid #dce6f7; border-radius: 8px; background: #f5f8ff; color: #506483; font-size: 13px; }
.sgd-preview-note strong { color: #263f6d; white-space: nowrap; }
.sgd-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sgd-game-group, .sgd-game-notes { margin: 4px 0 0; color: #536783; font-size: 13px; overflow-wrap: anywhere; }
.sgd-game-notes { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sgd-server-fields { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding: 12px 14px; border-radius: 9px; background: #f6f8fc; }
.sgd-resources, .sgd-actions { display: grid; gap: 10px; }
.sgd-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgd-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.sgd-resource, .sgd-operation { min-width: 0; padding: 12px 13px; border: 1px solid #e3eaf5; border-radius: 9px; }
.sgd-resource { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.sgd-resource-copy { display: grid; align-self: end; min-width: 0; gap: 2px; }
.sgd-resource-copy span { color: #536783; font-size: 12px; }
.sgd-resource-copy strong { color: #263b60; font-size: 14px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sgd-resource-gauge { display: grid; width: 72px; flex: none; aspect-ratio: 1; place-items: center; color: #167a41; }
.sgd-resource-gauge svg, .sgd-gauge-value { grid-area: 1 / 1; }
.sgd-resource-gauge svg { width: 100%; fill: none; stroke-width: 5; }
.sgd-gauge-track { stroke: #e7eeeb; }
.sgd-gauge-fill { stroke: #1a9b50; stroke-linecap: round; }
.sgd-gauge-value { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.sgd-gauge-value small { margin-left: 1px; font-size: 11px; }
.sgd-operation p { color: #536783; font-size: 12px; }
.sgd-operation p { margin: 6px 0 0; }
.sgd-operation .button { min-height: 36px; color: #244b91; border-color: #ccdaef; background: #f4f7fd; }
.sgd-operation .button:hover { background: #e8f0fc; }
.sgd-operation .button.sgd-danger { color: #a12538; border-color: #efcbd1; background: #fff5f6; }
.sgd-operation .button.sgd-danger:hover { background: #fbe9ec; }
.sgd-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.sgd-choice { min-height: 36px; padding: 6px 12px; border: 1px solid #dce5f3; border-radius: 8px; color: #324c75; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.sgd-choice:hover { background: #f4f7fd; }
.sgd-choice[aria-pressed="true"] { background: #eaf0ff; border-color: #b7c8f1; color: #274db4; }
.sgd-choice:focus-visible { outline: 2px solid #3659d8; outline-offset: 2px; }
.sgd-selection { margin-top: 13px; padding: 13px; border: 1px solid #e5ecf6; border-radius: 9px; background: #f7f9fd; }
.sgd-selection h3 { margin: 0 0 8px; color: #263b60; font-size: 14px; }
.sgd-monitor-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; color: #263b60; font-size: 13px; }
.sgd-monitor-table th, .sgd-monitor-table td { padding: 8px 8px 8px 0; vertical-align: middle; overflow-wrap: anywhere; }
.sgd-monitor-table th:last-child, .sgd-monitor-table td:last-child { padding-right: 0; }
.sgd-monitor-table thead th { color: #536783; font-size: 12px; }
.sgd-monitor-table tbody tr { border-top: 1px solid #e1e9f4; }
.sgd-policy-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.sgd-policy-head h3 { margin: 0; }
.sgd-script-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.sgd-script-actions .button { min-height: 34px; padding: 6px 10px; }
.sgd-script-meta { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); padding: 12px; margin-bottom: 12px; background: #fff; border: 1px solid #e1e9f4; border-radius: 8px; }
.sgd-script-meta > :nth-child(3) { grid-column: 1 / -1; }
.sgd-update-versions { width: 100%; padding: 10px 12px; background: #f2f6ff; border-radius: 8px; }
.sgd-policy-fields { display: grid; margin: 0; }
.sgd-policy-fields > div { display: grid; grid-template-columns: minmax(80px, 0.4fr) minmax(0, 1.6fr); gap: 8px; padding: 9px 0; border-top: 1px solid #e1e9f4; }
.sgd-policy-fields dt { color: #526682; }
.sgd-policy-fields dd { margin: 0; color: #233b60; font-weight: 550; overflow-wrap: anywhere; }
.sgd-incidents { margin: 0; padding: 0; list-style: none; }
.sgd-incidents > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 16px; padding: 11px 0; }
.sgd-incidents > li:first-child { padding-top: 2px; }
.sgd-incidents > li:last-child { padding-bottom: 2px; }
.sgd-incidents > li + li { border-top: 1px solid #e1e9f4; }
.sgd-incident-main strong { color: #263b60; }
.sgd-incident-main p { margin: 4px 0 0; color: #506483; font-size: 13px; overflow-wrap: anywhere; }
.sgd-incident-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
.sgd-incident-meta time { color: #536783; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sgd-incident-meta .is-attention { background: #fcebed; color: #a12538; }
@container (max-width: 680px) {
  .sgd-server-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgd-resources, .sgd-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 440px) {
  .sgd-actions { grid-template-columns: minmax(0, 1fr); }
  .sgd-operation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px; }
  .sgd-operation p { margin: 0; }
  .sgd-resources { gap: 8px; }
  .sgd-resource { gap: 6px; padding: 9px; }
  .sgd-resource-gauge { width: 52px; }
  .sgd-gauge-value { font-size: 17px; }
  .sgd-gauge-value small { font-size: 9px; }
  .sgd-choice { padding-inline: 8px; }
  .sgd-script-meta { grid-template-columns: minmax(0, 1fr); }
  .sgd-incidents > li { grid-template-columns: minmax(0, 1fr); }
  .sgd-incident-meta { justify-content: flex-start; }
}
@media (max-width: 500px) {
  .sgd-header-actions { flex-basis: 100%; justify-content: flex-end; }
}

@container (max-width: 680px) { .sgd-resource:last-child { grid-column: 1 / -1; } }

.wb-catalog-switch:has(.sgc-group-tab) { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
.wb-catalog-switch .sgc-group-tab { overflow-wrap: anywhere; max-width: 100%; }
.wb-game-icon { object-fit: cover; }
.sgc-card-link.sgc-identity-link { flex: none; padding-bottom: 10px; }
.sgc-card-body { flex: 1; padding: 0 14px 11px; }
.sgc-server-entry + .sgc-server-entry { margin-top: 11px; }
.sgc-server-entry .sgc-server { margin: 6px 0 0; }
.sgc-resources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.sgc-resource { display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 5px; min-width: 0; border: 1px solid #e3eaf5; border-radius: 8px; }
.sgc-resource-label { display: grid; gap: 2px; color: #263b60; font-size: 11px; white-space: nowrap; }
.sgc-resource-label small { color: #5c6e8b; font-size: 9px; }
.sgc-resource .sgd-resource-gauge { width: clamp(30px, 3vw, 40px); }
.sgc-resource .sgd-gauge-value { font-size: 10px; }
.sgc-esxi-button { margin-left: 5px; padding: 2px 4px; color: #34538d; background: transparent; border: 0; border-radius: 4px; font-size: 11px; cursor: pointer; }
.sgc-esxi-button:hover, .sgc-esxi-button:focus-visible { background: #eaf1fc; }
@media (max-width: 390px) {
  .sgc-resource { justify-content: center; flex-wrap: wrap; }
  .sgc-resource-label { text-align: center; }
}
