		/* Brand palette/fonts sourced from grapevinelab.com's design tokens. */
		:root {
			--gv-purple: #7540c9;
			--gv-purple-hover: #6432b0;
			--gv-purple-active: #562896;
			--gv-purple-tint: #f4eefb;
			--gv-magenta: #c31d81;
			--gv-pink: #ea1a97;
			--gv-deep-purple: #331c69;
			--gv-dark-navy: #19192e;
			--gv-green: #4cae4f;
			--gv-light-green: #97c563;
			--gv-red: #dc2626;
			--gv-red-tint: #fdecec;
			--gv-foreground: #09090b;
			--gv-muted-foreground: #71717a;
			--gv-text-secondary: #52525b;
			--gv-border: #e4e4e7;
			--gv-surface: #ffffff;
			--gv-surface-muted: #fafafa;
			--gv-radius: 10px;
			--gv-radius-sm: 7px;
			--gv-shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05);
			--gv-shadow-md: 0 8px 24px rgba(9, 9, 11, 0.10);
		}
		* { box-sizing: border-box; }
		body { font-family: 'Manrope', sans-serif; color: var(--gv-foreground); max-width: 1100px; margin: 40px auto; padding: 0 20px; }
		h1, h2, h3, .font-display { font-family: 'Space Grotesk', sans-serif; }
		h1 { color: var(--gv-purple); }
		a { color: var(--gv-purple); }
		.app-footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--gv-border); font-size: 0.78rem; color: var(--gv-muted-foreground); text-align: center; }
		label { font-size: 1rem; }
		.row { margin: 10px 0; }

		/* Buttons: every plain <button> in the app gets this outlined brand
		   treatment by default, so ad-hoc buttons created in JS stay on-brand
		   without needing a class. .btn-primary/.btn-danger are opt-in accents
		   for the one or two calls-to-action per view. */
		button {
			font-family: inherit;
			font-size: 0.88rem;
			font-weight: 600;
			line-height: 1.2;
			padding: 8px 14px;
			border-radius: var(--gv-radius-sm);
			border: 1.5px solid var(--gv-purple);
			background: var(--gv-surface);
			color: var(--gv-purple);
			cursor: pointer;
			transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
		}
		button:hover { background: var(--gv-purple-tint); }
		button:active { background: #ebe0f8; }
		/* Disabled: go fully neutral (grey text/border on surface), not just
		   dimmed — otherwise a disabled .btn-primary keeps its white text and
		   becomes white-on-white once the rule below repaints the background. */
		button:disabled { opacity: 0.5; cursor: not-allowed; background: var(--gv-surface); color: var(--gv-muted-foreground); border-color: var(--gv-border); }
		button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
			outline: none;
			box-shadow: 0 0 0 3px var(--gv-purple-tint);
			border-color: var(--gv-purple);
		}
		.btn-primary { background: var(--gv-purple); color: #fff; }
		.btn-primary:hover { background: var(--gv-purple-hover); border-color: var(--gv-purple-hover); }
		.btn-primary:active { background: var(--gv-purple-active); border-color: var(--gv-purple-active); }
		.btn-danger { border-color: var(--gv-red); color: var(--gv-red); }
		.btn-danger:hover { background: var(--gv-red-tint); }

		/* Text fields, selects, textareas: one consistent boxed look. */
		input[type="text"], input[type="password"], input[type="email"], input[type="number"],
		input[type="datetime-local"], select, textarea {
			font-family: inherit;
			font-size: 0.9rem;
			padding: 8px 10px;
			border: 1.5px solid var(--gv-border);
			border-radius: var(--gv-radius-sm);
			background: var(--gv-surface);
			color: var(--gv-foreground);
		}
		input::placeholder, textarea::placeholder { color: var(--gv-muted-foreground); }
		input[type="checkbox"], input[type="radio"] { accent-color: var(--gv-purple); }

		.ranges button.active { border-color: var(--gv-purple); background: var(--gv-purple); color: #fff; }
		.admin-subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 18px; border-bottom: 1px solid var(--gv-border); padding-bottom: 8px; }
		.admin-subnav button.active { border-color: var(--gv-purple); background: var(--gv-purple); color: #fff; }
		.range-label { font-size: 0.85rem; color: var(--gv-muted-foreground); margin: 6px 0 0; }
		.point-info { font-size: 0.85rem; color: var(--gv-text-secondary); min-height: 1.2em; margin: 2px 0 0; font-family: monospace; }
		canvas { border: 1px solid var(--gv-border); border-radius: var(--gv-radius-sm); margin-top: 4px; width: 100%; height: 170px; cursor: crosshair; }
		h2 { margin-bottom: 4px; font-size: 1rem; }
		.chart-row { display: flex; gap: 16px; flex-wrap: wrap; }
		.chart-col { flex: 1; min-width: 260px; }
		.chart-col-label { font-size: 0.8rem; color: var(--gv-muted-foreground); margin: 6px 0 0; }
		.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.75rem; color: var(--gv-text-secondary); margin-top: 4px; }
		.legend-item { display: flex; align-items: center; gap: 4px; }
		.legend-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }

		.card { border: 1px solid var(--gv-border); border-radius: var(--gv-radius); background: var(--gv-surface); box-shadow: var(--gv-shadow-sm); padding: 16px; margin-bottom: 16px; }
		.card h3 { margin: 0 0 6px; }

		/* All Namespaces: each namespace's charts sit directly on the page,
		   unboxed, the same as the Metrics tab's — a divider is enough to
		   separate one namespace's section from the next. */
		.ns-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--gv-border); }
		.ns-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
		.ns-section h3 { margin: 0 0 6px; }

		/* Centered brand card for the pre-login screens. */
		.auth-card {
			max-width: 360px;
			background: var(--gv-surface);
			border: 1px solid var(--gv-border);
			border-radius: var(--gv-radius);
			box-shadow: var(--gv-shadow-md);
			padding: 24px;
			margin-top: 12px;
		}
		.auth-card h2 { margin-top: 0; }
		.auth-card input { display: block; width: 100%; margin-bottom: 10px; }
		.auth-card button { width: 100%; }
		.auth-card .range-label { margin-top: 10px; }
		.auth-card .range-label a { font-weight: 600; text-decoration: none; }
		.auth-card .range-label a:hover { text-decoration: underline; }

		.hidden { display: none !important; }
		.chart-col.mode-hidden { display: none; }
		.dashboard-layout { display: flex; gap: 28px; align-items: flex-start; }
		.sidebar { display: flex; flex-direction: column; gap: 16px; width: 180px; flex: none; border-right: 1px solid var(--gv-border); padding-right: 14px; position: sticky; top: 20px; }
		.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
		.sidebar-nav button { text-align: left; width: 100%; box-sizing: border-box; background: none; border: 1px solid transparent; border-radius: var(--gv-radius-sm); padding: 8px 10px; cursor: pointer; color: var(--gv-text-secondary); font-size: 1rem; font-weight: 500; }
		.sidebar-nav button:hover { background: var(--gv-purple-tint); }
		.sidebar-nav button.active { background: var(--gv-purple-tint); border-color: var(--gv-purple); color: var(--gv-deep-purple); font-weight: bold; }
		.sidebar-profile { border-top: 1px solid var(--gv-border); padding-top: 12px; font-size: 0.85rem; }
		.sidebar-username { font-weight: bold; word-break: break-all; }
		.sidebar-profile-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
		.sidebar-profile-actions button { font-size: 0.8rem; padding: 5px 8px; }
		.sidebar-profile #changePasswordPanel { margin-top: 8px; }
		.sidebar-profile #changePasswordPanel input { display: block; width: 100%; box-sizing: border-box; margin-bottom: 6px; font-size: 0.85rem; padding: 5px; }
		.sidebar-profile #changePasswordPanel button { font-size: 0.8rem; padding: 5px 8px; margin: 0 4px 4px 0; width: auto; }
		.main-content { flex: 1; min-width: 0; }
		@media (max-width: 720px) {
			.dashboard-layout { flex-direction: column; }
			.sidebar { width: 100%; flex-direction: column; border-right: none; border-bottom: 1px solid var(--gv-border); padding-right: 0; padding-bottom: 10px; position: static; }
			.sidebar-nav { flex-direction: row; flex-wrap: wrap; }
			.sidebar-nav button { width: auto; }
		}
		#podLogsOutput { background: var(--gv-dark-navy); color: #ddd; padding: 10px; border-radius: var(--gv-radius-sm); max-height: 500px; overflow: auto; font-size: 0.8rem; white-space: pre-wrap; word-break: break-all; }
		.env-band { margin-bottom: 24px; }
		.env-columns { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
		.env-column { flex: 1; min-width: 320px; }
		/* table-layout: fixed plus shared percentage widths keep the
		   App/Status/Restart columns aligned across every namespace's
		   card — with the default auto layout, each table sized its own
		   columns off only its own content, so cards next to each other
		   rarely lined up. */
		.service-status-table { width: 100%; table-layout: fixed; }
		.service-status-table th:nth-child(1), .service-status-table td:nth-child(1) { width: 45%; }
		.service-status-table th:nth-child(2), .service-status-table td:nth-child(2) { width: 35%; }
		.service-status-table th:nth-child(3), .service-status-table td:nth-child(3) { width: 20%; }
		.service-status-table td.pod-name { font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
		.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
		.status-dot.pod-status-running { background: var(--gv-green); }
		.status-dot.pod-status-completed { background: var(--gv-muted-foreground); }
		.status-dot.pod-status-other { background: var(--gv-red); }
		.error-text { color: var(--gv-red); }
		.success-text { color: var(--gv-green); }
		table.users-table { border-collapse: collapse; margin: 8px 0; width: 100%; }
		table.users-table th, table.users-table td { border: 1px solid var(--gv-border); padding: 6px 10px; text-align: left; font-size: 0.9rem; }
		table.users-table th { background: var(--gv-surface-muted); font-weight: 700; }
		table.users-table th.sortable-th { cursor: pointer; user-select: none; }
		table.users-table th.sortable-th:hover { background: var(--gv-purple-tint); }
		table.users-table tbody tr:hover { background: var(--gv-surface-muted); }
		table.users-table td button { padding: 5px 10px; font-size: 0.8rem; margin-right: 4px; }
.users-title-row { display: flex; align-items: center; justify-content: space-between; }
.users-title-row h2 { margin: 0; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(25, 25, 46, 0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-panel { background: var(--gv-surface); border-radius: var(--gv-radius); padding: 20px; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--gv-shadow-md); }
.modal-panel .row input, .modal-panel .row select { box-sizing: border-box; }
.modal-panel .row button { width: auto; }
.modal-panel.dc-modal { width: 520px; }
.modal-panel.dc-modal.dc-modal-wide { width: 900px; }
/* DNS & Cert tables: one table per group, so the columns are fixed (see the
   <colgroup> each table starts with) to line up from one group to the next. */
table.users-table.dc-fixed { table-layout: fixed; }
table.users-table.dc-fixed th, table.users-table.dc-fixed td { overflow-wrap: anywhere; vertical-align: top; }
table.users-table.dc-fixed td button { margin-bottom: 4px; }
		.db-console-output { background: var(--gv-dark-navy); color: #ddd; padding: 10px; border-radius: var(--gv-radius-sm); max-height: 420px; overflow: auto; font-size: 0.8rem; font-family: monospace; margin-top: 8px; }
		.db-console-output > div { white-space: pre-wrap; word-break: break-all; margin: 2px 0; }
		.db-console-output table { border-collapse: collapse; margin: 6px 0; color: #ddd; }
		.db-console-output th, .db-console-output td { border: 1px solid #444; padding: 3px 8px; text-align: left; }
		.db-console-echo { color: #7dd3fc; }
		.db-console-output .error-text { color: #f87171; }
		.db-console-output .db-console-notice { color: #fbbf24; }
		/* Script upload: a distinct sub-section under the console, stacked in
		   flow order (heading -> file -> summary -> preview -> Run). */
		.db-script-row { border-top: 1px solid var(--gv-border); margin-top: 16px; padding-top: 14px; }
		.db-script-row > * + * { margin-top: 8px; }
		.db-script-row #dbScriptFile { display: block; font-size: 0.85rem; }
		.db-script-row #dbScriptRunBtn { display: block; }
		.db-script-preview { background: var(--gv-dark-navy); color: #ddd; padding: 8px 10px; border-radius: var(--gv-radius-sm); max-height: 220px; overflow: auto; font-size: 0.78rem; font-family: monospace; white-space: pre; width: 100%; box-sizing: border-box; }
		.db-console-title-row { display: flex; align-items: center; justify-content: space-between; }
		.db-console-title-row h2 { margin: 0; }
		.db-console-input { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 0.9rem; line-height: 1.4; padding: 8px; resize: vertical; overflow: hidden; min-height: 2.6em; }
		#dbConsoleCard.db-console-fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; margin: 0; border-radius: 0; background: var(--gv-surface); overflow: auto; padding: 16px; box-sizing: border-box; }
		#dbConsoleCard.db-console-fullscreen .db-console-output { max-height: calc(100vh - 230px); }
