﻿html, body {
    overflow: hidden !important;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
}

.mud-main-content {
    overflow-y: auto !important;
    height: 100vh !important;
}

html:has(.mud-overlay-dialog) .mud-main-content {
    overflow: hidden !important;
}

/* ============================================================
   Design system: light "control-plane console" look.
   Colors come from MudBlazor theme vars so the future dark
   palette flips everything without touching these rules.
   ============================================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c4cdda;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a7b3c6;
}

/* --- App bar: flat white with a hairline --- */
.mud-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.app-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.host-chip {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    border-color: var(--mud-palette-lines-default) !important;
}

/* --- Drawer: hairline border, pill nav items --- */
.mud-drawer {
    border-right: 1px solid var(--mud-palette-lines-default);
}

.mud-drawer--open .mud-navmenu .mud-nav-link {
    margin: 1px 10px;
    border-radius: 8px;
    /* width:auto shrinks the pill to the label, so hover only covers the text */
    width: calc(100% - 20px);
}

.mud-navmenu .mud-nav-link .mud-nav-link-text {
    font-size: 0.85rem;
    /* long single-word labels (ReplicationController) get clipped otherwise */
    overflow-wrap: anywhere;
}

.mud-navmenu .mud-nav-link {
    transition: background-color 0.12s ease, color 0.12s ease;
}

.mud-navmenu .mud-nav-link.active:hover {
    background-color: rgba(50, 108, 229, 0.16);
}

.mud-navmenu .mud-nav-link.active {
    background: rgba(50, 108, 229, 0.10);
    color: var(--mud-palette-primary) !important;
}

.mud-navmenu .mud-nav-link.active .mud-nav-link-text {
    font-weight: 600;
}

.mud-navmenu .mud-nav-link.active .mud-icon-root {
    color: var(--mud-palette-primary);
}

/* Group headers read as section labels, not items (open drawer only:
   the mini drawer needs the group icons to stay navigable) */
.mud-drawer--open .mud-navmenu > .mud-nav-group {
    margin-top: 10px;
}

.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* width:auto shrinks the button below its content and overflow:hidden then eats the chevron */
    width: calc(100% - 20px);
    /* no background here: it would outrank the shared :hover rule (4 classes vs 3) */
}

.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link .mud-nav-link-text {
    /* MudBlazor gives the label width:100%, which pushes the chevron out of the button */
    flex: 0 1 auto;
    width: auto;
    /* MudBlazor ships group buttons at 500, plain items at 400 */
    font-weight: 400;
    transition: color 0.15s ease;
}

/* MudBlazor only paints hover on <a> nav items, and group headers are <button>,
   so they need their own rule — same tint the plain items get. */
.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link:hover .mud-nav-link-text,
.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link:hover .mud-nav-link-expand-icon {
    color: var(--mud-palette-text-primary);
}

/* Chevron sits right after the label instead of floating at the far edge.
   It is the only marker that tells an expandable section from a plain item. */
.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon {
    margin: 0 0 0 2px !important;
    width: 18px;
    height: 18px;
    opacity: 1;
    color: var(--mud-palette-text-secondary);
    fill: currentColor;
    transition: transform 0.18s ease;
}

/* Group icon matches the flat items so the whole menu keeps one rhythm */
.mud-drawer--open .mud-navmenu > .mud-nav-group > .mud-nav-link > .mud-nav-link-icon {
    color: var(--mud-palette-drawer-icon);
    opacity: 0.85;
}

/* Children hang off a hairline guide */
.mud-drawer--open .mud-navgroup-collapse {
    position: relative;
}

.mud-drawer--open .mud-navgroup-collapse::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: var(--mud-palette-lines-default);
}

.mud-drawer--open .mud-navgroup-collapse .mud-nav-link {
    margin-left: 30px;
    margin-right: 10px;
    min-height: 30px;
    width: calc(100% - 40px);
}

.mud-drawer--open .mud-navmenu > .mud-nav-group .mud-navmenu {
    padding-inline-start: 0 !important;
}

/* --- Tables: bordered cards, micro-caps headers --- */
.mud-table {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
}

.mud-table.mud-elevation-1,
.mud-table.mud-elevation-2,
.mud-table.mud-elevation-3 {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
}

.mud-table .mud-table-head th.mud-table-cell {
    /* !important: sticky-header tables repaint the cell with a 4-class MudBlazor rule */
    background-color: var(--mud-palette-background-gray) !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.mud-table .mud-table-head th.mud-table-cell .mud-table-sort-label {
    font-weight: 600;
}

/* --- Cards / papers: line over shadow --- */
.mud-paper.mud-elevation-1,
.mud-paper.mud-elevation-2 {
    border: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

/* --- Flat metric cells with sparkline (pod list) --- */
.metric-cell {
    position: relative;
    width: 120px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-cell svg {
    position: absolute;
    inset: 0;
}

.metric-cell span {
    position: relative;
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.metric-cell--cpu {
    background: rgba(24, 138, 80, 0.08);
    color: #116B3D;
}

.metric-cell--mem {
    background: rgba(50, 108, 229, 0.08);
    color: #2456B3;
}

/* --- Node table --- */
.section-count {
    margin-left: 4px;
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

/* --- One card per nested entity (volume, container, webhook): name and
       type in the header, property table flush inside --- */
.entity-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background: var(--mud-palette-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    overflow: hidden;
    margin-bottom: 12px;
}

.entity-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    background: var(--mud-palette-background-gray);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* :not() keeps the container-type icons on their own colour */
.entity-card-head .mud-icon-root:not(.container-type) {
    color: var(--mud-palette-primary);
}

.entity-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
}

.entity-card-name {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    word-break: break-all;
}

.entity-card-kind {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(50, 108, 229, 0.10);
    color: #2456B3;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.container-type--main {
    color: var(--mud-palette-primary);
}

.container-type--init {
    color: #D97706;
}

.container-type--ephemeral {
    color: #6B46C1;
}

/* YAML editors get the wide treatment wherever they are opened from */
.mud-dialog-container.mud-dialog-center .mud-dialog:has(.monaco-editor) {
    width: min(1600px, 96vw);
    max-width: none;
}

/* Confirm dialogs: the kubectl equivalent of what the button will do */
.command-hint {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

.command-hint .mud-icon-root {
    align-self: center;
    color: var(--mud-palette-text-secondary);
}

.command-hint code {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 12.5px;
    color: var(--mud-palette-text-primary);
    word-break: break-all;
}

.port-entry {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 12.5px;
}

/* init/ephemeral containers read as side-players next to the main ones */
.entity-card-kind--init {
    background: rgba(217, 119, 6, 0.12);
    color: #9A5B06;
}

.entity-card-kind--ephemeral {
    background: rgba(107, 70, 193, 0.12);
    color: #5B3AA6;
}

/* the property table sits flush inside the card, no second frame */
.entity-card .normalTable,
.mud-dialog:has(.normalTable) .entity-card .normalTable {
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    width: 100%;
}

/* Tooltip behind the collapsed "N OK" chip */
.conditions-tip {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 14px;
    text-align: left;
}

.conditions-tip span {
    display: contents;
}

.conditions-tip i {
    font-style: normal;
    font-weight: 600;
}

/* Rows grow tall wherever a cell holds charts or chips — keep every cell centred */
.mud-table .mud-table-cell {
    vertical-align: middle;
}

/* Whole name cell opens the detail dialog */
.mud-table-cell.name-cell {
    cursor: pointer;
}

.name-cell-label {
    font-weight: 600;
    white-space: nowrap;
}

.name-cell:hover .name-cell-label {
    color: var(--mud-palette-primary);
    text-decoration: underline;
}

.node-roles-cell {
    white-space: nowrap;
}

.node-ip {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 12.5px;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
}

.node-capacity {
    width: 260px;
}

/* Detail dialog: facts fill the empty right end of the action toolbar */
.detail-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 20px;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
}

.detail-facts span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'IBM Plex Mono', Consolas, monospace;
    white-space: nowrap;
}

.detail-facts i {
    font-style: normal;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

/* Detail dialog: actions left, live metrics claim the rest of the row */
.node-detail-head {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* the node header already carries live metrics — facts would crowd them */
.node-detail-head .detail-facts {
    display: none;
}

.node-detail-head > .mud-toolbar {
    flex: 0 0 auto;
    width: auto;
    padding-left: 0;
}

/* outlined buttons need breathing room; the toolbar packs children flush */
.mud-dialog .mud-toolbar {
    gap: 8px;
}

.node-detail-head > div {
    flex: 1 1 320px;
    min-width: 0;
}

.node-detail-head .node-capacity {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 24px;
}

.node-capacity-row {
    display: grid;
    grid-template-columns: 38px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.node-capacity-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
}

.node-capacity-value {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 0.72rem;
    text-align: right;
    color: var(--mud-palette-text-secondary);
}

.node-pods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.node-pod-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    appearance: none;
    font-family: inherit;
    border-radius: 11px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    font-size: 11.5px;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.node-pod-stat:hover {
    border-color: var(--stat-color);
    background: var(--mud-palette-background-gray);
}

.node-pod-stat i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--stat-color);
}

.node-pod-stat b {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.node-pod-list-ns {
    margin-left: 8px;
    font-size: 11.5px;
    color: var(--mud-palette-text-secondary);
}

/* --- Cluster usage stat cards (overview) --- */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    gap: 16px;
    padding: 4px 0 8px;
}

.usage-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 14px 16px 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.usage-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.usage-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mud-palette-text-secondary);
}

.usage-percent {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
}

.usage-value {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 10px;
}

.usage-total {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
}

.xterm {
    height: 100% !important;
    width: 100% !important;
}

/* When xterm is inside a dialog, prevent MudDialog from adding its own scrollbars */
.mud-dialog-content:has(.xterm) {
    overflow: hidden !important;
}

.mud-dialog-fullscreen .mud-dialog-content {
    overflow: hidden !important;
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
}

/* Node metrics tabs dialog: prevent dialog from scrolling when switching tabs.
   The tab bar stays pinned; only the panel content area scrolls internally. */
.mud-dialog:has(.node-metrics-tabs) {
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
}

.mud-dialog:has(.node-metrics-tabs) .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.node-metrics-tabs {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.node-metrics-tabs > .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* MudBlazor glues panel content to the tab strip; .mud-tab-panel is display:contents, so pad the container */
.mud-tabs-panels {
    padding-top: clamp(0.75rem, 1.3vw, 1.25rem);
}

.mud-dialog {
    overflow-x: hidden;
}

.mud-divider.flex-grow-1 {
    width: auto;
    min-width: 0;
    flex-basis: 0;
}

.monaco-editor-container {
    height: 100%;
    width: calc(100% - 2px);
    border: 1px solid gray;
}

.monaco-editor .inputarea {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: transparent !important;
    overflow: hidden !important;
    resize: none !important;
}

.normalTable {
    border-collapse: collapse;
    width: calc(100% - 2px);
    border: 1px solid #f0f0f0 !important;
    margin-bottom: 20px;
}

.normalTable th {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fafafa !important;
    padding: 5px 9px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}

.normalTable td {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    word-break: break-all;
    height: 50px;
}

.normalTable tr td:first-child {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fafafa !important;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    width: 160px;
}

.miniTable {
    border-collapse: collapse;
    width: calc(100% - 2px);
    border: 1px solid #f0f0f0 !important;
    margin-bottom: 20px;
}

.miniTable th {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fafafa !important;
    padding: 5px 9px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}

.miniTable td {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    word-break: break-all;
    height: 50px;
}

.miniTable td .mud-alert {
    word-break: normal;
    overflow-wrap: break-word;
}

.miniTable tr td:first-child {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fafafa !important;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    width: 100px;
}

.wideTable {
    margin: 10px !important;
    width: calc(100% - 22px);
    border-collapse: collapse;
    border: 1px solid #f0f0f0 !important;
}

.wideTable > tbody > tr > td {
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}

/* SVG chart instant tooltips */
.chart-tooltip-fo, .chart-crosshair { opacity: 0; pointer-events: none; }
.chart-marker-group:hover .chart-tooltip-fo,
.chart-marker-group:hover .chart-crosshair { opacity: 1; }
.chart-marker-group:hover .chart-marker-dot { r: 5; }
.chart-tooltip {
    background: rgba(30,30,30,0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.chart-tooltip-title {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    line-height: 20px;
}
.chart-tooltip-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}
.chart-marker-hover { cursor: pointer; }

.mud-table th {
    white-space: nowrap;
    text-align: left !important;
}

.mud-table td {
    vertical-align: top;
    text-align: left !important;
}

.mud-table td .mud-chip {
    margin: 2px;
}

.mud-table .mud-button-root {
    text-transform: none;
    justify-content: flex-start;
    text-align: left;
}

.appbar-ns-select {
    min-width: 240px;
    max-width: 320px;
    margin-left: 24px;
}

/* Appbar inputs: quiet filled fields that light up on focus */
.mud-appbar .mud-input.mud-input-outlined {
    background: var(--mud-palette-background);
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.mud-appbar .mud-input-outlined .mud-input-outlined-border {
    border-color: transparent !important;
    transition: border-color 0.15s ease;
}

.mud-appbar .mud-input.mud-input-outlined:focus-within {
    background: var(--mud-palette-surface);
}

.mud-appbar .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: var(--mud-palette-primary) !important;
}

.mud-drawer .mud-nav-link-expand-icon {
    margin-left: 8px;
}

/* Mini (collapsed) drawer: instant tooltip on hover.
   The text node is display:none by default (MudBlazor rule, keeps chevron
   tight against the icon). On hover we flip it to an absolutely-positioned
   floating label that escapes the drawer's bounds. */
.mud-drawer--closed.mud-drawer-mini,
.mud-drawer--closed.mud-drawer-mini .mud-navmenu {
    overflow: visible;
}

.mud-drawer--closed.mud-drawer-mini .mud-nav-link,
.mud-drawer--closed.mud-drawer-mini .mud-nav-group > .mud-nav-link {
    position: relative;
    overflow: visible;
}

.mud-drawer--closed.mud-drawer-mini .mud-nav-group,
.mud-drawer--closed.mud-drawer-mini .mud-navmenu,
.mud-drawer--closed.mud-drawer-mini .mud-nav-item,
.mud-drawer--closed.mud-drawer-mini .mud-collapse-container,
.mud-drawer--closed.mud-drawer-mini .mud-collapse-wrapper,
.mud-drawer--closed.mud-drawer-mini .mud-collapse-wrapper-inner {
    overflow: visible;
}

.mud-drawer--closed.mud-drawer-mini .mud-nav-link:hover .mud-nav-link-text {
    display: block !important;
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    margin: 0;
    padding: 4px 10px;
    background: #424242;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    pointer-events: none;
}


.wideTableWithGrid {
    margin: 10px !important;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #f0f0f0 !important;
}

.wideTableWithGrid td {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    word-break: break-all;
}

.grid-table {
    width: 100%;
    margin: 0;
}

.grid-table .mud-grid-item {
    border-collapse: collapse;
    border-left: 1px solid #f0f0f0 !important;
    border-top: 1px solid #f0f0f0 !important;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 5px 9px;
    font-size: 14px;
}

.grid-table-first-row .mud-grid-item:first-child {
    border-collapse: collapse;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fafafa !important;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}

.kv-edit .mud-input,
.kv-edit .mud-input-control,
.kv-edit .mud-input-control-input-container {
    overflow: visible !important;
    height: auto !important;
    align-items: stretch !important;
    border: none !important;
}

.kv-edit fieldset,
.kv-edit .mud-input-outlined-border {
    display: none !important;
}

.kv-edit .mud-input.mud-input-outlined::before,
.kv-edit .mud-input.mud-input-outlined::after {
    display: none !important;
}

.kv-edit textarea.mud-input-slot,
.kv-edit textarea {
    resize: vertical !important;
    min-height: 200px !important;
    max-height: 800px;
    font-family: monospace !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow: auto !important;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 4px !important;
    padding: 8px !important;
    background: transparent !important;
}

.kv-edit textarea:focus {
    outline: none !important;
    border-color: var(--mud-palette-primary) !important;
    box-shadow: 0 0 0 1px var(--mud-palette-primary) !important;
}

.kv-edit textarea::-webkit-resizer {
    background-color: transparent;
    background-image:
        linear-gradient(135deg, transparent 0 45%, rgba(0, 0, 0, 0.45) 45% 55%, transparent 55% 70%, rgba(0, 0, 0, 0.45) 70% 80%, transparent 80%);
    background-size: 14px 14px;
    background-position: bottom right;
    background-repeat: no-repeat;
    border-bottom-right-radius: 4px;
}

.kv-edit textarea::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.kv-edit textarea::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.kv-edit textarea::-webkit-scrollbar-track {
    background: transparent;
}

.kv-edit textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.kv-edit textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}


/* --- Kubernetes Dashboard modal header, shared by every dialog --- */
.mud-dialog > .mud-dialog-title {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 13px 24px;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-radius: 8px 8px 0 0;
}

.mud-dialog > .mud-dialog-title:has(.mud-button-close) {
    padding-right: 56px;
}

.mud-dialog > .mud-dialog-title .mud-typography {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

/* Close button is absolute; without an anchor on the title it lands on the full-viewport container */
.mud-dialog > .mud-dialog-title .mud-button-close {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--mud-palette-primary-text);
    opacity: 0.9;
}

/* Descendant, not child: MudBlazor wraps the body in a focus-trap container, so a child combinator
   matches nothing and every dialog fell back to the 8px default - which reads as the first field's
   floating label touching the title bar. */
.mud-dialog .mud-dialog-content {
    padding-top: 20px;
}

@keyframes detail-pop {
    from {
        transform: translateY(14px) scale(0.985);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- Detail modal. Scoped via :has(.normalTable): every detail view renders
   MetadataView -> HTable; confirm/scale/yaml dialogs don't. --- */
.mud-dialog-container.mud-dialog-center .mud-dialog:has(.normalTable) {
    width: min(1500px, 96vw);
    max-width: none;
    max-height: 94vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--mud-palette-background);
    animation: detail-pop 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mud-dialog:has(.normalTable) .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 20px 24px;
}

/* Action row as compact first white card */
.mud-dialog:has(.normalTable) .mud-dialog-content > .mud-toolbar {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    margin-bottom: 8px;
}

/* Property sections render as white cards */
.mud-dialog:has(.normalTable) .normalTable {
    width: 100%;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--mud-palette-surface);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    overflow: hidden;
    margin-bottom: 16px;
}

.mud-dialog:has(.normalTable) .normalTable th {
    background: var(--mud-palette-surface) !important;
    border-right: none !important;
    border-bottom: 1px solid var(--mud-palette-lines-default) !important;
    color: var(--mud-palette-text-secondary);
    font-size: 12.5px;
    text-align: left;
    padding: 8px 16px;
}

.mud-dialog:has(.normalTable) .normalTable td {
    border-right: none !important;
    border-bottom: 1px solid var(--mud-palette-table-lines) !important;
    height: auto;
    padding: 9px 16px;
}

.mud-dialog:has(.normalTable) .normalTable tr:last-child > td {
    border-bottom: none !important;
}

.mud-dialog:has(.normalTable) .normalTable tr td:first-child {
    background: transparent !important;
    border-right: none !important;
    color: var(--mud-palette-text-secondary);
    font-size: 12.5px;
    width: 200px;
    vertical-align: top;
    padding-top: 11px;
    word-break: normal;
    overflow-wrap: normal;
}

.mud-dialog:has(.normalTable) .normalTable .normalTable {
    box-shadow: none;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Embedded MudTable lists (pods, events, ...) match the card look */
.mud-dialog:has(.normalTable) .mud-table {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Divider-flanked section captions -> left-aligned k8s section titles */
.mud-dialog:has(.normalTable) .d-flex.align-center.my-2:has(> .mud-divider) {
    margin: 18px 0 8px !important;
}

.mud-dialog:has(.normalTable) .d-flex.align-center.my-2:has(> .mud-divider) > .mud-divider {
    display: none;
}

.mud-dialog:has(.normalTable) .d-flex.align-center.my-2:has(> .mud-divider) .mud-typography {
    margin: 0 !important;
    font-size: 15px;
    color: var(--mud-palette-text-primary);
}

/* --- Metadata plain values (replaces chip pills) --- */
.prop-value {
    font-family: 'IBM Plex Mono', 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 12.5px;
    color: var(--mud-palette-text-primary);
    word-break: break-all;
    user-select: text;
}

/* --- Compact readable tags (replaces saturated chips) --- */
.k8s-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 1px 8px;
    margin: 1px 2px;
    font-size: 12px;
    line-height: 20px;
    max-width: 100%;
    word-break: break-all;
    user-select: text;
}

/* --- Collapsed managed fields --- */
.env-list[open] > summary {
    margin-bottom: 4px;
}

.env-entry {
    display: flex;
    align-items: center;
    gap: 4px;
}

.env-entry .env-reveal {
    padding: 2px;
}

.env-entry .env-reveal .mud-icon-root {
    font-size: 15px;
}

.managed-fields summary {
    cursor: pointer;
    color: var(--mud-palette-primary);
    font-size: 13px;
    user-select: none;
}

.managed-fields-entry {
    display: flex;
    gap: 8px;
    padding: 2px 0;
    font-size: 12.5px;
}

/* --- Account pages --- */
/* Column direction keeps the cross axis horizontal, so the card still stretches to the
   container width while justify-content does the vertical centring. */
.account-brand {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.account-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* They render statically, so the form uses plain <InputText> instead of MudBlazor
   fields; MudBlazor's reset leaves a bare <input> borderless, hence the styling here. */
.account-label {
    display: block;
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

.account-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}

.account-input:focus {
    outline: none;
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.account-input.invalid {
    border-color: var(--mud-palette-error);
}

.account-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--mud-palette-text-primary);
    user-select: none;
}

.account-error {
    margin-top: 16px;
}

/* Matches the "Sign in" button above in size; only the casing and the icon differ. */
.account-external-button {
    gap: 10px;
    text-transform: none;
}

/* Relative offset, so nudging the icon leaves the label where it was. */
.account-external-icon {
    width: 24px;
    height: 24px;
    position: relative;
    left: -6px;
}

.validation-message {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--mud-palette-error);
}

/* Namespace shown under the app title when the typed name differs from the derived label. */
.app-namespace-label {
    display: block;
    font-size: 11.5px;
    font-family: var(--mud-typography-monospace-family, monospace);
    color: var(--mud-palette-text-secondary);
}

/* ============================================================
   Dialog forms (application create, service edit).
   One 12-column grid owns the rhythm: MudBlazor fields carry
   their own margins and inline max-widths land on the input,
   not the wrapper, so widths and gaps were set in two places
   and agreed in neither.
   ============================================================ */

/* Descendant, not child: MudBlazor wraps the body in a focus-trap container, so a child
   combinator here silently matched nothing and these dialogs rendered with no padding at all. */
.mud-dialog:has(.dialog-form) .mud-dialog-content {
    padding: 20px 24px 24px;
}

.mud-dialog:has(.dialog-form) .mud-dialog-actions {
    padding: 14px 24px;
    margin: 0;
    gap: 8px;
    border-radius: 0 0 8px 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 18px;
    /* Fields differ in height once one carries helper text; without this they stretch. */
    align-items: start;
}

.form-grid > * {
    grid-column: span 12;
    min-width: 0;
}

.form-grid > .col-6 {
    grid-column: span 6;
}

/* A field paired with a short one - a stepper, a port - takes the rest of the row rather than
   leaving it empty. */
.form-grid > .col-9 {
    grid-column: span 9;
}

.form-grid > .col-3 {
    grid-column: span 3;
}

/* Drag handle for a field that grows with its content, same as the env value boxes. Spelled out to
   this depth to outweigh MudBlazor's own `.mud-input > textarea.mud-input-root { resize: none }`. */
.form-grid .growable-field .mud-input > textarea.mud-input-root {
    resize: vertical;
}

/* The grid owns vertical spacing, so the fields must not add their own. Both margin classes are
   named because MudBlazor sets the margin on .mud-input-control.mud-input-control-margin-*, which
   outranks a plain descendant selector. */
.form-grid .mud-input-control.mud-input-control-margin-dense,
.form-grid .mud-input-control.mud-input-control-margin-normal,
.form-grid .mud-input-control.mud-input-control-margin-none {
    margin-top: 0;
    margin-bottom: 0;
}

/* Helper text hangs below the box instead of pushing the next row. */
.form-grid .mud-input-helper-text {
    margin-top: 4px;
    line-height: 1.3;
}

.form-section {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* Same micro-caps voice as the table headers. */
.form-section-title {
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
}

/* ============================================================
   Account profile. Whose account this is reads first as a
   single quiet line - a heading rather than a panel - and the
   forms follow side by side, carrying the weight. One card in
   the row (a Keycloak account has no password form) simply
   spans the width.
   ============================================================ */

.profile-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    align-items: start;
    gap: 20px;
}

.profile-account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 24px;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(140deg, var(--mud-palette-primary), var(--mud-palette-info));
    user-select: none;
}

.profile-who {
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-handle {
    font-size: 12.5px;
    color: var(--mud-palette-text-secondary);
    overflow-wrap: anywhere;
}

/* Pushed to the far end, and only while there is room for them to sit there. */
.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

/* --- The address a domain has to be pointed at --- */
.dns-note,
.routing-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    /* Squared off with the field it belongs to. Sized to its text instead, it stopped a third of the
       way across and left the rest of the row visibly empty. */
    margin-top: 8px;
    padding: 4px 4px 4px 10px;
    border: 1px solid var(--mud-palette-lines-default);
    /* Reads as a consequence of the field above it rather than another field. */
    border-left: 2px solid var(--mud-palette-info);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-background-gray);
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

.dns-note .mud-icon-root,
.routing-note .mud-icon-root {
    color: var(--mud-palette-text-disabled);
}

/* Each address is its own record, so each gets its own chip - run together they read as one value
   broken across spaces. The whole chip is the copy button: the icon says so, and a target the size
   of the address beats one the size of an icon. */
.dns-note-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    background: var(--mud-palette-surface);
    font-family: var(--mud-typography-monospace-family, monospace);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--mud-palette-text-primary);
    cursor: pointer;
}

.dns-note-address:hover {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-action-default-hover);
}

.dns-note-address:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}

.dns-note-address .mud-icon-root {
    font-size: 15px;
    color: var(--mud-palette-text-disabled);
}

.dns-note-address:hover .mud-icon-root {
    color: var(--mud-palette-primary);
}

/* --- Env var rows: three columns so keys, values and controls line up --- */
.env-empty {
    margin-top: 10px;
    color: var(--mud-palette-text-secondary);
}

.env-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Top-aligned, not centred: the value box grows with its content, and centring floated the key
   field and the controls into the middle of a tall row. */
.env-row {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
}

/* Drag handle for values past the ten lines the box grows to on its own - beyond that it caps and
   scrolls, which is exactly when the extra height is wanted. Spelled out to this depth to outweigh
   MudBlazor's own `.mud-input > textarea.mud-input-root { resize: none }`. */
.env-row .mud-input > textarea.mud-input-root {
    resize: vertical;
}

/* A hidden secret is masked here rather than by InputType.Password, which would force the value back
   into a single-line input - and a certificate is exactly the kind of secret that needs the room.
   Blurred rather than replaced with bullets: -webkit-text-security changes the glyph widths, which
   re-wraps the text and leaves the auto-sized box at the wrong height until the next keystroke, and
   Firefox does not support it at all - there it would have rendered the secret in plain sight. */
/* Spelled out to this depth for the same reason as the resize rule above: MudBlazor's own
   `.mud-input > textarea.mud-input-root` sets the colour and outweighs a shorter selector. */
.env-value-masked .mud-input > textarea.mud-input-root {
    color: transparent;
    text-shadow: 0 0 7px var(--mud-palette-text-primary);
    /* The glyphs are gone; without this the caret goes with them and typing is blind. */
    caret-color: var(--mud-palette-text-primary);
}

.env-row-controls {
    display: flex;
    /* Holds the checkbox and bin level with the first line of the fields beside them. */
    align-items: center;
    min-height: 40px;
    gap: 2px;
}

.env-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* The buttons lead the section, so the gap goes under them - and only when something follows. */
.env-actions:not(:last-child) {
    margin-bottom: 12px;
}

/* The checkbox is as wide as its label; the input takes a readable width right after it instead of
   the far side of a grid column. */
.field-pair {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Grows into the rest of the row: left at its natural width it ended the line early and the row
   trailed off into empty space. */
.field-pair-input {
    flex: 1 1 320px;
    min-width: 220px;
}

@media (max-width: 720px) {
    .form-grid > .col-6,
    .form-grid > .col-9,
    .form-grid > .col-3 {
        grid-column: span 12;
    }

    .env-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }
}

/* Signed-in user next to the sign-out button in the app bar. */
.user-name {
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Helm chart repositories. The list scrolls at a fixed height instead of growing a row per entry,
   so a cluster with two repositories and one with thirty give the section the same footprint and
   the releases table stays where it was. Its columns line up with the fields that add one. */
.helm-repos {
    --helm-repos-name: 200px;
    --helm-repos-gutter: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    margin-bottom: 16px;
    overflow: hidden;
}

.helm-repos__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px var(--helm-repos-gutter);
    background: var(--mud-palette-background-gray);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.helm-repos__label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.helm-repos__count {
    font-size: .75rem;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-action-default-hover);
}

.helm-repos__hint {
    font-size: .8125rem;
    color: var(--mud-palette-text-secondary);
}

.helm-repos__list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Five rows and a hint of the sixth, so it is visible that the list goes on. */
    max-height: 172px;
    overflow-y: auto;
}

.helm-repos__row {
    display: grid;
    grid-template-columns: var(--helm-repos-name) minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 5px var(--helm-repos-gutter);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.helm-repos__row:last-child {
    border-bottom: none;
}

.helm-repos__row:hover {
    background: var(--mud-palette-action-default-hover);
}

.helm-repos__row-name {
    font-size: .875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helm-repos__row-url {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helm-repos__row-close {
    all: unset;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    color: var(--mud-palette-text-secondary);
}

.helm-repos__row-close:hover {
    background: var(--mud-palette-action-default-hover);
    color: var(--mud-palette-text-primary);
}

.helm-repos__row-close:disabled {
    cursor: default;
    opacity: .4;
}

/* One line: a fixed-width name, the url taking what is left, the button at its own width. */
.helm-repos__form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--helm-repos-gutter);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.helm-repos__name {
    flex: 0 0 var(--helm-repos-name);
}

.helm-repos__url {
    flex: 1 1 auto;
    min-width: 0;
}

.helm-repos__add {
    flex: 0 0 auto;
    height: 40px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .helm-repos__row {
        grid-template-columns: minmax(0, 1fr) 28px;
        gap: 2px 10px;
    }

    .helm-repos__row-name {
        grid-column: 1;
    }

    .helm-repos__row-url {
        grid-column: 1;
    }

    .helm-repos__row-close {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .helm-repos__form {
        flex-wrap: wrap;
    }

    .helm-repos__name,
    .helm-repos__url,
    .helm-repos__add {
        flex: 1 1 100%;
    }
}

/* One chart per row in the install dialog's search: the reference and its version on the first
   line, the chart's own description under it, so a name several repositories carry is still told
   apart at a glance. */
.helm-chart-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 2px 0;
}

.helm-chart-option__name {
    font-size: .875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helm-chart-option__version {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
}

.helm-chart-option__description {
    grid-column: 1 / -1;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The checkbox sits next to a dense outlined field, whose label eats the first 8px of its height. */
.helm-install__create {
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* The values editor in the Helm install dialog. Monaco needs a sized box - it lays itself out to
   whatever it is given - and the label is drawn by hand because there is no MudBlazor field to
   carry it. */
.helm-install__values {
    grid-column: span 12;
}

.helm-install__values-label {
    display: block;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 4px;
}

/* Short enough that the dialog fits without scrolling, and draggable by its bottom-right corner
   for values that outgrow it - Monaco lays itself out again on resize. */
.helm-install__editor {
    height: 170px;
    min-height: 96px;
    max-height: 70vh;
    resize: vertical;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
}

.helm-install__editor > div {
    height: 100%;
}

.helm-install__values-hint {
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 4px;
}

/* What the upgrade dialog is about, above the values: the chart and the move it makes. */
.helm-upgrade__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.helm-upgrade__chart {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .875rem;
}

.helm-upgrade__move {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
}

.helm-upgrade__from {
    color: var(--mud-palette-text-secondary);
}

.helm-upgrade__to {
    font-weight: 600;
}

/* While the command runs the editor is read-only, and says so: the pointer rule stops a click from
   putting a caret in text that can no longer reach the command. */
.helm-install__editor--busy {
    opacity: .6;
    pointer-events: none;
    resize: none;
}
