/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */

/**
 *  Default styles for xterm.js
 */

.xterm {
    cursor: text;
    position: relative;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

.xterm.focus,
.xterm:focus {
    outline: none;
}

.xterm .xterm-helpers {
    position: absolute;
    top: 0;
    /**
     * The z-index of the helpers must be higher than the canvases in order for
     * IMEs to appear on top.
     */
    z-index: 5;
}

.xterm .xterm-helper-textarea {
    padding: 0;
    border: 0;
    margin: 0;
    /* Move textarea out of the screen to the far left, so that the cursor is not visible */
    position: absolute;
    opacity: 0;
    left: -9999em;
    top: 0;
    width: 0;
    height: 0;
    z-index: -5;
    /** Prevent wrapping so the IME appears against the textarea at the correct position */
    white-space: nowrap;
    overflow: hidden;
    resize: none;
}

.xterm .composition-view {
    /* TODO: Composition position got messed up somewhere */
    background: #000;
    color: #FFF;
    display: none;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
}

.xterm .composition-view.active {
    display: block;
}

.xterm .xterm-viewport {
    /* On OS X this is required in order for the scroll bar to appear fully opaque */
    background-color: #000;
    overflow-y: scroll;
    cursor: default;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

.xterm .xterm-screen {
    position: relative;
}

.xterm .xterm-screen canvas {
    position: absolute;
    left: 0;
    top: 0;
}

.xterm-char-measure-element {
    display: inline-block;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -9999em;
    line-height: normal;
}

.xterm.enable-mouse-events {
    /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
    cursor: default;
}

.xterm.xterm-cursor-pointer,
.xterm .xterm-cursor-pointer {
    cursor: pointer;
}

.xterm.column-select.focus {
    /* Column selection mode */
    cursor: crosshair;
}

.xterm .xterm-accessibility:not(.debug),
.xterm .xterm-message {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    color: transparent;
    pointer-events: none;
}

.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: transparent;
}

.xterm .xterm-accessibility-tree {
  font-family: monospace;
  user-select: text;
  white-space: pre;
}

.xterm .xterm-accessibility-tree > div {
  transform-origin: left;
  width: fit-content;
}

.xterm .live-region {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.xterm-dim {
    /* Dim should not apply to background, so the opacity of the foreground color is applied
     * explicitly in the generated class and reset to 1 here */
    opacity: 1 !important;
}

.xterm-underline-1 { text-decoration: underline; }
.xterm-underline-2 { text-decoration: double underline; }
.xterm-underline-3 { text-decoration: wavy underline; }
.xterm-underline-4 { text-decoration: dotted underline; }
.xterm-underline-5 { text-decoration: dashed underline; }

.xterm-overline {
    text-decoration: overline;
}

.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }

.xterm-strikethrough {
    text-decoration: line-through;
}

.xterm-screen .xterm-decoration-container .xterm-decoration {
	z-index: 6;
	position: absolute;
}

.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
	z-index: 7;
}

.xterm-decoration-overview-ruler {
    z-index: 8;
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
}

.xterm-decoration-top {
    z-index: 2;
    position: relative;
}



/* Derived from vs/base/browser/ui/scrollbar/media/scrollbar.css */

/* xterm.js customization: Override xterm's cursor style */
.xterm .xterm-scrollable-element > .scrollbar {
    cursor: default;
}

/* Arrows */
.xterm .xterm-scrollable-element > .scrollbar > .scra {
	cursor: pointer;
	font-size: 11px !important;
}

.xterm .xterm-scrollable-element > .visible {
	opacity: 1;

	/* Background rule added for IE9 - to allow clicks on dom node */
	background:rgba(0,0,0,0);

	transition: opacity 100ms linear;
	/* In front of peek view */
	z-index: 11;
}
.xterm .xterm-scrollable-element > .invisible {
	opacity: 0;
	pointer-events: none;
}
.xterm .xterm-scrollable-element > .invisible.fade {
	transition: opacity 800ms linear;
}

/* Scrollable Content Inset Shadow */
.xterm .xterm-scrollable-element > .shadow {
	position: absolute;
	display: none;
}
.xterm .xterm-scrollable-element > .shadow.top {
	display: block;
	top: 0;
	left: 3px;
	height: 3px;
	width: 100%;
	box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.left {
	display: block;
	top: 3px;
	left: 0;
	height: 100%;
	width: 3px;
	box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.top-left-corner {
	display: block;
	top: 0;
	left: 0;
	height: 3px;
	width: 3px;
}
.xterm .xterm-scrollable-element > .shadow.top.left {
	box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}
/*
 * Cascade manifest.
 *
 * Keep imports ordered from foundations to the most specific feature
 * overrides. Feature styles live beside their domain instead of growing a
 * single global stylesheet.
 */
:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101715;
  color: #edf3f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

  --ink: #edf3f0;
  --muted: #9aaba5;
  --quiet: #71837d;
  --panel: #182220;
  --surface: #101715;
  --surface-strong: #24312e;
  --line: #30413d;
  --line-strong: #526760;
  --rail: #0b211f;
  --rail-soft: #1c4540;
  --rail-line: #294640;
  --accent: #4db9a7;
  --accent-strong: #78d0c1;
  --accent-soft: #173a35;
  --amber: #e0ad52;
  --blue: #67a5cf;
  --danger: #df7474;
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.26);
  --shadow-tight: 0 8px 22px rgba(0, 0, 0, 0.20);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(125, 171, 160, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 171, 160, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.center-screen {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  gap: 12px;
  color: var(--muted);
}

.spin {
  animation: spin 0.8s linear infinite;
}

.loading-orb {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  line-height: 0;
}

.loading-orb canvas {
  display: block;
}

.loading-orb-20 {
  width: 20px;
  height: 20px;
}

.loading-orb-64 {
  width: 64px;
  height: 64px;
}

.auth-boot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #c9d8d3;
  background: #101715;
}

.auth-boot-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #1b7880;
  border: 1px solid rgba(112, 211, 195, 0.34);
  border-radius: 4px 11px 4px 4px;
}

.auth-boot > div:nth-child(2) {
  display: grid;
  gap: 2px;
}

.auth-boot strong {
  color: #ffffff;
  font-size: 14px;
}

.auth-boot span {
  color: #879b95;
  font-size: 11px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-kicker,
.viewer-eyebrow {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #1b7880;
  border: 1px solid rgba(112, 211, 195, 0.34);
  border-radius: 4px 10px 4px 4px;
  box-shadow: 6px 6px 0 rgba(92, 181, 167, 0.12);
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.app-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width, 232px) minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 16px 12px;
  color: #edf5f2;
  background: var(--rail);
  border-right: 1px solid var(--rail-line);
  box-shadow: 8px 0 28px rgba(14, 30, 27, 0.08);
}

.sidebar::after {
  position: absolute;
  right: -12px;
  bottom: 118px;
  display: none;
  content: "";
  color: rgba(117, 204, 190, 0.045);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 126px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-90deg);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--rail-line);
}

.sidebar-brand div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-brand span,
.sidebar-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-brand span {
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
}

.sidebar-brand small {
  color: #a9bfba;
  font-size: 11px;
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #b9cbc7;
  font-weight: 800;
  font-size: 14px;
}

.nav-list a.active,
.nav-list a:hover {
  color: #ffffff;
  background: var(--rail-soft);
  border-color: #345650;
  box-shadow: inset 3px 0 0 #66c6b7;
}


.sidebar-user {
  margin-top: auto;
  display: grid;
  align-items: stretch;
  gap: 8px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--rail-line);
}

.sidebar-user div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sidebar-user strong,
.sidebar-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  color: #ffffff;
  font-size: 14px;
}

.sidebar-user span {
  color: #a9bfba;
  font-size: 12px;
}

.content {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  overflow: hidden;
}

.public-content::after {
  position: absolute;
  right: 34px;
  bottom: -54px;
  z-index: 0;
  display: none;
  content: "";
  color: rgba(19, 59, 54, 0.025);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(170px, 20vw, 340px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 14px;
}

.dashboard-workspace {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: clamp(14px, 1.4vw, 22px);
  overflow: hidden;
}

.admin-workspace {
  min-height: 100%;
  align-content: start;
  overflow: auto;
  padding-right: 2px;
}

.public-workspace {
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: visible;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.page-header h1,
.page-header p {
  margin: 0;
}

.page-header h1 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-header p,
.muted {
  color: var(--muted);
}

.compact-header {
  min-height: 38px;
  padding: 0 2px;
}

.compact-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.compact-title h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
}

.compact-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 900;
}

.primary-button {
  color: #ffffff;
  background: #176f8f;
  box-shadow: 0 10px 24px rgba(16, 140, 125, 0.24);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.primary-button:hover {
  background: #125b77;
}

.secondary-button,
.icon-button {
  color: #24312e;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.secondary-button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.sidebar .icon-button {
  color: #eff8f5;
  background: #203d39;
  border-color: #34534e;
}

.icon-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.secondary-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button.is-disabled {
  pointer-events: none;
}

.icon-button {
  width: 40px;
  padding: 0;
  flex: 0 0 auto;
}

.icon-button.danger {
  color: var(--danger);
}

.icon-button.danger:hover {
  border-color: #e5a8a8;
  background: #fff5f5;
}

.viewer-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  box-shadow: var(--shadow-soft);
}

.viewer-toolbar {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 10px 6px 12px;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
  background: #193633;
}

.viewer-toolbar div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.viewer-toolbar strong {
  color: #ffffff;
  font-size: 15px;
}

.viewer-toolbar span:not(.viewer-eyebrow) {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-eyebrow {
  flex: 0 0 auto;
  color: #75d0c1;
}

.service-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.tabs button,
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4f5d59;
  font-weight: 900;
}

.tabs button.active,
.segmented button.active {
  background: var(--accent-strong);
  color: #ffffff;
}

.admin-page-header {
  padding: 6px 2px 7px 14px;
  border-left: 3px solid var(--accent);
}

.admin-header-actions,
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-summary span {
  padding: 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-summary span + span {
  border-left: 1px solid var(--line);
}

.admin-summary strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: 14px;
}

.admin-tabs {
  width: 100%;
  gap: 12px;
  padding: 0;
  color: #d8e7e3;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-tabs button {
  min-height: 94px;
  border-radius: 8px;
  color: #b9ccc7;
}

.admin-section-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.admin-section-nav button {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  text-align: left;
  background: #14231f;
  border: 1px solid #284a45;
  box-shadow: 0 10px 24px rgba(9, 24, 21, 0.16);
}

.admin-section-nav button:hover {
  color: #ffffff;
  background: #19332e;
  border-color: #3c6d64;
  transform: translateY(-1px);
}

.admin-section-nav button.active {
  color: #f7fffc;
  background: linear-gradient(135deg, #183d36, #102923);
  border-color: #68cabb;
  box-shadow: 0 16px 34px rgba(27, 164, 143, 0.16);
}

.admin-tab-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #8bdaca;
  background: #193a35;
  border: 1px solid #2d5a52;
  border-radius: 8px;
  font-style: normal;
}

.admin-section-nav button.active .admin-tab-icon {
  color: #10201d;
  background: #7bd8ca;
  border-color: #7bd8ca;
}

.admin-tab-copy {
  min-width: 0;
  display: grid !important;
  align-content: center;
  gap: 5px !important;
  height: auto !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
}

.admin-tab-copy strong,
.admin-tab-copy small {
  min-width: 0;
  overflow: hidden;
}

.admin-tab-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tab-copy strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.1;
}

.admin-tab-copy small {
  color: #9fb4ae;
  font-size: 11px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.admin-section-nav button.active .admin-tab-copy small {
  color: #bdd8d1;
}

.admin-tab-count,
.admin-tab-next {
  justify-self: end;
}

.admin-tab-count {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  color: #8bdaca;
  background: #193a35;
  border: 1px solid #2d5a52;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-section-nav button.active .admin-tab-count {
  color: #10201d;
  background: #7bd8ca;
  border-color: #7bd8ca;
}

.admin-tab-next {
  color: #8bdaca;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #d9fff5;
  background: linear-gradient(135deg, rgba(16, 64, 53, 0.98), rgba(11, 34, 30, 0.98));
  border: 1px solid #52bfae;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(122, 216, 202, 0.08) inset;
  font-weight: 900;
  pointer-events: none;
  animation: admin-toast-in 180ms ease-out;
}

.admin-toast svg {
  flex: 0 0 auto;
  color: #7bd8ca;
}

@keyframes admin-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid;
  font-weight: 800;
}

.notice.success {
  color: #14532d;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.notice.error,
.error-box {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fecaca;
}

.admin-panel,
.empty-state {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-tight);
}

.admin-panel {
  min-width: 0;
  overflow: hidden;
  border-top: 3px solid #1b615a;
}

.admin-panel-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f5f8f6;
}

.admin-panel-header h2,
.admin-panel-header p,
.admin-form p {
  margin: 0;
}

.admin-panel-header h2 {
  color: var(--ink);
  font-size: 18px;
}

.admin-panel-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.search-field {
  width: min(220px, 42vw);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--quiet);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 140, 125, 0.12);
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-heading > div,
.form-heading span + div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.form-heading small,
.toggle-row small {
  color: var(--muted);
  font-size: 12px;
}

.form-icon,
.entity-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #d5ebe5;
  border-radius: 3px;
}

.entity-icon.large {
  width: 40px;
  height: 40px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.service-form-grid,
.user-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-span-full {
  grid-column: 1 / -1;
}

.form-span-2 {
  grid-column: span 2;
}

.admin-form label,
.edit-row label,
.role-field {
  display: grid;
  gap: 6px;
  color: #40504b;
  font-size: 12px;
  font-weight: 900;
}

.admin-form label > small {
  display: inline;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.edit-row input,
.edit-row textarea {
  width: 100%;
  border: 1px solid #c9d6d1;
  border-radius: 4px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
}

.admin-form input:focus,
.admin-form textarea:focus,
.edit-row input:focus,
.edit-row textarea:focus,
.role-select:focus {
  outline: 3px solid rgba(16, 140, 125, 0.16);
  border-color: var(--accent);
}

.admin-form textarea,
.edit-row textarea {
  resize: vertical;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toggle-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-row > span {
  display: grid;
  gap: 1px;
}

.toggle-row input {
  appearance: none;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #c9d2ce;
  transition: background 140ms ease;
}

.toggle-row input::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(30, 42, 37, 0.22);
  transition: transform 140ms ease;
}

.toggle-row input:checked {
  background: var(--accent);
}

.toggle-row input:checked::after {
  transform: translateX(16px);
}

.compact-toggle small {
  display: none;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-strong);
  border-radius: 4px;
}

.role-field .segmented {
  min-height: 36px;
}

.role-field .segmented button {
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  text-transform: capitalize;
  font-size: 12px;
}

.identity-admin-stack {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.identity-switch {
  justify-self: start;
}

.identity-switch button {
  min-width: 128px;
  justify-content: center;
}

.identity-switch button span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.identity-switch button:not(.active) span {
  color: var(--muted);
  background: rgba(16, 37, 31, 0.08);
}

.admin-table {
  min-width: 0;
}

.admin-table-head,
.admin-data-row {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.admin-table-head {
  min-height: 38px;
  color: var(--muted);
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-data-row {
  min-height: 68px;
  border-bottom: 1px solid #e9eeeb;
  background: #ffffff;
}

.admin-data-row:last-child {
  border-bottom: 0;
}

.admin-data-row:hover {
  background: #fbfdfc;
}

.service-admin-columns {
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.6fr) minmax(180px, 0.9fr) minmax(120px, 0.6fr) 80px 172px;
}

.user-admin-columns {
  grid-template-columns: minmax(250px, 1.3fr) 82px minmax(130px, 0.65fr) 140px 96px;
}

.align-right {
  text-align: right;
}

.entity-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.entity-cell > span:not(.entity-icon):not(.user-avatar),
.access-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.entity-cell strong,
.entity-cell small,
.access-cell strong,
.access-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-cell strong,
.access-cell strong {
  color: var(--ink);
  font-size: 13px;
}

.entity-cell small,
.access-cell small {
  color: var(--muted);
  font-size: 11px;
}

.destination-cell {
  overflow: hidden;
  color: #31423d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-on,
.status-off,
.status-neutral {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.status-on {
  color: #14532d;
  background: #dcfce7;
}

.status-off {
  color: #854d0e;
  background: #fff3cc;
}

.status-neutral {
  color: #263548;
  background: #e9eef6;
}

.current-badge {
  padding: 3px 6px;
  color: var(--blue);
  background: #e9f1fa;
  border-radius: 5px;
  font-size: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #315e78;
  font-size: 10px;
  font-weight: 900;
}

.user-avatar.small {
  width: 30px;
  height: 30px;
}

.action-group {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.role-select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #c9d6d1;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.edit-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(16, 140, 125, 0.72);
  background: #fbfefd;
  box-shadow: inset 3px 0 0 var(--accent);
}

.edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-empty {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

.admin-empty.large {
  min-height: 280px;
}

.access-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.access-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot,
.policy-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.legend-dot.individual,
.policy-indicator.individual {
  background: var(--blue);
}

.legend-dot.global,
.policy-indicator.global {
  background: var(--accent);
}

.access-layout {
  min-height: 430px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.access-service-list {
  border-right: 1px solid var(--line);
  background: #f8faf9;
}

.access-list-title {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-list-title b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: var(--surface-strong);
}

.access-service-list > button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 7px 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e8eeea;
}

.access-service-list > button:hover {
  background: #ffffff;
}

.access-service-list > button.active {
  color: var(--accent-strong);
  background: #ffffff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.access-service-list > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.access-service-list strong,
.access-service-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-service-list strong {
  font-size: 13px;
}

.access-service-list small {
  color: var(--muted);
  font-size: 11px;
}

.access-detail {
  min-width: 0;
  background: #ffffff;
}

.access-detail-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.access-mode {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.access-mode button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #50605a;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.access-mode button.active {
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(9, 104, 93, 0.18);
}

.global-access-state {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.global-access-state > div {
  display: grid;
  gap: 4px;
}

.global-access-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.global-access-state > b {
  padding: 5px 9px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 12px;
}

.global-access-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #cce9e2;
  border-radius: 50%;
}

.individual-access {
  min-width: 0;
}

.individual-access-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
}

.individual-access-toolbar > div {
  display: grid;
  gap: 2px;
}

.individual-access-toolbar strong {
  font-size: 13px;
}

.individual-access-toolbar span {
  color: var(--muted);
  font-size: 11px;
}

.access-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
}

.access-user-row {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 18px 30px minmax(0, 1fr) auto 150px auto;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-right: 1px solid #e9eeeb;
  border-bottom: 1px solid #e9eeeb;
  cursor: pointer;
}

.access-user-row:hover {
  background: #fbfdfc;
}

.access-user-row > input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.access-user-row > span:nth-of-type(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.access-user-row strong,
.access-user-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-row strong {
  font-size: 13px;
}

.access-user-row small {
  color: var(--muted);
  font-size: 11px;
}

.access-user-row.disabled-user {
  background: #fafafa;
}

.inherited-label {
  color: var(--blue) !important;
  font-weight: 900;
}

.admin-tabs {
  max-width: 100%;
  overflow-x: visible;
  scrollbar-width: thin;
}

.admin-form select,
.edit-row select,
.management-modal input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c9d6d1;
  border-radius: 8px;
  font-size: 13px;
}

.machine-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.machine-admin-columns {
  grid-template-columns: minmax(190px, 1fr) minmax(130px, 0.7fr) minmax(120px, 0.65fr) 82px 78px 88px;
}

.group-admin-columns {
  grid-template-columns: minmax(240px, 1fr) 90px 90px 120px 80px 88px;
}

.health-cell {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.health-cell b,
.health-online,
.health-offline,
.health-unknown {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  text-transform: capitalize;
}

.health-online {
  color: #12634a;
  background: #ddf8e8;
}

.health-offline {
  color: #991b1b;
  background: #fee2e2;
}

.health-unknown {
  color: #475569;
  background: #e9eef6;
}

.health-cell small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.expiry-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
}

.expiry-field input {
  min-width: 0;
  width: 126px;
  height: 32px;
  padding: 0 5px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

.expiry-field input:disabled {
  color: var(--quiet);
  background: #f2f4f3;
}

.expiry-field.expired,
.expiry-field.expired input {
  color: var(--danger);
  border-color: #e8b3b3;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #40504b;
  font-size: 12px;
  font-weight: 800;
}

.check-row input,
.selection-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(19, 29, 26, 0.54);
}

.management-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(15, 24, 21, 0.28);
}

.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 20, 17, 0.58);
  backdrop-filter: blur(6px);
}

.contact-modal {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #d1ddd8;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(15, 24, 21, 0.32);
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #30403b;
  background: #f4f7f5;
  border: 1px solid #d1ddd8;
  border-radius: 4px;
}

.contact-modal h2 {
  max-width: 420px;
  margin: 0;
  color: #17211f;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.04;
}

.contact-modal p {
  max-width: 58ch;
  margin: 0;
  color: #5c6d67;
  font-size: 15px;
  line-height: 1.55;
}

.contact-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-modal-card,
.contact-modal-email {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px;
  background: #f7faf8;
  border: 1px solid #dbe6e1;
  border-radius: 6px;
}

.contact-modal-card strong,
.contact-modal-email strong {
  color: #17211f;
  font-size: 14px;
}

.contact-modal-card span,
.contact-modal-email span {
  color: #66766f;
  font-size: 12px;
  line-height: 1.45;
}

.contact-modal-email strong {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.contact-modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 620px) {
  .contact-modal {
    padding: 22px;
  }

  .contact-modal-grid {
    grid-template-columns: 1fr;
  }

  .contact-modal-actions .primary-button,
  .contact-modal-actions .secondary-button {
    width: 100%;
  }
}

.management-modal > header,
.management-modal > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.management-modal > header {
  border-bottom: 1px solid var(--line);
}

.management-modal > footer {
  border-top: 1px solid var(--line);
  background: #f8faf9;
}

.modal-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-section label {
  display: grid;
  gap: 6px;
  color: #40504b;
  font-size: 12px;
  font-weight: 900;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
}

.password-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.password-reset-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.65fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.password-reset-field {
  min-width: 0;
}

.password-reset-check {
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d7e2de;
  border-radius: 8px;
  background: #ffffff;
}

.password-reset-check span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.password-reset-check strong {
  color: var(--ink);
  font-size: 12px;
}

.password-reset-check small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.password-field {
  position: relative;
  min-width: 0;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-visibility-button {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.password-visibility-button:hover,
.password-visibility-button:focus-visible {
  color: var(--accent-strong);
  background: #eaf7f3;
  border-color: #b9ddd5;
}

.password-visibility-button:focus-visible {
  outline: 3px solid rgba(16, 140, 125, 0.16);
}

.danger-text {
  color: var(--danger);
}

.group-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-assignment-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.group-assignment-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.group-assignment-grid legend {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.group-assignment-grid legend b {
  padding: 2px 6px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 5px;
}

.group-assignment-grid fieldset > div {
  max-height: 210px;
  overflow: auto;
}

.group-picker-card {
  min-width: 0;
  min-height: 252px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.group-picker-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: #f6faf8;
  border-bottom: 1px solid var(--line);
}

.group-picker-header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.group-picker-header b {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 11px;
}

.group-picker-list {
  min-height: 0;
  max-height: 250px;
  overflow: auto;
  padding: 8px;
}

.group-picker-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.selection-row {
  min-height: 45px;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px !important;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.selection-row + .selection-row {
  margin-top: 4px;
}

.selection-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.selection-row strong,
.selection-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-row small {
  color: var(--muted);
  font-size: 10px;
}

.audit-list {
  background: #ffffff;
}

.audit-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(220px, 1fr) minmax(100px, 0.4fr) 150px;
  align-items: center;
  gap: 11px;
  padding: 9px 16px;
  border-bottom: 1px solid #e9eeeb;
}

.audit-row:last-child {
  border-bottom: 0;
}

.audit-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #edf3f8;
  border-radius: 8px;
}

.audit-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.audit-row strong {
  font-size: 12px;
  text-transform: capitalize;
}

.audit-row small,
.audit-actor,
.audit-row time {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-actor {
  color: var(--ink);
  font-weight: 800;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 24px;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow: visible;
    padding: 14px;
  }

  .sidebar-brand {
    max-width: 260px;
  }

  .nav-list {
    display: flex;
  }

  .sidebar-user {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary span:last-child {
    display: none;
  }

  .service-admin-columns {
    grid-template-columns: minmax(210px, 1.15fr) minmax(120px, 0.6fr) minmax(120px, 0.65fr) 80px 172px;
  }

  .service-admin-columns > :nth-child(3) {
    display: none;
  }

  .access-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .service-row,
  .user-row {
    grid-template-columns: 1fr;
  }

  .status-on,
  .status-off,
  .status-neutral,
  .action-group {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .content,
  .sidebar {
    padding: 14px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions,
  .panel-actions,
  .admin-panel-header,
  .access-detail-header,
  .individual-access-toolbar,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-summary {
    width: 100%;
  }

  .admin-summary span {
    flex: 1;
    text-align: center;
  }

  .admin-header-actions > .icon-button {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .admin-panel-header {
    min-height: 0;
  }

  .panel-actions,
  .search-field {
    width: 100%;
  }

  .service-form-grid,
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2,
  .form-span-full {
    grid-column: 1;
  }

  .admin-table-head {
    display: none;
  }

  .admin-data-row.service-admin-columns,
  .admin-data-row.user-admin-columns,
  .admin-data-row.machine-admin-columns,
  .admin-data-row.group-admin-columns {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 13px 14px;
  }

  .service-admin-columns > :nth-child(3) {
    display: block;
  }

  .machine-form-grid,
  .group-form-grid,
  .group-assignment-grid {
    grid-template-columns: 1fr;
  }

  .machine-form-grid .form-span-2 {
    grid-column: 1;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .password-reset-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .management-modal > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .access-user-row {
    grid-template-columns: 18px 30px minmax(0, 1fr) auto;
  }

  .expiry-field,
  .inherited-label {
    grid-column: 3 / -1;
  }

  .audit-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .audit-row time {
    grid-column: 2 / -1;
  }

  .admin-data-row.service-admin-columns .destination-cell {
    grid-column: 1 / -1;
  }

  .admin-data-row.service-admin-columns .action-group,
  .admin-data-row.user-admin-columns .action-group {
    justify-self: end;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .access-service-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .access-list-title {
    display: none;
  }

  .access-service-list > button {
    min-width: 220px;
    border-right: 1px solid #e8eeea;
    border-bottom: 0;
  }

  .access-service-list > button.active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .access-mode {
    width: 100%;
  }

  .access-mode button {
    flex: 1;
    justify-content: center;
  }

  .access-user-list {
    grid-template-columns: 1fr;
  }

  .global-access-state {
    min-height: 220px;
    flex-direction: column;
    text-align: center;
  }

  .compact-header {
    align-items: center;
    flex-direction: row;
  }

  .sidebar-brand span,
  .nav-list a {
    font-size: 14px;
  }

  .sidebar-brand small,
  .sidebar-user {
    display: none;
  }

  .nav-list {
    margin-left: auto;
  }

  .nav-list a {
    min-height: 40px;
    padding: 0 10px;
  }

  .public-content::after,
  .sidebar::after {
    display: none;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .admin-section-nav {
    grid-template-columns: 1fr;
  }


  .viewer-panel {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .viewer-toolbar {
    align-items: flex-start;
  }
}

.app-shell:has(.datapulse-sidebar.is-collapsed) {
  --sidebar-width: 78px;
}

.datapulse-sidebar {
  gap: 14px;
  padding: 14px 10px;
  transition: width 160ms ease, padding 160ms ease;
}

.datapulse-sidebar .sidebar-brand {
  position: relative;
  min-height: 54px;
  padding: 6px 4px 14px;
}

.sidebar-brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-collapse-button {
  position: absolute;
  top: 6px;
  right: 4px;
  margin-left: 0;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #bfe1da;
  background: #10251f;
  border: 1px solid #7ccfc3;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(3, 10, 8, 0.35);
}

.sidebar-collapse-button:hover {
  color: #f4fffc;
  background: #183a33;
  border-color: #63b4a8;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group + .nav-group {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(117, 204, 190, 0.16);
}

.nav-group-label {
  padding: 0 10px 3px;
  color: #6fd8ca;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-item-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.nav-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datapulse-sidebar.is-collapsed {
  align-items: center;
  padding-inline: 10px;
}

.datapulse-sidebar.is-collapsed .sidebar-brand {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 13px;
  width: 100%;
  min-height: 54px;
  padding: 6px 0 14px;
}

.datapulse-sidebar.is-collapsed .sidebar-brand-copy,
.datapulse-sidebar.is-collapsed .nav-item-label,
.datapulse-sidebar.is-collapsed .nav-group-label,
.datapulse-sidebar.is-collapsed .sidebar-profile-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.datapulse-sidebar.is-collapsed .sidebar-collapse-button {
  position: absolute;
  width: 32px;
  height: 32px;
  right: 4px;
  z-index: 2;
  border-color: #41645e;
  background: #0b211c;
}

.datapulse-sidebar.is-collapsed .nav-list,
.datapulse-sidebar.is-collapsed .nav-group,
.datapulse-sidebar.is-collapsed .sidebar-user,
.datapulse-sidebar.is-collapsed .sidebar-user-actions {
  width: 100%;
}

.datapulse-sidebar.is-collapsed .nav-list a {
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
}

.datapulse-sidebar.is-collapsed .nav-list a.active,
.datapulse-sidebar.is-collapsed .nav-list a:hover {
  box-shadow: inset 0 -3px 0 #66c6b7;
}

.datapulse-sidebar.is-collapsed .sidebar-user {
  justify-items: center;
  gap: 10px;
  padding: 14px 0 0;
}

.datapulse-sidebar.is-collapsed .sidebar-profile-button {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
}

.datapulse-sidebar.is-collapsed .sidebar-profile-button:hover,
.datapulse-sidebar.is-collapsed .sidebar-profile-button:focus-visible {
  border-color: #345650;
  background: #163e38;
  box-shadow: inset 0 -3px 0 #66c6b7;
}

.datapulse-sidebar.is-collapsed .sidebar-user-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.datapulse-sidebar.is-collapsed .sidebar-user-actions .icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border-radius: 7px;
}

@media (max-width: 1040px) {
  .app-shell:has(.datapulse-sidebar.is-collapsed) {
    --sidebar-width: 100%;
  }

  .datapulse-sidebar.is-collapsed {
    align-items: center;
  }

  .datapulse-sidebar.is-collapsed .sidebar-brand-copy,
  .datapulse-sidebar.is-collapsed .nav-item-label,
  .datapulse-sidebar.is-collapsed .nav-group-label,
  .datapulse-sidebar.is-collapsed .sidebar-profile-copy {
    position: static;
    width: auto;
    height: auto;
    overflow: hidden;
    clip: auto;
  }

  .datapulse-sidebar.is-collapsed .sidebar-collapse-button {
    position: static;
    width: 30px;
    height: 30px;
  }

  .datapulse-sidebar.is-collapsed .nav-list a {
    justify-content: flex-start;
    padding: 0 12px;
  }
}
/* Dark control-room theme */
.content {
  background: rgba(16, 23, 21, 0.72);
}

.public-content::after {
  color: rgba(112, 202, 187, 0.028);
}

.public-workspace {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.public-dashboard-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.public-inline-state {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 3px;
  color: var(--muted);
  font-size: 13px;
}

.public-inline-state > span {
  display: grid;
  gap: 3px;
}

.public-inline-state strong {
  color: var(--ink);
  font-size: 13px;
}

.public-inline-state small {
  color: var(--muted);
  font-size: 12px;
}


.page-header p,
.muted {
  color: var(--muted);
}

.secondary-button,
.icon-button {
  color: #dce7e3;
  background: #182321;
  border-color: var(--line);
  box-shadow: none;
}

.secondary-button:hover,
.icon-button:hover {
  color: #ffffff;
  border-color: var(--line-strong);
  background: #22302d;
}

.viewer-panel,
.admin-panel,
.empty-state {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}


.service-icon,
.form-icon,
.entity-icon {
  color: #83d5c7;
  background: #183b35;
  border-color: #28564e;
}

.service-status.online,
.health-online,
.status-on {
  color: #82e0b4;
  background: #173d30;
}

.service-status.offline,
.health-offline {
  color: #f29b9b;
  background: #482525;
}

.service-status.unknown,
.health-unknown,
.status-neutral {
  color: #b7c9d8;
  background: #293642;
}

.admin-summary {
  background: #17211f;
  border-color: var(--line);
}

.admin-summary span + span {
  border-color: var(--line);
}

.admin-summary strong,
.compact-title h1,
.admin-panel-header h2,
.entity-cell strong,
.access-cell strong,
.user-avatar + span strong {
  color: var(--ink);
}

.admin-tabs {
  background: transparent;
  border-color: transparent;
}

.admin-panel {
  border-top-color: #54b9a9;
}

.admin-panel-header,
.admin-form,
.admin-table-head,
.individual-access-toolbar,
.management-modal > footer {
  color: var(--ink);
  background: #141e1c;
  border-color: var(--line);
}

.admin-table-head {
  color: #8fa49e;
}

.admin-data-row,
.audit-list,
.access-detail,
.group-assignment-grid fieldset,
.group-picker-card,
.management-modal {
  color: var(--ink);
  background: #182321;
  border-color: var(--line);
}

.admin-data-row,
.audit-row,
.selection-row,
.group-assignment-grid legend,
.group-assignment-grid fieldset,
.group-picker-card,
.group-picker-header,
.access-detail-header,
.individual-access-toolbar {
  border-color: #293936;
}

.admin-data-row:hover,
.audit-row:hover,
.selection-row:hover,
.access-user-row:hover {
  background: #1d2b28;
}

.group-picker-header {
  color: #eaf3f0;
  background: #14231f;
}

.group-picker-header b {
  color: #8bdaca;
  background: #193a35;
}

.group-picker-list .selection-row {
  background: transparent;
}

.group-picker-list .selection-row:hover {
  border-color: #314d46;
}

.group-picker-empty {
  color: #8ea29c;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.edit-row input,
.edit-row textarea,
.edit-row select,
.management-modal input,
.role-select,
.expiry-field input,
.search-field {
  color: var(--ink);
  background: #101817;
  border-color: #3a4d48;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder,
.search-field input::placeholder {
  color: #667a74;
}

.admin-form label,
.edit-row label,
.role-field,
.check-row {
  color: #c3d1cd;
}

.password-reset-card {
  background: #14201e;
  border-color: #2b3d39;
}

.password-reset-check {
  background: #101817;
  border-color: #3a4d48;
}

.password-reset-check strong {
  color: #edf3f0;
}

.password-reset-check small {
  color: #8ea29c;
}

.password-visibility-button {
  color: #8ea29c;
}

.password-visibility-button:hover,
.password-visibility-button:focus-visible {
  color: #78d0c1;
  background: #18332f;
  border-color: #3f625b;
}

.destination-cell {
  color: #b5c7c1;
}

.status-off {
  color: #f1c77a;
  background: #44351d;
}

.expiry-field input:disabled {
  color: #71817c;
  background: #141c1b;
}

.search-field input {
  color: var(--ink);
}

.segmented,
.access-mode {
  background: #101817;
  border-color: var(--line);
}

.tabs button,
.segmented button,
.access-mode button {
  color: #afc1bc;
}

.tabs button.active,
.segmented button.active,
.access-mode button.active {
  color: #10201d;
  background: #60c3b2;
}

.edit-row {
  background: #172824;
}

.access-service-list {
  background: #121c1a;
  border-color: var(--line);
}

.access-service-list > button {
  color: var(--ink);
  border-color: #293936;
}

.access-service-list > button:hover,
.access-service-list > button.active {
  background: #1b2926;
}

.access-user-row {
  border-color: #293936;
}

.access-user-row.disabled-user {
  background: #141b1a;
  opacity: 0.64;
}

.global-access-state > b,
.group-assignment-grid legend b,
.group-picker-header b {
  color: #8bdaca;
  background: #193a35;
}

.global-access-icon {
  color: #79d2c2;
  background: #173a35;
  border-color: #2b5d54;
}

.user-avatar {
  color: #f5f8f6;
  background: #386b79;
}

.current-badge {
  color: #a9d6f2;
  background: #203442;
}

.modal-backdrop {
  background: rgba(3, 9, 8, 0.76);
}

.notice.success {
  color: #a1e7c2;
  background: #153528;
  border-color: #2b684d;
}

.notice.error,
.error-box {
  color: #f2abab;
  background: #3a2020;
  border-color: #724040;
}

.audit-action {
  color: #a8d1ed;
  background: #213542;
}

@media (max-width: 700px) {
  .public-entry-stage {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .public-entry-copy {
    min-height: 330px;
    padding: 42px 26px;
  }

  .public-entry-copy h2 {
    font-size: 32px;
  }

  .public-entry-mark {
    min-height: 190px;
    border-top: 1px solid rgba(112, 202, 187, 0.18);
    border-left: 0;
  }

  .public-entry-mark::before {
    inset: 24px;
  }
}
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(2 12 10 / 76%);
  backdrop-filter: blur(6px);
}

.admin-modal {
  display: flex;
  width: min(100%, 720px);
  max-height: min(90vh, 900px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10231f;
  box-shadow: 0 28px 90px rgb(0 0 0 / 48%);
}

.admin-modal-large {
  width: min(100%, 920px);
}

.admin-modal-wide {
  width: min(100%, 1180px);
}

.admin-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #17332d;
}

.admin-modal-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.admin-modal-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #337468;
  border-radius: 9px;
  color: #8de2d3;
  background: #1c453d;
}

.admin-modal-heading h2,
.admin-modal-heading p {
  margin: 0;
}

.admin-modal-heading h2 {
  color: #f4f8f7;
  font-size: 1.05rem;
}

.admin-modal-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

.admin-modal-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
}

.admin-modal-body > .admin-form {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.admin-modal .resource-create-form {
  display: grid;
  gap: 22px;
}

.admin-modal .resource-create-form .service-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px 12px;
}

.admin-modal .resource-create-form label {
  min-width: 0;
  color: #bfe1da;
}

.admin-modal .resource-create-form input,
.admin-modal .resource-create-form select,
.admin-modal .resource-create-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: #f2fffb;
  border: 1px solid #345a52;
  border-radius: 7px;
  background: #0b1a17;
  font: inherit;
}

.admin-modal .resource-create-form textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-modal .resource-create-form input:focus,
.admin-modal .resource-create-form select:focus,
.admin-modal .resource-create-form textarea:focus {
  outline: 2px solid rgb(120 208 193 / 24%);
  border-color: #78d0c1;
}

.admin-modal .resource-create-form .service-active-field {
  display: grid;
  align-self: start;
  gap: 6px;
}

.admin-modal .resource-create-form .service-active-control {
  display: flex;
  width: fit-content;
  min-width: min(250px, 100%);
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  color: #e9fffb;
  border: 1px solid #345a52;
  border-radius: 7px;
  background: linear-gradient(180deg, rgb(18 47 40 / 92%), rgb(13 32 28 / 96%));
}

.admin-modal .resource-create-form .service-active-control > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.admin-modal .resource-create-form .service-active-control strong,
.admin-modal .resource-create-form .service-active-control small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-modal .resource-create-form .service-active-control strong {
  font-size: 12px;
  line-height: 1.1;
}

.admin-modal .resource-create-form .service-active-control small {
  color: #9dc2ba;
  font-size: 10px;
  font-weight: 700;
}

.admin-modal .resource-create-form .service-active-control input {
  appearance: none;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 38px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #345a52;
  cursor: pointer;
  transition: background 140ms ease;
}

.admin-modal .resource-create-form .service-active-control input::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
  transition: transform 140ms ease;
}

.admin-modal .resource-create-form .service-active-control input:checked {
  background: #6dccbd;
}

.admin-modal .resource-create-form .service-active-control input:checked::after {
  transform: translateX(16px);
}

.admin-modal .resource-create-form .resource-create-footer {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.admin-modal .library-resource-create-form .service-active-field {
  grid-column: 3;
  grid-row: 1;
}

.admin-modal .machine-resource-form .machine-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-modal .machine-resource-form .service-active-field {
  grid-column: 1;
}

.admin-modal .docs-upload-modal-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-modal .docs-upload-modal-form .library-upload-hint {
  padding: 12px 14px;
  color: #b8d8d1;
  border: 1px solid #294e46;
  border-radius: 8px;
  background: rgb(10 28 24 / 62%);
  line-height: 1.45;
}

.library-version-modal {
  display: grid;
  gap: 16px;
}

.library-version-modal .version-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.library-version-modal .version-detail-box {
  display: grid;
  min-height: 84px;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #315950;
  border-radius: 9px;
  background: #0b1a17;
}

.library-version-modal .version-detail-box span {
  color: #78e3d2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-version-modal .version-detail-box strong {
  color: #fff;
  font-size: 15px;
}

.library-version-modal .version-detail-box small {
  color: #9fc5be;
  font-size: 12px;
}

.library-version-modal .code-artifact-panel {
  margin: 0;
  border: 1px solid #315950;
  border-radius: 9px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .admin-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .admin-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }

  .admin-modal-header,
  .admin-modal-body {
    padding: 17px;
  }

  .admin-modal .resource-create-form .service-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal .resource-create-form .form-span-2,
  .admin-modal .resource-create-form .form-span-full,
  .admin-modal .library-resource-create-form .service-active-field,
  .admin-modal .machine-resource-form .service-active-field {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-modal .docs-upload-modal-form .form-grid {
    grid-template-columns: 1fr;
  }

  .library-version-modal .version-detail-grid {
    grid-template-columns: 1fr;
  }
}
/* Customer-facing portal */
.client-shell {
  --ink: #18211f;
  --muted: #687570;
  --quiet: #8a9691;
  --panel: #ffffff;
  --surface: #edf2ef;
  --surface-strong: #e5ebe8;
  --line: #d4ddd8;
  --line-strong: #aabbb4;
  --accent: #168477;
  --accent-strong: #0d675d;
  --accent-soft: #e1f3ee;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
}

.client-topbar {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #d4ddd8;
  box-shadow: 0 4px 20px rgba(25, 42, 36, 0.06);
}

.portal-brand,
.client-topbar-actions,
.client-account {
  min-width: 0;
  display: flex;
  align-items: center;
}

.portal-brand {
  gap: 11px;
}

.portal-brand > div:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portal-brand strong,
.portal-brand small,
.client-account > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-brand strong {
  color: #17211f;
  font-size: 14px;
  font-weight: 900;
}

.portal-brand small {
  color: #6f7c77;
  font-size: 10px;
  font-weight: 700;
}

.client-topbar-actions {
  justify-content: flex-end;
  gap: 12px;
}

.client-sales-topbar,
.public-contact-topbar {
  min-height: 32px;
  padding: 0 10px;
  color: #0d675d;
  border-color: #cfe1db;
  font-size: 12px;
}

.client-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  color: #46625b;
  background: #edf4f1;
  border: 1px solid #d9e6e1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.client-account {
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid #dce3e0;
}

.client-account > span {
  max-width: 190px;
  color: #26312e;
  font-size: 13px;
  font-weight: 800;
}

.client-shell .client-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 14px 18px 18px;
  overflow: hidden;
  background: #edf2ef;
}

@media (min-width: 821px) {
  .client-shell .client-content {
    padding-left: clamp(18px, 2.5vw, 46px);
    padding-right: clamp(18px, 2.5vw, 46px);
  }
}

.client-shell .dashboard-workspace,
.client-shell .public-workspace {
  height: 100%;
  grid-template-rows: 40px minmax(0, 1fr);
  overflow: hidden;
}

.client-shell .dashboard-workspace {
  padding: 0;
}

.client-shell .public-dashboard-body {
  min-height: 0;
}

.client-shell .page-header h1,
.client-shell .compact-title h1 {
  color: #17211f;
}

.client-shell .compact-title span {
  color: #72807b;
}

.client-shell .secondary-button,
.client-shell .icon-button {
  color: #30403b;
  background: #ffffff;
  border-color: #d1dbd6;
}

.client-shell .secondary-button:hover,
.client-shell .icon-button:hover {
  color: #0d675d;
  background: #f7faf8;
  border-color: #9fb9b0;
}

.client-shell .primary-button {
  background: #176f8f;
}

.client-shell .dashboard-grid {
  gap: 10px;
}

.client-shell .service-list {
  padding: 2px 2px 5px;
}

.client-shell .service-card {
  min-height: 52px;
  color: #17211f;
  background: #ffffff;
  border-color: #d4ddd8;
  box-shadow: 0 3px 10px rgba(25, 42, 36, 0.035);
}

.client-shell .service-card:hover {
  border-color: #9cb8af;
}

.client-shell .service-card.active {
  color: #11342f;
  background: #eaf6f2;
  border-color: #2d9a8c;
  box-shadow: inset 3px 0 0 #168477, 0 3px 12px rgba(25, 92, 81, 0.08);
}

.client-shell .service-icon {
  color: #0f776b;
  background: #ddf1eb;
  border-color: #c8e6de;
}

.client-shell .service-status.online {
  color: #156044;
  background: #dcf5e7;
}

.client-shell .service-status.offline {
  color: #9a3030;
  background: #fde5e5;
}

.client-shell .service-status.unknown {
  color: #52616d;
  background: #e7edf2;
}

.client-shell .viewer-panel {
  background: #ffffff;
  border-color: #cfd9d4;
  box-shadow: 0 14px 34px rgba(31, 49, 43, 0.10);
}

.client-shell .viewer-toolbar {
  min-height: 44px;
  color: #17211f;
  background: #ffffff;
  border-color: #d8e0dc;
}

.client-shell .viewer-toolbar strong {
  color: #17211f;
  font-size: 14px;
}

.client-shell .viewer-eyebrow {
  display: none;
}

.client-shell .empty-state {
  color: #6d7b76;
  background: #ffffff;
  border-color: #d4ddd8;
}

.client-shell .public-content::after {
  display: none;
}

.client-shell .notice.error {
  color: #8b3030;
  background: #fff0f0;
  border-color: #ecc3c3;
}

.client-shell .public-inline-state strong {
  color: #17211f;
}

.public-home-stack {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
}

.codex-gestion-showcase {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  color: #e8f1ee;
  background:
    radial-gradient(circle at 16% 10%, rgba(37, 181, 151, 0.18), transparent 34%),
    linear-gradient(135deg, #10251f 0%, #102e28 54%, #0b201b 100%);
  border: 1px solid #28463e;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(14, 42, 35, 0.16);
}

.codex-gestion-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 13px;
  padding: clamp(24px, 3vw, 42px);
}

.codex-gestion-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #74ddc4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.codex-gestion-copy h2,
.codex-gestion-copy p {
  margin: 0;
}

.codex-gestion-copy h2 {
  max-width: 15ch;
  color: #ffffff;
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.codex-gestion-copy > p {
  max-width: 60ch;
  color: #abc0ba;
  font-size: 14px;
  line-height: 1.55;
}

.codex-gestion-features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.codex-gestion-features li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #63cdb5;
}

.codex-gestion-features span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.codex-gestion-features strong {
  color: #edf7f4;
  font-size: 12px;
}

.codex-gestion-features small,
.codex-gestion-requirement {
  color: #8da69f;
  font-size: 10px;
  line-height: 1.35;
}

.codex-gestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.client-shell .codex-gestion-actions a {
  min-height: 39px;
  padding: 0 15px;
  border-radius: 8px;
  text-decoration: none;
}

.client-shell .codex-gestion-actions .primary-button {
  color: #08231c;
  background: #69dfc1;
}

.client-shell .codex-gestion-actions .primary-button:hover {
  background: #8aecd4;
}

.client-shell .codex-gestion-actions .secondary-button {
  color: #d9e8e4;
  background: rgba(255, 255, 255, 0.045);
  border-color: #42655c;
}

.codex-gestion-preview {
  position: relative;
  min-width: 0;
  min-height: 360px;
  display: block;
  overflow: hidden;
  background: #091713;
  text-decoration: none;
}

.codex-gestion-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 32, 27, 0.45), transparent 28%);
}

.codex-gestion-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
  transition: transform 220ms ease;
}

.codex-gestion-preview:hover img {
  transform: scale(1.018);
}

.codex-gestion-preview span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  color: #dff7f1;
  background: rgba(7, 22, 18, 0.88);
  border: 1px solid #36584f;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

@media (max-width: 980px) {
  .codex-gestion-showcase {
    grid-template-columns: 1fr;
  }

  .codex-gestion-preview {
    min-height: 300px;
    max-height: 430px;
  }
}

@media (max-width: 700px) {
  .client-shell {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .client-topbar {
    padding: 0 12px;
  }

  .client-context,
  .client-sales-topbar,
  .public-contact-topbar,
  .portal-brand small,
  .client-account > span {
    display: none;
  }

  .client-account {
    padding-left: 0;
    border-left: 0;
  }

  .client-shell .client-content {
    padding: 10px;
  }

  .codex-gestion-copy {
    padding: 24px 20px;
  }

  .codex-gestion-features {
    grid-template-columns: 1fr;
  }

  .codex-gestion-preview {
    min-height: 220px;
  }

  .codex-gestion-preview span {
    right: 10px;
    bottom: 10px;
  }
}

/* Codex Gestión follows the same calm, light visual language as the public portal. */
.client-shell .codex-gestion-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  color: #17211f;
  background: #ffffff;
  border-color: #cfdcd6;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 49, 43, 0.08);
}

.client-shell .codex-gestion-copy {
  gap: 12px;
  padding: clamp(24px, 3vw, 38px);
}

.client-shell .codex-gestion-kicker {
  color: #167d70;
}

.client-shell .codex-gestion-copy h2 {
  color: #17211f;
}

.client-shell .codex-gestion-copy > p {
  color: #5f6f69;
}

.client-shell .codex-gestion-features li {
  color: #1f8b7d;
}

.client-shell .codex-gestion-features strong {
  color: #26332f;
}

.client-shell .codex-gestion-features small,
.client-shell .codex-gestion-requirement {
  color: #74827d;
}

.client-shell .codex-gestion-actions .primary-button {
  color: #ffffff;
  background: #176f8f;
}

.client-shell .codex-gestion-actions .primary-button:hover {
  color: #ffffff;
  background: #115d79;
}

.client-shell .codex-gestion-actions .secondary-button {
  color: #30403b;
  background: #ffffff;
  border-color: #d1dbd6;
}

.client-shell .codex-gestion-preview {
  min-height: 300px;
  margin: 18px 18px 18px 0;
  background: #eef3f1;
  border: 1px solid #d9e2de;
  border-radius: 7px;
}

.client-shell .codex-gestion-preview::after {
  display: none;
}

.client-shell .codex-gestion-preview img {
  object-position: center;
}

.client-shell .codex-gestion-preview span {
  color: #ffffff;
  background: rgba(23, 45, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.public-home-stack.public-home-empty {
  width: min(1260px, 100%);
  min-height: calc(100vh - 104px);
  grid-template-columns: minmax(480px, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  align-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 24px;
}

.public-home-stack.public-home-empty {
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 18px 32px rgba(31, 49, 43, 0.09));
}

.public-home-empty .private-entry {
  min-height: 0;
  height: 100%;
  padding: 0;
}

.public-home-empty .private-entry-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  align-content: center;
  padding-top: clamp(34px, 4vw, 52px);
  padding-bottom: clamp(34px, 4vw, 52px);
  border: 1px solid #cfdcd6;
  border-right: 0;
  border-left: 4px solid #1f8b7d;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}

.client-shell .codex-gestion-showcase.is-compact {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 0;
  border: 1px solid #cfdcd6;
  border-left: 1px solid #e1e7e4;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-copy {
  gap: 10px;
  padding: 25px 28px 18px;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-copy h2 {
  max-width: 18ch;
  font-size: clamp(27px, 2.4vw, 36px);
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-copy > p {
  line-height: 1.45;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-features {
  gap: 8px 14px;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-features small {
  display: none;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-requirement {
  font-size: 9px;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-preview {
  min-height: 0;
  height: 132px;
  margin: 0 18px 18px;
  padding: 8px;
  background: #f1f5f3;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-preview img {
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

.client-shell .codex-gestion-showcase.is-compact .codex-gestion-preview span {
  right: 14px;
  bottom: 14px;
}

@media (max-width: 1060px) {
  .public-home-stack.public-home-empty {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 14px;
  }

  .public-home-empty .private-entry-panel,
  .client-shell .codex-gestion-showcase.is-compact {
    min-height: 0;
  }

  .public-home-empty .private-entry-panel {
    border-right: 1px solid #cfdcd6;
    border-radius: 8px;
  }

  .client-shell .codex-gestion-showcase.is-compact {
    border-left: 4px solid #176f8f;
    border-radius: 8px;
  }

  .client-shell .codex-gestion-showcase {
    grid-template-columns: 1fr;
  }

  .client-shell .codex-gestion-preview {
    min-height: 260px;
    margin: 0 18px 18px;
  }
}

@media (max-width: 620px) {
  .public-home-stack.public-home-empty {
    padding: 8px 0;
  }

  .client-shell .codex-gestion-showcase.is-compact .codex-gestion-copy {
    padding: 22px;
  }

  .client-shell .codex-gestion-showcase .codex-gestion-preview {
    min-height: 180px;
    margin: 0 10px 10px;
  }
}

/* Public product story and independent portfolio */
.public-home-stack.public-home-empty {
  display: block;
  width: min(1800px, calc(100vw - 64px));
  max-width: none;
  margin-inline: auto;
  padding: 18px 0;
  box-sizing: border-box;
  filter: none;
}

.product-portfolio-landing {
  display: grid;
  gap: 14px;
}

.product-story-hero {
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(500px, 0.86fr) minmax(680px, 1.14fr);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-story-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: 18px clamp(30px, 3vw, 48px) 18px 4px;
}

.product-story-kicker,
.portfolio-heading > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #167d70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-story-copy h1,
.product-story-copy p,
.customer-access-strip p,
.portfolio-heading h2,
.portfolio-heading p,
.featured-project-copy h3,
.featured-project-copy p {
  margin: 0;
}

.product-story-copy h1 {
  max-width: 17ch;
  color: #17211f;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.product-story-copy > p {
  max-width: 62ch;
  color: #5f6f69;
  font-size: 15px;
  line-height: 1.55;
}

.product-story-pills,
.product-story-actions,
.featured-project-tags,
.featured-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.product-story-pills span,
.featured-project-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #3f524c;
  background: #f7faf9;
  border: 1px solid #d9e3df;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.product-story-pills svg { color: #168477; }
.product-story-actions a,
.product-story-actions button,
.featured-project-actions a { min-height: 40px; padding: 0 15px; border-radius: 7px; text-decoration: none; }

.integration-map {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.58fr) 32px minmax(230px, 1.14fr) 58px minmax(170px, 0.86fr);
  align-items: center;
  gap: 14px;
  margin: 20px;
  padding: 48px 24px 26px;
  color: #23332e;
  background: #f5f8f7;
  border: 1px solid #d8e2de;
  border-radius: 9px;
}

.integration-map-image {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  height: auto;
  aspect-ratio: 1817 / 866;
  margin: 0;
  overflow: hidden;
  background: #f8faf9;
  border: 1px solid #c8ddd6;
  border-radius: 9px;
}

.integration-map-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: contain;
}

.integration-map-label {
  position: absolute;
  align-self: start;
  margin-top: -32px;
  color: #71807b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.integration-users,
.integration-core,
.integration-resources {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 17px;
  background: #ffffff;
  border: 1px solid #cfdbd6;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(31, 49, 43, 0.05);
}

.integration-users { justify-items: center; text-align: center; }
.integration-users svg,
.integration-core > span,
.integration-resources svg { color: #168477; }
.integration-users strong,
.integration-core strong,
.integration-resources strong { font-size: 14px; }
.integration-users small,
.integration-core small { color: #788680; font-size: 10px; }
.integration-arrow { color: #91a49d; }
.integration-proxy { display: grid; justify-items: center; gap: 5px; color: #91a49d; text-align: center; }
.integration-proxy span { display: inline-flex; align-items: center; gap: 4px; color: #53635e; font-size: 9px; font-weight: 850; }
.integration-core { grid-template-columns: auto minmax(0, 1fr); }
.integration-core > span { grid-row: 1 / 3; }
.integration-core ul { grid-column: 1 / -1; display: grid; gap: 5px; margin: 7px 0 0; padding: 10px 0 0; border-top: 1px solid #e2e8e5; list-style: none; }
.integration-core li,
.integration-resources span { display: flex; align-items: center; gap: 7px; color: #52635d; font-size: 11px; font-weight: 750; }
.integration-core li { width: 100%; }
.integration-core li span { width: 100%; padding: 6px 9px; background: #f5f8f7; border: 1px solid #dce5e1; border-radius: 4px; font-size: 10px; }
.integration-responsibilities { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.integration-responsibilities span { display: inline-flex; align-items: center; gap: 4px; color: #14786b; font-size: 9px; font-weight: 800; }
.integration-resources { gap: 9px; }
.integration-caption { grid-column: 1 / -1; justify-self: center; margin-top: 5px; color: #74827d; font-size: 10px; text-align: center; }

.customer-access-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #d3ddd8;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(31, 49, 43, 0.045);
}

.customer-access-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #168477;
  background: #e5f5f0;
  border-radius: 8px;
}

.customer-access-strip > div { display: flex; align-items: baseline; gap: 12px; }
.customer-access-strip strong { color: #17211f; font-size: 14px; }
.customer-access-strip p { color: #687772; font-size: 12px; }
.customer-access-strip button { min-width: 142px; }

.portfolio-showcase {
  display: grid;
  grid-template-columns: minmax(440px, 0.86fr) minmax(580px, 1.14fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 10px 10px 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfdcd6;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(31, 49, 43, 0.07);
}

.portfolio-heading {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 16px;
  padding: 8px 12px 12px;
}

.portfolio-heading > div { display: grid; gap: 4px; }
.portfolio-heading h2 { color: #17211f; font-size: 26px; letter-spacing: -0.025em; }
.portfolio-heading p { color: #687772; font-size: 12px; }
.portfolio-coming-soon { display: none; }

.featured-project-card {
  display: contents;
}

.featured-project-copy {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  align-self: start;
  margin: 0 12px 0;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid #d8e2de;
  border-radius: 8px;
}

.featured-project-identity {
  width: 100%;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.featured-project-identity > img {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 5px 14px rgba(23, 33, 31, 0.12);
}

.featured-project-identity > div { min-width: 0; display: grid; gap: 12px; }
.featured-project-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.independent-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #176d8b;
  background: #eaf4f8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.featured-project-copy h3 { color: #17211f; font-size: 25px; letter-spacing: -0.035em; }
.featured-project-reason { max-width: 48ch; color: #44564f; font-size: 14px; line-height: 1.5; }
.featured-project-solution { max-width: 54ch; color: #71807a; font-size: 12px; line-height: 1.45; }
.featured-project-tags span { padding: 5px 8px; font-size: 9px; }
.featured-project-version { display: flex; align-items: center; gap: 7px; color: #6d7c77; font-size: 10px; }
.featured-project-version i { width: 7px; height: 7px; background: #29b987; border-radius: 50%; box-shadow: 0 0 0 3px rgba(41, 185, 135, 0.12); }
.featured-project-version strong { color: #17765f; font-size: 11px; }

.featured-project-preview {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  min-width: 0;
  height: 400px;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #1d1d1d;
  border-radius: 7px 7px 0 0;
}

.featured-project-preview img { width: 100%; height: 100% !important; display: block; object-fit: contain; object-position: center; border-radius: 0; box-shadow: none; }
.featured-project-preview > span { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; color: #ffffff; background: rgba(22, 45, 39, 0.94); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; font-size: 10px; font-weight: 800; }

@media (max-width: 1100px) {
  .product-story-hero,
  .portfolio-showcase { grid-template-columns: 1fr; }
  .featured-project-card { display: contents; }
  .integration-map { min-height: 280px; }
  .portfolio-heading { grid-column: 1; grid-row: 1; }
  .featured-project-copy { grid-column: 1; grid-row: 2; border-right: 1px solid #d8e2de; border-bottom: 1px solid #d8e2de; }
  .featured-project-preview { grid-column: 1; grid-row: 3; }
}

@media (max-width: 720px) {
  .public-home-stack.public-home-empty { width: 100%; padding: 8px 0; }
  .product-story-copy { padding: 26px 22px; }
  .product-story-copy h1 { font-size: 34px; }
  .integration-map { grid-template-columns: 1fr; margin: 0 12px 12px; padding: 38px 16px 16px; }
  .integration-map-image { margin: 0 12px 12px; }
  .integration-arrow { justify-self: center; transform: rotate(90deg); }
  .integration-proxy svg { transform: rotate(90deg); }
  .customer-access-strip { grid-template-columns: auto 1fr; }
  .customer-access-strip > div { display: grid; gap: 3px; }
  .customer-access-strip button { grid-column: 1 / -1; width: 100%; }
  .portfolio-heading { align-items: start; flex-direction: column; }
  .featured-project-copy { padding: 22px; }
  .featured-project-identity { grid-template-columns: 52px minmax(0, 1fr); gap: 13px; }
  .featured-project-identity > img { width: 52px; height: 52px; border-radius: 13px; }
  .featured-project-preview { min-height: 230px; padding: 12px; }
}

/* Keep the current public landing active while the product-story layout is only a mockup. */
.public-home-stack.public-home-empty {
  display: block;
  width: min(1800px, calc(100vw - 64px));
  max-width: none;
  margin-inline: auto;
  padding: 18px 0;
  box-sizing: border-box;
  filter: none;
}

@media (max-width: 1060px) {
  .public-home-stack.public-home-empty { width: calc(100vw - 28px); padding: 14px 0; }
}

@media (max-width: 620px) {
  .public-home-stack.public-home-empty { width: 100%; padding: 8px 0; }
}






.service-row-stack {
  border-bottom: 1px solid #e9eeeb;
  background: #ffffff;
}

.service-row-stack:last-child {
  border-bottom: 0;
}

.service-row-stack > .admin-data-row {
  border-bottom: 0;
}

.service-row-stack:hover > .admin-data-row {
  background: #fbfdfc;
}

.library-manager {
  display: grid;
  gap: 12px;
  margin: 0 16px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfa;
}

.library-upload {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(150px, 0.55fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.library-upload label,
.file-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.library-upload input[type="file"],
.file-field input[type="file"] {
  min-height: 36px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
}

.library-packages,
.library-package,
.library-versions {
  display: grid;
  gap: 8px;
}

.library-package {
  padding: 10px;
  border: 1px solid #d8e4df;
  border-radius: 5px;
  background: #ffffff;
}

.library-package header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.library-package header strong,
.library-package header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-package header small,
.muted-inline {
  color: var(--muted);
  font-size: 12px;
}

.library-versions {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.library-version {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfdfc;
}

.library-version a {
  overflow: hidden;
  color: var(--blue);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-version b {
  padding: 3px 6px;
  border-radius: 999px;
  color: #13705f;
  background: #ddf7ef;
  font-size: 10px;
  text-transform: uppercase;
}
/* Dark administration surfaces */
.admin-panel,
.empty-state {
  color: var(--ink);
  background: rgba(18, 29, 26, 0.96);
  border-color: #2a4a44;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.admin-panel-header {
  background: #14211e;
  border-color: #2b453f;
}

.admin-panel-header h2,
.entity-cell strong,
.access-cell strong {
  color: #f3fbf8;
}

.admin-panel-header p,
.entity-cell small,
.access-cell small,
.destination-cell,
.muted-inline {
  color: #9fb3ad;
}

.admin-table-head {
  color: #8fd7ca;
  background: #101c19;
  border-color: #2b453f;
}

.admin-data-row {
  color: #eaf3f0;
  background: #16231f;
  border-color: #2a403b;
}

.admin-data-row:hover,
.service-row-stack:hover > .admin-data-row {
  background: #1a2b27;
}

.service-row-stack {
  background: #16231f;
  border-color: #2a403b;
}

.library-manager {
  color-scheme: dark;
  background: #101b18;
  border-color: #4f7068;
  box-shadow: inset 0 1px 0 rgba(120, 208, 193, 0.08);
}

.library-upload {
  align-items: end;
}

.library-upload label,
.file-field {
  color: #9fc1ba;
}

.library-upload label small,
.file-field small {
  color: #6f8982;
  font-size: 10px;
}

.library-upload input,
.library-upload input[type="file"],
.file-field input[type="file"],
.admin-form input,
.admin-form textarea,
.admin-form select,
.edit-row input,
.edit-row textarea,
.edit-row select {
  color: #eef8f5;
  background: #0e1916;
  border-color: #45605a;
}

.library-upload input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.edit-row input:focus,
.edit-row textarea:focus,
.edit-row select:focus {
  outline: 2px solid rgba(120, 208, 193, 0.35);
  border-color: #78d0c1;
}

.library-upload input::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: #667d77;
}

.library-upload input[type="file"]::file-selector-button,
.file-field input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  padding: 0 10px;
  border: 1px solid #4f7068;
  border-radius: 4px;
  color: #eaf8f4;
  background: #18332f;
  font-weight: 900;
}

.library-package {
  background: #14211e;
  border-color: #34534d;
}

.library-version {
  background: #0f1b18;
  border-color: #34534d;
}

.library-version b {
  color: #bff2e8;
  background: #173d37;
}

.notice {
  color: #cfe7e1;
  background: #12231f;
  border-color: #345b53;
}

.library-upload {
  grid-template-columns: minmax(170px, 0.75fr) minmax(170px, 0.65fr) minmax(300px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.library-upload label,
.file-field {
  gap: 8px;
}

.library-upload label > span,
.file-field > span {
  min-height: 15px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.library-upload input:not([type="file"]) {
  height: 38px;
  padding: 0 11px;
  border-radius: 5px;
  font-size: 13px;
}

.library-upload input[type="file"],
.file-field input[type="file"] {
  height: 38px;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border-radius: 5px;
  line-height: 28px;
  font-size: 12px;
}

.library-upload input[type="file"]::file-selector-button,
.file-field input[type="file"]::file-selector-button {
  height: 28px;
  min-height: 28px;
  margin: 0 10px 0 0;
  padding: 0 12px;
  border-radius: 4px;
  cursor: pointer;
}

.library-upload .compact-action {
  height: 38px;
  align-self: end;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .library-upload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-upload .file-field {
    grid-column: 1 / -1;
  }

  .library-upload .compact-action {
    width: fit-content;
  }
}

@media (max-width: 700px) {
  .library-upload {
    grid-template-columns: 1fr;
  }

  .library-upload .file-field {
    grid-column: auto;
  }
}
.viewer-panel {
  border-color: #31544d;
  border-radius: 6px;
}

.viewer-toolbar {
  min-height: 46px;
  padding: 7px 10px 7px 14px;
  background: #143f39;
}

.viewer-toolbar > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
}

.viewer-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #5f9188;
  border-radius: 5px;
  color: #eafffb;
  background: #1d5d55;
  font-size: 12px;
  font-weight: 900;
}

.viewer-open-button:hover {
  background: #247066;
  border-color: #83c9bd;
}


.viewer-open-button {
  min-height: 36px;
  padding: 0 14px;
  border-color: #75c9bd;
  background: linear-gradient(180deg, #236f65, #1b5a52);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.viewer-open-button span {
  white-space: nowrap;
}

.viewer-open-button svg {
  stroke-width: 2.4;
}

/* Viewer spacing refinements */
.viewer-panel {
  grid-template-rows: 44px minmax(0, 1fr);
}

.viewer-toolbar {
  padding: 0 10px 0 14px;
}

.viewer-toolbar > div:first-child {
  align-items: center;
}

.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 12px;
  border-left: 1px solid rgba(143, 215, 202, 0.18);
}

.viewer-open-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 5px;
  color: #dffbf6;
  background: #1c514a;
  border-color: #5a8e84;
  box-shadow: none;
}

.viewer-open-button:hover {
  color: #ffffff;
  background: #25685f;
  border-color: #83c9bd;
}

.viewer-open-button span {
  display: none;
}
/* API resources use an informational workspace instead of embedding the API root. */
.api-resource-preview {
  min-height: 0;
  height: 100%;
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: auto;
  color: #dcebe7;
  background: radial-gradient(circle at 50% 25%, rgba(75, 171, 155, 0.13), transparent 38%), #091a17;
}

.api-resource-preview-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #39776c;
  border-radius: 14px;
  color: #8fe0d1;
  background: #143b35;
}

.api-resource-preview-copy {
  max-width: 680px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.api-resource-preview-copy h2,
.api-resource-preview-copy p {
  margin: 0;
}

.api-resource-preview-copy h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
}

.api-resource-preview-copy p {
  color: #9fb8b2;
  line-height: 1.55;
}

.api-resource-preview-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.api-resource-preview-grid section {
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #2b5b53;
  border-radius: 8px;
  background: #102923;
}

.api-resource-preview-grid section > svg {
  flex: 0 0 auto;
  color: #75d0c0;
}

.api-resource-preview-grid section > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.api-resource-preview-grid span {
  color: #9fb8b2;
  font-size: 12px;
  line-height: 1.45;
}

.api-resource-preview-grid code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #c8fff5;
  font-size: 12px;
}

.api-resource-preview-actions .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.api-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #37675e;
  border-radius: 7px;
  background: #0d2b26;
}

.api-view-switch button {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 5px;
  color: #a8bdb8;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.api-view-switch button:hover {
  color: #effffb;
  background: #173d36;
}

.api-view-switch button.active {
  color: #07211c;
  background: #7bd2c3;
}

.api-curl-example {
  width: min(760px, 100%);
  display: grid;
  gap: 7px;
}

.api-curl-example pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid #2b5b53;
  border-radius: 8px;
  color: #c8fff5;
  background: #06130f;
  text-align: left;
  line-height: 1.55;
}

.api-integration-token {
  width: min(760px, 100%);
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #39776c;
  border-radius: 9px;
  background: #143b35;
}

.api-integration-token > div {
  display: grid;
  gap: 4px;
}

.api-integration-token small {
  color: #9fb8b2;
}

.api-integration-token > code {
  max-width: 310px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid #2b5b53;
  border-radius: 6px;
  color: #c8fff5;
  background: #06130f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-config-examples {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.api-config-examples section {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.api-config-examples pre {
  height: 100%;
  margin: 0;
  padding: 13px;
  overflow: auto;
  border: 1px solid #2b5b53;
  border-radius: 8px;
  color: #c8fff5;
  background: #06130f;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.api-associated-frontend,
.api-swagger-frame {
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.api-resource-missing-view {
  text-align: center;
}

@media (max-width: 720px) {
  .api-resource-preview-grid {
    grid-template-columns: 1fr;
  }

  .api-view-switch button {
    padding: 0 7px;
  }

  .api-view-switch button svg {
    display: none;
  }

  .api-integration-token {
    grid-template-columns: 1fr;
  }

  .api-integration-token > code {
    max-width: 100%;
  }

  .api-config-examples {
    grid-template-columns: 1fr;
  }
}
/* Authenticated resource browser */
.admin-resource-browser {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

/* A single assigned app should feel like an app, not like a catalog preview. */
.admin-resource-browser.single-resource {
  grid-template-columns: minmax(0, 1fr);
}

.admin-resource-browser.single-resource .admin-resource-sidebar {
  display: none;
}

.admin-resource-browser.single-resource .admin-resource-viewer {
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(25, 48, 41, 0.12);
}


.admin-resource-sidebar,
.admin-resource-viewer {
  min-width: 0;
  min-height: 0;
}

.admin-resource-sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #10211d;
  border: 1px solid #31544d;
  border-radius: 6px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

.admin-resource-sidebar-header {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(114, 196, 182, 0.14);
}

.admin-resource-sidebar-header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-resource-sidebar-header strong,
.admin-resource-sidebar-header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resource-sidebar-header strong {
  color: #f4fffc;
  font-size: 15px;
  font-weight: 900;
}

.admin-resource-sidebar-header span {
  color: #a3bbb5;
  font-size: 12px;
  font-weight: 700;
}

.admin-resource-sidebar-header b,
.admin-resource-tabs b,
.admin-resource-group-header small {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  color: #b9f2e8;
  background: #183f39;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.admin-resource-sidebar-header b {
  min-width: 32px;
  height: 32px;
  border: 1px solid #2a675d;
}

.admin-resource-search {
  min-width: 0;
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 8px 8px 6px;
  padding: 0 11px;
  color: #87aca4;
  background: #0c1916;
  border: 1px solid #33554f;
  border-radius: 6px;
}

.admin-resource-search:focus-within {
  color: #78d8ca;
  border-color: #66c6b7;
  box-shadow: 0 0 0 3px rgba(102, 198, 183, 0.12);
}

.admin-resource-search input {
  min-width: 0;
  height: 36px;
  padding: 0;
  color: #f1fffb;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.admin-resource-search input::placeholder {
  color: #7f9993;
}

.admin-resource-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
  border-bottom: 1px solid rgba(114, 196, 182, 0.14);
}

.admin-resource-tabs button {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #bad0ca;
  background: #132622;
  border: 1px solid #304f49;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.admin-resource-tabs button:hover {
  color: #ffffff;
  border-color: #5f9188;
  background: #19312c;
}

.admin-resource-tabs button.active {
  color: #08251f;
  background: #74cbbf;
  border-color: #74cbbf;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.admin-resource-tabs button.active b {
  color: #0d5148;
  background: rgba(255, 255, 255, 0.45);
}

.admin-resource-tabs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resource-sidebar-scroll {
  min-height: 0;
  overflow: auto;
  padding: 8px;
  scrollbar-width: thin;
}

.admin-resource-group {
  display: grid;
  gap: 7px;
}

.admin-resource-group + .admin-resource-group {
  margin-top: 14px;
}

.admin-resource-group-header {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9eb7b1;
  font-size: 12px;
  font-weight: 900;
}

.admin-resource-group-header span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #78d8ca;
  background: #173d37;
  border: 1px solid #2d675d;
  border-radius: 6px;
}

.admin-resource-group-header strong {
  min-width: 0;
  overflow: hidden;
  color: #effefa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resource-group-header small {
  margin-left: auto;
}

.admin-resource-list {
  display: grid;
  gap: 7px;
}

.admin-resource-list-item {
  min-width: 0;
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: #eefbf8;
  text-align: left;
  background: #142620;
  border: 1px solid #2e5049;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-resource-list-item:hover {
  background: #19322d;
  border-color: #598980;
}

.admin-resource-list-item.active {
  color: #ffffff;
  background: #183931;
  border-color: #68d1c3;
  box-shadow: inset 4px 0 0 #68d1c3, 0 0 0 1px rgba(104, 209, 195, 0.16);
}

.admin-resource-list-item .service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #8ce6da;
  background: #1a4740;
  border: 1px solid #347469;
  border-radius: 7px;
}

.admin-resource-list-item .service-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-resource-list-item .service-copy strong,
.admin-resource-list-item .service-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resource-list-item .service-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 900;
}

.admin-resource-list-item .service-copy small {
  color: #9fb5af;
  font-size: 11px;
  font-weight: 700;
}

.admin-resource-list-item .service-status {
  justify-self: end;
}

.admin-resource-pagination {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  color: #9fb5af;
  border-top: 1px solid rgba(114, 196, 182, 0.14);
}

.admin-resource-pagination > span {
  font-size: 12px;
  font-weight: 800;
}

.admin-resource-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-resource-pagination .icon-button {
  width: 34px;
  height: 34px;
  color: #dffbf6;
  background: #142620;
  border-color: #365b54;
}

.admin-resource-pagination .icon-button:disabled {
  opacity: 0.45;
}

.admin-resource-pagination strong {
  min-width: 42px;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.admin-resource-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  color: #9fb5af;
  text-align: center;
  background: #142620;
  border: 1px dashed #34534d;
  border-radius: 6px;
}

.admin-resource-empty strong {
  color: #ffffff;
}

.admin-resource-viewer {
  height: 100%;
}

.admin-resource-viewer .service-frame {
  min-height: 0;
}

@media (max-width: 1100px) {
  .admin-resource-browser {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 820px) {
  .admin-resource-browser {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(68dvh, 1fr);
    overflow: visible;
  }

  .admin-resource-sidebar {
    max-height: 260px;
  }

  .admin-resource-browser.single-resource {
    grid-template-rows: minmax(78dvh, 1fr);
    height: max(78dvh, 620px);
  }

  .admin-resource-browser.single-resource .admin-resource-viewer {
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  .admin-resource-browser.single-resource {
    height: calc(100dvh - 86px);
    min-height: 640px;
  }

  .admin-resource-browser.single-resource .viewer-toolbar {
    min-height: 42px;
  }
}

.docs-version-picker {
  min-width: 220px;
  max-width: min(380px, 42vw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #9fd8cf;
  font-size: 11px;
  font-weight: 900;
}

.docs-version-picker select {
  min-width: 0;
  height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid #49746b;
  border-radius: 5px;
  color: #ecfffb;
  background: #10231f;
  font-size: 12px;
  font-weight: 900;
}

.docs-version-picker select:focus {
  outline: 2px solid rgba(120, 208, 193, 0.32);
  border-color: #78d0c1;
}

@media (max-width: 760px) {
  .docs-version-picker {
    min-width: 0;
    max-width: 48vw;
  }

  .docs-version-picker > span {
    display: none;
  }
}

/* Keep public/viewer client shell light after authenticated-dashboard overrides */
.client-shell .service-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.client-shell .service-section-header {
  min-height: 28px;
  color: #61716c;
}

.client-shell .service-section-header span {
  color: #0f776b;
  background: #ddf1eb;
}

.client-shell .service-section-header strong {
  color: #17211f;
}

.client-shell .service-section-header small {
  color: #0d675d;
  background: #dff4ee;
}

.client-shell .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 0;
  overflow: visible;
}

.client-shell .service-card {
  min-height: 58px;
  color: #17211f;
  background: #ffffff;
  border-color: #d4ddd8;
  box-shadow: 0 3px 10px rgba(25, 42, 36, 0.035);
}

.client-shell .service-card:hover {
  background: #f7faf8;
  border-color: #9cb8af;
}

.client-shell .service-card.active {
  color: #11342f;
  background: #eaf6f2;
  border-color: #2d9a8c;
  box-shadow: inset 3px 0 0 #168477, 0 3px 12px rgba(25, 92, 81, 0.08);
}

.client-shell .service-card strong {
  color: #17211f;
}

.client-shell .service-card small {
  color: #72807b;
}

.client-shell .service-card .service-icon {
  color: #0f776b;
  background: #ddf1eb;
  border-color: #c8e6de;
}

.client-shell .service-status.online {
  color: #156044;
  background: #dcf5e7;
}

.client-shell .service-status.offline {
  color: #9a3030;
  background: #fde5e5;
}

.client-shell .service-status.unknown {
  color: #52616d;
  background: #e7edf2;
}

.client-shell .viewer-panel {
  background: #ffffff;
  border-color: #cfd9d4;
  box-shadow: 0 14px 34px rgba(31, 49, 43, 0.10);
}

.client-shell .viewer-toolbar {
  color: #17211f;
  background: #ffffff;
  border-color: #d8e0dc;
}

.client-shell .viewer-toolbar strong {
  color: #17211f;
}

.client-shell .viewer-actions {
  border-left-color: #e1e9e5;
}

.client-shell .viewer-open-button {
  color: #0d675d;
  background: #eaf6f2;
  border-color: #badbd3;
  box-shadow: none;
}

.client-shell .viewer-open-button:hover {
  color: #083f39;
  background: #dff1ec;
  border-color: #8fbdb4;
}

.client-shell .docs-version-picker {
  color: #60736d;
}

.client-shell .docs-version-picker select {
  color: #17211f;
  background: #ffffff;
  border-color: #cfd9d4;
}
/* Scalable library manager */
.library-manager {
  gap: 14px;
  margin: 0 16px 14px;
  padding: 12px;
  border-color: #345b53;
  background: #0f1d1a;
}

.library-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 420px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.library-manager-toolbar > span {
  color: #8fb5ad;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-search-field {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #365a53;
  border-radius: 5px;
  color: #8ed8cb;
  background: #0c1714;
}

.library-search-field input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #eef8f5;
  background: transparent;
  font-size: 13px;
}

.library-search-field input:focus {
  outline: 0;
}

.library-upload {
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 0.65fr) minmax(260px, 1fr) auto;
  padding: 12px;
  border: 1px solid #284c45;
  border-radius: 6px;
  background: #12231f;
}

.library-upload-hint {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #94b8b0;
  font-size: 12px;
}

.library-upload-hint strong {
  color: #eafff9;
}

.library-packages {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.library-package {
  padding: 0;
  overflow: hidden;
  border-color: #365a53;
  background: #12231f;
}

.library-package header {
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid #294c45;
  background: #152b26;
}

.library-package-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.library-package-title strong {
  color: #f4fffc;
}

.library-package-title small {
  color: #93b4ad;
}

.library-package-count {
  padding: 4px 8px;
  border-radius: 999px;
  color: #bff2e8;
  background: #0f4d43;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.library-version {
  width: auto;
  min-width: 160px;
  max-width: 260px;
  grid-template-columns: minmax(52px, 1fr) auto auto;
  background: #0d1a17;
}

.library-version a {
  color: #65c8ff;
}

@media (max-width: 1100px) {
  .library-manager-toolbar {
    grid-template-columns: 1fr;
  }

  .library-upload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .library-upload {
    grid-template-columns: 1fr;
  }

  .library-version {
    max-width: none;
    width: 100%;
  }
}

/* Library manager usability pass */
.library-manager {
  margin: 0 16px 20px;
  padding: 14px;
  max-height: min(68vh, 760px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.library-manager-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 10px;
  background: #0f1d1a;
}

.library-upload {
  margin-bottom: 2px;
}

.library-packages {
  max-height: none;
  overflow: visible;
  padding: 0 6px 12px 0;
}

.library-package {
  margin-bottom: 10px;
  border-radius: 6px;
}

.library-package:last-child {
  margin-bottom: 0;
}

.library-package header {
  grid-template-columns: minmax(180px, 1fr) auto 38px;
  padding: 12px;
}

.library-package header > .icon-button {
  justify-self: end;
  margin-left: 4px;
}

.library-versions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 12px;
}

.library-version {
  min-width: 0;
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 10px 9px 12px;
  border-radius: 6px;
}

.library-version-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.library-version-copy strong,
.library-version-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-version-copy strong {
  color: #65c8ff;
  font-size: 14px;
}

.library-version-copy small {
  color: #8fb5ad;
  font-size: 11px;
}

.library-version-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.library-version-actions .icon-button,
.library-package header > .icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
}

@media (max-width: 820px) {
  .library-manager {
    max-height: none;
  }

  .library-versions {
    grid-template-columns: 1fr;
  }
}

/* Docs split selector */
.docs-version-picker.docs-split-picker {
  min-width: 420px;
  max-width: min(560px, 50vw);
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.72fr);
  gap: 10px;
}

.docs-split-picker label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.docs-split-picker label > span {
  color: #9fd8cf;
  font-size: 11px;
  font-weight: 900;
}

.docs-split-picker select {
  width: 100%;
}

.client-shell .docs-split-picker label > span {
  color: #60736d;
}

@media (max-width: 980px) {
  .docs-version-picker.docs-split-picker {
    min-width: 0;
    max-width: 54vw;
    grid-template-columns: 1fr 1fr;
  }

  .docs-split-picker label > span {
    display: none;
  }
}

@media (max-width: 680px) {
  .docs-version-picker.docs-split-picker {
    max-width: none;
    width: 100%;
    grid-column: 1 / -1;
    margin-left: 0;
  }
}

/* Simple library management layout */
.library-manager-simple {
  max-height: none;
  overflow: visible;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 18px;
  border: 0;
  border-top: 1px solid #294c45;
  border-radius: 0;
  background: #101d1a;
  box-shadow: none;
}

.library-manager-simple .library-manager-toolbar {
  position: static;
  grid-template-columns: minmax(220px, 380px) auto;
  padding: 0;
  background: transparent;
}


.library-toolbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.library-toolbar-actions > span {
  color: #8fb5ad;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-toolbar-actions .compact-action {
  min-width: 86px;
  height: 34px;
  justify-content: center;
}
.library-workspace-grid {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.library-variant-list {
  min-width: 0;
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #284c45;
  border-radius: 6px;
  background: #0d1815;
}

.library-variant-item {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #e9f8f4;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.library-variant-item:hover {
  background: #142a25;
  border-color: #345b53;
}

.library-variant-item.active {
  background: #173a33;
  border-color: #66d5c3;
  box-shadow: inset 3px 0 0 #66d5c3;
}

.library-variant-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.library-variant-item strong,
.library-variant-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-variant-item strong {
  color: #ffffff;
  font-size: 13px;
}

.library-variant-item small {
  color: #8fb5ad;
  font-size: 11px;
}

.library-variant-item b {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #bff2e8;
  background: #0f4d43;
  font-size: 10px;
}

.library-detail-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #2f554d;
  border-radius: 6px;
  background: #12231f;
}

.library-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #294c45;
}

.library-detail-header h3 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
}

.library-detail-header small {
  color: #94b8b0;
}

.simple-upload {
  grid-template-columns: minmax(160px, .75fr) minmax(140px, .55fr) minmax(240px, 1fr) auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.simple-upload .compact-action {
  width: 104px;
  justify-content: center;
}

.library-version-list {
  display: grid;
  gap: 8px;
}

.library-version-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px 8px 12px;
  border: 1px solid #315950;
  border-radius: 5px;
  background: #0d1a17;
}

.library-version-row b {
  padding: 3px 7px;
  border-radius: 999px;
  color: #bff2e8;
  background: #173d37;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-empty-detail {
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #94b8b0;
  text-align: center;
}

@media (max-width: 1050px) {
  
.library-toolbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.library-toolbar-actions > span {
  color: #8fb5ad;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-toolbar-actions .compact-action {
  min-width: 86px;
  height: 34px;
  justify-content: center;
}
.library-workspace-grid {
    grid-template-columns: 1fr;
  }

  .library-variant-list {
    max-height: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .simple-upload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-upload .file-field,
  .simple-upload .library-upload-hint {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .library-manager-simple .library-manager-toolbar,
  .simple-upload,
  .library-version-row {
    grid-template-columns: 1fr;
  }

  .library-version-actions {
    justify-content: flex-start;
  }
}

/* Viewer title variant selector */
.viewer-title-block {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.viewer-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-title-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-variant-title-picker {
  max-width: 220px;
  min-width: 130px;
  height: 28px;
  padding: 0 28px 0 8px;
  border: 1px solid #49746b;
  border-radius: 5px;
  color: #ecfffb;
  background: #10231f;
  font-size: 12px;
  font-weight: 900;
}

.viewer-variant-title-picker:focus {
  outline: 2px solid rgba(120, 208, 193, 0.32);
  border-color: #78d0c1;
}

.client-shell .viewer-variant-title-picker {
  color: #17211f;
  background: #ffffff;
  border-color: #cfd9d4;
}

@media (max-width: 760px) {
  .viewer-title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-variant-title-picker {
    max-width: 100%;
  }
}
/* Code packages inside documentation versions */
.code-version-row {
  align-items: start;
  grid-template-columns: minmax(150px, 0.7fr) auto auto;
  padding: 0;
  overflow: hidden;
  background: #0f211d;
}

.code-version-row > .library-version-copy {
  padding: 12px 0 10px 12px;
}

.code-version-row > b {
  align-self: center;
  margin-top: 10px;
}

.code-version-row > .library-version-actions {
  align-self: start;
  padding: 8px 10px 0 0;
}

.code-artifact-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid #284c45;
  background: #102822;
}

.code-artifact-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.code-artifact-panel header > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.code-artifact-panel header strong {
  color: #f3fffb;
  font-size: 13px;
}

.code-artifact-panel header small {
  min-width: 0;
  color: #8fb5ad;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-upload-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(132px, auto) minmax(210px, auto);
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #315950;
  border-radius: 6px;
  background: #0c1815;
}

.code-upload-form .file-field {
  min-width: 0;
}

.compact-toggle {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #315950;
  border-radius: 5px;
  background: #10231f;
}

.code-user-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  max-height: 148px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #284c45;
  border-radius: 5px;
  background: #0b1512;
}

.code-user-picker label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #284c45;
  border-radius: 5px;
  color: #d5f2ec;
  background: #10231f;
}

.code-user-picker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 960px) {
  .code-upload-form {
    grid-template-columns: 1fr;
  }

  .code-form-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .code-version-row,
  .code-artifact-panel header {
    grid-template-columns: 1fr;
  }

  .code-version-row > .library-version-actions {
    padding: 0 12px 10px;
  }
}
/* Custom confirmation dialogs */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.confirm-dialog {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #375f56;
  border-radius: 8px;
  color: #edf8f5;
  background: #101c19;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.confirm-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #3f766b;
  border-radius: 8px;
  color: #9bf0df;
  background: #14352f;
}

.confirm-danger .confirm-icon {
  color: #ffc8c8;
  background: #3a1919;
  border-color: #743939;
}

.confirm-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.confirm-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.22;
}

.confirm-copy p {
  margin: 0;
  color: #cfe4de;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.confirm-copy small {
  color: #8fb5ad;
  line-height: 1.4;
}

.confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.danger-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #9b4545;
  border-radius: 5px;
  color: #fff5f5;
  background: #7f2727;
  font-weight: 900;
  cursor: pointer;
}

.danger-button:hover {
  background: #9b3030;
  border-color: #c96161;
}

@media (max-width: 560px) {
  .confirm-backdrop {
    align-items: end;
    padding: 12px;
  }

  .confirm-dialog {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .confirm-icon {
    width: 38px;
    height: 38px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions .compact-action,
  .confirm-actions .danger-button {
    width: 100%;
  }
}



/* Library list scrolling and row actions */
.service-admin-columns {
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.6fr) minmax(180px, 0.9fr) minmax(120px, 0.6fr) 88px 220px;
}

.library-services-scroll {
  max-height: min(72vh, 780px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #5c7d76 #0c1714;
  border-bottom: 1px solid #294c45;
}

.library-services-scroll::-webkit-scrollbar,
.library-variant-list::-webkit-scrollbar,
.code-user-picker::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.library-services-scroll::-webkit-scrollbar-track,
.library-variant-list::-webkit-scrollbar-track,
.code-user-picker::-webkit-scrollbar-track {
  background: #0c1714;
  border-radius: 999px;
}

.library-services-scroll::-webkit-scrollbar-thumb,
.library-variant-list::-webkit-scrollbar-thumb,
.code-user-picker::-webkit-scrollbar-thumb {
  background: #426b62;
  border: 2px solid #0c1714;
  border-radius: 999px;
}

.library-services-scroll::-webkit-scrollbar-thumb:hover,
.library-variant-list::-webkit-scrollbar-thumb:hover,
.code-user-picker::-webkit-scrollbar-thumb:hover {
  background: #66b8aa;
}

.library-services-scroll .admin-table-head {
  position: sticky;
  top: 0;
  z-index: 4;
}

.library-services-scroll .service-row-stack:last-child {
  border-bottom: 1px solid #294c45;
}

.library-manager-simple .library-manager-toolbar {
  grid-template-columns: minmax(220px, 380px) auto;
}

.library-manager-simple .library-manager-toolbar > span {
  justify-self: end;
}

@media (max-width: 1120px) {
  .service-admin-columns {
    grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.55fr) minmax(160px, 0.7fr) minmax(110px, 0.5fr) 80px 172px;
  }
}

/* Cleaner version rows */
.code-version-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.code-version-row > .library-version-copy {
  padding: 14px 0 12px 12px;
}

.version-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px 0 0;
}

.version-right-actions > b,
.code-version-row > b {
  min-width: auto;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
}

.code-version-row > .library-version-actions {
  padding: 0;
}

.code-artifact-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px;
}

.code-artifact-panel header {
  display: contents;
}

.code-artifact-panel header > span {
  align-self: center;
}

.code-artifact-panel .library-version-actions {
  justify-self: end;
}

.code-upload-form {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .code-version-row,
  .code-artifact-panel {
    grid-template-columns: 1fr;
  }

  .version-right-actions,
  .code-artifact-panel .library-version-actions {
    justify-self: start;
    justify-content: flex-start;
    padding: 0 12px 12px;
  }

  .code-artifact-panel .library-version-actions {
    padding: 0;
  }
}

.version-right-actions .library-version-actions {
  padding: 0;
  justify-content: flex-end;
}

.version-right-actions > b {
  align-self: center;
}

.library-variant-list,
.code-user-picker {
  scrollbar-width: thin;
  scrollbar-color: #5c7d76 #0c1714;
}

/* Keep library cards clear of the scroll rail */
.library-services-scroll {
  padding: 0 14px 16px 0;
  box-sizing: border-box;
  background: #101b18;
}

.library-services-scroll > .admin-table-head,
.library-services-scroll > .service-row-stack {
  width: 100%;
  box-sizing: border-box;
}

.library-services-scroll > .service-row-stack {
  margin-right: 0;
}

.library-services-scroll .library-manager-simple {
  margin-right: 0;
  border-right: 1px solid #294c45;
  border-bottom: 1px solid #294c45;
}

.library-services-scroll::-webkit-scrollbar-track {
  margin: 6px 0 10px;
}

/* Scrollable audit log */
.audit-list {
  max-height: min(68vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  padding-bottom: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #5c7d76 #101b18;
}

.audit-list::-webkit-scrollbar {
  width: 8px;
}

.audit-list::-webkit-scrollbar-track {
  margin: 6px 0 10px;
  background: #101b18;
  border-radius: 999px;
}

.audit-list::-webkit-scrollbar-thumb {
  background: #426b62;
  border: 2px solid #101b18;
  border-radius: 999px;
}

.audit-list::-webkit-scrollbar-thumb:hover {
  background: #66b8aa;
}

.audit-list .audit-row {
  margin-right: 0;
}

/* Access via groups */
.access-group-section {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #293936;
  background: #14231f;
}

.compact-toolbar {
  min-height: 48px;
}

.access-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding: 0 16px 14px;
  scrollbar-width: thin;
  scrollbar-color: #5c7d76 #101b18;
}

.access-group-row {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #293936;
  border-radius: 6px;
  color: #eaf3f0;
  background: #182b26;
}

.access-group-row > span:not(.entity-icon) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.access-group-row strong,
.access-group-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-group-row small {
  color: #9fb3ad;
  font-size: 11px;
}

.access-group-list::-webkit-scrollbar {
  width: 8px;
}

.access-group-list::-webkit-scrollbar-track {
  background: #101b18;
  border-radius: 999px;
}

.access-group-list::-webkit-scrollbar-thumb {
  background: #426b62;
  border: 2px solid #101b18;
  border-radius: 999px;
}

/* Group editor usability */
.group-editor-form {
  gap: 14px;
}

.group-edit-notice {
  margin: 0;
}

.group-assignment-grid fieldset > div,
.group-picker-list {
  max-height: 230px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #5c7d76 #101b18;
}

.group-assignment-grid fieldset > div::-webkit-scrollbar,
.group-picker-list::-webkit-scrollbar {
  width: 8px;
}

.group-assignment-grid fieldset > div::-webkit-scrollbar-track,
.group-picker-list::-webkit-scrollbar-track {
  background: #101b18;
  border-radius: 999px;
}

.group-assignment-grid fieldset > div::-webkit-scrollbar-thumb,
.group-picker-list::-webkit-scrollbar-thumb {
  background: #426b62;
  border: 2px solid #101b18;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .access-group-list {
    grid-template-columns: 1fr;
  }
}

/* Version-scoped access */
.version-access-section {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #28443e;
  background: rgba(10, 32, 28, 0.34);
}

.version-access-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.version-access-row {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #2f5c53;
  border-radius: 6px;
  background: #0f2925;
}

.version-access-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.version-access-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.version-access-summary small {
  color: #9fcac3;
}

.version-access-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #24443e;
}

.version-access-picks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #315d55;
  border-radius: 5px;
  background: #0b211e;
  color: #eafffb;
  font-size: 12px;
  font-weight: 800;
}

.user-avatar.tiny {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.viewer-actions {
  gap: 8px;
}

.viewer-code-button {
  border-color: #58bde9;
  background: #174a5c;
}

.viewer-code-button:hover {
  border-color: #8bdcff;
  background: #1d6077;
}

.client-shell .viewer-code-button {
  color: #0b5f7a;
  background: #e6f5fb;
  border-color: #abd5e5;
}

.viewer-actions {
  gap: 8px;
}

.viewer-actions .viewer-open-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.viewer-code-button {
  background: linear-gradient(180deg, #1f6f86, #185569);
  border-color: #66c7e2;
}

.version-scope-picker {
  display: grid;
  gap: 7px;
  min-width: 210px;
  max-width: 360px;
}

.version-scope-picker select {
  min-height: 32px;
  border: 1px solid #315f56;
  border-radius: 5px;
  background: #081713;
  color: #eafffb;
  font-weight: 800;
  padding: 0 9px;
}

.version-scope-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 86px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #244f48;
  border-radius: 5px;
  background: rgba(4, 17, 14, 0.55);
}

.version-scope-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #315f56;
  border-radius: 999px;
  background: #102922;
  color: #c6eee7;
  font-size: 12px;
  font-weight: 800;
}

.access-group-row .version-scope-picker,
.access-user-row .version-scope-picker {
  justify-self: end;
}

@media (max-width: 980px) {
  .access-group-row .version-scope-picker,
  .access-user-row .version-scope-picker {
    justify-self: stretch;
    max-width: none;
  }
}

/* Cleaner access version controls */
.access-group-list {
  grid-template-columns: 1fr;
  max-height: 260px;
  padding: 0 16px 16px;
}

.access-entity-card,
.access-user-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #2b4d46;
  border-radius: 7px;
  background: #132b26;
}

.access-entity-card.disabled-user,
.access-user-card.disabled-user {
  opacity: 0.62;
}

.access-entity-row {
  display: grid;
  grid-template-columns: auto 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #eef9f6;
}

.access-entity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.access-entity-copy strong,
.access-entity-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-entity-copy small {
  color: #9fc5bd;
  font-size: 11px;
}

.access-user-card .access-user-row {
  min-height: 48px;
  grid-template-columns: auto 34px minmax(170px, 1fr) auto minmax(150px, 190px) max-content;
  border: 0;
  padding: 0;
  background: transparent;
}

.version-scope-picker {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #315c54;
  border-radius: 6px;
  background: #0c221e;
}

.version-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-scope-header > span {
  color: #9fe7dc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.version-scope-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #2d5a52;
  border-radius: 6px;
  background: #081a17;
}

.version-scope-toggle button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: #a9c9c2;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.version-scope-toggle button.active {
  color: #06211d;
  background: #64d2c4;
}

.version-scope-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 104px;
  overflow: auto;
  padding-right: 4px;
}

.version-scope-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #315f56;
  border-radius: 6px;
  background: #102922;
  color: #c6eee7;
  font-size: 12px;
  font-weight: 800;
}

.version-scope-options label.selected {
  border-color: #68d6c8;
  background: #143f38;
  color: #effffb;
}

.version-scope-options label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .access-user-card .access-user-row {
    grid-template-columns: auto 34px minmax(0, 1fr) auto;
  }

  .access-user-card .expiry-field,
  .access-user-card .inherited-label {
    grid-column: 3 / -1;
    justify-self: start;
  }
}
/* Access permissions polish */
.access-group-section {
  border-bottom: 1px solid #24433d;
  background: #10251f;
}

.access-group-list {
  grid-template-columns: 1fr;
  max-height: 360px;
  overflow: auto;
  gap: 12px;
  padding: 12px 16px 16px;
}

.access-entity-card {
  width: 100%;
  max-width: none;
  padding: 14px;
  border-color: #2d6259;
  background: #102b25;
  box-shadow: inset 0 1px 0 rgba(111, 221, 207, 0.08);
}

.access-entity-row {
  grid-template-columns: auto 38px minmax(190px, 1fr) minmax(150px, 190px) auto;
  gap: 12px;
}

.access-entity-row > input[type="checkbox"] {
  margin: 0;
}

.group-expiry-field {
  justify-self: end;
  width: 100%;
  min-width: 0;
}

.access-entity-card > .version-scope-picker,
.access-user-card > .version-scope-picker,
.version-scope-picker {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.version-scope-picker {
  padding: 12px;
  border-color: #35695f;
  background: #0b211c;
}

.version-scope-header {
  padding-bottom: 8px;
  border-bottom: 1px solid #244d45;
}

.version-scope-header > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.version-scope-header small {
  color: #7fb5ad;
  font-size: 10px;
  text-transform: none;
}

.version-scope-toggle button {
  min-width: 92px;
}

.version-scope-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding: 0 3px 2px 0;
}

.version-scope-options label {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .access-entity-row {
    grid-template-columns: auto 38px minmax(0, 1fr) auto;
  }

  .group-expiry-field {
    grid-column: 3 / -1;
    justify-self: stretch;
  }
}

/* Machines table alignment */
.machine-admin-columns {
  grid-template-columns: minmax(190px, 1.15fr) minmax(130px, 0.8fr) minmax(130px, 0.72fr) minmax(90px, 0.38fr) minmax(108px, 0.42fr) 88px;
}

.machine-admin-columns > :nth-child(4) {
  justify-self: start;
}

.machine-admin-columns > :nth-child(5) {
  justify-self: end;
}

.machine-admin-columns > :nth-child(5).status-on,
.machine-admin-columns > :nth-child(5).status-off {
  min-width: 72px;
  text-align: center;
}

.machine-admin-columns > .align-right,
.admin-data-row.machine-admin-columns > .action-group {
  justify-self: end;
}

/* Audit table headers */
.audit-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 38px;
  display: grid;
  grid-template-columns: 34px minmax(220px, 1fr) minmax(100px, 0.4fr) 150px;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  color: #7fe2d5;
  background: #10251f;
  border-bottom: 1px solid #2d524b;
  box-shadow: 0 1px 0 rgba(111, 221, 207, 0.08);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-table-head span:first-child {
  grid-column: 1 / 3;
}

.audit-table-head span:nth-child(2) {
  display: none;
}

.audit-table-head span:nth-child(3),
.audit-table-head span:nth-child(4) {
  justify-self: start;
}

@media (max-width: 760px) {
  .audit-table-head {
    display: none;
  }
}

.audit-table-head span:first-child {
  grid-column: 1 / 3;
}

.audit-table-head span:nth-child(2) {
  display: inline;
  grid-column: 3;
}

.audit-table-head span:nth-child(3) {
  grid-column: 4;
}

/* Management table final alignment pass */
.admin-table-head,
.admin-data-row {
  column-gap: 18px;
}

.service-admin-columns {
  grid-template-columns: minmax(230px, 1.18fr) minmax(150px, 0.66fr) minmax(190px, 0.94fr) minmax(130px, 0.52fr) minmax(104px, 0.34fr) minmax(142px, auto);
}

.user-admin-columns {
  grid-template-columns: minmax(280px, 1.28fr) minmax(92px, 0.34fr) minmax(150px, 0.58fr) minmax(150px, 0.46fr) minmax(96px, auto);
}

.machine-admin-columns {
  grid-template-columns: minmax(220px, 1.1fr) minmax(150px, 0.7fr) minmax(160px, 0.72fr) minmax(96px, 0.34fr) minmax(96px, 0.3fr) minmax(88px, auto);
}

.group-admin-columns {
  grid-template-columns: minmax(260px, 1.12fr) minmax(98px, 0.34fr) minmax(98px, 0.34fr) minmax(140px, 0.42fr) minmax(96px, 0.3fr) minmax(88px, auto);
}

.admin-table-head > span,
.admin-data-row > * {
  min-width: 0;
}

.admin-table-head > span:last-child,
.admin-data-row > .action-group {
  justify-self: end;
}

.service-admin-columns > :nth-child(4),
.user-admin-columns > :nth-child(3),
.machine-admin-columns > :nth-child(4),
.group-admin-columns > :nth-child(2),
.group-admin-columns > :nth-child(3),
.group-admin-columns > :nth-child(4) {
  justify-self: start;
}

.service-admin-columns > :nth-child(5),
.user-admin-columns > :nth-child(2),
.machine-admin-columns > :nth-child(5),
.group-admin-columns > :nth-child(5) {
  justify-self: start;
}

.status-on,
.status-off,
.health-cell b,
.health-online,
.health-offline,
.health-unknown {
  min-width: 72px;
  text-align: center;
}

.health-cell {
  justify-items: start;
}

.health-cell small,
.access-cell small {
  line-height: 1.2;
}

.role-select {
  width: min(150px, 100%);
}

.admin-data-row.user-admin-columns .role-select {
  justify-self: start;
}

.admin-data-row.user-admin-columns .action-group,
.admin-data-row.service-admin-columns .action-group,
.admin-data-row.machine-admin-columns .action-group,
.admin-data-row.group-admin-columns .action-group {
  justify-content: flex-end;
}

.library-services-scroll .service-admin-columns {
  grid-template-columns: minmax(260px, 1.22fr) minmax(150px, 0.58fr) minmax(180px, 0.72fr) minmax(130px, 0.44fr) minmax(106px, 0.32fr) minmax(132px, auto);
}

@media (max-width: 980px) {
  .status-on,
  .status-off,
  .health-cell b,
  .health-online,
  .health-offline,
  .health-unknown {
    min-width: 0;
  }
}

/* Management tables: compact metric columns, readable primary column */
.admin-table-head,
.admin-data-row {
  column-gap: 14px;
}

.admin-table-head > span,
.admin-data-row > * {
  min-width: 0;
}

.admin-table-head > span {
  align-self: center;
}

.service-admin-columns {
  grid-template-columns: minmax(300px, 1fr) 210px 340px 170px 112px 224px;
}

.library-services-scroll .service-admin-columns {
  grid-template-columns: minmax(320px, 1fr) 190px 250px 170px 112px 178px;
}

.machine-admin-columns {
  grid-template-columns: minmax(300px, 1fr) 220px minmax(220px, 0.8fr) 120px 112px 96px;
}

.user-admin-columns {
  grid-template-columns: minmax(360px, 1fr) 120px 220px 180px 104px;
}

.group-admin-columns {
  grid-template-columns: minmax(360px, 1fr) 120px 120px 170px 112px 96px;
}

.service-admin-columns > :nth-child(4),
.machine-admin-columns > :nth-child(4),
.group-admin-columns > :nth-child(2),
.group-admin-columns > :nth-child(3),
.group-admin-columns > :nth-child(4),
.user-admin-columns > :nth-child(3) {
  justify-self: start;
}

.service-admin-columns > :nth-child(5),
.machine-admin-columns > :nth-child(5),
.group-admin-columns > :nth-child(5),
.user-admin-columns > :nth-child(2) {
  justify-self: start;
}

.service-admin-columns > :last-child,
.machine-admin-columns > :last-child,
.group-admin-columns > :last-child,
.user-admin-columns > :last-child,
.admin-data-row.service-admin-columns > .action-group,
.admin-data-row.machine-admin-columns > .action-group,
.admin-data-row.group-admin-columns > .action-group,
.admin-data-row.user-admin-columns > .action-group {
  justify-self: end;
}

.admin-data-row.service-admin-columns > .action-group,
.admin-data-row.machine-admin-columns > .action-group,
.admin-data-row.group-admin-columns > .action-group,
.admin-data-row.user-admin-columns > .action-group {
  width: max-content;
  justify-content: flex-end;
}

.admin-data-row .status-on,
.admin-data-row .status-off,
.health-cell b {
  min-width: 72px;
  justify-self: start;
}

.health-cell {
  justify-items: start;
}

.admin-table-head.service-admin-columns > span:nth-child(5),
.admin-table-head.machine-admin-columns > span:nth-child(5),
.admin-table-head.group-admin-columns > span:nth-child(5),
.admin-table-head.user-admin-columns > span:nth-child(2) {
  justify-self: start;
}

.role-select {
  justify-self: start;
  width: 150px;
}

.audit-table-head,
.audit-row {
  grid-template-columns: 34px minmax(360px, 1fr) 160px 190px;
}

.audit-table-head span:first-child {
  grid-column: 1 / 3;
}

.audit-table-head span:nth-child(2) {
  grid-column: 3;
}

.audit-table-head span:nth-child(3) {
  grid-column: 4;
}

@media (max-width: 1280px) {
  .service-admin-columns {
    grid-template-columns: minmax(260px, 1fr) 180px minmax(220px, 0.9fr) 140px 96px 208px;
  }

  .library-services-scroll .service-admin-columns {
    grid-template-columns: minmax(260px, 1fr) 160px minmax(190px, 0.8fr) 140px 96px 170px;
  }

  .machine-admin-columns {
    grid-template-columns: minmax(260px, 1fr) 180px minmax(170px, 0.8fr) 100px 96px 88px;
  }

  .user-admin-columns {
    grid-template-columns: minmax(300px, 1fr) 110px 190px 160px 96px;
  }

  .group-admin-columns {
    grid-template-columns: minmax(300px, 1fr) 100px 100px 140px 96px 88px;
  }
}
/* Temporary demo area for client portals */
.client-shell .client-content {
  display: block;
  overflow: auto;
}

/* Keep the premium demo as a single scrollable dashboard after legacy portal rules. */
.public-client-shell .public-demo-premium-workspace {
  grid-template-rows: minmax(0, 1fr);
}

.public-client-shell .public-demo-premium-workspace .public-dashboard-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.public-client-shell .premium-public-content {
  padding: 0;
  background: #f7f9f8;
}

.public-client-shell .premium-public-content .public-demo-premium-workspace {
  width: 100%;
  margin: 0;
}

.premium-public-content .premium-demo-dashboard {
  width: 100%;
  max-width: none;
  padding: 16px 20px 28px;
}

@media (max-width: 620px) {
  .premium-public-content .premium-demo-dashboard {
    padding: 10px 10px 18px;
  }
}

.premium-access-card dl {
  gap: 10px;
}

.premium-access-card dl > div {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 4px;
  padding: 9px 11px;
}

.premium-access-card dt {
  color: #71807b;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.premium-access-card dd {
  width: 100%;
  color: #13231f;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
}

/* Premium public product demo */
.public-client-shell .public-demo-premium-workspace {
  grid-template-rows: minmax(0, 1fr);
}

.public-demo-premium-workspace .public-dashboard-body {
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f9f8;
  scrollbar-gutter: stable;
}

.premium-demo-dashboard {
  width: min(1440px, 100%);
  min-width: 0;
  display: grid;
  gap: 16px;
  margin: 0 auto;
  padding: 4px 4px 28px;
  color: #17211f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.premium-demo-hero {
  min-height: 180px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: stretch;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe7e3;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(18, 50, 43, 0.06);
}

.premium-demo-hero-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 24px 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(46, 160, 132, 0.10), transparent 30%),
    linear-gradient(135deg, #ffffff, #fbfdfc);
}

.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0b6d5d;
  font-size: 12px;
  font-weight: 800;
}

.premium-demo-hero h1,
.premium-demo-hero p,
.premium-access-card p,
.premium-metric p,
.premium-section-header h2,
.premium-section-header p,
.premium-resource-card h3,
.premium-resource-card p,
.premium-side-card h2,
.premium-activity-list p {
  margin: 0;
}

.premium-demo-hero h1 {
  color: #10201c;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.premium-demo-hero-copy > p {
  max-width: 64ch;
  color: #5f6e69;
  font-size: 15px;
  line-height: 1.5;
}

.premium-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 3px;
}

.premium-demo-actions .primary-button,
.premium-demo-actions .secondary-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
}

.premium-demo-actions .primary-button {
  background: #0b3b34;
}

.premium-access-card {
  align-self: center;
  display: grid;
  gap: 11px;
  margin: 18px 22px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(18, 50, 43, 0.08);
}

.premium-access-card > header,
.premium-access-card > header > div,
.premium-access-card dl,
.premium-access-card dl > div {
  min-width: 0;
  display: flex;
  align-items: center;
}

.premium-access-card > header {
  justify-content: space-between;
  gap: 12px;
}

.premium-access-card > header > div {
  gap: 8px;
}

.premium-access-card > header span {
  font-size: 14px;
  font-weight: 850;
}

.premium-access-card > header small {
  padding: 4px 7px;
  color: #147555;
  background: #e2f5ea;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
}

.premium-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #49605a;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.premium-copy-button:hover {
  color: #0b3b34;
  background: #eef5f2;
}

.premium-access-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.premium-access-card dl > div {
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f7f9f8;
  border: 1px solid #e1e8e5;
  border-radius: 8px;
}

.premium-access-card dt {
  color: #75817d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-access-card dd {
  margin: 0;
  color: #1a2824;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 850;
}

.premium-access-card > p {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  color: #687570;
  border-top: 1px solid #e5ebe8;
  font-size: 11px;
}

.premium-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.premium-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #dfe7e3;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(18, 50, 43, 0.04);
}

.premium-metric > span,
.premium-section-icon,
.premium-resource-card > header > span {
  display: grid;
  place-items: center;
  color: #0d6b5c;
  background: #e7f4f0;
  border-radius: 10px;
}

.premium-metric > span {
  width: 42px;
  height: 42px;
}

.premium-metric > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 8px;
}

.premium-metric small {
  overflow: hidden;
  color: #586762;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-metric strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #10201c;
  font-size: 24px;
  line-height: 1;
}

.premium-metric p {
  color: #8a9591;
  font-size: 10px;
}

.premium-demo-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  align-items: start;
  gap: 16px;
}

.premium-resources-panel,
.premium-side-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #dfe7e3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 50, 43, 0.045);
}

.premium-resources-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.premium-section-header,
.premium-section-header > div,
.premium-side-card > header {
  display: flex;
  align-items: center;
}

.premium-section-header {
  justify-content: space-between;
  gap: 16px;
}

.premium-section-header > div {
  min-width: 0;
  gap: 10px;
}

.premium-section-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.premium-section-header h2,
.premium-side-card h2 {
  color: #14231f;
  font-size: 15px;
}

.premium-section-header p {
  margin-top: 2px;
  color: #78847f;
  font-size: 11px;
}

.premium-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.premium-resource-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0e7e4;
  border-radius: 12px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.premium-resource-card:hover {
  transform: translateY(-1px);
  border-color: #b8cdc6;
  box-shadow: 0 12px 28px rgba(18, 50, 43, 0.07);
}

.premium-resource-card > header,
.premium-resource-card > footer {
  display: flex;
  align-items: center;
}

.premium-resource-card > header {
  justify-content: space-between;
  gap: 12px;
}

.premium-resource-card > header > span {
  width: 42px;
  height: 42px;
}

.premium-resource-card em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #687570;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.premium-resource-card em::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #9aa6a1;
  border-radius: 50%;
}

.premium-resource-card em.online {
  color: #15754f;
}

.premium-resource-card em.online::before {
  background: #19a667;
  box-shadow: 0 0 0 3px #e4f6ec;
}

.premium-resource-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.premium-resource-card > div > small {
  color: #71807b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-resource-card h3 {
  color: #14231f;
  font-size: 16px;
}

.premium-resource-card > div > p {
  min-height: 34px;
  color: #677570;
  font-size: 12px;
  line-height: 1.4;
}

.premium-resource-card code {
  overflow: hidden;
  padding: 8px 10px;
  color: #52615c;
  background: #f7f9f8;
  border: 1px solid #e5eae8;
  border-radius: 7px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-resource-card > footer {
  gap: 7px;
}

.premium-resource-card > footer .primary-button {
  background: #0b3b34;
}

.premium-resource-card > footer .compact-action {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 11px;
}

.premium-empty-resources {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #7a8782;
  border: 1px dashed #d4dfda;
  border-radius: 10px;
  font-size: 12px;
}

.premium-demo-aside {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.premium-side-card {
  display: grid;
  gap: 14px;
  padding: 17px;
}

.premium-side-card > header {
  gap: 8px;
  color: #0d6b5c;
}

.premium-activity-list {
  display: grid;
}

.premium-activity-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  position: relative;
  padding-bottom: 13px;
}

.premium-activity-list > div:last-child {
  padding-bottom: 0;
}

.premium-activity-list > div::before {
  width: 1px;
  content: "";
  position: absolute;
  top: 10px;
  bottom: -1px;
  left: 3px;
  background: #dce7e2;
}

.premium-activity-list > div:last-child::before {
  display: none;
}

.premium-activity-list > div > span {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  z-index: 1;
  background: #71a99e;
  border-radius: 50%;
}

.premium-activity-list p {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.premium-activity-list strong {
  overflow: hidden;
  color: #26342f;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-activity-list small {
  color: #84908b;
  font-size: 10px;
}

.premium-capability-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-capability-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  color: #0e6a5b;
  border-radius: 8px;
}

.premium-capability-list li:hover {
  background: #f4f8f6;
}

.premium-capability-list li > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.premium-capability-list strong {
  color: #26342f;
  font-size: 11px;
}

.premium-capability-list small {
  color: #84908b;
  font-size: 10px;
}

@media (max-width: 980px) {
  .premium-demo-hero,
  .premium-demo-main {
    grid-template-columns: 1fr;
  }

  .premium-access-card {
    margin: 0 20px 20px;
  }

  .premium-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-demo-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .premium-demo-dashboard {
    gap: 10px;
    padding-bottom: 16px;
  }

  .premium-demo-hero-copy {
    padding: 22px 18px;
  }

  .premium-demo-hero h1 {
    font-size: 30px;
  }

  .premium-demo-actions,
  .premium-demo-actions .primary-button,
  .premium-demo-actions .secondary-button {
    width: 100%;
  }

  .premium-demo-actions .primary-button,
  .premium-demo-actions .secondary-button {
    justify-content: center;
  }

  .premium-access-card dl,
  .premium-metrics,
  .premium-resource-grid,
  .premium-demo-aside {
    grid-template-columns: 1fr;
  }

  .premium-resource-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-resource-card > footer .compact-action {
    justify-content: center;
  }
}

.client-stack {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  align-content: stretch;
  gap: 14px;
  margin: 0 auto;
  padding-bottom: 18px;
}

.client-stack .dashboard-workspace {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.demo-workspace {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.demo-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #d4ddd8;
  border-left: 3px solid #168477;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(31, 49, 43, 0.06);
}

.demo-header h2,
.demo-header p {
  margin: 0;
}

.demo-header h2 {
  margin-top: 2px;
  color: #17211f;
  font-size: 19px;
  line-height: 1.2;
}

.demo-header p {
  margin-top: 4px;
  color: #687570;
  font-size: 13px;
}

.demo-header-actions {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.demo-limits {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-sales-link {
  min-height: 34px;
  color: #0d675d;
  border-color: #c7e6de;
}

.demo-limits span,
.demo-expiry {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #0d675d;
  background: #e1f3ee;
  border: 1px solid #c7e6de;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.demo-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-card,
.demo-machine {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d4ddd8;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(31, 49, 43, 0.055);
}

.demo-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.demo-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #17211f;
}

.demo-card-title svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #0d675d;
}

.demo-card-title > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.demo-card-title h3,
.demo-card-title p {
  margin: 0;
}

.demo-card-title h3 {
  color: #17211f;
  font-size: 16px;
  line-height: 1.25;
}

.demo-card-title p {
  color: #687570;
  font-size: 13px;
  line-height: 1.45;
}

.demo-card-help {
  margin: -2px 0 2px;
  color: #687570;
  font-size: 13px;
  line-height: 1.45;
}

.demo-card label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #40504b;
  font-size: 12px;
  font-weight: 900;
}

.demo-card input,
.demo-card select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #c9d6d1;
  border-radius: 4px;
  font-size: 13px;
}

.demo-card input:focus,
.demo-card select:focus {
  outline: 3px solid rgba(22, 132, 119, 0.14);
  border-color: #168477;
}

.ip-part-grid {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-card .ip-part-input {
  min-width: 0;
  flex: 1 1 0;
  padding: 0 6px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
}

.ip-dot {
  flex: 0 0 auto;
  color: #687570;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.demo-card .compact-action {
  justify-self: start;
  margin-top: 2px;
}

.demo-form-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-quickstart {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 24px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d4ddd8;
  border-left: 3px solid #168477;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(31, 49, 43, 0.075);
}

.demo-quick-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.demo-quick-copy h2,
.demo-quick-copy h3 {
  margin: 0;
  color: #17211f;
  font-size: 26px;
  line-height: 1.14;
}

.demo-quick-copy p,
.demo-quick-facts small {
  margin: 0;
  color: #687570;
  font-size: 13px;
  line-height: 1.45;
}

.demo-quick-copy .demo-limits {
  justify-content: flex-start;
  margin-top: 8px;
}

.demo-mode-switch {
  width: fit-content;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: 8px;
  padding: 3px;
  background: #edf3f0;
  border: 1px solid #d4ddd8;
  border-radius: 4px;
}

.demo-mode-switch button {
  min-height: 34px;
  padding: 0 12px;
  color: #40504b;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.demo-mode-switch button.active {
  color: #ffffff;
  background: #2d7f9f;
  box-shadow: 0 5px 14px rgba(45, 127, 159, 0.18);
}

.demo-quick-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.demo-quick-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.demo-quick-facts > div {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid #e0e8e4;
  border-radius: 4px;
}

.demo-quick-facts svg {
  color: #0d675d;
}

.demo-quick-facts span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.demo-quick-facts strong {
  overflow: hidden;
  color: #17211f;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-quick-facts small {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-source-credit {
  margin: -2px 0 0;
  color: #687570;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.demo-source-credit a {
  color: #176f92;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-quick-actions {
  min-width: 0;
  display: grid;
  justify-items: stretch;
  gap: 8px;
}

.demo-quick-actions .compact-action {
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

.demo-guidance-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 12px;
}

.demo-about-card,
.demo-steps-card,
.demo-sales-cta {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #d4ddd8;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(31, 49, 43, 0.055);
}

.demo-about-card {
  border-left: 3px solid #168477;
}

.demo-about-card h3 {
  margin: 0;
  color: #17211f;
  font-size: 18px;
  line-height: 1.2;
}

.demo-about-card p,
.demo-sales-cta p {
  margin: 0;
  color: #687570;
  font-size: 13px;
  line-height: 1.5;
}

.demo-about-card ul {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.demo-about-card li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #40504b;
  font-size: 12px;
  font-weight: 850;
}

.demo-about-card li svg {
  flex: 0 0 auto;
  color: #0d675d;
}

.demo-step-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.demo-step {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid #e0e8e4;
  border-radius: 4px;
}

.demo-step > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #46625b;
  background: #edf4f1;
  border: 1px solid #d9e6e1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.demo-step.done > span {
  color: #0d675d;
  background: #dff5ee;
  border-color: #bfe6dc;
}

.demo-step.active {
  border-color: #8bbfb2;
  box-shadow: inset 3px 0 0 #168477;
}

.demo-step strong,
.demo-sales-cta strong {
  display: block;
  overflow: hidden;
  color: #17211f;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.demo-step small {
  display: block;
  margin-top: 3px;
  color: #687570;
  font-size: 12px;
  line-height: 1.35;
}

.demo-custom-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-manual-section {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.demo-manual-section > header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.demo-manual-section > header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.demo-manual-section > header strong {
  color: #17211f;
  font-size: 15px;
}

.demo-resources {
  display: grid;
  gap: 12px;
}

.demo-resources-header {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.demo-resources-header h3 {
  margin: 2px 0 0;
  color: #17211f;
  font-size: 20px;
  line-height: 1.2;
}

.demo-resources-header small {
  color: #687570;
  font-size: 13px;
}

.demo-empty {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  color: #687570;
  background: #f7faf8;
  border: 1px dashed #bfd0c9;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.demo-machine {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.demo-machine > header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 10px;
}

.demo-machine > header > div:first-child,
.demo-service-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.demo-machine strong,
.demo-service-row strong {
  overflow: hidden;
  color: #17211f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-machine small,
.demo-service-row small {
  overflow: hidden;
  color: #687570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-service-list {
  display: grid;
  gap: 8px;
}

.demo-service-row {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f7faf8;
  border: 1px solid #e0e8e4;
  border-radius: 4px;
}

.demo-open-link {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.demo-sales-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  background:
    linear-gradient(135deg, rgba(31, 120, 162, 0.08), transparent 58%),
    #ffffff;
  border-left: 3px solid #1f78a2;
}

.client-shell .demo-workspace .notice {
  border-radius: 4px;
  font-size: 13px;
}

@media (max-width: 920px) {
  .demo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-limits {
    justify-content: flex-start;
  }

  .demo-header-actions {
    justify-items: start;
  }

  .demo-grid,
  .demo-quickstart,
  .demo-custom-panel,
  .demo-guidance-panel {
    grid-template-columns: 1fr;
  }

  .demo-quick-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .client-stack {
    gap: 10px;
    padding-bottom: 10px;
  }

  .client-stack .dashboard-workspace {
    min-height: 360px;
    grid-template-rows: auto minmax(300px, 1fr);
  }

  .demo-header,
  .demo-card,
  .demo-quickstart,
  .demo-machine {
    padding: 10px;
  }

  .demo-quick-facts,
  .demo-quick-actions,
  .demo-step-list,
  .demo-mode-switch,
  .demo-resources-header,
  .demo-manual-section > header,
  .demo-sales-cta {
    grid-template-columns: 1fr;
  }

  .demo-manual-section > header,
  .demo-resources-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-machine > header,
  .demo-service-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .demo-machine > header .demo-expiry,
  .demo-service-row .demo-open-link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.public-client-shell .public-content {
  height: calc(100dvh - 64px);
  overflow: hidden;
}

.public-client-shell .client-content {
  min-height: 0;
  height: calc(100dvh - 64px);
  display: grid;
  padding: 8px;
  overflow: hidden;
}

.public-client-shell .public-workspace {
  width: min(100%, calc(100vw - 16px));
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.public-client-shell .public-workspace.public-has-services {
  width: min(100%, calc(100vw - 16px));
}

.public-client-shell .public-dashboard-body {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.private-entry {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

.private-entry-panel {
  width: min(760px, 100%);
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(28px, 4vw, 46px);
  color: #17211f;
  background: #ffffff;
  border: 1px solid #cfdcd6;
  border-left: 4px solid #1f8b7d;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(31, 49, 43, 0.10);
}

.private-entry-panel h1,
.private-entry-panel p {
  margin: 0;
}

.private-entry-panel h1 {
  max-width: 16ch;
  color: #17211f;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.private-entry-panel p {
  max-width: 64ch;
  color: #5f6f69;
  font-size: 16px;
  line-height: 1.55;
}

.private-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.private-entry-actions .primary-button,
.private-entry-actions .secondary-button {
  min-height: 44px;
  padding: 0 18px;
}

.private-entry-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52615c;
  font-size: 13px;
  font-weight: 800;
}

.private-entry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #d1ddd8;
  border-left: 4px solid #1f8b7d;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(31, 49, 43, 0.06);
}

.private-entry-banner > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.private-entry-banner strong {
  color: #17211f;
  font-size: 15px;
}

.private-entry-banner span {
  color: #62716c;
  font-size: 13px;
  line-height: 1.4;
}

.base-public-services {
  min-height: 0;
}

.public-service-catalog {
  display: grid;
  gap: 14px;
}

.public-service-group {
  display: grid;
  gap: 10px;
}

.public-service-group-header {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #52635d;
  font-size: 13px;
  font-weight: 900;
}

.public-service-group-header span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #108c7d;
  background: #e2f4ef;
  border: 1px solid #c5e6de;
  border-radius: 6px;
}

.public-service-group-header strong {
  color: #17211f;
}

.public-service-group-header small {
  margin-left: auto;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #126d62;
  background: #e6f6f1;
  border-radius: 999px;
  font-size: 11px;
}

.public-service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.public-service-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon copy status"
    "icon copy action";
  align-items: center;
  gap: 10px 14px;
  padding: 16px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #cfddd7;
  border-left: 4px solid #1f8b7d;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 49, 43, 0.08);
}

.public-service-card-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #0f776b;
  background: #ddf1eb;
  border: 1px solid #c4e3db;
  border-radius: 8px;
}

.public-service-card > div {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.public-service-card strong,
.public-service-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-service-card strong {
  color: #17211f;
  font-size: 16px;
  line-height: 1.2;
}

.public-service-card small {
  color: #62716c;
  font-size: 13px;
}

.public-service-card .service-status {
  grid-area: status;
  justify-self: end;
}

.public-service-open {
  grid-area: action;
  justify-self: end;
  min-height: 36px;
  padding: 0 13px;
}

.public-demo-intro {
  display: grid;
  gap: 10px;
}

.public-demo-layout {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 10px;
}

.public-workspace.public-has-services .public-dashboard-body {
  overflow: hidden;
}

.public-demo-layout > .public-demo-intro {
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.public-demo-layout > .public-services-section {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 7px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfdcd6;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(31, 49, 43, 0.08);
}

.public-demo-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: #10251f;
  border: 1px solid #cddad5;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(31, 49, 43, 0.10);
}

.public-demo-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(36, 86, 75, 0.46), rgba(16, 37, 31, 0.92)),
    linear-gradient(rgba(113, 198, 185, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 198, 185, 0.055) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

.public-demo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: #15372f;
  background: #dff5ee;
  border: 1px solid rgba(132, 219, 202, 0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.public-demo-copy h2,
.public-demo-copy p {
  margin: 0;
}

.public-demo-copy h2 {
  max-width: 14ch;
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

.public-demo-copy p {
  max-width: 64ch;
  color: #bfd0ca;
  font-size: 14px;
  line-height: 1.45;
}

.public-demo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.public-demo-actions .primary-button {
  min-height: 40px;
  padding: 0 18px;
  background: #1f78a2;
}

.public-demo-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8b263;
  font-size: 13px;
  font-weight: 900;
}

.public-demo-status {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  color: #17211f;
  background: #fbfdfc;
  border-top: 1px solid #d5e0db;
  border-left: 0;
}

.public-demo-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-demo-status-header span {
  color: #1a7b6f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-demo-status-header strong {
  color: #17211f;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
}

.public-demo-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.public-demo-metrics small {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #5d6d67;
  background: #f0f5f2;
  border: 1px solid #dce8e2;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.public-demo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.public-demo-login-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 9px;
  padding: 11px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #cbdad4;
  border-top: 4px solid #1f78a2;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(31, 49, 43, 0.06);
}

.public-demo-login-card > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.public-demo-login-card strong {
  color: #17211f;
  font-size: 15px;
}

.public-demo-login-card small,
.public-demo-login-card p {
  color: #62716c;
  font-size: 13px;
  line-height: 1.4;
}

.public-demo-login-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.public-demo-personas {
  display: grid;
  gap: 10px;
}

.public-demo-persona {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 9px;
  background: #f5f9f7;
  border: 1px solid #dbe6e1;
  border-radius: 6px;
}

.public-demo-persona > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #12312d;
  font-size: 13px;
  font-weight: 900;
}

.public-demo-persona > span svg {
  color: #0d7168;
}

.public-demo-persona-private {
  background: #fbfcfb;
  border-style: dashed;
}

.public-demo-persona-private p {
  display: inline-flex;
  justify-self: start;
  padding: 5px 8px;
  color: #0f5f56;
  background: #e3f4ef;
  border: 1px solid #c7e5dc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.public-demo-login-card dl > div {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  background: #f3f7f5;
  border: 1px solid #dbe6e1;
  border-radius: 6px;
}

.public-demo-login-card dt {
  color: #6c7b75;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-demo-login-card dd {
  margin: 0;
  color: #12312d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
}

.public-demo-login-card p {
  margin: 0;
}

.public-demo-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 3px 10px;
  padding: 10px;
  color: #17211f;
  background: #ffffff;
  border: 1px solid #d1ddd8;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(31, 49, 43, 0.06);
}

.public-demo-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0d7168;
  background: #ddf2ec;
  border: 1px solid #c7e5dc;
  border-radius: 6px;
}

.public-demo-card strong {
  color: #17211f;
  font-size: 15px;
}

.public-demo-card p {
  grid-column: 2;
  margin: 0;
  color: #62716c;
  font-size: 13px;
  line-height: 1.35;
}

.public-demo-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  color: #485a54;
  background: #ffffff;
  border: 1px solid #d1ddd8;
  border-radius: 6px;
}

.public-demo-layout .public-demo-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-demo-layout .public-demo-flow > svg {
  display: none;
}

.public-demo-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #24332f;
  font-size: 13px;
  font-weight: 900;
}

.public-demo-flow > svg {
  color: #7d8c87;
}

.public-contact-band {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: #17211f;
  background:
    linear-gradient(135deg, rgba(31, 120, 162, 0.08), transparent 52%),
    #ffffff;
  border: 1px solid #d1ddd8;
  border-left: 4px solid #1f78a2;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(31, 49, 43, 0.06);
}

.public-contact-band > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.public-contact-band strong {
  color: #17211f;
  font-size: 17px;
}

.public-contact-band p {
  max-width: 68ch;
  margin: 0;
  color: #62716c;
  font-size: 13px;
  line-height: 1.45;
}

.public-services-section {
  min-height: 380px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.public-services-section.base-public-services {
  height: 100%;
  min-height: 0;
  gap: 6px;
  padding: 7px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfdcd6;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(31, 49, 43, 0.08);
}

.public-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #17211f;
}

.public-section-heading strong {
  font-size: 15px;
}

.public-section-heading small {
  color: #6d7b76;
  font-size: 12px;
}

.public-catalog-explorer {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 7px;
  overflow: hidden;
}

.public-catalog-sidebar,
.public-catalog-preview-panel {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d1ddd8;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(31, 49, 43, 0.06);
}

.public-catalog-sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  background: #f7fbf9;
}

.public-catalog-sidebar-header {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #d8e4df;
}

.public-catalog-search {
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 4px;
  padding: 0 10px;
  color: #61716b;
  background: #ffffff;
  border: 1px solid #d1ddd8;
  border-radius: 7px;
}

.public-catalog-search:focus-within {
  color: #0f776b;
  border-color: #2d9a8c;
  box-shadow: 0 0 0 3px rgba(45, 154, 140, 0.12);
}

.public-catalog-search input {
  min-width: 0;
  height: 34px;
  padding: 0;
  color: #17211f;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.public-catalog-search input::placeholder {
  color: #7a8983;
  font-weight: 700;
}

.public-catalog-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 0 4px 4px;
  border-bottom: 1px solid #d8e4df;
}

.public-catalog-tabs button {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #40504b;
  background: #edf5f2;
  border: 1px solid #d4e2dc;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.public-catalog-tabs button:hover {
  color: #163f39;
  border-color: #a9c6bd;
  background: #ffffff;
}

.public-catalog-tabs button.active {
  color: #ffffff;
  background: #237995;
  border-color: #237995;
  box-shadow: 0 8px 18px rgba(35, 121, 149, 0.18);
}

.public-catalog-tabs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-catalog-tabs b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: #0d675d;
  background: #dff2ec;
  border-radius: 999px;
  font-size: 10px;
}

.public-catalog-tabs button.active b {
  color: #14574f;
  background: #d8f4ee;
}

.public-catalog-sidebar-header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.public-catalog-sidebar-header strong,
.public-catalog-sidebar-header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-catalog-sidebar-header strong {
  color: #17211f;
  font-size: 14px;
  font-weight: 900;
}

.public-catalog-sidebar-header span {
  color: #6b7a75;
  font-size: 12px;
}

.public-catalog-sidebar-header b {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  color: #0d675d;
  background: #dff2ec;
  border: 1px solid #c2e3da;
  border-radius: 999px;
  font-size: 12px;
}

.public-catalog-sidebar-scroll {
  min-height: 0;
  overflow: auto;
  padding: 4px;
}

.public-catalog-group {
  display: grid;
  gap: 4px;
}

.public-catalog-group + .public-catalog-group {
  margin-top: 14px;
}

.public-catalog-group-header {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 1px;
  color: #52635d;
  font-size: 12px;
  font-weight: 900;
}

.public-catalog-group-header span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #108c7d;
  background: #e2f4ef;
  border: 1px solid #c5e6de;
  border-radius: 6px;
}

.public-catalog-group-header strong {
  color: #17211f;
}

.public-catalog-group-header small {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: auto;
  color: #0d675d;
  background: #e4f4ef;
  border-radius: 999px;
  font-size: 10px;
}

.public-catalog-list {
  display: grid;
  gap: 4px;
}

.public-catalog-list-item {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  color: #17211f;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d9e4df;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.public-catalog-list-item:hover {
  border-color: #a9c6bd;
  box-shadow: 0 6px 14px rgba(31, 49, 43, 0.07);
}

.public-catalog-list-item.active {
  color: #11342f;
  background: #eaf6f2;
  border-color: #2d9a8c;
  box-shadow: inset 4px 0 0 #168477, 0 8px 18px rgba(31, 49, 43, 0.08);
}

.public-catalog-list-item .service-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #0f776b;
  background: #ddf1eb;
  border: 1px solid #c4e3db;
  border-radius: 7px;
}

.public-catalog-list-item .service-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.public-catalog-list-item .service-copy strong,
.public-catalog-list-item .service-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-catalog-list-item .service-copy strong {
  color: inherit;
  font-size: 12.5px;
  font-weight: 900;
}

.public-catalog-list-item .service-copy small {
  color: #63736d;
  font-size: 11px;
}

.public-catalog-list-item .service-status {
  justify-self: end;
}

.public-catalog-preview-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-color: #9ccac0;
}

.public-catalog-preview-panel .public-resource-preview-header {
  min-height: 50px;
  height: auto;
  flex-wrap: wrap;
}

.public-doc-preview-controls {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-doc-preview-controls label {
  min-width: 144px;
  display: grid;
  gap: 2px;
}

.public-doc-preview-controls label > span {
  color: #65746f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-doc-preview-controls select {
  width: 100%;
  height: 32px;
  min-width: 0;
  padding: 0 30px 0 10px;
  color: #17211f;
  background-color: #ffffff;
  border: 1px solid #cbd8d3;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.public-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  flex-shrink: 0;
}

.public-source-link {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  color: #10362f;
  background: #e6f4ef;
  border: 1px solid #b9d9d0;
  box-shadow: none;
}

.public-source-link:hover {
  color: #0b5f55;
  background: #f5fbf8;
  border-color: #8dc7bd;
}

.public-source-link span {
  display: inline;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.public-catalog-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  color: #62716c;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #c9d8d2;
  border-radius: 7px;
}

.public-catalog-empty strong {
  color: #17211f;
  font-size: 14px;
}

.public-catalog-empty span {
  max-width: 28ch;
  font-size: 12px;
  line-height: 1.4;
}

.public-catalog-pagination {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px;
  color: #66756f;
  border-top: 1px solid #d8e4df;
}

.public-catalog-pagination > span {
  font-size: 12px;
  font-weight: 800;
}

.public-catalog-pagination > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.public-catalog-pagination .icon-button {
  width: 32px;
  height: 32px;
}

.public-catalog-pagination strong {
  min-width: 42px;
  text-align: center;
  color: #17211f;
  font-size: 12px;
  font-weight: 900;
}

.public-catalog-preview-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  color: #687872;
  text-align: center;
  background: #eef4f1;
}

.public-catalog-preview-empty strong {
  color: #17211f;
  font-size: 16px;
}

.public-catalog-preview-empty span {
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.45;
}

.public-resource-list {
  display: grid;
  gap: 8px;
}

.public-resource-row {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  grid-template-areas:
    "icon main status actions"
    "preview preview preview preview";
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #17211f;
  background: #f8fbf9;
  border: 1px solid #d8e4df;
  border-radius: 7px;
}

.public-resource-row:hover {
  background: #ffffff;
  border-color: #b8d4cd;
}

.public-resource-row.preview-open {
  background: #ffffff;
  border-color: #8dc7bd;
  box-shadow: 0 14px 34px rgba(31, 49, 43, 0.10);
}

.public-resource-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0f776b;
  background: #ddf1eb;
  border: 1px solid #c4e3db;
  border-radius: 8px;
}

.public-resource-main {
  grid-area: main;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.public-resource-main strong,
.public-resource-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-resource-main strong {
  color: #17211f;
  font-size: 15px;
}

.public-resource-main small {
  color: #63736d;
  font-size: 12px;
}

.public-resource-row .service-status {
  grid-area: status;
  justify-self: end;
}

.public-resource-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.public-resource-preview-toggle {
  min-height: 36px;
  padding: 0 13px;
  white-space: nowrap;
}

.public-resource-external {
  width: 36px;
  height: 36px;
}

.public-resource-preview {
  grid-area: preview;
  min-width: 0;
  height: min(72vh, 760px);
  min-height: 520px;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  overflow: hidden;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #d2dfda;
  border-radius: 7px;
}

.public-resource-preview-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  color: #17211f;
  background: #f8fbf9;
  border-bottom: 1px solid #d2dfda;
}

.public-resource-preview-header > div:first-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.public-resource-preview-header strong,
.public-resource-preview-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-resource-preview-header strong {
  font-size: 13px;
}

.public-resource-preview-header span {
  color: #65746f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-resource-preview-header .public-source-link span {
  display: inline;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1100px) {
  .public-workspace.public-has-services .public-dashboard-body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .public-demo-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .public-demo-layout > .public-demo-intro {
    overflow: visible;
  }

  .public-demo-layout > .public-services-section {
    height: min(72vh, 680px);
    min-height: 440px;
  }

  .public-demo-layout .public-demo-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  }

  .public-demo-layout .public-demo-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-demo-layout .public-demo-flow {
    display: flex;
  }

  .public-demo-layout .public-demo-flow > svg {
    display: block;
  }
}

@media (max-width: 900px) {
  .public-demo-hero,
  .public-demo-cards,
  .public-demo-layout .public-demo-hero,
  .public-demo-layout .public-demo-cards {
    grid-template-columns: 1fr;
  }

  .public-demo-status {
    border-top: 1px solid #d5e0db;
    border-left: 0;
  }

  .public-client-shell .public-workspace.public-has-services {
    width: min(100%, calc(100vw - 24px));
  }

  .public-catalog-explorer {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .public-catalog-sidebar {
    max-height: 380px;
  }

  .public-catalog-preview-panel {
    height: min(68vh, 560px);
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .public-client-shell .client-content {
    padding: 12px;
  }

  .public-services-section.base-public-services {
    padding: 10px;
  }

  .public-section-heading {
    display: grid;
  }

  .public-catalog-sidebar-header {
    min-height: 58px;
  }

  .public-catalog-tabs {
    grid-template-columns: 1fr;
  }

  .public-catalog-list-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .public-catalog-list-item .service-status {
    grid-column: 2;
    justify-self: start;
  }

  .public-catalog-preview-panel {
    min-height: 340px;
  }

  .public-resource-preview-header {
    padding: 0 10px;
  }

  .public-resource-preview-header span {
    display: none;
  }

  .public-service-card {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "status action";
    align-items: center;
  }

  .public-service-card-icon {
    width: 40px;
    height: 40px;
  }

  .public-service-card .service-status {
    justify-self: start;
  }

  .public-service-open {
    justify-self: stretch;
  }

  .public-demo-copy,
  .public-demo-status,
  .public-demo-card {
    padding: 18px;
  }

  .public-demo-copy h2 {
    font-size: 32px;
  }

  .public-demo-status strong {
    font-size: 42px;
  }

  .public-demo-metrics,
  .public-demo-login-card dl {
    grid-template-columns: 1fr;
  }

  .public-demo-flow {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-contact-band {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .public-contact-band .primary-button {
    justify-self: start;
  }

  .public-demo-flow > svg {
    display: none;
  }

  .private-entry {
    min-height: auto;
    padding: 10px 0;
  }

  .private-entry-panel {
    padding: 22px;
  }

  .private-entry-panel h1 {
    font-size: 34px;
  }

  .private-entry-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .private-entry-banner .primary-button {
    justify-content: center;
    width: 100%;
  }
}

/* Final premium dashboard overrides after legacy responsive rules. */
.public-client-shell .public-demo-premium-workspace {
  grid-template-rows: minmax(0, 1fr);
}

.public-client-shell .public-demo-premium-workspace .public-dashboard-body {
  overflow-x: hidden;
  overflow-y: auto;
}
/* Owner management polish pass */
.admin-workspace {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 18px 20px 14px;
  gap: 14px;
  overflow: auto;
}

.admin-page-header {
  align-items: flex-end;
  gap: 16px;
  padding: 10px 4px 4px 16px;
}

.admin-page-header h1,
.admin-panel-header h2 {
  letter-spacing: 0;
}

.admin-header-actions,
.panel-actions,
.admin-management-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-summary {
  min-height: 40px;
  flex-wrap: wrap;
  background: #111f1b;
  border-color: #2c4d46;
}

.admin-summary span {
  color: #a8bcb6;
}

.admin-summary strong {
  color: #f6fffc;
}

.admin-section-nav {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.admin-section-nav button {
  min-height: 92px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px;
  border-radius: 7px;
}

.admin-tab-copy {
  min-width: 0;
  display: grid;
  gap: 6px !important;
}

.admin-tab-copy strong {
  font-size: 16px;
  line-height: 1.12;
  white-space: normal;
}

.admin-tab-copy small {
  color: #9bb0aa;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-section-nav button.active .admin-tab-copy small {
  color: #173832;
}

.admin-section-nav button.active {
  color: #0a211d;
  background: #73ccbd;
  border-color: #86dfd0;
}

.admin-section-nav button.active .admin-tab-icon,
.admin-section-nav button.active .admin-tab-count {
  color: #0a211d;
  background: #d9f8f3;
  border-color: #b8efe5;
}

.admin-tab-count {
  min-width: 28px;
  height: 28px;
  align-self: center;
}

.admin-panel {
  border-radius: 7px;
  background: #12201d;
  border-color: #31564f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.admin-panel-header {
  align-items: flex-start;
  min-height: 72px;
  padding: 15px 16px;
  background: #13251f;
  border-color: #2b4d46;
}

.admin-panel-header h2 {
  color: #f6fffc;
}

.admin-panel-header p {
  color: #9fb4ae;
}

.service-admin-stack {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.service-admin-stack.single-panel {
  grid-template-rows: minmax(0, 1fr);
}

.service-admin-stack > .admin-resources-panel {
  min-height: 0;
  height: 100%;
}

.service-admin-stack:not(.single-panel) > .admin-resources-panel > .admin-resource-management {
  height: clamp(360px, calc(100dvh - 410px), 620px);
}

.api-service-manager {
  display: grid;
  gap: 12px;
}

.api-security-card,
.api-route-card,
.api-tools-grid > article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #315a52;
  border-radius: 8px;
  background: #10231f;
}

.api-security-card h3,
.api-tools-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.api-security-card p,
.api-tools-grid p {
  margin: 0;
  color: #9fb5af;
}

.api-token-row,
.api-route-card {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-token-row {
  margin-top: 12px;
}

.api-token-row code,
.api-route-card code {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  overflow: hidden;
  color: #c8fff6;
  border: 1px solid #315a52;
  border-radius: 6px;
  background: #091a16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-route-card > div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.api-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
}

.api-tools-grid article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.api-tools-grid pre {
  margin: 12px 0 8px;
  padding: 12px;
  overflow: auto;
  color: #dffbf6;
  border: 1px solid #294e47;
  border-radius: 7px;
  background: #071612;
}

.api-tools-grid dl {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.api-tools-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  background: #0b1b17;
}

.api-tools-grid dt { color: #8fa8a2; }
.api-tools-grid dd { margin: 0; color: #e6f5f1; font-family: monospace; }

.api-endpoint-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.api-endpoint-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(114, 196, 182, 0.16);
  border-radius: 6px;
}

.api-endpoint-list b {
  font-size: 10px;
  color: #8de0d1;
}

.api-endpoint-list span {
  min-width: 0;
  color: #91aaa4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .api-tools-grid { grid-template-columns: 1fr; }
}

.admin-search-field,
.search-field {
  width: min(340px, 100%);
}

.admin-filter-pills {
  display: inline-flex;
  min-height: 36px;
  padding: 3px;
  gap: 3px;
  background: #0f1f1c;
  border: 1px solid #2d4a45;
  border-radius: 7px;
}

.admin-filter-pills button {
  min-height: 28px;
  padding: 0 11px;
  color: #a9beb8;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.admin-filter-pills button.active {
  color: #08231f;
  background: #70d2c5;
}

.admin-table {
  overflow-x: auto;
  background: #10201c;
  border-color: #2c4c45;
}

.admin-table-scroll {
  max-height: min(62vh, 680px);
  overflow: auto;
}

.library-services-scroll .admin-table-scroll {
  max-height: none;
  overflow: visible;
}

.admin-table-head,
.admin-data-row {
  min-width: 1080px;
  column-gap: 16px;
}

.admin-table-head {
  min-height: 40px;
  color: #95e2d6;
  background: #0f211d;
}

.admin-data-row {
  min-height: 66px;
  background: #14241f;
  border-color: #294740;
}

.admin-data-row:hover {
  background: #182d27;
}

.service-admin-columns {
  grid-template-columns: minmax(300px, 1fr) 190px minmax(220px, 0.95fr) 145px 104px 196px;
}

.library-services-scroll .service-admin-columns {
  grid-template-columns: minmax(320px, 1fr) 160px minmax(190px, 0.72fr) 136px 104px 168px;
}

.machine-admin-columns {
  grid-template-columns: minmax(280px, 1fr) 180px minmax(170px, 0.75fr) 108px 104px 96px;
}

.user-admin-columns {
  grid-template-columns: minmax(340px, 1fr) 112px 200px 168px 104px;
}

.group-admin-columns {
  grid-template-columns: minmax(340px, 1fr) 112px 112px 160px 104px 96px;
}

.admin-table-head > span,
.admin-data-row > * {
  min-width: 0;
}

.entity-cell strong,
.access-cell strong {
  color: #effaf7;
}

.entity-cell small,
.access-cell small,
.destination-cell {
  color: #9fb4ae;
}

.destination-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-group .icon-button {
  width: 38px;
  height: 38px;
}

.service-row-stack {
  border-bottom: 1px solid #294740;
}

.service-row-stack:last-child {
  border-bottom: 0;
}

.edit-row {
  margin: 0;
  border-radius: 0;
  border-inline: 0;
}

.library-manager-simple {
  margin: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid #294c45;
  background: #101d1a;
}

.library-manager-simple .library-manager-toolbar {
  grid-template-columns: minmax(220px, 380px) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.library-workspace-grid {
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 14px;
}

.library-variant-list,
.library-detail-panel {
  min-height: 280px;
  border-color: #315950;
  background: #0e1d1a;
}

.library-variant-item {
  min-height: 56px;
  border-radius: 6px;
}

.library-detail-header {
  min-height: 64px;
  align-items: center;
  background: #13241f;
  border-color: #2b5049;
}

.library-version-row {
  border-color: #2d514a;
  background: #13241f;
}

.identity-admin-stack {
  gap: 12px;
}

.identity-switch.segmented {
  width: fit-content;
  padding: 4px;
  background: #10201c;
  border: 1px solid #2e5049;
  border-radius: 7px;
}

.identity-switch.segmented button {
  min-height: 34px;
  border-radius: 5px;
}

.group-editor-form {
  gap: 16px;
}

.group-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-assignment-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.group-picker-card {
  min-height: 315px;
  background: rgba(255, 255, 255, 0.04);
  border-color: #315950;
  border-radius: 7px;
  overflow: hidden;
}

.group-picker-header {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #12231f;
  border-color: #2e514a;
}

.group-picker-header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.group-picker-header strong {
  color: #f4fffc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.group-picker-header small {
  color: #95b7af;
  font-size: 11px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.group-picker-header b {
  min-width: 48px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #a7efe2;
  background: #173f38;
  border: 1px solid #3f766b;
  border-radius: 999px;
}

.group-picker-list {
  max-height: 330px;
  padding: 10px;
}

.selection-row {
  min-height: 48px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 6px;
}

.selection-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.selection-row small {
  white-space: normal;
  line-height: 1.25;
}

.password-reset-card {
  grid-template-columns: minmax(280px, 1fr) minmax(230px, 0.55fr) auto;
  align-items: end;
}

.password-field input {
  min-height: 42px;
}

.password-visibility-button {
  color: #7fded3;
  background: #0d221e;
  border-color: #315d55;
}

.access-layout {
  min-height: 600px;
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
}

.access-service-list {
  max-height: min(70vh, 760px);
  overflow: auto;
}

.access-detail {
  min-width: 0;
}

.access-detail-header {
  align-items: center;
  gap: 14px;
}

.access-user-list {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

.access-entity-card,
.access-user-card {
  border-radius: 7px;
  border-color: #315950;
  background: #12231f;
}

.access-mode {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.audit-list {
  max-height: min(72vh, 760px);
  overflow: auto;
  background: #101f1c;
}

.audit-table-head,
.audit-row {
  grid-template-columns: 34px minmax(360px, 1fr) 160px 190px;
}

.audit-row {
  min-height: 62px;
  border-color: #294740;
}

.audit-row strong {
  color: #effaf7;
}

.audit-row small,
.audit-actor,
.audit-row time {
  color: #9fb4ae;
}

@media (max-width: 1500px) {
  .admin-section-nav {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .admin-tab-copy strong {
    font-size: 15px;
  }

  .admin-workspace {
    padding-inline: 16px;
  }
}

@media (max-width: 1180px) {
  .admin-table-head,
  .admin-data-row {
    min-width: 980px;
  }

  .group-assignment-grid,
  .access-layout,
  .library-workspace-grid {
    grid-template-columns: 1fr;
  }

  .access-service-list {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .admin-workspace {
    width: 100%;
    padding: 12px;
  }

  .admin-page-header,
  .admin-panel-header,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-actions,
  .admin-header-actions {
    justify-content: stretch;
  }

  .search-field,
  .compact-action,
  .admin-header-actions .icon-button {
    width: 100%;
  }

  .admin-section-nav {
    grid-template-columns: 1fr;
  }

  .admin-table-head {
    display: none;
  }

  .admin-data-row {
    min-width: 0;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px;
  }

  .service-admin-columns,
  .machine-admin-columns,
  .user-admin-columns,
  .group-admin-columns,
  .library-services-scroll .service-admin-columns,
  .audit-table-head,
  .audit-row {
    grid-template-columns: 1fr;
  }

  .admin-data-row > .action-group {
    justify-self: start;
  }

  .group-form-grid,
  .password-reset-card,
  .access-user-list {
    grid-template-columns: 1fr;
  }
}

/* Machines reuse the same master/detail workspace as services. */
.machines-resources-panel .machine-resource-sidebar {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.machines-resources-panel .machine-detail-body {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

/* Every management section consumes the same remaining viewport height. */
.admin-workspace {
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.admin-tab-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  overflow: hidden;
}

.admin-tab-content > *,
.admin-tab-content > .admin-panel,
.admin-tab-content > .identity-admin-stack,
.admin-tab-content > .service-admin-stack {
  min-height: 0;
  height: 100%;
}

.admin-tab-content > .admin-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-tab-content .admin-resources-panel > .admin-resource-management,
.service-admin-stack:not(.single-panel) > .admin-resources-panel > .admin-resource-management {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.admin-tab-content .access-layout,
.admin-tab-content .audit-management,
.admin-tab-content .unified-admin-management {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.admin-tab-content .access-admin-panel,
.admin-tab-content .unified-access-panel {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 900px), (max-height: 680px) {
  .admin-workspace {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto;
    align-content: start;
    overflow: auto;
  }

  .admin-tab-content {
    height: auto;
    min-height: 520px;
    overflow: visible;
  }
}

.machines-resources-panel .machine-description-section p {
  margin: 0;
}

.machines-resources-panel .machine-hosted-services {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--admin-line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 2.5%);
}

.machines-resources-panel .machine-hosted-services > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-line-soft);
}

.machines-resources-panel .machine-hosted-services > header h3 {
  margin: 3px 0 0;
  color: #f4fffc;
  font-size: 15px;
}

.machines-resources-panel .machine-hosted-services > header > b {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #aaf3e7;
  border: 1px solid #32685e;
  border-radius: 999px;
  background: #123d35;
}

.machines-resources-panel .machine-hosted-service-list {
  min-height: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.machines-resources-panel .machine-hosted-service {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #294e46;
  border-radius: 8px;
  background: #10251f;
}

.machines-resources-panel .machine-hosted-service .machine-service-edit {
  min-width: 82px;
  justify-content: center;
}

.machines-resources-panel .machine-hosted-service > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.machines-resources-panel .machine-hosted-service strong,
.machines-resources-panel .machine-hosted-service small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machines-resources-panel .machine-hosted-service small {
  color: #9abbb4;
}

.machines-resources-panel .machine-hosted-service > b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  text-transform: capitalize;
}

/* Owner management detail polish */
.admin-workspace {
  --admin-panel-bg: #111f1c;
  --admin-panel-soft: #132620;
  --admin-panel-strong: #19352f;
  --admin-line: #305b52;
  --admin-line-soft: #284840;
  --admin-text: #f5fffc;
  --admin-muted: #9fb7b0;
  --admin-accent: #73d0c3;
  --admin-accent-strong: #2f7fa2;
  padding: 20px 22px 16px;
  background:
    radial-gradient(circle at 20% 0, rgba(115, 208, 195, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(7, 15, 13, 0.62), rgba(7, 15, 13, 0.9));
}

.admin-page-header {
  min-height: 76px;
  padding: 10px 0 2px;
}

.admin-page-header .page-kicker,
.admin-panel-header .section-kicker {
  color: #92f2e5;
}

.admin-page-header h1 {
  font-size: clamp(25px, 2vw, 34px);
}

.admin-page-header p {
  color: var(--admin-muted);
}

.admin-summary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-section-nav {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.admin-section-nav button {
  min-height: 96px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--admin-panel-bg);
  border-color: var(--admin-line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.admin-section-nav button:hover {
  border-color: #4c8c7f;
  transform: translateY(-1px);
}

.admin-section-nav button.active {
  box-shadow:
    0 14px 30px rgba(79, 210, 194, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.admin-tab-copy strong {
  font-size: 17px;
}

.admin-tab-copy small {
  min-height: 30px;
  -webkit-line-clamp: 2;
}

.admin-tab-next {
  color: currentColor;
  opacity: 0.75;
}

.admin-panel {
  background: var(--admin-panel-bg);
  border-color: var(--admin-line);
}

.admin-panel-header {
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(115, 208, 195, 0.08), rgba(115, 208, 195, 0)),
    var(--admin-panel-soft);
}

.admin-panel-header > div:first-child {
  min-width: min(520px, 100%);
}

.admin-panel-header h2 {
  font-size: 22px;
}

.admin-panel-header p {
  max-width: 680px;
}

.panel-actions,
.admin-management-toolbar {
  align-items: center;
  gap: 9px;
}

.admin-management-toolbar .search-field {
  flex: 1 1 280px;
}

.admin-management-toolbar .compact-action {
  flex: 0 0 auto;
}

.admin-filter-pills {
  flex: 0 0 auto;
}

.admin-filter-pills button {
  min-width: 72px;
}

.admin-table {
  border-color: var(--admin-line-soft);
}

.admin-table-head,
.admin-data-row {
  min-width: 1040px;
}

.admin-table-head {
  min-height: 42px;
  padding-block: 0;
  letter-spacing: 0.02em;
}

.admin-data-row {
  min-height: 68px;
  padding-block: 10px;
}

.admin-table-scroll {
  max-height: clamp(350px, calc(100vh - 455px), 620px);
  scrollbar-gutter: stable;
}

.admin-table-footer {
  min-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  color: var(--admin-muted);
  background: #0f201c;
  border-top: 1px solid var(--admin-line-soft);
}

.admin-table-footer > span {
  font-size: 12px;
  font-weight: 900;
}

.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pagination-controls strong {
  min-width: 44px;
  color: var(--admin-text);
  text-align: center;
}

.service-admin-columns {
  grid-template-columns: minmax(270px, 1.1fr) minmax(155px, 0.58fr) minmax(210px, 0.86fr) minmax(130px, 0.48fr) 102px 190px;
}

.library-services-scroll .service-admin-columns {
  grid-template-columns: minmax(290px, 1fr) minmax(150px, 0.52fr) minmax(170px, 0.62fr) minmax(130px, 0.45fr) 102px 170px;
}

.machine-admin-columns {
  grid-template-columns: minmax(260px, 1fr) 190px minmax(170px, 0.75fr) 120px 108px 104px;
}

.user-admin-columns {
  grid-template-columns: minmax(320px, 1fr) 118px 210px 170px 108px;
}

.group-admin-columns {
  grid-template-columns: minmax(320px, 1fr) 120px 120px 170px 108px 104px;
}

.entity-cell {
  min-width: 0;
}

.entity-cell > span:last-child {
  min-width: 0;
}

.entity-cell strong,
.entity-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-cell small {
  white-space: nowrap;
}

.health-cell {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.health-cell small {
  color: var(--admin-muted);
  font-size: 11px;
}

.action-group {
  gap: 6px;
}

.action-group .icon-button {
  border-radius: 6px;
}

.edit-row,
.admin-form {
  background: #0f1f1c;
  border-color: var(--admin-line-soft);
}

.form-heading {
  border-color: var(--admin-line-soft);
}

.service-form-grid,
.machine-form-grid,
.user-form-grid,
.group-form-grid {
  gap: 12px;
}

.library-manager-simple {
  background:
    linear-gradient(180deg, rgba(115, 208, 195, 0.05), rgba(115, 208, 195, 0)),
    #0d1a17;
}

.library-manager-simple .library-manager-toolbar {
  align-items: center;
}

.library-upload.simple-upload {
  border-color: var(--admin-line-soft);
  background: #12231f;
}

.library-workspace-grid {
  align-items: stretch;
}

.library-variant-list,
.library-detail-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.library-detail-panel {
  overflow: hidden;
}

.library-version-list {
  max-height: min(56vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.code-artifact-panel {
  background: #0f1f1c;
  border-color: var(--admin-line-soft);
}

.identity-switch.segmented {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.identity-switch.segmented button {
  justify-content: center;
}

.group-editor-form {
  padding: 16px;
}

.group-assignment-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.group-picker-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.group-picker-header {
  flex: 0 0 auto;
}

.group-picker-list {
  flex: 1 1 auto;
  max-height: 380px;
  overflow: auto;
}

.selection-row {
  border: 1px solid transparent;
}

.selection-row:hover {
  background: rgba(115, 208, 195, 0.08);
  border-color: rgba(115, 208, 195, 0.2);
}

.form-footer {
  padding-top: 4px;
}

.password-reset-card {
  gap: 12px;
}

.password-reset-field {
  min-width: 0;
}

.management-modal {
  border-color: var(--admin-line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.modal-section {
  gap: 12px;
}

.access-layout {
  min-height: clamp(560px, calc(100vh - 360px), 760px);
  grid-template-columns: minmax(285px, 335px) minmax(0, 1fr);
}

.access-service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  padding: 12px;
  overflow: hidden;
}

.access-list-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px 4px;
}

.access-resource-search {
  width: 100%;
  flex: 0 0 auto;
  margin: 0 0 4px;
}

.access-service-list > button {
  flex: 0 0 auto;
  min-height: 62px;
  border-radius: 7px;
}

.access-service-list .compact-empty {
  flex: 0 0 auto;
  min-height: 92px;
  border: 1px dashed var(--admin-line-soft);
}

.access-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.access-detail-header {
  flex: 0 0 auto;
  padding: 14px 16px;
  background: #12231f;
  border-bottom: 1px solid var(--admin-line-soft);
}

.individual-access {
  min-height: 0;
}

.access-group-list,
.access-user-list {
  max-height: min(42vh, 460px);
  overflow: auto;
}

.access-user-list {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.access-user-card,
.access-entity-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.version-scope-picker {
  border-color: var(--admin-line-soft);
}

.audit-list {
  max-height: clamp(420px, calc(100vh - 350px), 760px);
}

.audit-table-head,
.audit-row {
  grid-template-columns: minmax(320px, 1fr) 190px 210px;
}

@media (min-width: 1700px) {
  .admin-workspace {
    padding-inline: 24px;
  }

  .admin-section-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-table-scroll {
    max-height: clamp(430px, calc(100vh - 455px), 700px);
  }
}

@media (max-width: 1280px) {
  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-summary {
    flex: 1 1 auto;
  }

  .admin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-management-toolbar {
    justify-content: stretch;
  }
}

@media (max-width: 900px) {
  .admin-workspace {
    padding: 12px;
  }

  .admin-section-nav {
    grid-template-columns: 1fr;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .access-service-list {
    max-height: 360px;
    overflow: auto;
  }

  .admin-table-footer {
    min-width: 0;
  }
}

/* Owner console final surface pass */
.admin-workspace {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - var(--topbar-height, 0px));
  padding: 18px 20px;
  gap: 14px;
}

.admin-page-header {
  margin: 0;
  padding: 4px 0 0;
  min-height: auto;
  align-items: end;
  gap: 18px;
  border-left: 0;
}

.admin-page-header h1 {
  margin: 2px 0 2px;
  line-height: 1.05;
}

.admin-header-actions {
  gap: 10px;
}

.admin-summary {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
}

.admin-section-nav {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}

.admin-section-nav button {
  min-height: 88px;
  padding: 14px 16px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  border-radius: 8px;
}

.admin-tab-copy {
  min-width: 0;
}

.admin-tab-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tab-copy small {
  display: block;
  min-height: auto;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.admin-section-nav button.active .admin-tab-copy small {
  color: rgba(8, 35, 31, 0.78);
}

.admin-panel {
  border-radius: 8px;
  overflow: hidden;
}

.admin-panel-header {
  min-height: 82px;
  align-items: center;
  gap: 18px;
}

.admin-panel-header > div:first-child {
  min-width: min(560px, 100%);
}

.admin-management-toolbar {
  min-width: min(780px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-management-toolbar .search-field {
  min-width: min(360px, 100%);
  min-height: 42px;
}

.admin-filter-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
}

.admin-filter-pills button {
  min-height: 32px;
}

.admin-table {
  width: 100%;
  overflow: hidden;
  background: #10211d;
}

.admin-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0e1d1a;
  border-bottom: 1px solid var(--admin-line-soft);
}

.admin-table-scroll {
  max-height: clamp(420px, calc(100dvh - 430px), 720px);
  overflow: auto;
}

.library-services-scroll .admin-table-scroll {
  max-height: clamp(380px, calc(100dvh - 470px), 680px);
  overflow: auto;
}

.admin-table-body {
  min-width: 0;
}

.admin-table-head,
.admin-data-row,
.admin-table-footer {
  min-width: 1120px;
}

.admin-data-row {
  transition: background 0.16s ease, border-color 0.16s ease;
}

.admin-data-row:hover {
  background: #142823;
}

.service-row-stack {
  border-bottom: 1px solid var(--admin-line-soft);
}

.service-row-stack > .admin-data-row {
  border-left: 3px solid transparent;
}

.service-row-stack:hover > .admin-data-row,
.service-row-stack:focus-within > .admin-data-row {
  border-left-color: rgba(115, 208, 195, 0.8);
}

.service-admin-columns {
  grid-template-columns: minmax(300px, 1.12fr) minmax(165px, 0.58fr) minmax(230px, 0.86fr) minmax(140px, 0.5fr) 110px 196px;
}

.library-services-scroll .service-admin-columns {
  grid-template-columns: minmax(320px, 1.04fr) minmax(160px, 0.5fr) minmax(190px, 0.62fr) minmax(140px, 0.44fr) 110px 178px;
}

.machine-admin-columns {
  grid-template-columns: minmax(280px, 1fr) 200px minmax(180px, 0.75fr) 130px 112px 108px;
}

.user-admin-columns {
  grid-template-columns: minmax(340px, 1fr) 124px minmax(210px, 0.68fr) 176px 112px;
}

.group-admin-columns {
  grid-template-columns: minmax(340px, 1fr) 124px 124px 178px 112px 108px;
}

.entity-icon {
  flex: 0 0 36px;
}

.entity-cell strong,
.entity-cell small,
.access-cell strong,
.access-cell small,
.destination-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.destination-cell {
  max-width: 100%;
}

.health-cell {
  min-width: 0;
}

.action-group .icon-button {
  min-width: 38px;
}

.edit-row,
.admin-form {
  margin: 12px;
  border-radius: 8px;
}

.admin-form .form-heading,
.edit-row .form-heading {
  padding-bottom: 10px;
}

.admin-form label,
.edit-row label {
  min-width: 0;
}

.library-manager-simple {
  margin: 0 12px 12px;
  border: 1px solid var(--admin-line-soft);
  border-radius: 8px;
}

.library-workspace-grid {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.library-variant-list {
  max-height: 430px;
}

.library-detail-panel {
  min-height: 360px;
}

.library-version-row {
  border-radius: 8px;
}

.library-version-copy,
.code-version-row > .library-version-copy {
  min-width: 0;
}

.library-version-copy strong,
.library-version-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-admin-stack {
  display: grid;
  gap: 14px;
}

.identity-switch.segmented {
  gap: 8px;
  padding: 5px;
}

.identity-switch.segmented button {
  min-height: 44px;
  border-radius: 7px;
}

.management-modal {
  width: min(920px, calc(100vw - 40px));
  border-radius: 8px;
}

.management-modal > header {
  padding: 18px;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-visibility-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 7px;
  cursor: pointer;
}

.group-editor-form {
  margin: 12px;
  padding: 16px;
}

.group-assignment-grid {
  grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
  gap: 12px;
}

.group-picker-card {
  min-height: 310px;
  border-radius: 8px;
}

.group-picker-header {
  min-height: 78px;
  align-items: start;
  padding: 14px;
}

.group-picker-header small {
  display: block;
  min-height: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.group-picker-list {
  max-height: 340px;
  padding: 8px;
}

.selection-row {
  min-height: 54px;
  padding: 10px;
  border-radius: 7px;
}

.access-layout {
  min-height: clamp(580px, calc(100dvh - 330px), 780px);
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
}

.access-service-list {
  overflow: auto;
}

.access-service-list > button {
  min-height: 66px;
}

.access-detail-header {
  gap: 12px;
}

.access-mode {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.individual-access {
  padding: 14px;
  overflow: auto;
}

.access-group-list {
  max-height: 280px;
}

.access-user-list {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  max-height: clamp(320px, calc(100dvh - 620px), 520px);
}

.audit-list {
  padding: 12px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.audit-table-head {
  min-height: 38px;
  padding: 0 12px;
}

.audit-table-head,
.audit-row {
  min-width: 0;
  grid-template-columns: 38px minmax(280px, 1fr) 180px 210px;
}

.audit-row {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--admin-line-soft);
  border-radius: 8px;
  background: #10211d;
}

@media (max-width: 1500px) {
  .admin-management-toolbar {
    min-width: min(620px, 100%);
  }

  .admin-section-nav {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .service-admin-columns {
    grid-template-columns: minmax(260px, 1fr) minmax(140px, 0.55fr) minmax(180px, 0.75fr) minmax(125px, 0.44fr) 96px 176px;
  }

  .library-services-scroll .service-admin-columns {
    grid-template-columns: minmax(270px, 1fr) minmax(130px, 0.5fr) minmax(160px, 0.62fr) minmax(120px, 0.44fr) 96px 160px;
  }

  .admin-table-head,
  .admin-data-row,
  .admin-table-footer {
    min-width: 1000px;
  }
}

@media (max-width: 1100px) {
  .admin-workspace {
    padding: 12px;
  }

  .admin-summary {
    flex-wrap: wrap;
  }

  .admin-management-toolbar {
    min-width: 0;
    justify-content: stretch;
  }

  .admin-management-toolbar .search-field,
  .admin-management-toolbar .compact-action,
  .admin-filter-pills {
    flex: 1 1 100%;
  }

  .access-layout,
  .library-workspace-grid {
    grid-template-columns: 1fr;
  }

  .access-user-list {
    grid-template-columns: 1fr;
  }
}

/* Owner resources: compact header + reliable master/detail scrolling */
.admin-resources-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.admin-resources-panel > .polished-admin-header {
  min-height: 62px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}

.admin-resources-panel > .polished-admin-header > div:first-child {
  min-width: 0;
}

.admin-resources-panel > .polished-admin-header .section-kicker {
  font-size: 10px;
  letter-spacing: 0;
}

.admin-resources-panel > .polished-admin-header h2 {
  margin: 1px 0 2px;
  font-size: 21px;
  line-height: 1.08;
}

.admin-resources-panel > .polished-admin-header p {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.admin-resources-panel > .polished-admin-header .compact-action {
  min-height: 36px;
  padding: 0 14px;
}

.admin-resources-panel > .admin-resource-management {
  height: clamp(360px, calc(100dvh - 360px), 680px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  align-items: stretch;
  overflow: hidden;
  background: #0f201c;
}

.admin-resources-panel .admin-service-sidebar {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: none;
}

.admin-resources-panel .admin-resource-sidebar-header {
  min-height: 48px;
  padding: 8px 10px;
}

.admin-resources-panel .admin-resource-search {
  min-height: 36px;
  margin: 7px 8px 5px;
}

.admin-resources-panel .admin-resource-search input {
  height: 34px;
}

.admin-resources-panel .admin-resource-tabs {
  gap: 5px;
  padding: 0 8px 7px;
}

.admin-resources-panel .admin-resource-tabs button {
  min-height: 30px;
}

.admin-resources-panel .admin-resource-sidebar-scroll {
  min-height: 0;
  overflow: auto;
  padding: 7px 8px;
}

.admin-resources-panel .admin-resource-group {
  gap: 6px;
}

.admin-resources-panel .admin-resource-group + .admin-resource-group {
  margin-top: 10px;
}

.admin-resources-panel .admin-resource-list {
  gap: 6px;
}

.admin-resources-panel .admin-resource-list-item {
  min-height: 52px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
}

.admin-resources-panel .admin-resource-list-item .service-icon {
  width: 32px;
  height: 32px;
}

.admin-resources-panel .admin-resource-pagination {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 6px;
  background: rgba(9, 24, 21, 0.62);
  border-top-color: rgba(114, 196, 182, 0.18);
}

.admin-resources-panel .admin-resource-pagination > span {
  min-width: 0;
  color: #aec6bf;
  line-height: 1;
}

.admin-resources-panel .admin-resource-pagination > div {
  gap: 5px;
  padding: 2px;
  background: #0b1a17;
  border: 1px solid #284c45;
  border-radius: 7px;
}

.admin-resources-panel .admin-resource-pagination strong {
  min-width: 34px;
  color: #f3fffc;
  line-height: 26px;
}

.admin-resources-panel .admin-resource-pagination .icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  background: transparent;
  border-color: transparent;
  border-radius: 5px;
}

.admin-resources-panel .admin-resource-pagination .icon-button:not(:disabled):hover {
  background: #15332e;
  border-color: #3f756b;
}

.admin-resources-panel .admin-service-detail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  overflow: hidden;
}

.admin-resources-panel .admin-service-detail-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #10211d;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.admin-resources-panel .admin-service-detail-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(115, 204, 189, 0.08), transparent), #13251f;
  border-bottom: 1px solid var(--admin-line-soft);
}

.admin-resources-panel .admin-service-detail-header .entity-cell {
  min-width: 0;
}

.admin-resources-panel .admin-service-detail-header .entity-icon {
  width: 36px;
  height: 36px;
}

.admin-resources-panel .admin-service-detail-header .entity-cell strong {
  font-size: 16px;
}

.admin-resources-panel .admin-service-detail-header .entity-cell small {
  font-size: 12px;
  line-height: 1.35;
}

.admin-resources-panel .resource-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-resources-panel .resource-detail-actions .compact-action {
  min-height: 34px;
  padding: 0 10px;
}

.admin-resources-panel .admin-service-detail-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  overflow: auto;
}

.admin-resources-panel .library-service-detail-body {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.admin-resources-panel .library-service-detail-body > .service-detail-section {
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, .8fr) minmax(260px, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 0;
  padding: 10px 12px;
}

.admin-resources-panel .library-service-detail-body > .service-detail-section > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.admin-resources-panel .library-service-detail-body > .service-detail-section p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-resources-panel .library-service-detail-body .service-detail-url-value {
  width: 100%;
}

.admin-resources-panel .service-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 9px;
}

.admin-resources-panel .service-detail-metric,
.admin-resources-panel .service-detail-section {
  border: 1px solid var(--admin-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-resources-panel .service-detail-metric {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
}

.admin-resources-panel .service-detail-metric span,
.admin-resources-panel .service-detail-section .section-kicker {
  color: #87e5d7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-resources-panel .service-detail-metric strong {
  color: #f7fffc;
  font-size: 15px;
  line-height: 1.15;
}

.admin-resources-panel .service-detail-metric small,
.admin-resources-panel .service-detail-section p {
  color: #a9c0ba;
  font-size: 12px;
  line-height: 1.35;
}

.admin-resources-panel .service-detail-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-resources-panel .service-detail-url-block {
  display: grid;
  gap: 5px;
}

.admin-resources-panel .service-detail-url-value {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  color: #d8fff7;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.admin-resources-panel .service-detail-access {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-resources-panel .service-detail-edit.admin-form {
  min-height: 0;
  overflow: auto;
  gap: 14px;
  padding: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-resources-panel .service-detail-edit .service-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.admin-resources-panel .service-detail-edit.library-detail-edit .service-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 16px;
}

.admin-resources-panel .service-detail-edit label {
  min-width: 0;
  color: #bfe1da;
}

.admin-resources-panel .service-detail-edit input,
.admin-resources-panel .service-detail-edit select,
.admin-resources-panel .service-detail-edit textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: #f2fffb;
  background: #0b1a17;
  border: 1px solid #345a52;
  border-radius: 7px;
  font: inherit;
}

.admin-resources-panel .service-detail-edit textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-resources-panel .service-detail-edit input:focus,
.admin-resources-panel .service-detail-edit select:focus,
.admin-resources-panel .service-detail-edit textarea:focus {
  outline: 2px solid rgba(120, 208, 193, 0.24);
  border-color: #78d0c1;
}

.admin-resources-panel .service-detail-edit .edit-footer {
  padding-top: 2px;
  align-items: center;
  justify-content: flex-end;
}

.admin-resources-panel .service-detail-edit .compact-toggle {
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  color: #e9fffb;
  background: #10251f;
  border: 1px solid #315b52;
  border-radius: 7px;
}

.admin-resources-panel .service-detail-edit .service-active-field {
  min-height: 0;
  align-self: start;
  display: grid;
  gap: 6px;
}

.admin-resources-panel .service-detail-edit .service-active-control {
  width: fit-content;
  min-width: min(250px, 100%);
  max-width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  color: #e9fffb;
  background: linear-gradient(180deg, rgba(18, 47, 40, 0.92), rgba(13, 32, 28, 0.96));
  border: 1px solid #345a52;
  border-radius: 7px;
}

.admin-resources-panel .service-detail-edit .service-active-control > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.admin-resources-panel .service-detail-edit .service-active-control strong,
.admin-resources-panel .service-detail-edit .service-active-control small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resources-panel .service-detail-edit .service-active-control strong {
  line-height: 1.1;
  font-size: 12px;
}

.admin-resources-panel .service-detail-edit .service-active-control small {
  color: #9dc2ba;
  font-size: 10px;
  font-weight: 700;
}

.admin-resources-panel .service-detail-edit .service-active-control input {
  appearance: none;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 38px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #345a52;
  cursor: pointer;
  transition: background 140ms ease;
}

.admin-resources-panel .service-detail-edit .service-active-control input::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease;
}

.admin-resources-panel .service-detail-edit .service-active-control input:checked {
  background: #6dccbd;
}

.admin-resources-panel .service-detail-edit .service-active-control input:checked::after {
  transform: translateX(16px);
}

.admin-resources-panel .service-detail-edit.library-detail-edit .service-active-field {
  align-self: start;
  gap: 2px;
}

.admin-resources-panel .service-detail-edit.library-detail-edit .service-active-control {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  margin-top: 4px;
}

.admin-resources-panel .service-detail-edit .library-edit-note {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #e7fffa;
  background: linear-gradient(180deg, rgba(18, 47, 40, 0.88), rgba(12, 31, 27, 0.96));
  border: 1px solid #345a52;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.admin-resources-panel .service-detail-edit .library-edit-note svg {
  flex: 0 0 auto;
  color: #7bd8ca;
}

.admin-resources-panel .service-detail-edit .library-edit-note span {
  min-width: 0;
  line-height: 1.35;
  font-weight: 900;
}

.admin-resources-panel .admin-service-detail .library-manager-simple {
  margin: 0;
  padding: 12px;
}

.admin-resources-panel .admin-service-detail .library-workspace-grid {
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-resources-panel .admin-service-detail .library-variant-list {
  max-height: clamp(240px, calc(100dvh - 620px), 500px);
}

.admin-resources-panel .admin-service-detail .library-detail-panel {
  min-height: 280px;
}

@media (max-width: 1200px) {
  .admin-resources-panel > .admin-resource-management {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .admin-resources-panel .admin-service-sidebar {
    min-height: 420px;
    max-height: 540px;
  }

  .admin-resources-panel .admin-service-detail-card {
    min-height: 520px;
    max-height: none;
  }

  .admin-resources-panel .service-detail-edit .service-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-resources-panel .service-detail-edit .form-span-2,
  .admin-resources-panel .service-detail-edit .form-span-full {
    grid-column: 1;
  }

  .admin-resources-panel .service-detail-access {
    grid-template-columns: 1fr;
  }
}

.admin-resources-panel .admin-service-detail .library-version-manager {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px;
}

.admin-resources-panel .library-manager-toolbar-polished {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
}

.admin-resources-panel .library-manager-toolbar-polished .library-search-field {
  max-width: 420px;
}

.admin-resources-panel .library-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #a9c7c0;
  font-size: 12px;
  font-weight: 800;
}

.admin-resources-panel .library-upload-shell {
  padding: 8px 10px;
  border: 1px solid #294e46;
  background: rgba(10, 28, 24, 0.62);
  border-radius: 9px;
}

.admin-resources-panel .library-upload.simple-upload {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(130px, 0.55fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 7px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.admin-resources-panel .library-upload.simple-upload input,
.admin-resources-panel .library-upload.simple-upload input[type="file"] {
  min-height: 36px;
}

.admin-resources-panel .library-upload.simple-upload label {
  min-width: 0;
}

.admin-resources-panel .library-upload.simple-upload .file-field {
  min-height: 0;
}

.admin-resources-panel .library-upload.simple-upload .library-upload-hint {
  grid-column: 1 / -1;
  color: #9dc2ba;
  font-size: 11px;
}

.admin-resources-panel .admin-service-detail .library-version-workspace {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-items: start;
}

.admin-resources-panel .admin-service-detail .library-variant-list-compact {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  height: auto;
  max-height: none;
  padding: 10px;
  overflow: auto;
  border: 1px solid #294e46;
  border-radius: 9px;
  background: rgba(9, 26, 22, 0.55);
}

.admin-resources-panel .library-variant-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 0 2px 4px;
  color: #c7ece5;
  font-size: 12px;
  font-weight: 900;
}

.admin-resources-panel .library-variant-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-resources-panel .library-variant-heading b,
.admin-resources-panel .version-access-pill {
  border: 1px solid #2c6257;
  background: #103c34;
  color: #99eadf;
}

.admin-resources-panel .library-variant-heading b {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.admin-resources-panel .library-variant-card {
  flex: none;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-resources-panel .library-variant-card strong {
  font-size: 14px;
}

.admin-resources-panel .library-variant-card small {
  font-size: 12px;
}

.admin-resources-panel .library-variant-card b {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.admin-resources-panel .admin-service-detail .library-version-board {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #294e46;
  border-radius: 9px;
  background: rgba(10, 28, 24, 0.52);
}

.admin-resources-panel .library-version-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid #294e46;
}

.admin-resources-panel .library-version-board-header h3 {
  margin: 1px 0;
  font-size: 16px;
}

.admin-resources-panel .library-version-board-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-resources-panel .version-access-pill {
  min-height: 36px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
}

.admin-resources-panel .version-access-pill span {
  display: grid;
  gap: 1px;
}

.admin-resources-panel .version-access-pill strong {
  color: #eafffb;
  font-size: 12px;
  line-height: 1.05;
}

.admin-resources-panel .version-access-pill small {
  color: #9fc7bf;
  font-size: 10px;
}

.admin-resources-panel .library-version-list-polished {
  display: grid;
  gap: 7px;
  padding: 12px;
  max-height: none;
  height: 100%;
  overflow: hidden;
}

.admin-resources-panel .repository-url-field input {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.admin-resources-panel .repo-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #93e7db;
  font-weight: 900;
  text-decoration: none;
}

.admin-resources-panel .repo-detail-link:hover {
  text-decoration: underline;
}

.admin-resources-panel .library-version-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #294e46;
  border-radius: 9px;
  background: rgba(13, 33, 29, 0.82);
}

.admin-resources-panel .version-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-resources-panel .version-title-block strong {
  color: #5bc3ff;
  font-size: 16px;
}

.admin-resources-panel .version-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 9px;
}

.admin-resources-panel .version-detail-box {
  display: grid;
  gap: 2px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid #254941;
  border-radius: 8px;
  background: rgba(8, 24, 20, 0.55);
}

.admin-resources-panel .version-detail-box span {
  color: #78e3d2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-resources-panel .version-detail-box strong {
  color: #fff;
  font-size: 14px;
}

.admin-resources-panel .version-detail-box small {
  color: #9fc5be;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resources-panel .code-artifact-panel-compact {
  margin: 0;
  padding: 0;
  border: 1px solid #254941;
  border-radius: 8px;
  background: rgba(8, 24, 20, 0.45);
}

.admin-resources-panel .code-artifact-panel-compact header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 7px 9px;
}

.admin-resources-panel .code-artifact-panel-compact header > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-resources-panel .code-artifact-panel-compact header small {
  color: #9fc5be;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resources-panel .repo-action,
.admin-resources-panel .repo-inline-action {
  white-space: nowrap;
}

.admin-resources-panel .repo-inline-action {
  min-width: max-content;
}

.admin-resources-panel .code-upload-form-polished {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.5fr) minmax(220px, 0.8fr);
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #254941;
}

.admin-resources-panel .code-upload-form-polished .code-user-picker,
.admin-resources-panel .code-upload-form-polished .code-form-actions {
  grid-column: 1 / -1;
}

.admin-resources-panel .code-user-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  max-height: 120px;
  overflow: auto;
  grid-auto-rows: max-content;
  align-content: start;
}

@media (max-width: 1050px) {
  .admin-resources-panel .library-upload.simple-upload,
  .admin-resources-panel .admin-service-detail .library-version-workspace,
  .admin-resources-panel .version-detail-grid,
  .admin-resources-panel .code-upload-form-polished {
    grid-template-columns: 1fr;
  }

  .admin-resources-panel .library-manager-toolbar-polished,
  .admin-resources-panel .library-version-board-header,
  .admin-resources-panel .code-artifact-panel-compact header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Library workspace: one spacing and border system for every nested surface. */
.admin-resources-panel .admin-service-detail .library-version-manager,
.admin-resources-panel .admin-service-detail .library-version-manager * {
  box-sizing: border-box;
}

.admin-resources-panel .admin-service-detail .library-version-manager {
  width: 100%;
  margin: 0;
  padding: 14px;
  gap: 14px;
  overflow: visible;
  border: 0;
  border-top: 1px solid #294e46;
  border-radius: 0;
  background: #0d1d19;
}

.admin-resources-panel .library-version-manager > .library-manager-toolbar-polished {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0;
}

.admin-resources-panel .library-manager-toolbar-polished .library-search-field {
  width: min(100%, 360px);
  max-width: none;
  flex: 0 1 360px;
}

.admin-resources-panel .library-manager-toolbar-polished .library-toolbar-actions {
  min-width: 0;
  justify-content: flex-end;
}

.admin-resources-panel .admin-service-detail .library-version-workspace {
  width: 100%;
  margin: 0;
  padding: 0;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  align-items: stretch;
  gap: 14px;
  border: 0;
  background: transparent;
}

.admin-resources-panel .admin-service-detail .library-variant-list-compact {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 10px;
  align-self: stretch;
}

.admin-resources-panel .library-variant-heading {
  width: 100%;
  margin: 0;
  padding: 0 2px 8px;
}

.admin-resources-panel .library-variant-card {
  width: 100%;
  margin: 0;
}

.admin-resources-panel .admin-service-detail .library-version-board {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0;
  padding: 0;
}

.admin-resources-panel .library-version-board-header {
  width: 100%;
  margin: 0;
}

.admin-resources-panel .library-version-board-header > .entity-cell {
  min-width: 0;
}

.admin-resources-panel .library-version-board-actions {
  min-width: 0;
}

.admin-resources-panel .library-version-list-polished {
  width: 100%;
  margin: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.admin-resources-panel .library-version-card,
.admin-resources-panel .version-card-main,
.admin-resources-panel .version-detail-grid,
.admin-resources-panel .code-artifact-panel-compact {
  width: 100%;
  min-width: 0;
  margin-inline: 0;
}

.admin-resources-panel .library-version-card {
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.admin-resources-panel .library-version-card.is-expanded {
  height: auto !important;
  min-height: max-content;
  max-height: none !important;
}

.admin-resources-panel .version-card-main {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
}

.admin-resources-panel .version-expand-button {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-resources-panel .version-expand-button:hover .version-title-block strong {
  color: #8de7ff;
}

.admin-resources-panel .version-expand-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9ed0c7;
  font-size: 12px;
  font-weight: 800;
}

.admin-resources-panel .version-expand-label svg {
  transition: transform 160ms ease;
}

.admin-resources-panel .version-expand-button[aria-expanded="true"] .version-expand-label svg {
  transform: rotate(180deg);
}

.admin-resources-panel .version-expanded-content {
  grid-column: 1 / -1;
  width: 100%;
  min-height: max-content;
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid #294e46;
  padding-top: 12px;
  overflow: visible;
}

.admin-resources-panel .version-card-actions,
.admin-resources-panel .library-version-actions {
  flex: 0 0 auto;
}

.admin-resources-panel .version-card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-resources-panel .version-card-actions .library-version-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-resources-panel .version-default-button {
  white-space: nowrap;
}

.admin-resources-panel .version-default-button.is-default {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  color: #c9fff5;
  border: 1px solid #347064;
  border-radius: 7px;
  background: #16463d;
  font: inherit;
  font-weight: 900;
  cursor: default;
  opacity: 1;
}

@media (max-width: 1250px) {
  .admin-resources-panel .library-service-detail-body {
    overflow: auto;
  }

  .admin-resources-panel .library-service-detail-body > .service-detail-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-resources-panel .admin-service-detail .library-version-workspace {
    grid-template-columns: 1fr;
  }

  .admin-resources-panel .admin-service-detail .library-variant-list-compact {
    height: auto;
    max-height: none;
  }

  .admin-resources-panel .library-variant-list-compact {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .admin-resources-panel .library-variant-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .admin-resources-panel .library-service-detail-body > .service-detail-section {
    grid-template-columns: 1fr;
  }

  .admin-resources-panel .library-manager-toolbar-polished,
  .admin-resources-panel .library-version-board-header,
  .admin-resources-panel .version-card-main {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-resources-panel .library-manager-toolbar-polished .library-search-field {
    width: 100%;
    flex-basis: auto;
  }

  .admin-resources-panel .library-manager-toolbar-polished .library-toolbar-actions,
  .admin-resources-panel .library-version-board-actions {
    justify-content: flex-start;
  }

  .admin-resources-panel .version-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-resources-panel .version-expand-button {
    align-items: flex-start;
  }

  .admin-resources-panel .version-card-actions {
    justify-content: space-between;
  }
}

.machines-resources-panel .machine-resource-sidebar {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.machines-resources-panel .machine-detail-body {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.api-docs-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) repeat(2, minmax(180px, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.api-docs-fields > label {
  min-width: 0;
}

.api-docs-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
  gap: 9px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #bfe1da;
  border: 1px solid #294c45;
  border-radius: 7px;
  background: #0b1a17;
  font-size: 11px;
  font-weight: 800;
}

.api-docs-preview svg {
  color: #74d1c4;
}

.api-docs-preview span,
.api-docs-preview code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-docs-preview code {
  justify-self: end;
  color: #75dacd;
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 900px) {
  .api-docs-fields {
    grid-template-columns: 1fr;
  }

  .api-docs-preview {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .api-docs-preview code {
    grid-column: 2;
    justify-self: start;
  }
}
.api-docs-fields.is-preset {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.api-docs-fields.is-custom {
  grid-template-columns: minmax(190px, 0.7fr) repeat(2, minmax(180px, 1fr));
}

.api-docs-fields.is-preset .api-docs-preview {
  grid-column: auto;
  align-self: end;
}

.api-docs-fields.is-custom .api-docs-preview {
  grid-column: 1 / -1;
}

.api-docs-fields select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: #f2fffb;
  background: #0b1a17;
  border: 1px solid #345a52;
  border-radius: 7px;
  font: inherit;
}

@media (max-width: 900px) {
  .api-docs-fields.is-preset,
  .api-docs-fields.is-custom {
    grid-template-columns: 1fr;
  }

  .api-docs-fields.is-preset .api-docs-preview,
  .api-docs-fields.is-custom .api-docs-preview {
    grid-column: 1;
  }
}
.admin-modal-wide:has(.remote-workspace) {
  width: min(calc(100vw - 20px), 1600px);
  height: min(calc(100dvh - 48px), 1040px);
  max-height: calc(100dvh - 48px);
}

.admin-modal-wide:has(.remote-desktop-viewer) {
  width: min(calc(100vw - 20px), 1700px);
  height: min(calc(100dvh - 30px), 1100px);
  max-height: calc(100dvh - 30px);
}
.admin-modal-wide:has(.remote-desktop-viewer) .admin-modal-body { display: flex; min-height: 0; flex: 1 1 auto; padding: 0; overflow: hidden; }
.remote-desktop-viewer { display: grid; width: 100%; min-height: 0; flex: 1 1 auto; grid-template-rows: auto minmax(0, 1fr) auto; background: #07110f; }
.remote-desktop-viewer > header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; border-bottom: 1px solid #294a43; background: #102520; }
.remote-desktop-viewer > header > span { display: flex; align-items: center; gap: 8px; color: #dff8f2; }
.remote-desktop-viewer > header > span i { width: 8px; height: 8px; border-radius: 50%; background: #63d7a2; box-shadow: 0 0 0 4px rgb(99 215 162 / 12%); }
.remote-desktop-viewer > header small { color: #78968f; }
.remote-desktop-viewer > header > div { display: flex; gap: 7px; }
.remote-desktop-zoom-controls { display: flex; gap: 3px; padding: 3px; border: 1px solid #294a43; border-radius: 7px; background: #091714; }
.remote-desktop-zoom-controls .compact-action { min-height: 28px; padding-block: 4px; }
.remote-desktop-viewer .icon-only { width: 30px; padding-inline: 6px; }
.remote-desktop-viewer:fullscreen { width: 100vw; height: 100vh; }
.remote-desktop-frame { position: relative; min-height: 0; overflow: hidden; background: #020706; }
.remote-desktop-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #020706; }
.remote-desktop-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #9db9b2; background: #07110f; }
.remote-desktop-connect { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: min(420px, calc(100% - 32px)); gap: 12px; padding: 24px; color: #dff8f2; border: 1px solid #315d53; border-radius: 12px; background: #0d201c; box-shadow: 0 20px 70px #000a; transform: translate(-50%, -50%); }
.remote-desktop-connect > svg { color: #78d8c8; }.remote-desktop-connect h3,.remote-desktop-connect p { margin: 0; }.remote-desktop-connect p { color: #8eaaa4; font-size: 12px; }.remote-desktop-connect label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; }.remote-desktop-connect label > span { position: relative; }.remote-desktop-connect input { width: 100%; min-height: 42px; padding: 9px 44px 9px 12px; color: #fff; border: 1px solid #365c54; border-radius: 8px; background: #07110f; }.remote-desktop-connect label button { position: absolute; top: 4px; right: 4px; display: grid; width: 34px; height: 34px; place-items: center; color: #8fb6ae; border: 0; background: transparent; cursor: pointer; }
.remote-desktop-viewer > footer { padding: 8px 14px; color: #78968f; border-top: 1px solid #1f3d37; font-size: 11px; }

@media (max-width: 760px) {
  .remote-desktop-viewer > header { align-items: flex-start; flex-direction: column; }
  .remote-desktop-viewer > header > div { width: 100%; overflow-x: auto; }
}

.admin-modal-wide:has(.remote-connect) {
  width: min(92vw, 680px);
  max-height: min(88vh, 560px);
}

.admin-modal-wide:has(.remote-file-editor) {
  width: min(94vw, 1120px);
  height: min(88vh, 820px);
}
.admin-modal-wide:has(.remote-file-editor) .admin-modal-body { display: flex; min-height: 0; padding: 0; overflow: hidden; }

.admin-modal-wide:has(.remote-connect) .admin-modal-header {
  padding: 16px 18px;
}

.admin-modal-wide:has(.remote-connect) .admin-modal-body {
  padding: 20px 24px 24px;
}

.admin-modal-wide:has(.remote-workspace) .admin-modal-body {
  display: flex;
  flex: 1;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.remote-connect {
  display: grid;
  width: 100%;
  gap: 13px;
  margin: 0;
}

.remote-connect h3,
.remote-connect p { margin: 0; }
.remote-connect p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.remote-connect label { display: grid; gap: 7px; color: #c8e0db; font-size: 12px; font-weight: 800; }
.remote-connect label > small { margin-top: -3px; color: #78968f; font-size: 10px; font-weight: 500; }
.remote-connect input {
  min-height: 42px; padding: 9px 12px; color: #fff; border: 1px solid #365c54;
  border-radius: 8px; background: #091916;
}
.remote-connect > .primary-button { min-height: 42px; margin-top: 2px; }
.remote-password-field { position: relative; display: block; }
.remote-password-field input { width: 100%; padding-right: 46px; }
.remote-password-field button {
  position: absolute; top: 50%; right: 6px; display: grid; width: 34px; height: 32px;
  place-items: center; padding: 0; color: #8fb6ae; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer; transform: translateY(-50%);
}
.remote-password-field button:hover { color: #eafffa; background: #183a33; }
.remote-root-field { position: relative; display: block; }
.remote-root-field > svg { position: absolute; z-index: 1; top: 50%; left: 12px; color: #70bcae; transform: translateY(-50%); }
.remote-root-field input { width: 100%; padding-left: 40px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.remote-workspace {
  display: grid;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #091613;
  scrollbar-color: #427c70 #0a1815;
  scrollbar-width: thin;
}

.remote-workspace * {
  scrollbar-color: #427c70 #0a1815;
  scrollbar-width: thin;
}
.remote-workspace *::-webkit-scrollbar { width: 10px; height: 10px; }
.remote-workspace *::-webkit-scrollbar-track { background: #0a1815; }
.remote-workspace *::-webkit-scrollbar-thumb {
  border: 2px solid #0a1815;
  border-radius: 999px;
  background: #376a60;
}
.remote-workspace *::-webkit-scrollbar-thumb:hover { background: #4c9284; }
.remote-workspace *::-webkit-scrollbar-corner { background: #0a1815; }

.remote-workspace-tabs {
  display: flex;
  min-height: 46px;
  align-items: end;
  gap: 4px;
  padding: 7px 12px 0;
  border-bottom: 1px solid #294a43;
  background: #102520;
}
.remote-workspace-tabs button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  color: #8eaaa4;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.remote-workspace-tabs button:hover { color: #e5faf5; }
.remote-workspace-tabs button.active { color: #b9fff2; border-bottom-color: #78d8c8; background: rgb(76 157 142 / 10%); }

.remote-console-layout {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(220px, 56%) minmax(180px, 44%);
  overflow: hidden;
}

.machine-operations {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto auto minmax(220px, 1fr);
  align-content: start;
  gap: 14px;
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 92% 0%, rgb(74 159 143 / 10%), transparent 32%),
    #091613;
}
.machine-operations-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.machine-operations-actions { display: flex; align-items: center; gap: 8px; }
.machine-operations-header h3 { margin: 3px 0; color: #f2fffc; font-size: 20px; }
.machine-operations-header p { margin: 0; color: #86a59e; font-size: 11px; }
.machine-operations-loading { display: flex; min-height: 260px; align-items: center; justify-content: center; gap: 10px; color: #8ca8a2; }
.machine-vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.machine-vital-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border: 1px solid #2c5149;
  border-radius: 9px;
  background: #10251f;
}
.machine-vital-card > span { display: grid; width: 40px; height: 40px; place-items: center; color: #88dfd0; border: 1px solid #35675d; border-radius: 8px; background: #173a32; }
.machine-vital-card > div { display: grid; min-width: 0; gap: 3px; }
.machine-vital-card small { color: #70aa9f; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.machine-vital-card strong { color: #effbf8; font-size: 20px; }
.machine-vital-card p { overflow: hidden; margin: 0; color: #91aaa4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.machine-vital-card i { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #233f39; }
.machine-vital-card i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4d9f91, #7ee0cf); }
.machine-vital-card.uptime { align-content: center; }

.machine-issues { overflow: hidden; border: 1px solid #664b38; border-radius: 9px; background: #211912; }
.machine-issues.healthy { border-color: #2e5c50; background: #10261f; }
.machine-issues > header { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 10px 13px; color: #e8af67; }
.machine-issues.healthy > header { color: #78d5b5; }
.machine-issues > header > div { display: grid; min-width: 0; gap: 2px; }
.machine-issues > header strong { color: #f4e7d8; font-size: 12px; }
.machine-issues.healthy > header strong { color: #def8ef; }
.machine-issues > header small { color: #9f8a75; font-size: 9px; }
.machine-issues.healthy > header small { color: #7eaa9e; }
.machine-issue-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.machine-issue-actions button {
  display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 5px 9px;
  color: #c9a47e; border: 1px solid #604a37; border-radius: 6px; background: #2a2018;
  font-size: 9px; font-weight: 800; cursor: pointer;
}
.machine-issue-actions button:hover { color: #ffe3c4; border-color: #8b6748; background: #38291d; }
.machine-issues.healthy .machine-issue-actions button { color: #88cabb; border-color: #345f55; background: #15332c; }
.machine-issues > div { display: grid; max-height: 260px; gap: 1px; overflow: auto; border-top: 1px solid #5b4333; background: #402a1d; }
.machine-issues article { position: relative; display: flex; min-height: 58px; align-items: stretch; color: #e3a45c; background: #211912; }
.machine-issues article.critical { color: #f08078; background: #251615; }
.machine-issue-toggle {
  display: grid; min-width: 0; flex: 1; grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center; gap: 9px; padding: 9px 12px; color: inherit; border: 0; background: transparent;
  cursor: pointer; text-align: left;
}
.machine-issue-toggle:hover { background: rgb(255 255 255 / 3%); }
.machine-issue-toggle > span { display: grid; min-width: 0; gap: 3px; }
.machine-issue-toggle i { width: max-content; padding: 2px 5px; color: #c2986e; border-radius: 4px; background: #38291e; font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.machine-issues article.critical .machine-issue-toggle i { color: #e4948e; background: #442321; }
.machine-issue-toggle strong { color: #f1ddd0; font-size: 10px; }
.machine-issue-toggle small {
  display: -webkit-box; overflow: hidden; color: #b49b8b;
  font: 9px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
}
.machine-issues article.expanded .machine-issue-toggle { align-items: start; }
.machine-issues article.expanded .machine-issue-toggle > svg:last-child { transform: rotate(180deg); }
.machine-issues article.expanded .machine-issue-toggle small { display: block; padding: 6px 8px; color: #d0b8a8; border-radius: 5px; background: rgb(0 0 0 / 18%); white-space: pre-wrap; -webkit-line-clamp: unset; }
.machine-issue-dismiss {
  display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; align-self: center;
  margin-right: 10px; color: #bd7e65; border: 1px solid #654637; border-radius: 6px; background: #2e1f18; cursor: pointer;
}
.machine-issue-dismiss:hover { color: #ffc3a9; border-color: #9a624b; background: #42291f; }

.machine-containers { min-height: 0; overflow: hidden; border: 1px solid #2c5149; border-radius: 9px; background: #0d201c; }
.machine-containers > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #294a43; background: linear-gradient(90deg, #10251f, #102b25 58%, #14251c); }
.machine-containers > header h3 { margin: 2px 0; color: #edf9f6; font-size: 14px; }
.machine-containers > header small { color: #7ba59c; font-size: 9px; }
.machine-containers > header > b { display: grid; min-width: 30px; height: 30px; place-items: center; color: #a9eee2; border: 1px solid #35675d; border-radius: 999px; background: #153b33; font-size: 11px; }
.machine-container-list { display: grid; max-height: 220px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #4f8d80 #10251f; scrollbar-width: thin; background: #28483f; }
.machine-container-list::-webkit-scrollbar { width: 8px; }.machine-container-list::-webkit-scrollbar-track { background: #10251f; }.machine-container-list::-webkit-scrollbar-thumb { border: 2px solid #10251f; border-radius: 999px; background: #4f8d80; }
.machine-container-list article { display: grid; min-width: 0; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 11px 13px; background: #0d201c; }
.machine-container-icon { display: grid; width: 36px; height: 36px; place-items: center; color: #77d6c6; border: 1px solid #315d53; border-radius: 7px; background: #15332c; }
.machine-container-copy { display: grid; min-width: 0; gap: 2px; }
.machine-container-copy strong, .machine-container-copy small, .machine-container-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine-container-copy strong { color: #ecf8f5; font-size: 12px; }
.machine-container-copy small { color: #8eaaa4; font-size: 9px; }
.machine-container-copy em { color: #638a81; font: 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.machine-container-status { display: inline-flex; max-width: 180px; align-items: center; gap: 5px; overflow: hidden; padding: 4px 7px; border-radius: 999px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.machine-container-status i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; }
.machine-container-status.online { color: #91e3c5; background: #123a2b; }.machine-container-status.online i { background: #45d99a; }
.machine-container-status.offline { color: #c6a596; background: #34251f; }.machine-container-status.offline i { background: #c27758; }
.machine-container-actions { display: flex; align-items: center; gap: 5px; }
.machine-container-actions button { display: inline-flex; min-height: 29px; align-items: center; gap: 5px; padding: 4px 8px; color: #bde5dc; border: 1px solid #345e55; border-radius: 6px; background: #153029; font-size: 9px; font-weight: 800; cursor: pointer; }
.machine-container-actions button:hover { color: #fff; border-color: #4d8a7d; background: #1d443a; }.machine-container-actions button.danger { color: #e7aaa2; border-color: #65453f; background: #2a1d1a; }
.machine-container-actions button:disabled { cursor: wait; opacity: .55; }
.machine-container-empty { padding: 18px; color: #829f98; background: #0d201c; font-size: 10px; text-align: center; }

.machine-processes { display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid #2c5149; border-radius: 9px; background: #0d201c; box-shadow: inset 0 1px 0 rgb(133 230 213 / 6%); }

@media (max-width: 900px) {
  .machine-container-list { max-height: 280px; grid-template-columns: 1fr; }
  .machine-container-list article { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .machine-container-actions { grid-column: 2 / -1; flex-wrap: wrap; }
}
.machine-processes > header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #294a43; background: linear-gradient(90deg, #10251f, #102b25 58%, #14251c); }
.machine-processes > header h3 { margin: 3px 0 0; color: #edf9f6; font-size: 14px; }
.machine-process-refresh { display: block; margin-top: 4px; color: #7ba59c; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.machine-processes > header > b { display: grid; min-width: 30px; height: 30px; place-items: center; color: #a9eee2; border: 1px solid #35675d; border-radius: 999px; background: #153b33; font-size: 11px; }
.machine-process-table { min-height: 0; overflow: auto; background: linear-gradient(180deg, rgb(18 49 42 / 35%), transparent 150px); }
.machine-process-head,
.machine-process-row { display: grid; grid-template-columns: minmax(220px, 1fr) 120px minmax(118px, .34fr) minmax(118px, .34fr) 140px 38px; align-items: center; gap: 10px; padding: 0 13px; }
.machine-process-head { position: sticky; z-index: 1; top: 0; min-height: 34px; color: #6fa99e; border-bottom: 1px solid rgb(67 124 112 / 40%); background: #10251f; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.machine-process-row { min-height: 48px; color: #9fb8b2; border-top: 1px solid rgb(43 79 71 / 60%); background: linear-gradient(90deg, rgb(120 216 200 / 3%), transparent 45%); font-size: 11px; transition: background 120ms ease; }
.machine-process-row:hover { background: linear-gradient(90deg, rgb(120 216 200 / 9%), rgb(32 80 71 / 40%)); }
.machine-process-row > span:first-child { display: grid; min-width: 0; grid-template-columns: 22px minmax(0, 1fr); align-items: center; color: #71cabb; }
.machine-process-row > span:first-child strong { overflow: hidden; color: #e8f5f2; text-overflow: ellipsis; white-space: nowrap; }
.machine-process-row > span:first-child small { grid-column: 2; color: #6f8d86; font-size: 9px; }
.machine-process-meter {
  position: relative;
  display: block;
  height: 24px;
  overflow: hidden;
  border: 1px solid #294d45;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 24px),
    #071713;
  color: #d7eee8;
  font-size: 10px;
  font-style: normal;
}
.machine-process-meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 3px;
  border-radius: inherit;
  opacity: .94;
  transition: width 260ms ease, background 160ms ease;
}
.machine-process-meter.cpu.tone-calm > span { background: linear-gradient(90deg, #4fb9ad, #7fe1d3); }
.machine-process-meter.cpu.tone-busy > span { background: linear-gradient(90deg, #4aa3df, #8ad7ff); }
.machine-process-meter.cpu.tone-hot > span { background: linear-gradient(90deg, #d6b54f, #f2d36e); }
.machine-process-meter.cpu.tone-critical > span { background: linear-gradient(90deg, #d95d54, #ff958d); }
.machine-process-meter.ram.tone-calm > span { background: linear-gradient(90deg, #6a8fd8, #93b8ff); }
.machine-process-meter.ram.tone-busy > span { background: linear-gradient(90deg, #7b6fd8, #b9a7ff); }
.machine-process-meter.ram.tone-hot > span { background: linear-gradient(90deg, #cf9a45, #ffd07a); }
.machine-process-meter.ram.tone-critical > span { background: linear-gradient(90deg, #c94e68, #ff87a0); }
.machine-process-meter > em { position: relative; z-index: 1; display: grid; height: 100%; place-items: center; color: #effbf8; font-style: normal; font-weight: 900; text-shadow: 0 1px 2px rgb(0 0 0 / 70%); }
.machine-process-state { display: inline-grid; width: max-content; min-width: 104px; max-width: 136px; gap: 1px; padding: 4px 9px; border: 1px solid #31584f; border-radius: 999px; background: #112a24; color: #d9f2ec; cursor: help; }
.machine-process-state strong { overflow: hidden; color: #dff8f2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.machine-process-state small { color: #75aaa0; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.machine-process-row > button { display: grid; width: 30px; height: 30px; place-items: center; color: #dc817a; border: 1px solid #59423e; border-radius: 6px; background: #251a18; cursor: pointer; }
.machine-process-row > button:hover { color: #ffaaa2; border-color: #985b55; }

.remote-explorer { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.remote-toolbar {
  display: flex; min-height: 54px; align-items: center; gap: 7px; padding: 8px 12px;
  border-bottom: 1px solid #294a43; background: #102520;
}
.remote-breadcrumb {
  display: flex; min-width: 100px; flex: 1; align-items: center; overflow: auto;
  border: 1px solid #31564f; border-radius: 7px; background: #091916;
}
.remote-breadcrumb button {
  display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 10px; color: #b9d8d1; border: 0; border-right: 1px solid #294a43;
  background: transparent; cursor: pointer;
}
.remote-breadcrumb button:hover { color: #fff; background: #17342e; }
.remote-upload { cursor: pointer; }
.remote-upload input { display: none; }
.remote-vscode-button { color: #bfe4ff; border-color: #315c72; background: #102b37; }
.remote-vscode-button:hover { color: #eff9ff; border-color: #4e91b2; background: #163c4c; }
.remote-view-switch { display: inline-flex; padding: 3px; border: 1px solid #31564f; border-radius: 7px; background: #091916; }
.remote-view-switch button { display: grid; width: 30px; height: 28px; place-items: center; padding: 0; color: #779a92; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.remote-view-switch button:hover { color: #e7faf6; }
.remote-view-switch button.active { color: #dffff8; background: #245047; }

.remote-explorer-body { display: grid; min-height: 0; flex: 1; grid-template-columns: 190px minmax(0, 1fr); }
.remote-places { display: flex; min-height: 0; flex-direction: column; gap: 3px; padding: 13px 9px; border-right: 1px solid #294a43; background: #0d211d; }
.remote-places > strong { padding: 2px 9px 8px; color: #6da99d; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.remote-places > button { display: flex; min-height: 36px; align-items: center; gap: 9px; padding: 7px 9px; color: #9eb8b2; border: 0; border-radius: 7px; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; }
.remote-places > button svg { color: #73c8ba; }
.remote-places > button:hover { color: #f2fffc; background: #17342e; }
.remote-places > button.active { color: #eafffa; background: #205047; box-shadow: inset 3px 0 #76ddcc; }
.remote-place-info { display: grid; gap: 3px; margin-top: auto; padding: 11px 9px 2px; border-top: 1px solid #294a43; }
.remote-place-info span { color: #6da99d; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.remote-place-info strong { overflow: hidden; color: #cce2dd; font-size: 11px; text-overflow: ellipsis; }
.remote-place-info small { color: #68867f; font-size: 9px; }

.remote-file-table { min-width: 0; min-height: 0; overflow: auto; }
.remote-file-head,
.remote-file-row {
  display: grid; grid-template-columns: minmax(280px, 1fr) 120px 180px 80px;
  width: 100%; align-items: center; text-align: left;
}
.remote-file-head {
  position: sticky; z-index: 2; top: 0; min-height: 34px; padding: 0 14px; color: #79bbae;
  border-bottom: 1px solid #294a43; background: #0d211d; font-size: 10px; font-weight: 900; text-transform: uppercase;
}
.remote-file-row {
  min-height: 43px; padding: 0 14px; color: #dceae6; border: 0; border-bottom: 1px solid rgb(46 83 75 / 55%);
  background: transparent; cursor: default;
}
.remote-file-row:hover, .remote-file-row.selected { background: #17352f; }
.remote-file-row > span { display: flex; min-width: 0; align-items: center; gap: 10px; color: #77d6c5; }
.remote-file-row strong { overflow: hidden; color: #eaf4f1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.remote-file-row small { color: #91aaa4; font-size: 11px; }
.remote-file-row i { display: flex; justify-content: flex-end; gap: 5px; font-style: normal; }
.remote-file-row i span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; cursor: pointer; }
.remote-file-row i span:hover { color: #fff; background: #285149; }
.remote-loading { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 9px; padding: 40px; color: #78968f; }
.remote-loading > span:last-child { font-size: 11px; font-weight: 700; }
.remote-empty-folder { display: grid; grid-column: 1 / -1; place-items: center; align-content: center; gap: 6px; min-height: 220px; color: #5f8f85; }
.remote-empty-folder strong { color: #adc8c2; font-size: 13px; }
.remote-empty-folder span { color: #6f8e87; font-size: 11px; }

.remote-file-table.icon-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  grid-auto-rows: 132px;
  align-content: start;
  gap: 8px;
  padding: 13px;
}
.remote-file-table.icon-view .remote-file-row {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 13px 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
}
.remote-file-table.icon-view .remote-file-row:hover { border-color: #315b52; background: #112a24; }
.remote-file-table.icon-view .remote-file-row.selected { border-color: #64b7a8; background: #194238; box-shadow: inset 0 0 0 1px rgb(100 183 168 / 20%); }
.remote-file-table.icon-view .remote-file-identity { display: grid; width: 100%; place-items: center; gap: 8px; }
.remote-file-table.icon-view .remote-file-identity svg { width: 43px; height: 43px; stroke-width: 1.35; color: #70d1c1; filter: drop-shadow(0 5px 8px rgb(0 0 0 / 18%)); }
.remote-file-table.icon-view .remote-file-row strong { width: 100%; font-size: 11px; text-align: center; }
.remote-file-table.icon-view .remote-file-row > small { color: #73928b; font-size: 9px; }
.remote-file-table.icon-view .remote-file-row > small:nth-of-type(2) { display: none; }
.remote-file-table.icon-view .remote-file-row i { position: absolute; z-index: 1; top: 5px; right: 5px; opacity: 0; transition: opacity 120ms ease; }
.remote-file-table.icon-view .remote-file-row:hover i,
.remote-file-table.icon-view .remote-file-row.selected i { opacity: 1; }
.remote-file-table.icon-view .remote-file-row i span { color: #acd0c8; background: #102d27; }
.remote-file-table.icon-view .remote-loading { grid-column: 1 / -1; }

.remote-file-editor { display: flex; width: 100%; height: 100%; min-height: 0; flex-direction: column; background: #081512; }
.remote-file-editor > header { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 16px; border-bottom: 1px solid #294a43; background: #10231f; }
.remote-file-editor > header > span:first-child { display: grid; gap: 2px; }
.remote-file-editor > header strong { color: #e9f7f3; font-size: 12px; }
.remote-file-editor > header small { color: #78968f; font-size: 10px; }
.remote-file-editor > header > span:last-child { padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.remote-file-editor > header .saved { color: #87caba; background: #15352e; }
.remote-file-editor > header .changed { color: #ffd68a; background: #3a2e17; }
.remote-file-editor > .notice { margin: 10px 14px 0; }
.remote-monaco-editor { width: 100%; min-width: 0; min-height: 260px; flex: 1 1 0; overflow: hidden; background: #07110f; }
.remote-monaco-editor:focus-within { box-shadow: inset 0 0 0 1px #397c70; }
.remote-monaco-editor .monaco-editor,
.remote-monaco-editor .overflow-guard { border-radius: 0; }
.remote-file-editor > footer { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid #294a43; background: #10231f; }
.remote-file-editor > footer > span { color: #78968f; font-size: 10px; }
.remote-file-editor > footer > div { display: flex; gap: 8px; }

.remote-terminal { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; border-top: 4px solid #285149; }
.remote-terminal > header {
  display: flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 13px;
  color: #b7d5ce; background: #10231f; font-size: 11px;
}
.remote-terminal > header > .remote-terminal-health {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #72b8aa;
  font-size: 10px; font-weight: 800;
}
.remote-terminal-health i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(114 184 170 / 10%); }
.terminal-connecting .remote-terminal-health { color: #90b9b1; }
.terminal-retrying .remote-terminal-health { color: #e4b85f; }
.terminal-disconnected .remote-terminal-health { color: #ef8f79; }
.remote-terminal-reconnect { display: inline-flex; min-height: 26px; align-items: center; gap: 6px; margin-left: auto; padding: 4px 9px; color: #ffd68a; border: 1px solid #725b2c; border-radius: 6px; background: #342a16; font-size: 10px; font-weight: 800; cursor: pointer; }
.remote-terminal-reconnect:hover { color: #fff1ca; border-color: #a88742; background: #46371b; }
.remote-terminal-health + .remote-terminal-reconnect { margin-left: 8px; }
.remote-terminal-diagnostic {
  display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 9px 13px;
  color: #bcd5cf; border-bottom: 1px solid #294a43; background: #10231f;
}
.remote-terminal-diagnostic > svg { flex: 0 0 auto; color: #83bdb2; }
.remote-terminal-diagnostic > span { display: grid; gap: 2px; }
.remote-terminal-diagnostic strong { color: #e5f2ef; font-size: 11px; }
.remote-terminal-diagnostic small { color: #86a39c; font-size: 10px; }
.remote-terminal-diagnostic.retrying { background: #2b2517; border-color: #5f4d27; }
.remote-terminal-diagnostic.retrying > svg { color: #e4b85f; }
.remote-terminal-diagnostic.disconnected { background: #301d19; border-color: #684036; }
.remote-terminal-diagnostic.disconnected > svg { color: #ef8f79; }
.remote-workspace-tabs button.has-problem > i { width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: #ef8f79; box-shadow: 0 0 0 3px rgb(239 143 121 / 12%); }
.machine-terminal-issue {
  display: flex; min-height: 54px; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px;
  color: #ef8f79; border: 1px solid #684036; border-radius: 8px; background: #301d19;
}
.machine-terminal-issue > span { display: grid; min-width: 0; gap: 2px; }
.machine-terminal-issue strong { color: #f3d4cd; font-size: 11px; }
.machine-terminal-issue small { color: #bd9187; font-size: 10px; }
.machine-terminal-issue button {
  display: inline-flex; flex: 0 0 auto; min-height: 29px; align-items: center; gap: 6px; margin-left: auto;
  padding: 5px 9px; color: #f2c1b5; border: 1px solid #805044; border-radius: 6px;
  background: #40251f; font-size: 10px; font-weight: 800; cursor: pointer;
}
.machine-terminal-issue button:hover { color: #fff; border-color: #a86859; background: #543027; }
.remote-terminal-screen { width: 100%; min-width: 0; min-height: 0; flex: 1 1 0; padding: 8px 10px; overflow: hidden; background: #07110f; }
.remote-terminal-screen .xterm { width: 100%; height: 100%; }
.remote-terminal-screen .xterm-screen { max-width: 100%; }
.remote-terminal-screen .xterm-viewport { width: 100% !important; }
.remote-terminal-denied { display: grid; flex: 1; place-items: center; color: #8fa8a2; background: #07110f; }

.remote-sudo-restart { display: grid; gap: 16px; padding: 4px; }
.remote-sudo-restart h3 { margin: 0 0 4px; color: #edf8f5; font-size: 17px; }
.remote-sudo-restart p { margin: 0; color: #91aaa4; font-size: 12px; }
.remote-sudo-restart > label { display: grid; gap: 7px; color: #c6ddd7; font-size: 11px; font-weight: 800; }
.remote-sudo-restart .remote-password-field { display: flex; min-width: 0; }
.remote-sudo-restart .remote-password-field input {
  width: 100%; min-width: 0; min-height: 42px; padding: 9px 46px 9px 12px;
  color: #f1fbf8; caret-color: #79d6c5; border: 1px solid #365c54; border-radius: 8px;
  outline: 0; background: #091916; box-shadow: inset 0 1px 2px rgb(0 0 0 / 22%);
  font: 600 13px/1.2 Inter, system-ui, sans-serif;
}
.remote-sudo-restart .remote-password-field input:hover { border-color: #47776d; }
.remote-sudo-restart .remote-password-field input:focus {
  border-color: #71cbbb; box-shadow: 0 0 0 3px rgb(92 190 173 / 15%), inset 0 1px 2px rgb(0 0 0 / 22%);
}
.remote-sudo-restart .remote-password-field input:-webkit-autofill,
.remote-sudo-restart .remote-password-field input:-webkit-autofill:hover,
.remote-sudo-restart .remote-password-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f1fbf8;
  caret-color: #79d6c5;
  box-shadow: 0 0 0 1000px #091916 inset;
  transition: background-color 9999s ease-out 0s;
}
.remote-sudo-restart .remote-password-field button {
  right: 5px; width: 34px; height: 32px; color: #83b9af; border-left: 1px solid transparent;
}
.remote-sudo-restart > footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.remote-sudo-restart > footer button { display: inline-flex; align-items: center; gap: 7px; }

.remote-restart-status {
  display: flex; min-height: 54px; align-items: center; gap: 11px; padding: 11px 13px;
  color: #d8eee9; border: 1px solid #3b7066; border-radius: 8px; background: #102d27;
  font-size: 12px; font-weight: 750;
}
.remote-restart-status.ready { color: #b8f1dd; border-color: #3f826f; background: #12372d; }
.remote-restart-status.timeout { color: #ffe2a8; border-color: #765e30; background: #352b18; }
.machine-operations > .remote-restart-status { margin: 0 0 12px; }

.machine-access-editor { display: grid; gap: 12px; }
.machine-access-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid #31564f; border-radius: 9px; background: #0d211d; }
.machine-access-overview > span { display: flex; align-items: center; gap: 10px; color: #78cbbb; }
.machine-access-overview > span > span { display: grid; gap: 3px; }
.machine-access-overview strong { color: #e7f5f2; font-size: 12px; }
.machine-access-overview small { color: #87a29c; font-size: 10px; }
.machine-access-overview > label { position: relative; display: flex; align-items: center; }
.machine-access-overview > label svg { position: absolute; left: 11px; color: #76b4a8; pointer-events: none; }
.machine-access-overview input { width: 100%; min-height: 38px; padding: 8px 11px 8px 36px; color: #effaf7; border: 1px solid #365c54; border-radius: 7px; outline: 0; background: #091916; }
.machine-access-overview input:focus { border-color: #67bdae; box-shadow: 0 0 0 3px rgb(92 190 173 / 12%); }
.machine-access-users { display: grid; max-height: min(55vh, 560px); gap: 10px; padding-right: 3px; overflow: auto; scrollbar-color: #43776c #0a1815; scrollbar-width: thin; }
.machine-access-users > article { overflow: hidden; border: 1px solid #31564f; border-radius: 10px; background: #0b1a17; }
.machine-access-users > article.enabled { border-color: #4d9a8c; background: #0d211d; }
.machine-access-user { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; }
.machine-access-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.machine-access-identity > i { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #9de2d5; border: 1px solid #397064; border-radius: 8px; background: #15372f; font-size: 12px; font-style: normal; font-weight: 900; }
.machine-access-identity > span { display: grid; min-width: 0; gap: 3px; }
.machine-access-user strong { color: #f2faf8; font-size: 14px; }
.machine-access-user small { color: #91aaa4; font-size: 11px; }
.machine-access-toggle { display: flex; align-items: center; gap: 8px; color: #9eb9b3; font-size: 11px; font-weight: 800; cursor: pointer; }
.machine-access-toggle input { accent-color: #6ed1c1; }
.machine-access-users > article.enabled .machine-access-toggle { color: #8ee0d2; }
.machine-access-toggle input:disabled + span { color: #6f8580; }
.machine-access-empty { display: grid; min-height: 120px; place-items: center; align-content: center; gap: 8px; color: #78968f; border: 1px dashed #31564f; border-radius: 9px; }
.machine-access-body { display: grid; gap: 13px; padding: 13px 14px 15px; border-top: 1px solid #2a4d45; background: rgb(8 25 21 / 45%); }
.machine-access-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.machine-access-section-heading > span { display: flex; align-items: center; gap: 7px; color: #bfe0d9; font-size: 11px; }
.machine-access-presets { display: flex; gap: 5px; }
.machine-access-presets button { min-height: 28px; padding: 4px 9px; color: #9fc4bc; border: 1px solid #31564f; border-radius: 6px; background: #10251f; font-size: 10px; font-weight: 800; cursor: pointer; }
.machine-access-presets button:hover { color: #effffb; border-color: #5da99b; background: #183a33; }
.machine-capabilities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.machine-capabilities > label { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 7px 8px; color: #91aaa4; border: 1px solid #294b43; border-radius: 7px; background: #091916; font-size: 10px; font-weight: 800; cursor: pointer; text-align: center; }
.machine-capabilities > label.selected { color: #dffbf5; border-color: #4d9588; background: #15382f; }
.machine-capabilities > label input { accent-color: #6ed1c1; }
.machine-ssh-user { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(220px, 330px); align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid #294b43; }
.machine-ssh-user > span { display: flex; align-items: center; gap: 9px; color: #83cdbf; }
.machine-ssh-user > span > span { display: grid; gap: 2px; }
.machine-ssh-user strong { color: #dceeea; font-size: 11px; }
.machine-ssh-user small { color: #78968f; font-size: 10px; font-weight: 500; }
.machine-ssh-user input { width: 100%; min-height: 36px; padding: 7px 10px; color: #fff; border: 1px solid #365c54; border-radius: 7px; background: #091916; }
.machine-status-metric { text-align: left; cursor: pointer; }
.machine-status-metric strong { display: flex; align-items: center; gap: 6px; }

@media (max-width: 800px) {
  .machine-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-process-head, .machine-process-row { grid-template-columns: minmax(150px, 1fr) 62px 62px 36px; }
  .machine-process-head span:nth-child(2), .machine-process-row > span:nth-child(2),
  .machine-process-head span:nth-child(5), .machine-process-row > span:nth-child(5) { display: none; }
  .remote-explorer-body { grid-template-columns: 1fr; }
  .remote-places { display: none; }
  .remote-file-head, .remote-file-row { grid-template-columns: minmax(180px, 1fr) 80px 55px; }
  .remote-file-head span:nth-child(3), .remote-file-row > small:nth-child(3) { display: none; }
  .remote-toolbar .compact-action { padding-inline: 8px; font-size: 0; }
  .remote-toolbar .compact-action svg { margin: 0; }
  .machine-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-access-overview { grid-template-columns: 1fr; }
  .machine-access-section-heading, .machine-ssh-user { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
  .machine-access-presets { flex-wrap: wrap; }
}

@media (max-height: 700px) {
  .admin-modal-wide:has(.remote-workspace) {
    width: calc(100vw - 8px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .admin-modal-wide:has(.remote-workspace) .admin-modal-header { padding-block: 10px; }
  .remote-workspace { grid-template-rows: minmax(180px, 52%) minmax(150px, 48%); }
  .remote-toolbar { min-height: 46px; padding-block: 5px; }
}
.sidebar-profile-button,
.client-profile-button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sidebar-profile-button {
  width: 100%;
  padding: 7px 5px;
}

.sidebar-profile-button:hover,
.sidebar-profile-button:focus-visible,
.client-profile-button:hover,
.client-profile-button:focus-visible {
  color: #fff;
  background: rgba(102, 198, 183, 0.1);
  outline: 1px solid rgba(102, 198, 183, 0.28);
}

.sidebar-profile-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-user .sidebar-user-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sidebar-user .sidebar-user-actions .icon-button {
  flex: 1;
  min-width: 0;
}

.client-profile-button {
  color: var(--ink);
  font-weight: 800;
}

.client-profile-static {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px;
  color: #46625b;
  background: #edf4f1;
  border: 1px solid #d9e6e1;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.self-profile {
  display: grid;
  gap: 14px;
}

.self-profile-message {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.self-profile-message.is-success {
  color: #9ce4d7;
  border-color: #2e6f64;
  background: #123128;
}

.self-profile-message.is-error {
  color: #f1b4ac;
  border-color: #74473f;
  background: #321d1a;
}

.self-profile-section {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #31574f;
  border-radius: 10px;
  background: #10251f;
}

.self-profile-heading strong,
.self-profile-heading span {
  display: block;
}

.self-profile-heading strong {
  color: #f3f8f6;
  font-size: 15px;
}

.self-profile-heading span {
  margin-top: 3px;
  color: #9db2ad;
  font-size: 12px;
}

.self-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 14px;
  row-gap: 10px;
}

.self-profile-grid label {
  min-width: 0;
  display: grid !important;
  grid-template-rows: 17px 40px 16px;
  align-content: start;
  gap: 6px;
  color: #c9d8d4;
  font-size: 12px;
  font-weight: 800;
}

.self-profile-grid input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #3b635b;
  border-radius: 7px;
  color: #f4f8f7;
  background: #091b17;
}

.self-profile-grid input:focus {
  border-color: #79d4c4;
  outline: 2px solid rgba(121, 212, 196, 0.14);
}

.self-profile-grid input:disabled {
  color: #8fa39e;
  border-color: #2a4640;
  background: #142722;
  cursor: not-allowed;
}

.self-profile-grid small {
  min-height: 16px;
  color: #829a94;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.self-profile-grid small.field-validation-error {
  color: #ef9b91;
  font-weight: 750;
}

.self-profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.self-profile-demo-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #83dacb;
  background: #0b201b;
  border: 1px solid #31574f;
  border-radius: 8px;
}

.self-profile-demo-lock > svg {
  flex: 0 0 auto;
}

.self-profile-demo-lock > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.self-profile-demo-lock strong {
  color: #eff8f5;
  font-size: 13px;
}

.self-profile-demo-lock span {
  color: #9db2ad;
  font-size: 12px;
  line-height: 1.4;
}

.self-profile-grid .password-field {
  height: 40px;
}

.self-profile-grid .password-field input {
  height: 40px;
}

.self-profile-grid .password-visibility-button {
  top: 20px;
}

@media (max-width: 720px) {
  .self-profile-grid {
    grid-template-columns: 1fr;
  }

  .self-profile-actions .compact-action {
    width: 100%;
  }
}
/* Shared master-detail workspace for identity, access and audit tools. */
.identity-admin-stack {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.identity-switch.segmented {
  min-height: 62px;
  padding: 6px;
  border: 1px solid #315a52;
  border-radius: 9px;
  background: #10231f;
}

.identity-switch.segmented button {
  min-height: 48px;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  color: #b8cbc6;
  background: transparent;
}

.identity-switch.segmented button.active {
  color: #08211c;
  border-color: #8de0d1;
  background: #70cdbd;
}

.identity-admin-stack > .admin-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.unified-admin-management {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  background: #0b1b17;
}

.unified-admin-sidebar,
.unified-admin-detail {
  min-width: 0;
  min-height: 0;
  border: 1px solid #315a52;
  border-radius: 9px;
  background: #10231f;
  overflow: hidden;
}

.unified-admin-sidebar {
  display: flex;
  flex-direction: column;
}

.unified-admin-sidebar > header {
  flex: 0 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #315a52;
}

.unified-admin-sidebar > header div,
.unified-admin-sidebar > header strong,
.unified-admin-sidebar > header span {
  min-width: 0;
  display: block;
}

.unified-admin-sidebar > header strong {
  color: #f0f7f5;
  font-size: 15px;
}

.unified-admin-sidebar > header span {
  margin-top: 3px;
  color: #9eb4ae;
  font-size: 11px;
}

.unified-admin-sidebar > header > b {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #397064;
  border-radius: 999px;
  color: #b8fff2;
  background: #153f37;
  font-size: 12px;
}

.unified-admin-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 9px;
  overflow: auto;
}

.unified-admin-sidebar > .admin-resource-pagination {
  flex: 0 0 46px;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(9, 24, 21, 0.78);
  border-top: 1px solid rgba(114, 196, 182, 0.18);
}

.unified-admin-sidebar > .admin-resource-pagination > div {
  gap: 5px;
  padding: 2px;
  background: #0b1a17;
  border: 1px solid #284c45;
  border-radius: 7px;
}

.unified-admin-sidebar > .admin-resource-pagination .icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  background: transparent;
  border-color: transparent;
  border-radius: 5px;
}

.unified-admin-sidebar > .admin-resource-pagination .icon-button:not(:disabled):hover {
  background: #15332e;
  border-color: #3f756b;
}

.unified-admin-sidebar > .admin-resource-pagination strong {
  min-width: 34px;
  line-height: 26px;
}

.unified-admin-list > button {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #2d514a;
  border-radius: 8px;
  color: #dfeae7;
  background: #112720;
  text-align: left;
  cursor: pointer;
}

.unified-admin-list > button:hover {
  border-color: #4c887d;
  background: #17342d;
}

.unified-admin-list > button.active {
  border-color: #76d5c5;
  box-shadow: inset 3px 0 0 #76d5c5;
  background: #1b4037;
}

.unified-admin-list > button > span:nth-child(2),
.unified-admin-list > button > span:nth-child(2) strong,
.unified-admin-list > button > span:nth-child(2) small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-admin-list > button > span:nth-child(2) strong {
  color: #f3f8f7;
  font-size: 13px;
}

.unified-admin-list > button > span:nth-child(2) small {
  margin-top: 4px;
  color: #9db2ad;
  font-size: 11px;
}

.unified-admin-list .status-on,
.unified-admin-list .status-off {
  padding: 5px 7px;
  font-size: 10px;
}

.unified-admin-detail {
  display: grid;
  overflow: auto;
}

.unified-detail-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto;
}

.unified-detail-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #315a52;
  background: #17322b;
}

.unified-detail-header .entity-cell {
  min-width: 0;
}

.unified-detail-header .entity-cell > span:nth-child(2) {
  min-width: 0;
}

.unified-detail-header .entity-cell strong,
.unified-detail-header .entity-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.unified-detail-metrics > div,
.unified-detail-metrics > label {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #315a52;
  border-radius: 8px;
  background: #142a24;
}

.unified-detail-metrics span,
.unified-detail-section > .section-kicker {
  color: #83d9ca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unified-detail-metrics strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f2f8f6;
  font-size: 15px;
}

.unified-detail-metrics small,
.unified-detail-section small {
  color: #98ada8;
  font-size: 11px;
}

.unified-detail-metrics .role-select {
  width: 100%;
  min-height: 34px;
}

.unified-detail-section {
  margin: 0 12px 12px;
  padding: 14px;
  border: 1px solid #315a52;
  border-radius: 8px;
  background: #11251f;
}

.unified-detail-section p {
  margin: 8px 0 0;
  color: #dce8e5;
  font-size: 13px;
}

.unified-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.unified-detail-columns .unified-detail-section {
  min-height: 130px;
}

.audit-management {
  height: clamp(480px, calc(100dvh - 330px), 780px);
  min-height: 0;
}

.audit-management .unified-admin-list > button {
  grid-template-columns: auto minmax(0, 1fr);
}

.unified-access-panel .access-layout {
  gap: 12px;
  padding: 12px;
  background: #0b1b17;
}

.unified-access-panel .access-service-list,
.unified-access-panel .access-detail {
  border: 1px solid #315a52;
  border-radius: 9px;
  background: #10231f;
  overflow: hidden;
}

.unified-access-panel .access-service-list {
  margin: 0;
}

.unified-access-panel .access-resource-list-scroll {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: auto;
}

.unified-access-panel .access-resource-list-scroll > button {
  width: 100%;
  min-height: 62px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 7px 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #2d514a;
  border-radius: 7px;
  color: #dfeae7;
  background: #112720;
  text-align: left;
  cursor: pointer;
}

.unified-access-panel .access-resource-list-scroll > button:hover {
  border-color: #4c887d;
  background: #17342d;
}

.unified-access-panel .access-resource-list-scroll > button.active {
  border-color: #76d5c5;
  box-shadow: inset 3px 0 0 #76d5c5;
  background: #1b4037;
}

.unified-access-panel .access-resource-list-scroll > button > span:nth-child(2),
.unified-access-panel .access-resource-list-scroll > button strong,
.unified-access-panel .access-resource-list-scroll > button small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-access-panel .access-resource-list-scroll > button small {
  margin-top: 3px;
  color: #9db2ad;
  font-size: 11px;
}

.unified-access-panel .access-detail-header {
  min-height: 72px;
  background: #17322b;
}

@media (max-width: 1050px) {
  .unified-admin-management {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .unified-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .unified-admin-management {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .unified-admin-sidebar {
    max-height: 300px;
  }

  .unified-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .unified-detail-metrics,
  .unified-detail-columns {
    grid-template-columns: 1fr;
  }
}
.travel-workspace{max-width:1500px}.travel-alert{padding:12px 15px;border:1px solid #fecaca;border-radius:12px;background:#fef2f2;color:#a12828;margin-bottom:16px}.travel-loading{display:flex;gap:10px;align-items:center;justify-content:center;min-height:300px;color:var(--muted)}.travel-spin{animation:travel-spin .8s linear infinite}@keyframes travel-spin{to{transform:rotate(360deg)}}.travel-toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:16px}.travel-toolbar label{min-width:220px}.travel-toolbar select{width:100%;height:42px;border:1px solid var(--border);border-radius:10px;background:var(--panel);padding:0 12px;color:var(--text)}.travel-layout{display:grid;grid-template-columns:minmax(320px,480px) minmax(380px,1fr);gap:18px;align-items:start}.travel-main{display:grid;gap:16px}.travel-balance{background:#102f29;color:#fff;border-radius:22px;padding:24px;box-shadow:0 12px 30px #102f2926}.travel-balance-top{display:flex;justify-content:space-between;align-items:center}.travel-balance-top>span{font-size:11px;letter-spacing:.14em;font-weight:800;color:#b4c9c2}.travel-balance-top button{border:0;background:#ffffff14;color:#fff;width:36px;height:36px;border-radius:50%;display:grid;place-items:center}.travel-balance>strong{display:block;font-size:clamp(38px,5vw,58px);line-height:1.05;letter-spacing:-.05em;color:#d8f36c;margin:8px 0 22px}.travel-balance>div:last-child{border-top:1px solid #ffffff24;padding-top:17px;display:flex;gap:26px;flex-wrap:wrap}.travel-balance>div:last-child span{font-size:11px;color:#b4c3be}.travel-balance b{display:block;color:#fff;font-size:15px;margin-top:3px}.is-positive{color:#d8f36c!important}.is-negative{color:#ff9991!important}.travel-add,.travel-history,.travel-welcome{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:18px;box-shadow:0 7px 22px #142b2410}.travel-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--surface-subtle,#eef0ed);padding:4px;border-radius:12px;margin-bottom:15px}.travel-tabs button{border:0;background:transparent;min-height:36px;border-radius:9px;font-weight:700;color:var(--muted)}.travel-tabs button.active{background:#15362f;color:#fff}.travel-tabs button.active.income{background:#54790f}.travel-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:15px}.travel-quick button{border:1px solid transparent;background:var(--surface-subtle,#f2f4f1);color:var(--text);border-radius:11px;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px}.travel-quick button span{font-size:18px}.travel-quick button.selected{border-color:#99b443;background:#edf6d1}.travel-form{display:grid;gap:13px}.travel-form label,.travel-toolbar label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}.travel-form input{width:100%;height:45px;border:1px solid var(--border);background:var(--input-bg,var(--panel));color:var(--text);border-radius:11px;padding:0 13px}.travel-money-input{position:relative}.travel-money-input input{padding-right:38px}.travel-money-input span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:700}.travel-big-input input{height:56px;font-size:24px;font-weight:800}.travel-add-button{height:50px;border:0;border-radius:12px;background:#d7f269;color:#173027;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}.travel-error{color:#b82c25}.travel-history{min-height:380px}.travel-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.travel-section-title h2{font-size:17px;margin:0}.travel-section-title span{font-size:11px;color:var(--muted)}.travel-movements{border:1px solid var(--border);border-radius:14px;overflow:hidden}.travel-movements>button{width:100%;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);display:grid;grid-template-columns:38px 1fr auto 18px;align-items:center;gap:10px;padding:11px;text-align:left}.travel-movements>button:last-child{border-bottom:0}.travel-movements i{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#f9e9e6;color:#a83e33}.travel-movements i.income{background:#eaf3dd;color:#557811}.travel-movements i svg{width:17px}.travel-movements>button>span{display:grid}.travel-movements b{font-size:13px}.travel-movements small{color:var(--muted);font-size:10px;margin-top:2px}.travel-movements strong{font-size:13px;color:#aa3d34}.travel-movements strong.income{color:#587b15}.travel-movements>button>svg{color:var(--muted)}.travel-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:30px;color:var(--muted)}.travel-empty span{font-size:13px}.travel-welcome{max-width:430px;margin:50px auto}.travel-create{padding:8px}.travel-welcome-icon{width:55px;height:55px;border-radius:17px;background:#15362f;color:#d7f269;display:grid;place-items:center;margin:0 auto 10px}.travel-modal-backdrop{position:fixed;inset:0;z-index:1000;background:#0c201b99;backdrop-filter:blur(3px);display:grid;place-items:center;padding:18px}.travel-modal{width:min(440px,100%);max-height:90vh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:0 25px 70px #0004}.travel-modal>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.travel-modal h2{font-size:18px;margin:0}.travel-modal>header button{border:0;background:transparent;color:var(--text);display:grid;place-items:center}.travel-delete{height:43px;border:1px solid #efc8c4;border-radius:11px;background:#fff3f1;color:#a72f28;font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px}@media(max-width:900px){.travel-layout{grid-template-columns:1fr}.travel-history{min-height:0}}@media(max-width:600px){.travel-toolbar{align-items:stretch;flex-direction:column}.travel-toolbar label,.travel-toolbar button{width:100%}.travel-quick{grid-template-columns:repeat(4,1fr)}.travel-workspace{padding-left:10px!important;padding-right:10px!important}.travel-balance{padding:20px}.travel-section-title{align-items:flex-start}.travel-section-title .secondary-button{font-size:0}.travel-section-title .secondary-button svg{margin:0}.travel-movements>button{grid-template-columns:36px 1fr auto}.travel-movements>button>svg{display:none}}
/* Jacom administration shell: compact, technical and shared by every module. */
.jacom-app-shell {
  --sidebar-width: 240px;
  background: #08120f;
}

.jacom-app-content {
  background:
    radial-gradient(circle at 18% -12%, rgba(76, 190, 170, 0.07), transparent 34%),
    #091512;
}

.jacom-app-shell .datapulse-sidebar {
  gap: 12px;
  padding: 12px 10px;
  background: #0a1714;
  border-right-color: #213a34;
  box-shadow: none;
}

.jacom-app-shell .datapulse-sidebar .sidebar-brand {
  min-height: 50px;
  padding: 4px 40px 11px 4px;
}

.jacom-app-shell .datapulse-sidebar.is-collapsed .sidebar-brand {
  padding-right: 0;
  padding-left: 0;
}

.jacom-app-shell .nav-list {
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.jacom-app-shell .nav-group {
  gap: 3px;
}

.jacom-app-shell .nav-group + .nav-group {
  margin-top: 5px;
  padding-top: 10px;
}

.jacom-app-shell .nav-group-label {
  padding: 0 9px 4px;
  color: #65bbae;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.jacom-app-shell .nav-list a {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  color: #aebfba;
  font-size: 12px;
  font-weight: 720;
}

.jacom-app-shell .nav-list a:hover {
  color: #edf8f5;
  background: #11251f;
  border-color: #294940;
  box-shadow: none;
}

.jacom-app-shell .nav-list a.active {
  color: #eafff9;
  background: #16443a;
  border-color: #27695d;
  box-shadow: inset 2px 0 0 #70d2c2;
}

.jacom-app-shell .sidebar-user {
  padding: 11px 4px 0;
}

.jacom-app-shell .admin-workspace {
  min-height: 100dvh;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  background: transparent;
}

.jacom-app-shell .admin-feedback {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.jacom-app-shell .admin-page-header {
  min-height: 58px;
  align-items: center;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(112, 183, 169, 0.18);
}

.jacom-app-shell .admin-page-header .page-kicker {
  color: #70cabb;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-module-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.jacom-app-shell .admin-module-title h1 {
  margin: 2px 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.admin-module-title > span {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  color: #aee9df;
  background: #12352e;
  border: 1px solid #285b51;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.jacom-app-shell .admin-page-header p {
  font-size: 11px;
}

.jacom-app-shell .admin-tab-content {
  width: 100%;
  min-height: 0;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.jacom-app-shell .admin-tab-content > * {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.jacom-app-shell .admin-tab-content > .admin-panel,
.jacom-app-shell .admin-tab-content > .identity-admin-stack,
.jacom-app-shell .admin-tab-content > .service-admin-stack {
  max-height: none;
}

.jacom-app-shell .service-admin-stack,
.jacom-app-shell .service-admin-stack > .admin-resources-panel,
.jacom-app-shell .admin-resources-panel > .admin-resource-management,
.jacom-app-shell .identity-admin-stack,
.jacom-app-shell .identity-admin-stack > .admin-panel,
.jacom-app-shell .unified-admin-management,
.jacom-app-shell .audit-management {
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
}

.jacom-app-shell .admin-resources-panel .resource-detail-actions {
  position: relative;
  flex-wrap: nowrap;
  overflow: visible;
}

.resource-action-menu {
  position: relative;
}

.resource-action-menu > summary {
  list-style: none;
  cursor: pointer;
}

.resource-action-menu > summary::-webkit-details-marker {
  display: none;
}

.resource-action-menu > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: 176px;
  display: grid;
  gap: 3px;
  padding: 6px;
  background: #101f1b;
  border: 1px solid #31534b;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.resource-action-menu > div button {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: #d6e4e0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.resource-action-menu > div button:hover {
  background: #18302a;
}

.resource-action-menu > div button.danger {
  color: #ffaaa9;
}

.service-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid #28473f;
  background: #0e1c18;
}

.service-detail-facts > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 13px 15px;
}

.service-detail-facts > div + div {
  border-left: 1px solid #28473f;
}

.service-detail-facts dt {
  color: #72b8ab;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-detail-facts dd {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
  color: #edf8f5;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.service-detail-facts dd small {
  color: #8ca39d;
  font-size: 10px;
  font-weight: 500;
}

@media (max-width: 1040px) {
  .jacom-app-shell {
    --sidebar-width: 100%;
  }

  .jacom-app-shell .datapulse-sidebar {
    overflow-x: auto;
  }

  .jacom-app-shell .nav-list {
    overflow: visible;
  }

  .jacom-app-shell .admin-workspace {
    min-height: 0;
    padding: 12px;
  }

  .service-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-facts > div:nth-child(3) {
    border-left: 0;
  }
}

/* Infrastructure module */
.machines-resources-panel {
  height: 100% !important;
  min-height: 0;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr);
  background: #091511;
}

.admin-tab-content > .machines-resources-panel {
  height: 100%;
}

.jacom-app-shell .admin-tab-content > .admin-panel.machines-resources-panel {
  height: 100% !important;
  min-height: 0;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr);
}

.infrastructure-module {
  min-width: 0;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  background: #091511;
}

.infrastructure-module > .machine-resource-management {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  overflow: hidden;
}

.infrastructure-module > .admin-resource-management.machine-resource-management {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
}

.machine-sidebar-actions {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #28473f;
  background: #0d1c18;
}

.machine-sidebar-actions > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.machine-sidebar-actions > span strong,
.machine-sidebar-actions > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machine-sidebar-actions > span strong { color: #effbf8; font-size: 12px; }
.machine-sidebar-actions > span small { color: #8fa8a1; font-size: 10px; }
.machine-sidebar-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.machine-sidebar-actions .compact-action { min-width: 0; min-height: 34px; padding-inline: 8px; }

.infrastructure-module .machine-detail .service-detail-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
}

.infrastructure-module .machine-detail .service-detail-metric {
  min-width: 0;
}

.infrastructure-module .machine-detail .service-detail-metric strong,
.infrastructure-module .machine-detail .service-detail-metric small {
  overflow-wrap: anywhere;
}

.infrastructure-module .machine-detail .resource-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}

.infrastructure-module .machine-detail .admin-service-detail-header {
  align-items: flex-start;
  gap: 12px;
}

.infrastructure-module .machine-detail .admin-service-detail-card {
  min-width: 0;
}

.infrastructure-module.is-machines {
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.infrastructure-module.is-machines > .admin-resource-management.machine-resource-management {
  height: 100%;
  min-height: 0;
  gap: 12px;
  padding: 12px;
  align-items: stretch;
  overflow: hidden;
  background: #0f201c;
}

.infrastructure-module.is-machines .machine-resource-sidebar {
  height: 100%;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.infrastructure-module.is-machines .machine-resource-sidebar .admin-resource-sidebar-scroll {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.infrastructure-module.is-machines .machine-detail,
.infrastructure-module.is-machines .machine-detail .admin-service-detail-card {
  height: 100%;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  overflow: hidden;
}

.infrastructure-module.is-machines .machine-detail-body {
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.machine-control-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, auto) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #34574e;
  border-left: 3px solid #70847f;
  border-radius: 8px;
  background: #0d1d19;
}

.machine-control-panel.is-online { border-left-color: #4ed58c; background: linear-gradient(90deg, rgb(25 74 52 / 35%), #0d1d19 36%); }
.machine-control-panel.is-booting { border-left-color: #e6bb5f; background: linear-gradient(90deg, rgb(82 63 22 / 36%), #0d1d19 36%); }
.machine-control-panel.is-offline { border-left-color: #de7471; }
.machine-control-summary { display: flex; align-items: center; gap: 11px; min-width: 0; }
.machine-control-summary > span:last-child { display: grid; min-width: 0; gap: 2px; }
.machine-control-summary small { color: #80a098; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.machine-control-summary strong { color: #effbf7; font-size: 13px; }
.machine-control-summary em { color: #8da59f; font-size: 10px; font-style: normal; }
.machine-control-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 1px solid #386057; border-radius: 50%; color: #8baca4; background: #132a24; }
.machine-control-panel.is-online .machine-control-icon { color: #67dda0; border-color: #327c56; background: #123b29; }
.machine-control-panel.is-booting .machine-control-icon { color: #f0c96f; border-color: #77622d; background: #362e19; }
.machine-control-services { display: flex; flex-wrap: wrap; gap: 6px; }
.machine-control-services > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #abc0ba; background: #1b302a; font-size: 9px; font-weight: 750; white-space: nowrap; }
.machine-control-services i { width: 6px; height: 6px; border-radius: 50%; background: #82938f; }
.machine-control-services .online i { background: #55dc91; box-shadow: 0 0 0 3px rgb(85 220 145 / 12%); }
.machine-control-services .offline i { background: #df7773; }
.machine-control-services small { color: #78948c; font-size: inherit; }
.machine-control-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.machine-context-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.machine-context-row .machine-description-section { min-width: 0; }
.machine-danger-zone { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #4c3835; border-radius: 8px; background: #201817; }
.machine-danger-zone > span { display: grid; gap: 2px; }
.machine-danger-zone strong { color: #e8cfcb; font-size: 10px; }
.machine-danger-zone small { color: #987e7a; font-size: 9px; }

.infrastructure-module.is-machines .machine-hosted-services {
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.infrastructure-module.is-machines .machine-hosted-service-list {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.infrastructure-module.is-machines .machine-hosted-service {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.infrastructure-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  border-bottom: 1px solid #28473f;
  background: #0d1b17;
  overflow-x: auto;
}

.infrastructure-tabs button {
  padding: 10px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8fa8a1;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.infrastructure-tabs button:hover,
.infrastructure-tabs button.active {
  color: #eafff9;
  border-bottom-color: #65dac8;
}

.infrastructure-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #28473f;
  background: #11231e;
}

.infrastructure-actions > div:first-child,
.infrastructure-actions > div:first-child span {
  display: grid;
  gap: 2px;
}

.infrastructure-actions > div:first-child strong { color: #edf8f5; font-size: 13px; }
.infrastructure-actions > div:first-child span { color: #8fa8a1; font-size: 11px; }
.infrastructure-actions > div:last-child { display: flex; gap: 8px; }

.infrastructure-view {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  min-height: 0;
  overflow: visible;
  background: #091511;
}

.infrastructure-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.infrastructure-metrics article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #294b42;
  border-radius: 8px;
  background: #11231e;
}

.infrastructure-metrics article > svg { color: #69d5c4; margin-top: 2px; }
.infrastructure-metrics article span { display: grid; gap: 3px; }
.infrastructure-metrics small { color: #88a39c; font-size: 10px; }
.infrastructure-metrics strong { color: #f2fffb; font-size: 23px; line-height: 1; }
.infrastructure-metrics em { color: #78b9ac; font-size: 10px; font-style: normal; }

.infrastructure-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.infrastructure-shortcuts button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #294b42;
  border-radius: 8px;
  color: #68d7c5;
  background: #10211c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.infrastructure-shortcuts button:hover { border-color: #57ad9e; background: #142b24; transform: translateY(-1px); }
.infrastructure-shortcuts span { display: grid; min-width: 0; gap: 3px; }
.infrastructure-shortcuts strong { color: #eefaf6; font-size: 11px; }
.infrastructure-shortcuts small { color: #86a099; font-size: 9px; }

.infrastructure-section-card {
  min-width: 0;
  border: 1px solid #294b42;
  border-radius: 8px;
  background: #10211c;
  overflow: hidden;
}

.infrastructure-section-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #294b42;
}

.infrastructure-section-card h3 { margin: 2px 0 0; color: #effbf7; font-size: 14px; }
.provider-rows, .sync-job-list { display: grid; }
.provider-rows > article,
.sync-job-list > article {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto 90px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #203d35;
}
.provider-rows > article:last-child, .sync-job-list > article:last-child { border-bottom: 0; }
.provider-rows article > div, .provider-rows article > span:not(.provider-logo):not(.provider-status) { display: grid; gap: 3px; }
.provider-rows strong { color: #eefaf6; font-size: 12px; }
.provider-rows small { color: #87a099; font-size: 10px; overflow-wrap: anywhere; }
.provider-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #2c6659;
  border-radius: 7px;
  color: #73dfcd;
  background: #143a31;
}
.provider-status {
  padding: 4px 8px;
  border-radius: 999px;
  color: #a7bbb5;
  background: #21322d;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.provider-status.connected, .provider-status.completed { color: #70e5a4; background: #123d2a; }
.provider-status.error, .provider-status.failed { color: #ff9e9d; background: #492220; }
.provider-status.warning { color: #f4c86e; background: #423516; }
.provider-status.syncing, .provider-status.running { color: #76d9ff; background: #163745; }

.network-device-rows > article { grid-template-columns: auto minmax(220px, 1fr) auto 110px auto; }
.network-device-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 7px !important; }
.device-identification { display: flex !important; align-items: center; flex-wrap: wrap; gap: 5px 8px !important; margin-top: 5px; }
.device-identification b { padding: 3px 7px; border-radius: 999px; color: #8ee5d5; background: #173a31; font-size: 9px; }
.device-identification em { color: #91aaa3; font-size: 9px; font-style: normal; }
.device-identification small { flex-basis: 100%; color: #b0c5bf !important; line-height: 1.45; }

.provider-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.provider-catalog article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid #294b42;
  border-radius: 8px;
  background: #0d1c18;
}
.provider-catalog article > div { min-width: 0; }
.provider-catalog strong { color: #edf9f5; font-size: 12px; }
.provider-catalog p { min-height: 32px; margin: 4px 0 11px; color: #8da49e; font-size: 10px; line-height: 1.5; }
.provider-catalog button { grid-column: 1 / -1; width: 100%; justify-content: center; }

.infrastructure-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 20px;
  color: #74d9c8;
  text-align: center;
}
.infrastructure-empty strong { color: #effbf7; font-size: 13px; }
.infrastructure-empty p { max-width: 560px; margin: 0 0 4px; color: #88a19a; font-size: 11px; line-height: 1.5; }

.provider-connect-form {
  display: grid;
  gap: 14px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.provider-type-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.provider-type-picker button {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #2b5147;
  border-radius: 7px;
  color: #a9beb8;
  background: #10221d;
  text-align: left;
  cursor: pointer;
}
.provider-type-picker button.active { border-color: #6bd8c5; color: #f1fffb; background: #164238; }
.provider-type-picker button span { display: grid; min-width: 0; gap: 3px; }
.provider-type-picker strong { font-size: 10px; }
.provider-type-picker small { color: #84a099; font-size: 8px; line-height: 1.3; }
.provider-config-panel {
  height: 330px;
  min-height: 330px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #2b5147;
  border-radius: 8px;
  overflow: hidden;
}
.provider-config-panel > header { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #2b5147; background: #132a24; }
.provider-config-panel > header > div { display: grid; gap: 2px; }
.provider-config-panel > header strong { color: #effbf7; font-size: 12px; }
.provider-config-panel > header small { color: #8ca49e; font-size: 9px; }
.provider-config-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 15px 18px;
  padding: 16px;
  overflow: auto;
  align-content: start;
}
.provider-config-panel .form-grid > label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: #c8e1db;
  font-size: 11px;
  font-weight: 750;
}
.provider-config-panel .form-grid input:not([type="checkbox"]),
.provider-config-panel .form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #345a52;
  border-radius: 7px;
  color: #f2fffb;
  background: #091814;
  font: inherit;
}
.provider-config-panel .form-grid input:focus,
.provider-config-panel .form-grid select:focus {
  outline: 2px solid rgb(105 216 197 / 25%);
  border-color: #69d8c5;
}
.provider-config-panel .form-grid label > small {
  color: #829f98;
  font-size: 9px;
  font-weight: 500;
}
.provider-checkbox {
  min-height: 62px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 10px 12px;
  border: 1px solid #294e46;
  border-radius: 7px;
  background: #0d201b;
}
.provider-checkbox span { display: grid; gap: 2px; }
.provider-checkbox input {
  flex: 0 0 auto;
  width: 17px !important;
  min-height: 17px !important;
  height: 17px;
  margin: 0;
  accent-color: #69d8c5;
}

@media (max-width: 1100px) {
  .infrastructure-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-type-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .network-device-rows > article { grid-template-columns: auto minmax(180px, 1fr) auto; }
  .network-device-rows .network-device-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .machine-control-panel { grid-template-columns: minmax(220px, 1fr) auto; }
  .machine-control-services { grid-column: 1 / -1; grid-row: 2; }
  .infrastructure-module.is-machines .machine-hosted-service {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .infrastructure-module.is-machines .machine-hosted-service .machine-service-edit {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .infrastructure-module { overflow-y: auto; }
  .infrastructure-module > .machine-resource-management {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .infrastructure-module > .admin-resource-management.machine-resource-management { grid-template-columns: 1fr; }
  .infrastructure-module .machine-resource-sidebar { min-height: 260px; max-height: 380px; }
  .infrastructure-module .machine-detail { min-height: 520px; }
  .infrastructure-module.is-machines .machine-detail { min-height: 0; }
  .infrastructure-module.is-machines > .admin-resource-management.machine-resource-management {
    height: auto;
    gap: 12px;
    padding: 12px;
    overflow: visible;
  }
  .machines-resources-panel,
  .admin-tab-content > .machines-resources-panel,
  .jacom-app-shell .admin-tab-content > .admin-panel.machines-resources-panel,
  .infrastructure-module.is-machines {
    height: auto !important;
  }
  .infrastructure-module.is-machines {
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .infrastructure-module.is-machines .machine-resource-sidebar {
    height: min(440px, 55dvh);
  }
  .infrastructure-module.is-machines .machine-detail,
  .infrastructure-module.is-machines .machine-detail .admin-service-detail-card {
    height: auto;
    overflow: visible;
  }
  .infrastructure-module.is-machines .machine-detail-body {
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .infrastructure-module.is-machines .machine-hosted-services {
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .infrastructure-actions { align-items: flex-start; flex-direction: column; }
  .infrastructure-actions > div:last-child { width: 100%; flex-wrap: wrap; }
  .infrastructure-metrics, .infrastructure-shortcuts, .provider-catalog { grid-template-columns: 1fr; }
  .provider-rows > article { grid-template-columns: auto minmax(0, 1fr) auto; }
  .provider-rows > article > span:not(.provider-logo):not(.provider-status), .provider-rows > article > button { grid-column: 2 / -1; }
  .network-device-rows .network-device-actions { flex-wrap: wrap; }
  .provider-type-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-config-panel {
    height: auto;
    min-height: 0;
  }
  .provider-config-panel .form-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .machine-control-panel { grid-template-columns: 1fr; }
  .machine-control-services { grid-column: auto; grid-row: auto; }
  .machine-control-actions { justify-content: flex-start; }
  .machine-context-row { grid-template-columns: 1fr; }
  .machine-danger-zone { justify-content: space-between; }
}

/* Access users: fluid cards with controls wrapping inside the card. */
.jacom-app-shell .access-user-list {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
  overflow-x: hidden;
}

.jacom-app-shell .access-user-card {
  min-width: 0;
  width: 100%;
}

.jacom-app-shell .access-user-card .access-user-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  grid-auto-rows: auto;
  align-content: center;
  gap: 8px 10px;
}

.jacom-app-shell .access-user-card .access-entity-copy {
  min-width: 0;
}

.jacom-app-shell .access-user-card .expiry-field,
.jacom-app-shell .access-user-card .inherited-label {
  grid-column: 3 / -1;
  justify-self: stretch;
  min-width: 0;
  max-width: 190px;
}

.jacom-app-shell .access-user-card .expiry-field input {
  min-width: 0;
  width: 100%;
}

@media (max-width: 560px) {
  .jacom-app-shell .access-user-card .access-user-row {
    grid-template-columns: auto 32px minmax(0, 1fr);
  }

  .jacom-app-shell .access-user-card .access-user-row > b,
  .jacom-app-shell .access-user-card .expiry-field,
  .jacom-app-shell .access-user-card .inherited-label {
    grid-column: 3 / -1;
    justify-self: start;
  }
}

/* Secure viewer preview shared by every open-viewer action. */
.viewer-preview-trigger {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.viewer-hover-preview {
  position: absolute;
  z-index: 80;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(420px, calc(100vw - 48px));
  height: 276px;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 28px;
  overflow: hidden;
  border: 1px solid #3b685e;
  border-radius: 10px;
  background: #0b1815;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 170ms ease, visibility 170ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.viewer-preview-trigger:hover .viewer-hover-preview,
.viewer-preview-trigger:focus-within .viewer-hover-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.resource-detail-actions .viewer-hover-preview {
  top: calc(100% + 10px);
  bottom: auto;
  transform-origin: top right;
}

.viewer-hover-preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 10px;
  border-bottom: 1px solid #294b42;
  background: #132822;
}

.viewer-hover-preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47756b;
}

.viewer-hover-preview-bar i:nth-child(2) { background: #57a899; }
.viewer-hover-preview-bar i:nth-child(3) { background: #70d8c5; }
.viewer-hover-preview-bar strong {
  min-width: 0;
  margin-left: 5px;
  overflow: hidden;
  color: #eafff9;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-hover-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.viewer-hover-preview > small {
  display: grid;
  place-items: center;
  color: #91aaa4;
  font-size: 10px;
  background: #0d1e1a;
}

@media (hover: none), (max-width: 720px) {
  .viewer-hover-preview { display: none; }
}

/* Mobile management shell: scrolling document, compact rail and touch-first cards. */
@media (max-width: 700px) {
  html, body, #root { min-width: 0; width: 100%; min-height: 100%; overflow-x: hidden; }

  .jacom-app-shell {
    min-height: 100dvh;
    height: auto;
    display: block;
    overflow: visible;
  }

  .jacom-app-shell .datapulse-sidebar,
  .jacom-app-shell .datapulse-sidebar.is-collapsed {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #29473f;
    box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  }

  .jacom-app-shell .datapulse-sidebar .sidebar-brand,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .sidebar-brand {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
  }
  .jacom-app-shell .sidebar-brand-copy,
  .jacom-app-shell .sidebar-collapse-button,
  .jacom-app-shell .sidebar-user,
  .jacom-app-shell .nav-group-label { display: none !important; }

  .jacom-app-shell .nav-list,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-list {
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 5px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }
  .jacom-app-shell .nav-list::-webkit-scrollbar { display: none; }
  .jacom-app-shell .nav-group,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-group { display: contents; }
  .jacom-app-shell .nav-list a,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-list a {
    min-width: max-content;
    min-height: 42px;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 8px;
    scroll-snap-align: start;
    font-size: 11px;
  }
  .jacom-app-shell .nav-list a.active { box-shadow: inset 0 -2px 0 #69d8c5; }

  .jacom-app-content,
  .jacom-app-shell .content { width: 100%; height: auto; min-height: calc(100dvh - 58px); overflow: visible; }
  .jacom-app-shell .admin-workspace {
    width: 100%;
    min-height: calc(100dvh - 58px);
    height: auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 9px 8px calc(18px + env(safe-area-inset-bottom));
    overflow: visible;
  }
  .jacom-app-shell .admin-page-header { min-height: 54px; padding: 3px 2px 8px; }
  .jacom-app-shell .admin-module-title h1 { font-size: 19px; }
  .jacom-app-shell .admin-page-header p { max-width: calc(100vw - 24px); font-size: 10px; }
  .jacom-app-shell .admin-tab-content,
  .jacom-app-shell .admin-tab-content > *,
  .jacom-app-shell .admin-tab-content > .admin-panel { height: auto !important; min-height: 0; overflow: visible; }

  .infrastructure-module { height: auto; overflow: visible; border-radius: 8px; }
  .infrastructure-tabs { padding: 5px 6px 0; scroll-snap-type: x proximity; }
  .infrastructure-tabs button { min-height: 42px; padding: 8px 11px; scroll-snap-align: start; }
  .infrastructure-actions { gap: 10px; padding: 10px; }
  .infrastructure-actions > div:last-child,
  .infrastructure-actions .compact-action { width: 100%; }
  .infrastructure-actions .compact-action { justify-content: center; min-height: 44px; }
  .infrastructure-view { padding: 8px; overflow: visible; }
  .infrastructure-section-card > header { align-items: stretch; flex-direction: column; }
  .infrastructure-section-card > header button { min-height: 44px; justify-content: center; }

  .network-device-rows { gap: 8px; padding: 8px; }
  .network-device-rows > article {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid #294b42;
    border-radius: 9px;
    background: #0d1d19;
  }
  .network-device-rows > article > span:not(.provider-logo):not(.provider-status) { grid-column: 2 / -1; }
  .network-device-rows .network-device-actions { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-device-actions .compact-action { width: 100%; min-height: 44px; justify-content: center; padding-inline: 9px; }
  .device-identification { align-items: flex-start; }

  .infrastructure-module.is-machines > .admin-resource-management.machine-resource-management { padding: 8px; }
  .infrastructure-module.is-machines .machine-resource-sidebar { height: min(330px, 45dvh); min-height: 230px; }
  .infrastructure-module .machine-detail .admin-service-detail-header { flex-direction: column; }
  .infrastructure-module .machine-detail .resource-detail-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infrastructure-module .machine-detail .resource-detail-actions .compact-action { width: 100%; min-height: 44px; justify-content: center; }
  .infrastructure-module .machine-detail .service-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-control-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-control-actions .compact-action { min-height: 44px; justify-content: center; }
  .machine-danger-zone { align-items: stretch; flex-direction: column; }
  .machine-danger-zone .compact-action { min-height: 44px; justify-content: center; }
  .infrastructure-module.is-machines .machine-hosted-services { max-height: none; }

  .admin-modal { max-height: calc(100dvh - env(safe-area-inset-top)); }
  .admin-modal-header { padding: 14px; }
  .admin-modal-body { padding: 14px; }
  .admin-modal-heading p { font-size: 11px; }
  .admin-modal .machine-form-grid,
  .admin-modal .form-grid { grid-template-columns: 1fr !important; }
  .admin-modal .form-footer { position: sticky; bottom: 0; gap: 8px; padding-bottom: env(safe-area-inset-bottom); background: #10231f; }
  .admin-modal .form-footer .compact-action { width: 100%; min-height: 46px; justify-content: center; }
}

@media (max-width: 420px) {
  .jacom-app-shell .nav-list a { padding-inline: 9px; }
  .jacom-app-shell .nav-item-label { display: none; }
  .jacom-app-shell .nav-list a { min-width: 42px; }
  .infrastructure-module .machine-detail .service-detail-metrics { grid-template-columns: 1fr; }
  .network-device-rows .network-device-actions,
  .machine-control-actions { grid-template-columns: 1fr; }
}

/* App navigation for phones, landscape phones and compact tablets. */
@media (max-width: 1040px) {
  .jacom-app-shell,
  .jacom-app-shell:has(.datapulse-sidebar.is-collapsed) {
    --mobile-nav-height: 68px;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    display: block;
    overflow: hidden;
  }

  .jacom-app-shell .datapulse-sidebar,
  .jacom-app-shell .datapulse-sidebar.is-collapsed {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1100;
    width: 100%;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    min-height: 0;
    display: block;
    padding: 5px 6px env(safe-area-inset-bottom);
    overflow: hidden;
    border: 0;
    border-top: 1px solid #31554c;
    background: rgb(8 23 19 / 97%);
    box-shadow: 0 -10px 30px rgb(0 0 0 / 35%);
    backdrop-filter: blur(14px);
  }

  .jacom-app-shell .datapulse-sidebar .sidebar-brand,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .sidebar-brand,
  .jacom-app-shell .sidebar-user,
  .jacom-app-shell .nav-group-label { display: none !important; }

  .jacom-app-shell .nav-list,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-list {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .jacom-app-shell .nav-list::-webkit-scrollbar { display: none; }
  .jacom-app-shell .nav-group,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-group { display: contents; }
  .jacom-app-shell .nav-list a,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-list a {
    min-width: 68px;
    min-height: 56px;
    flex: 1 0 68px;
    display: grid;
    grid-template-rows: 25px 16px;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 3px 7px;
    border: 0;
    border-radius: 9px;
    color: #8eaaa2;
    font-size: 9px;
    line-height: 1;
    scroll-snap-align: start;
  }
  .jacom-app-shell .nav-list a.active {
    color: #eafff9;
    background: #16443a;
    box-shadow: inset 0 2px 0 #6dd8c6;
  }
  .jacom-app-shell .nav-item-icon { width: 25px; height: 25px; }
  .jacom-app-shell .nav-item-label,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-item-label {
    position: static;
    width: auto;
    height: auto;
    display: block;
    overflow: visible;
    clip: auto;
    color: inherit;
    font-size: 9px;
    text-overflow: clip;
  }

  .jacom-app-shell .jacom-app-content,
  .jacom-app-shell .content {
    width: 100%;
    height: calc(100dvh - var(--mobile-nav-height) - env(safe-area-inset-bottom));
    min-height: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .jacom-app-shell .admin-workspace {
    min-height: 100%;
    height: auto;
    overflow: visible;
  }

  .jacom-app-shell .admin-page-header {
    position: relative;
    min-height: 62px;
    padding-right: 50px;
  }
  .jacom-app-shell .admin-header-actions {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 42px;
    display: block;
  }
  .jacom-app-shell .admin-header-actions > .icon-button {
    position: static;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .jacom-app-shell .admin-resources-panel,
  .jacom-app-shell .service-admin-stack,
  .jacom-app-shell .admin-resource-management,
  .jacom-app-shell .admin-service-detail,
  .jacom-app-shell .admin-service-detail-card,
  .jacom-app-shell .admin-service-detail-body {
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow: visible;
  }
  .jacom-app-shell .admin-resource-management { grid-template-columns: 1fr; gap: 10px; }
  .jacom-app-shell .admin-resource-sidebar { height: auto; min-height: 0; max-height: none; }
  .jacom-app-shell .admin-resource-sidebar-scroll { max-height: min(390px, 48dvh); overflow-y: auto; }
  .jacom-app-shell .admin-service-detail-header { align-items: stretch; flex-direction: column; gap: 10px; }
  .jacom-app-shell .admin-resources-panel .resource-detail-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 7px;
  }
  .jacom-app-shell .admin-resources-panel .resource-detail-actions .compact-action {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding-inline: 8px;
  }
  .jacom-app-shell .service-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jacom-app-shell .service-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jacom-app-shell .service-detail-url-value { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
}

@media (max-width: 420px) {
  .jacom-app-shell,
  .jacom-app-shell:has(.datapulse-sidebar.is-collapsed) { --mobile-nav-height: 64px; }
  .jacom-app-shell .nav-list a,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-list a {
    min-width: 0;
    min-height: 53px;
    flex: 1 1 0;
    padding-inline: 2px;
  }
  .jacom-app-shell .nav-item-label,
  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-item-label { font-size: 7px; letter-spacing: -.02em; }
  .jacom-app-shell .service-detail-facts,
  .jacom-app-shell .service-detail-metrics { grid-template-columns: 1fr; }
  .jacom-app-shell .admin-resource-tabs button { padding-inline: 6px; font-size: 10px; }
  .jacom-app-shell .admin-resource-sidebar-scroll { max-height: 350px; }
}
/* Shared motion language: restrained feedback without layout shifts. */
:where(.primary-button, .secondary-button, .icon-button, .password-visibility-button, .sidebar-collapse-button) {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

:where(.primary-button, .secondary-button, .icon-button, .password-visibility-button):not(:disabled):active {
  transform: translateY(1px) scale(0.97);
}

:where(.primary-button, .secondary-button) > :where(svg, .motion-icon),
.icon-button > :where(svg, .motion-icon),
.password-visibility-button > svg,
.sidebar-collapse-button > svg {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

:where(.primary-button, .secondary-button):not(:disabled):hover > :where(svg, .motion-icon):not(.spin) {
  transform: translateX(2px) scale(1.06);
}

.icon-button:not(:disabled):hover > :where(svg, .motion-icon):not(.spin) {
  transform: scale(1.12);
}

.icon-button[title*="Cerrar"]:hover > svg,
.contact-modal-close:hover > svg {
  transform: rotate(90deg) scale(1.08);
}

.icon-button[title*="Actualizar"]:hover > svg:not(.spin),
.icon-button[title*="Sincronizar"]:hover > svg:not(.spin) {
  transform: rotate(32deg) scale(1.08);
}

.password-visibility-button:hover > svg { transform: scale(1.1); }

/* Contextual card motion. Only SVG strokes move; cards never shift. */
.machine-resource-sidebar .admin-resource-list-item:hover .service-icon svg > :nth-child(1),
.machine-detail .admin-service-detail-header:hover .entity-icon svg > :nth-child(1) {
  animation: machine-card-rack 620ms ease-in-out;
}

.machine-resource-sidebar .admin-resource-list-item:hover .service-icon svg > :nth-child(2),
.machine-detail .admin-service-detail-header:hover .entity-icon svg > :nth-child(2) {
  animation: machine-card-rack 620ms 80ms ease-in-out;
}

.machine-resource-sidebar .admin-resource-list-item:hover .service-icon svg > :nth-child(n+3),
.machine-detail .admin-service-detail-header:hover .entity-icon svg > :nth-child(n+3) {
  animation: machine-card-led 620ms ease-in-out;
}

.machine-hosted-service:hover .entity-icon svg > * {
  animation: resource-network-trace 760ms ease-in-out;
}

.provider-catalog article:hover .provider-logo svg > *,
.provider-rows article:hover .provider-logo svg > * {
  animation: provider-sync-trace 820ms ease-in-out;
}

.provider-config-panel > header:hover .provider-logo svg {
  animation: provider-settings-turn 760ms ease-in-out;
}

.brand-mark:hover svg > * {
  animation: jacom-flask-liquid 820ms ease-in-out;
}

@keyframes machine-card-rack {
  0%, 100% { transform: translateX(0); }
  38% { transform: translateX(1.4px); }
  70% { transform: translateX(-0.7px); }
}

@keyframes machine-card-led {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.2; }
  62% { opacity: 1; }
  78% { opacity: 0.35; }
}

@keyframes resource-network-trace {
  0%, 100% { stroke-dasharray: 30; stroke-dashoffset: 0; }
  45% { stroke-dasharray: 8 5; stroke-dashoffset: 13; }
  75% { stroke-dasharray: 18 3; stroke-dashoffset: -5; }
}

@keyframes provider-sync-trace {
  0%, 100% { stroke-dasharray: 32; stroke-dashoffset: 0; opacity: 1; }
  45% { stroke-dasharray: 7 4; stroke-dashoffset: 15; opacity: 0.65; }
  72% { stroke-dashoffset: -8; opacity: 1; }
}

@keyframes provider-settings-turn {
  0%, 100% { transform: rotate(0deg); }
  55% { transform: rotate(90deg); }
}

@keyframes jacom-flask-liquid {
  0%, 100% { stroke-dasharray: 40; stroke-dashoffset: 0; }
  45% { stroke-dasharray: 12 4; stroke-dashoffset: 12; }
  75% { stroke-dashoffset: -4; }
}

/* Semantic action icons shared by the complete public and admin UI. */
:where(button, a) svg.lucide > * {
  transform-box: fill-box;
  transform-origin: center;
}

:where(button, a):hover svg.lucide-gauge > :last-child { animation: icon-gauge-sweep 620ms ease-in-out; }
:where(button, a):hover svg.lucide-monitor-dot > :last-child { animation: icon-status-blink 680ms ease-in-out; }
:where(button, a):hover svg.lucide-monitor-dot > :first-child { animation: icon-screen-scan 680ms ease-in-out; }
:where(button, a):hover svg.lucide-shield-check > :last-child,
:where(button, a):hover svg.lucide-check-circle-2 > :last-child,
:where(button, a):hover svg.lucide-check > * { animation: icon-check-draw 620ms ease-out; }
:where(button, a):hover svg.lucide-pencil { animation: icon-pencil-write 650ms ease-in-out; }
:where(button, a):hover svg.lucide-trash-2 > :first-child { animation: icon-trash-lid 620ms ease-in-out; }
:where(button, a):hover svg.lucide-search { animation: icon-search-scan 700ms ease-in-out; }
:where(button, a):hover svg.lucide-refresh-cw:not(.spin) { animation: icon-refresh-cycle 720ms ease-in-out; }
:where(button, a):hover svg.lucide-plus > *,
:where(button, a):hover svg.lucide-user-plus > :last-child { animation: icon-plus-build 560ms ease-in-out; }
:where(button, a):hover svg.lucide-save > :last-child { animation: icon-save-press 580ms ease-in-out; }
:where(button, a):hover svg.lucide-external-link > :last-child { animation: icon-external-flight 620ms ease-in-out; }
:where(button, a):hover svg.lucide-upload > :last-child { animation: icon-upload-flight 620ms ease-in-out; }
:where(button, a):hover svg.lucide-download > :last-child { animation: icon-download-flight 620ms ease-in-out; }
:where(button, a):hover svg.lucide-mail > :last-child { animation: icon-mail-flap 680ms ease-in-out; }
:where(button, a):hover svg.lucide-key-round { animation: icon-key-turn 620ms ease-in-out; }
:where(button, a):hover svg.lucide-power > :first-child { animation: icon-power-switch 680ms ease-in-out; }
:where(button, a):hover svg.lucide-clock-3 > :nth-child(n+2),
:where(button, a):hover svg.lucide-history > :nth-child(n+2) { animation: icon-clock-tick 720ms ease-in-out; }
:where(button, a):hover svg.lucide-chevron-right { animation: icon-chevron-next 540ms ease-in-out; }
:where(button, a):hover svg.lucide-chevron-left { animation: icon-chevron-back 540ms ease-in-out; }
:where(button, a):hover svg.lucide-settings,
:where(button, a):hover svg.lucide-settings-2 { animation: provider-settings-turn 760ms ease-in-out; }

@keyframes icon-gauge-sweep {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(34deg); }
  72% { transform: rotate(-12deg); }
}
@keyframes icon-status-blink { 0%, 100% { opacity: 1; } 35%, 65% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes icon-screen-scan { 0%, 100% { stroke-dasharray: 40; } 50% { stroke-dasharray: 8 3; } }
@keyframes icon-check-draw { 0% { stroke-dasharray: 18; stroke-dashoffset: 18; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes icon-pencil-write {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-1px, 1px); }
  58% { transform: translate(1px, -1px); }
  78% { transform: translate(2px, 0); }
}
@keyframes icon-trash-lid { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-2px) rotate(-4deg); } 72% { transform: translateY(-1px); } }
@keyframes icon-search-scan { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(2px, -1px); } 70% { transform: translate(-1px, 1px); } }
@keyframes icon-refresh-cycle { 0% { transform: rotate(0deg); } 75%, 100% { transform: rotate(300deg); } }
@keyframes icon-plus-build { 0%, 100% { stroke-dasharray: 20; stroke-dashoffset: 0; } 45% { stroke-dashoffset: 18; } 75% { stroke-dashoffset: 0; } }
@keyframes icon-save-press { 0%, 100% { transform: translateY(0); } 42% { transform: translateY(2px); } 70% { transform: translateY(-0.5px); } }
@keyframes icon-external-flight { 0%, 100% { transform: translate(0, 0); opacity: 1; } 48% { transform: translate(3px, -3px); opacity: 0.2; } 52% { transform: translate(-2px, 2px); opacity: 0; } }
@keyframes icon-upload-flight { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3px); opacity: 0.25; } 55% { transform: translateY(2px); opacity: 0; } }
@keyframes icon-download-flight { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(3px); opacity: 0.25; } 55% { transform: translateY(-2px); opacity: 0; } }
@keyframes icon-mail-flap { 0%, 100% { transform: scaleY(1); } 48% { transform: scaleY(-0.35); } 72% { transform: scaleY(0.65); } }
@keyframes icon-key-turn { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(-24deg); } 72% { transform: rotate(10deg); } }
@keyframes icon-power-switch { 0%, 100% { transform: translateY(0); } 38% { transform: translateY(2px); } 64% { transform: translateY(-1px); } }
@keyframes icon-clock-tick { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(90deg); } 72% { transform: rotate(45deg); } }
@keyframes icon-chevron-next { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(3px); } }
@keyframes icon-chevron-back { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(-3px); } }

.app-shell {
  transition: grid-template-columns 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.datapulse-sidebar {
  transition: padding 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.jacom-app-shell .datapulse-sidebar .sidebar-brand {
  min-height: 50px;
  transition: min-height 340ms cubic-bezier(0.22, 1, 0.36, 1), padding 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.jacom-app-shell .sidebar-collapse-button {
  top: 4px;
  left: calc(100% - 36px);
  right: auto;
  transition: top 340ms cubic-bezier(0.22, 1, 0.36, 1), left 340ms cubic-bezier(0.22, 1, 0.36, 1),
    color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.jacom-app-shell .datapulse-sidebar.is-collapsed .sidebar-brand {
  min-height: 102px;
  padding-top: 4px;
}

.jacom-app-shell .datapulse-sidebar.is-collapsed .sidebar-collapse-button {
  top: 58px;
  left: calc(50% - 16px);
  right: auto;
  transform: none;
}

.datapulse-sidebar .nav-list a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.datapulse-sidebar .nav-item-icon,
.datapulse-sidebar .nav-item-icon > svg {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms ease;
  transform-origin: center;
}

.datapulse-sidebar .nav-item-icon { position: relative; }

.datapulse-sidebar .nav-item-icon > svg > * {
  transform-box: fill-box;
  transform-origin: center;
}

/* Each navigation icon communicates its own job instead of merely lifting. */
.datapulse-sidebar a[data-icon-motion="resources"]:hover svg > :nth-child(1) { animation: resource-tile-one 680ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="resources"]:hover svg > :nth-child(2) { animation: resource-tile-two 680ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="resources"]:hover svg > :nth-child(3) { animation: resource-tile-three 680ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="resources"]:hover svg > :nth-child(4) { animation: resource-tile-four 680ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="services"]:hover svg > * { animation: service-window 650ms ease-in-out; }
.datapulse-sidebar .library-motion-icon {
  overflow: visible;
}
.datapulse-sidebar .library-page-sheet {
  fill: rgba(112, 210, 194, 0.24);
}
.datapulse-sidebar .library-page-detail { fill: none; stroke-width: 1.15; }
.datapulse-sidebar a[data-icon-motion="libraries"]:hover .library-page-surface {
  animation: physical-page-surface 720ms linear forwards;
}
.datapulse-sidebar a[data-icon-motion="libraries"]:hover .library-page-detail {
  animation: physical-page-detail 720ms linear forwards;
}
.datapulse-sidebar a[data-icon-motion="machines"]:hover svg > :nth-child(1) { animation: machine-rack-top 760ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="machines"]:hover svg > :nth-child(2) { animation: machine-rack-bottom 760ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="machines"]:hover svg > :nth-child(3) { animation: machine-led 760ms 80ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="machines"]:hover svg > :nth-child(4) { animation: machine-led 760ms 210ms ease-in-out; }
.datapulse-sidebar .users-swap-icon { overflow: visible; }
.datapulse-sidebar .swap-user {
  transform-box: fill-box;
  transform-origin: center;
}
.datapulse-sidebar .users-orbit {
  transform-box: view-box;
  transform-origin: 12px 12px;
}
.datapulse-sidebar a[data-icon-motion="users"]:hover .users-orbit {
  animation: users-orbit-swap 760ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.datapulse-sidebar a[data-icon-motion="users"]:hover .swap-user {
  animation: users-stay-upright 760ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.datapulse-sidebar a[data-icon-motion="access"]:hover svg > :nth-child(1) { animation: key-turn 620ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="access"]:hover svg > :nth-child(2) { animation: key-lock-light 620ms ease-in-out; }
.datapulse-sidebar a[data-icon-motion="audit"]:hover svg > :nth-child(1),
.datapulse-sidebar a[data-icon-motion="audit"]:hover svg > :nth-child(2) {
  transform-box: view-box;
  transform-origin: 12px 12px;
  animation: audit-orbit 820ms cubic-bezier(0.4, 0, 0.2, 1);
}
.datapulse-sidebar a[data-icon-motion="audit"]:hover svg > :nth-child(3) {
  transform-box: view-box;
  transform-origin: 12px 12px;
  animation: audit-clock-hand 820ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-user [data-sidebar-action="settings"]:hover > svg {
  transform: none !important;
}

.sidebar-user [data-sidebar-action="settings"] svg > :nth-child(1) {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.sidebar-user [data-sidebar-action="settings"]:hover svg > :nth-child(1) {
  animation: settings-turn 780ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-user [data-sidebar-action="settings"] svg > :nth-child(2) {
  transform: none !important;
}

.sidebar-user [data-sidebar-action="logout"]:hover > svg {
  transform: none !important;
  overflow: visible;
}

.sidebar-user [data-sidebar-action="logout"] .logout-door {
  transform: none !important;
}

.sidebar-user [data-sidebar-action="logout"] .logout-arrow {
  transform-box: view-box;
  transform-origin: center;
}

.sidebar-user [data-sidebar-action="logout"]:hover .logout-arrow {
  animation: logout-arrow 560ms cubic-bezier(0.22, 1, 0.36, 1);
  stroke: #8ff2df;
}

.sidebar-user [data-sidebar-action="profile"]:hover svg > :nth-child(1) {
  animation: profile-greet 620ms ease-in-out;
}
.admin-modal-backdrop { animation: modal-backdrop-in 160ms ease-out; }
.admin-modal { animation: modal-panel-in 220ms cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes resource-tile-one { 40% { transform: translate(2px, 2px); } }
@keyframes resource-tile-two { 40% { transform: translate(-2px, 2px); } }
@keyframes resource-tile-three { 40% { transform: translate(-2px, -2px); } }
@keyframes resource-tile-four { 40% { transform: translate(2px, -2px); } }
@keyframes service-window { 45% { stroke-dasharray: 7 3; stroke-dashoffset: -5; } }
@keyframes physical-page-surface {
  0% { d: path("M12 5.8c2-1.5 4.7-1.9 7.6-1.5v13.1c-3-.2-5.5.4-7.6 2.1z"); }
  36% { d: path("M12 5.8c.8-1.2 1.4-.8 1.4.5v11.9c0 1.3-.6.8-1.4 1.3z"); }
  100% { d: path("M12 5.8c-2-1.5-4.7-1.9-7.6-1.5v13.1c3-.2 5.5.4 7.6 2.1z"); }
}
@keyframes physical-page-detail {
  0% { d: path("M14.2 8c1.1-.5 2.2-.7 3.4-.7M14.2 11c1.1-.5 2.2-.7 3.4-.7"); opacity: 1; }
  36% { d: path("M12.3 8c.2-.1.4-.1.6-.1M12.3 11c.2-.1.4-.1.6-.1"); opacity: 0.25; }
  100% { d: path("M9.8 8c-1.1-.5-2.2-.7-3.4-.7M9.8 11c-1.1-.5-2.2-.7-3.4-.7"); opacity: 1; }
}
@keyframes machine-rack-top { 42% { transform: translateY(-1px); } }
@keyframes machine-rack-bottom { 42% { transform: translateY(1px); } }
@keyframes machine-led {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.15; }
  58% { opacity: 1; filter: drop-shadow(0 0 3px #62d7b9); }
}
@keyframes users-orbit-swap { to { transform: rotate(180deg); } }
@keyframes users-stay-upright { to { transform: rotate(-180deg); } }
@keyframes key-turn { 45% { transform: rotate(-16deg) translate(-1px, 1px); } 75% { transform: rotate(6deg); } }
@keyframes key-lock-light { 45% { transform: scale(2.2); opacity: 0.35; } 75% { transform: scale(1); opacity: 1; } }
@keyframes audit-orbit { to { transform: rotate(-360deg); } }
@keyframes audit-clock-hand { to { transform: rotate(360deg); } }
@keyframes settings-turn { to { transform: rotate(180deg); } }
@keyframes logout-arrow {
  0%, 100% { transform: translateX(0); }
  42%, 60% { transform: translateX(7px); }
}
@keyframes profile-greet { 45% { transform: translateY(-1.5px); } 75% { transform: translateY(0.5px); } }

@media (min-width: 1041px) {
  .datapulse-sidebar .sidebar-brand-copy,
  .datapulse-sidebar .nav-item-label,
  .datapulse-sidebar .sidebar-profile-copy {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    opacity: 1;
    max-width: 170px;
    transition: opacity 180ms ease, max-width 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .datapulse-sidebar .nav-group-label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    opacity: 1;
    max-height: 20px;
    transition: opacity 160ms ease, max-height 280ms ease, padding 280ms ease;
  }

  .datapulse-sidebar .nav-list a {
    justify-content: flex-start;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, padding 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .datapulse-sidebar.is-collapsed .sidebar-brand-copy,
  .datapulse-sidebar.is-collapsed .nav-item-label,
  .datapulse-sidebar.is-collapsed .sidebar-profile-copy {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    opacity: 0;
    max-width: 0;
  }

  .datapulse-sidebar.is-collapsed .nav-group-label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    opacity: 0;
    max-height: 0;
    padding-block: 0;
  }

  .jacom-app-shell .datapulse-sidebar.is-collapsed .nav-list a {
    justify-content: flex-start;
    padding-left: 18px;
  }
}

@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-panel-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Public portfolio: one registry feeds the featured selector and full catalog. */
.pf-featured, .pf-page { color:#17211f; }
.pf-featured { padding:24px; border:1px solid #cfddd6; border-radius:12px; background:#fff; box-shadow:0 10px 30px #1f312b0b; min-width:0; }
.pf-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.pf-kicker { display:block; color:#228578; font-size:11px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; margin-bottom:7px; }
.pf-heading h2 { margin:0 0 6px; font-size:28px; letter-spacing:-.03em; }
.pf-heading p { margin:0; color:#677870; font-size:13px; }
.pf-heading > a, .pf-back, .pf-card-actions > a:not(.primary-button) { display:inline-flex; align-items:center; gap:8px; color:#236e8e; font-size:13px; font-weight:750; text-decoration:none; }
.pf-heading > a { white-space:nowrap; }
.pf-selector { display:flex; align-items:center; gap:12px; margin-bottom:24px; min-width:0; }
.pf-project-track { display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:#b9d6cc transparent; padding-bottom:6px; min-width:0; flex:1; }
.pf-project-tab { flex:0 0 266px; scroll-snap-align:start; display:flex; align-items:center; gap:16px; min-height:78px; border:1px solid #d6e2dd; border-radius:8px; padding:14px 18px; text-align:left; background:#fff; color:#24332c; cursor:pointer; }
.pf-project-tab.is-selected { background:#e9f5f1; border-color:#32988a; box-shadow:inset 0 0 0 1px #32988a18; }
.pf-project-tab > span:last-child { display:grid; gap:5px; }
.pf-project-tab strong { font-size:15px; }
.pf-project-tab small { font-size:12px; color:#687972; }
.pf-project-tab.is-selected small { color:#187d71; }
.pf-icon { display:block; width:54px; height:54px; flex-shrink:0; border-radius:14px; object-fit:cover; }
.pf-wallet { display:grid; place-items:center; background:#e3f2ed; color:#188d7e; }
.pf-wallet svg { width:30px; height:30px; }
.pf-project-tab .pf-icon { width:42px; height:42px; border-radius:11px; }
.pf-project-tab .pf-wallet { background:transparent; }
.pf-scroll-controls { display:flex; gap:6px; }
.pf-scroll-controls button { width:34px; height:34px; display:grid; place-items:center; padding:0; border:1px solid #d6e2dd; border-radius:50%; background:#fff; color:#245a50; cursor:pointer; }
.pf-scroll-controls button svg { width:18px; }
.pf-scroll-controls button:disabled { opacity:.35; cursor:default; }
.pf-project-detail { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); align-items:start; gap:32px; }
.pf-copy { display:grid; gap:18px; align-content:start; min-width:0; padding:12px 0; }
.pf-identity { display:flex; align-items:center; gap:15px; }
.pf-identity > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.pf-identity h3, .pf-identity h2 { margin:0; font-size:25px; letter-spacing:-.03em; }
.pf-badge { display:inline-block; border-radius:20px; background:#edf5f9; color:#246f8f; padding:5px 9px; font-size:10px; font-weight:750; }
.pf-copy > h2 { font-size:31px; letter-spacing:-.04em; margin:5px 0 -6px; }
.pf-copy > p { color:#5b6f64; font-size:15px; line-height:1.6; margin:0; max-width:53ch; }
.pf-tags { display:flex; flex-wrap:wrap; gap:8px; }
.pf-tags > span { padding:7px 9px; color:#405f53; border:1px solid #d6e2dd; border-radius:5px; font-size:11px; background:#fbfdfc; }
.pf-copy > .pf-note, .pf-note { display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:11px; color:#61776b; }
.pf-status-dot { width:7px; height:7px; background:#29b987; border-radius:50%; }
.pf-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.pf-actions .primary-button, .pf-actions .secondary-button { font-size:13px; min-height:42px; justify-content:center; text-decoration:none; }
.pf-preview { min-width:0; margin:0; }
.pf-preview > a { display:block; position:relative; overflow:hidden; border:1px solid #d7e4dc; border-radius:8px; background:#f5f3ec; }
.pf-preview img { display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:contain; }
.pf-preview > a > span { position:absolute; right:14px; bottom:14px; display:flex; gap:8px; align-items:center; background:#183e36; color:#fff; font-size:11px; font-weight:750; padding:10px 12px; border-radius:6px; box-shadow:0 2px 8px #12332625; }
.pf-preview figcaption { margin-top:7px; color:#728178; font-size:10px; }
.pf-shell { min-height:100vh; height:auto; overflow:visible; background:#edf2ef; }
.pf-shell > .client-topbar > a { display:flex; align-items:center; min-width:0; color:inherit; text-decoration:none; }
.pf-page { width:min(1400px, calc(100% - 64px)); margin:0 auto; padding:30px 0 64px; }
.pf-breadcrumb { display:flex; gap:10px; color:#728478; font-size:12px; margin-bottom:18px; }
.pf-breadcrumb a { color:#4f7465; text-decoration:none; }
.pf-page-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:30px; }
.pf-page-heading h1 { margin:0 0 10px; font-size:42px; letter-spacing:-.045em; line-height:1.12; }
.pf-page h1[tabindex="-1"]:focus { outline:none; }
.pf-page-heading p { margin:0; color:#65796d; font-size:15px; }
.pf-catalog-tools { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:12px; }
.pf-search { display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid #cfddd6; border-radius:7px; background:#fff; color:#638072; width:min(420px, 100%); }
.pf-search input { width:100%; min-width:0; height:42px; background:transparent; border:0; outline:0; color:#24372d; font:inherit; font-size:13px; }
.pf-search:focus-within { outline:2px solid #298c7b; outline-offset:2px; }
.pf-filters { display:flex; flex-wrap:wrap; gap:8px; }
.pf-filters button { background:#fff; color:#3a5145; border:1px solid #cfddd6; border-radius:6px; min-height:40px; padding:8px 16px; font-size:12px; font-weight:700; cursor:pointer; }
.pf-filters button[aria-pressed="true"] { background:#248979; color:#fff; border-color:#248979; }
.pf-results { font-size:11px; color:#6a7d71; margin:0 0 14px; }
.pf-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pf-catalog-card { border:1px solid #d3dfd8; border-radius:10px; background:#fff; min-width:0; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .18s,border-color .18s; }
.pf-catalog-card:hover { box-shadow:0 8px 24px #1e4d3310; border-color:#a6c5b5; }
.pf-card-image { display:block; padding:10px 10px 0; }
.pf-card-image img { display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:contain; background:#f4f5f1; border:1px solid #e1e8e3; border-radius:7px; }
.pf-card-body { padding:18px; display:flex; flex-direction:column; flex:1; gap:15px; }
.pf-card-body .pf-identity { gap:10px; }
.pf-card-body .pf-icon { width:44px; height:44px; border-radius:11px; }
.pf-card-body h2 { font-size:20px; }
.pf-card-body h2 a { color:inherit; text-decoration:none; }
.pf-card-body .pf-badge { font-size:9px; }
.pf-card-body > p { color:#60766a; font-size:13px; line-height:1.55; margin:0; }
.pf-card-actions { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:14px; margin-top:auto; padding-top:4px; }
.pf-card-actions .primary-button { font-size:12px; text-decoration:none; }
.pf-empty { display:grid; justify-items:center; gap:14px; padding:60px 20px; border:1px dashed #c4d7cb; border-radius:10px; color:#567561; text-align:center; }
.pf-empty h2, .pf-empty p { margin:0; }
.pf-empty h2 { font-size:20px; }
.pf-demo-explainer { display:grid; grid-template-columns:1.2fr 1fr; gap:60px; padding:40px 8px; }
.pf-demo-explainer h2 { font-size:28px; letter-spacing:-.03em; margin:0 0 15px; }
.pf-demo-explainer p { color:#5e7768; line-height:1.65; font-size:14px; margin:0 0 14px; }
.pf-demo-explainer .primary-button { display:inline-flex; text-decoration:none; margin-top:4px; }
.pf-demo-explainer aside { background:#fff; border:1px solid #d2dfd7; border-radius:10px; padding:25px; align-self:start; }
.pf-demo-explainer ul { padding-left:18px; color:#577161; font-size:14px; line-height:2.1; }
.pf-demo-explainer small { font-size:11px; color:#6f8377; }
.pf-featured :focus-visible, .pf-page :focus-visible { outline:2px solid #248979; outline-offset:4px; }
@media(min-width:1700px) { .pf-preview img { max-height:440px; } }
@media(max-width:1100px) {
  .pf-project-detail { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:22px; }
  .pf-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pf-copy > h2 { font-size:27px; }
}
@media(max-width:760px) {
  .pf-featured { padding:18px; }
  .pf-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .pf-heading h2 { font-size:25px; }
  .pf-project-detail { grid-template-columns:1fr; gap:20px; }
  .pf-selector { gap:6px; }
  .pf-project-tab { flex-basis:220px; padding:12px; gap:10px; }
  .pf-scroll-controls { flex-direction:column; }
  .pf-scroll-controls button { width:28px; height:28px; }
  .pf-page { width:calc(100% - 28px); padding:24px 0 40px; }
  .pf-page-heading { align-items:flex-start; flex-direction:column; gap:14px; margin-bottom:22px; }
  .pf-page-heading h1 { font-size:34px; }
  .pf-page-heading p { font-size:13px; }
  .pf-catalog-tools { align-items:stretch; flex-direction:column; gap:14px; }
  .pf-search { width:100%; box-sizing:border-box; }
  .pf-filters button { padding:8px 12px; }
  .pf-demo-explainer { grid-template-columns:1fr; padding:30px 4px; gap:20px; }
  .pf-demo-explainer h2 { font-size:25px; }
  .pf-identity h3 { font-size:23px; }
}
@media(max-width:520px) {
  .pf-project-grid { grid-template-columns:1fr; }
  .pf-copy > p { font-size:14px; }
  .pf-preview > a > span { right:8px; bottom:8px; padding:8px; font-size:10px; }
  .pf-shell .client-context { display:none; }
}
@media(prefers-reduced-motion:reduce) { .pf-catalog-card { transition:none; } }

/* The home has two fitted sections; small screens switch sections explicitly. */
.public-home-stack.public-home-empty{height:100%;min-height:0;padding:16px 0!important;box-sizing:border-box;width:min(1800px,calc(100% - 48px))!important;margin:auto}
.product-portfolio-landing{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,.9fr) minmax(0,1fr);gap:16px}
.landing-view-switch{display:none}
.product-portfolio-landing .product-story-hero{min-height:0;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:36px;padding:0;align-items:center}
.product-portfolio-landing .product-story-copy{min-width:0;gap:12px}
.product-portfolio-landing .product-story-copy h1{font-size:clamp(28px,2.5vw,44px);line-height:1.08;margin:10px 0}
.product-portfolio-landing .product-story-copy p{font-size:14px;line-height:1.5;margin:10px 0}
.product-portfolio-landing .product-story-pills{gap:6px;margin:10px 0}
.product-portfolio-landing .product-story-pills span{font-size:10px;padding:6px 8px}
.product-portfolio-landing .integration-map-image{min-width:0;min-height:0;height:100%;max-height:100%;padding:0;background:transparent;border:0;display:flex;align-items:center;justify-content:center}
.product-portfolio-landing .integration-map-image img{display:block;width:100%;height:100%;object-fit:contain;max-height:100%;border-radius:12px}
.product-portfolio-landing .pf-featured{min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);padding:16px 20px;gap:10px}
.product-portfolio-landing .pf-heading{margin:0;gap:12px}
.product-portfolio-landing .pf-heading h2{font-size:23px;margin:0}
.product-portfolio-landing .pf-kicker{margin-bottom:3px}
.product-portfolio-landing .pf-heading p{margin-top:4px;font-size:12px}
.product-portfolio-landing .pf-selector{margin:0}
.product-portfolio-landing .pf-project-track{padding-bottom:0;gap:8px}
.product-portfolio-landing .pf-project-tab{min-height:46px;padding:6px 12px;flex-basis:210px;gap:10px}
.product-portfolio-landing .pf-project-tab .pf-icon{width:30px;height:30px}
.product-portfolio-landing .pf-project-tab strong{font-size:13px}
.product-portfolio-landing .pf-project-tab small{font-size:10px}
.product-portfolio-landing [role=tabpanel]{min-height:0}
.product-portfolio-landing .pf-project-detail{height:100%;min-height:0;gap:24px;align-items:center}
.product-portfolio-landing .pf-copy{padding:0;gap:9px}
.product-portfolio-landing .pf-copy>.pf-identity{display:none}
.product-portfolio-landing .pf-copy>h2{font-size:25px;margin:0}
.product-portfolio-landing .pf-copy>p{font-size:13px;line-height:1.5}
.product-portfolio-landing .pf-tags{gap:5px}
.product-portfolio-landing .pf-tags>span{padding:4px 7px;font-size:10px}
.product-portfolio-landing .pf-actions{gap:7px}
.product-portfolio-landing .pf-actions a{min-height:36px;font-size:12px}
.product-portfolio-landing .pf-preview{height:100%;min-height:0;display:flex;flex-direction:column}
.product-portfolio-landing .pf-preview>a{flex:1;min-height:0}
.product-portfolio-landing .pf-preview img{height:100%;max-height:100%;object-fit:contain;aspect-ratio:auto}
.product-portfolio-landing .pf-preview figcaption{margin-top:4px}
@media(max-width:900px),(max-height:800px){
 .public-home-stack.public-home-empty{width:calc(100% - 28px)!important;padding:12px 0!important}
 .product-portfolio-landing{grid-template-rows:auto minmax(0,1fr);gap:12px}
 .landing-view-switch{display:flex;gap:8px;justify-content:center}
 .landing-view-switch button{border:1px solid #c9dad1;border-radius:8px;background:#fff;padding:9px 16px;color:#31594b;font-weight:700;cursor:pointer}
 .landing-view-switch button[aria-pressed=true]{background:#246f80;border-color:#246f80;color:#fff}
 .landing-view-portal>.pf-featured,.landing-view-projects>.product-story-hero{display:none}
 .product-portfolio-landing .product-story-copy h1{font-size:clamp(28px,4vw,46px)}
 .product-portfolio-landing .pf-featured{gap:16px}
 .product-portfolio-landing .pf-copy{gap:16px}
}
@media(max-width:760px){
 .product-portfolio-landing .product-story-hero{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:12px;align-content:start}
 .product-portfolio-landing .product-story-copy h1{font-size:29px;max-width:22ch;margin:8px 0}
 .product-portfolio-landing .product-story-copy p{font-size:13px;margin:8px 0}
 .product-portfolio-landing .product-story-pills{margin:8px 0}
 .product-portfolio-landing .product-story-pills span{padding:4px 6px;font-size:9px}
 .product-portfolio-landing .product-story-actions{margin-top:8px}
 .product-portfolio-landing .pf-featured{padding:14px;gap:10px}
 .product-portfolio-landing .pf-heading{flex-direction:row;align-items:center}
 .product-portfolio-landing .pf-heading h2{font-size:20px}
 .product-portfolio-landing .pf-heading p{display:none}
 .product-portfolio-landing .pf-heading>a{font-size:11px;white-space:normal;max-width:90px}
 .product-portfolio-landing .pf-project-detail{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:12px;align-items:start}
 .product-portfolio-landing .pf-copy{gap:10px}
 .product-portfolio-landing .pf-copy>h2{font-size:23px}
 .product-portfolio-landing .pf-preview>a>span{padding:7px;font-size:10px;bottom:6px;right:6px}
 .product-portfolio-landing .pf-project-tab{flex-basis:170px}
}
/* At enlarged text sizes, individual panels remain reachable without clipping. */
@media(max-height:620px){.product-portfolio-landing>.product-story-hero,.product-portfolio-landing>.pf-featured{overflow:auto}.product-portfolio-landing .integration-map-image{min-height:160px}.product-portfolio-landing .pf-preview{min-height:180px}}
.pf-shell{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}
.pf-page{height:100%;min-height:0;padding:20px 0;display:flex;flex-direction:column;overflow:auto;box-sizing:border-box}
.pf-page-heading{margin-bottom:18px}.pf-page-heading h1{font-size:34px;margin-bottom:6px}
.pf-project-grid{min-height:0;flex:1;align-items:stretch}
.pf-card-image{min-height:0;flex:1;display:flex;max-height:36dvh}
.pf-card-image img{height:100%;min-height:0;object-fit:contain}
.pf-card-body{flex:none}.pf-pagination,.pf-detail-tabs{display:flex;gap:12px;align-items:center;margin:12px 0 0}
.pf-pagination{justify-content:center}.pf-pagination button,.pf-detail-tabs button{padding:8px 12px;background:white;border:1px solid #c9dcd0;border-radius:7px;color:#275747;cursor:pointer}
.pf-pagination button:disabled{opacity:.4;cursor:default}.pf-detail-tabs{margin:0 0 14px}.pf-detail-tabs button[aria-pressed=true]{background:#246f80;color:white}
.pf-detail-page{min-height:0;flex:1}.pf-detail-page .pf-project-detail{height:100%;align-items:center}.pf-detail-page .pf-preview{height:100%;display:flex;flex-direction:column}.pf-detail-page .pf-preview>a{flex:1;min-height:0}.pf-detail-page .pf-preview img{height:100%;max-height:100%;object-fit:contain}.pf-demo-explainer{padding:20px 8px}
@media(max-width:760px){.pf-page{padding:14px 0}.pf-breadcrumb{margin-bottom:12px}.pf-page-heading{margin-bottom:14px;gap:8px}.pf-page-heading h1{font-size:28px}.pf-page-heading p{font-size:12px}.pf-catalog-tools{gap:8px}.pf-filters{gap:6px}.pf-filters button{font-size:11px;min-height:34px;padding:6px 8px}.pf-project-grid{grid-template-columns:1fr}.pf-card-body{padding:12px;gap:10px}.pf-card-body>p{font-size:12px}.pf-card-image{max-height:25dvh}.pf-detail-page{padding:14px}.pf-detail-page .pf-project-detail{grid-template-rows:auto minmax(120px,1fr);gap:14px}.pf-detail-page .pf-copy{gap:10px;padding:0}.pf-detail-page .pf-copy>.pf-identity{display:none}.pf-detail-page .pf-copy>h2{margin:0;font-size:25px}.pf-detail-page .pf-copy>p{font-size:13px}.pf-detail-page .pf-tags>span{padding:4px 6px}.pf-demo-explainer{gap:14px;padding:10px 0}.pf-demo-explainer aside{padding:14px}}
.product-portfolio-landing .product-story-copy{padding:0 8px 0 4px;gap:10px}
.product-portfolio-landing .product-story-copy h1,.product-portfolio-landing .product-story-copy p,.product-portfolio-landing .product-story-pills{margin:0}
.product-portfolio-landing .integration-map-image{aspect-ratio:auto;width:100%;margin:0}
.product-portfolio-landing .integration-map-image img{position:static;inset:auto}
@media(max-width:760px){.product-portfolio-landing .product-story-copy{padding:4px;gap:10px}.product-portfolio-landing .product-story-copy h1{max-width:100%;font-size:28px}.product-portfolio-landing .product-story-pills{gap:4px}.landing-view-switch button{font-size:12px;padding:8px 10px}.product-portfolio-landing .product-story-kicker{font-size:10px}}

/* Portada pública (27 oct): flujo natural en vez de encajar en una pantalla, esquema en HTML y portfolio sin huecos. */
.public-home-stack.public-home-empty{height:auto;width:min(1240px,calc(100% - 48px))!important;padding:40px 0 64px!important}
.product-portfolio-landing{height:auto;display:flex;flex-direction:column;gap:56px}
.product-portfolio-landing .product-story-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px;align-items:center}
.product-portfolio-landing .product-story-copy h1{font-size:clamp(34px,4vw,54px);line-height:1.04;letter-spacing:-.03em;margin:14px 0 16px}
.product-portfolio-landing .product-story-copy p{font-size:16px;line-height:1.6;max-width:52ch;color:#4d6560}
.product-portfolio-landing .product-story-pills span{font-size:12px;padding:7px 11px}
.product-portfolio-landing .product-story-actions{margin-top:18px}
.integration-map{position:relative;margin:0;padding:28px 22px 18px;border:1px solid #d5e2dd;border-radius:20px;background:#fff;box-shadow:0 24px 50px -32px #0b3a3f55}
.integration-map-tag{position:absolute;top:-12px;left:22px;display:flex;align-items:center;gap:6px;padding:4px 11px;border-radius:99px;background:#103f46;color:#d9f1ef;font-size:11px;font-weight:700}
.integration-map-flow{display:grid;grid-template-columns:auto minmax(28px,1fr) auto minmax(28px,1fr) auto;align-items:center;gap:8px}
.integration-map-node{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#183e36}
.integration-map-node>span{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#e1f0ef;color:#17707f}
.integration-map-wire{position:relative;height:2px;background:repeating-linear-gradient(90deg,#17707f 0 6px,transparent 6px 11px);background-size:22px 2px}
.integration-map-wire::after{content:"";position:absolute;right:-3px;top:-4px;border:5px solid transparent;border-left-color:#17707f}
.integration-map-wire small{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:90px;text-align:center;font-size:10.5px;line-height:1.25;color:#5d7470}
.integration-map-stack{display:flex;flex-direction:column;gap:6px;min-width:150px;padding:12px;border:1px solid #d5e2dd;border-radius:14px;background:#f5f9f8}
.integration-map-stack>strong{font-size:13.5px;color:#183e36;margin-bottom:2px}
.integration-map-stack>div{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;background:#fff;font-size:12.5px;color:#24403a}
.integration-map-stack code{margin-left:auto;font-size:10.5px;color:#7a8f8a}
.integration-map-stack svg{color:#17707f}
.integration-map figcaption{display:flex;align-items:center;gap:8px;margin-top:16px;padding-top:12px;border-top:1px dashed #d5e2dd;font-size:12px;color:#5d7470}
.integration-map-dot{width:7px;height:7px;border-radius:50%;background:#2f8f62}
@media (prefers-reduced-motion:no-preference){.integration-map-wire{animation:integration-flow 1.2s linear infinite}@keyframes integration-flow{to{background-position:22px 0}}}
.product-portfolio-landing .pf-featured{display:block;padding:28px 32px}
.product-portfolio-landing .pf-heading h2{font-size:28px}
.product-portfolio-landing .pf-heading p{font-size:14px}
.product-portfolio-landing .pf-selector{margin:18px 0 22px}
.product-portfolio-landing .pf-project-detail{height:auto;align-items:start;gap:36px}
.product-portfolio-landing .pf-copy{gap:14px;padding-top:8px}
.product-portfolio-landing .pf-copy>h2{font-size:32px;letter-spacing:-.02em}
.product-portfolio-landing .pf-copy>p{font-size:15px}
.product-portfolio-landing .pf-tags>span{font-size:11.5px;padding:5px 9px}
.product-portfolio-landing .pf-actions a{min-height:40px;font-size:13.5px}
.product-portfolio-landing .pf-preview{height:auto;display:block}
.product-portfolio-landing .pf-preview>a{border-radius:14px}
.product-portfolio-landing .pf-preview img{height:auto;aspect-ratio:3/2;object-fit:cover;object-position:top}
.product-portfolio-landing .pf-preview>a>span{position:static;justify-content:center;border-radius:0;box-shadow:none;padding:11px;font-size:12.5px}
@media (max-width:900px){
 .public-home-stack.public-home-empty{width:calc(100% - 32px)!important;padding:24px 0 48px!important}
 .product-portfolio-landing{gap:36px}
 .product-portfolio-landing .product-story-hero{grid-template-columns:1fr;gap:36px}
 .landing-view-portal>.pf-featured,.landing-view-projects>.product-story-hero{display:revert}
 .integration-map-flow{grid-template-columns:1fr;justify-items:center}
 .integration-map-wire{width:2px;height:44px;background:repeating-linear-gradient(180deg,#17707f 0 6px,transparent 6px 11px)}
 .integration-map-wire::after{right:-4px;top:auto;bottom:-7px;border-left-color:transparent;border-top-color:#17707f}
 .integration-map-wire small{bottom:auto;top:50%;left:14px;transform:translateY(-50%)}
 .integration-map-stack{width:min(100%,280px);box-sizing:border-box}
 .product-portfolio-landing .pf-featured{padding:20px 16px}
 .product-portfolio-landing .pf-project-detail{grid-template-columns:1fr}
}
@media (max-width:600px){
 .product-portfolio-landing .product-story-copy h1{font-size:32px}
 .product-portfolio-landing .product-story-copy p{font-size:15px}
 .product-portfolio-landing .pf-heading p{display:block}
 .product-portfolio-landing .pf-copy>h2{font-size:26px}
}
/* Public landing: dark palette scoped to the public home only. */
.jacom-landing{--jl-bg:#0c191b;--jl-panel:#122629;--jl-line:#294447;--jl-text:#e7eeee;--jl-muted:#a2b8bb;--jl-accent:#50b9c6;background:var(--jl-bg)!important;color:var(--jl-text);min-height:100dvh;height:auto!important;overflow:visible!important}
.jacom-landing .client-topbar{background:var(--jl-bg);border-bottom:1px solid var(--jl-line);padding:14px max(24px,calc((100vw - 1360px)/2));gap:40px;position:relative}
.jl-brand{display:flex;gap:10px;align-items:center;color:var(--jl-text);font-weight:750;text-decoration:none;white-space:nowrap}.jl-brand>span{width:32px;height:32px;border-radius:9px;background:var(--jl-accent);color:#fff;display:grid;place-items:center}
.jl-nav{display:flex;gap:24px;align-items:center;margin-right:auto}.jl-nav a,.jl-nav button{background:none;border:0;padding:8px 0;color:var(--jl-muted);font:inherit;text-decoration:none;cursor:pointer;font-size:13px}.jl-nav a:hover,.jl-nav button:hover{color:white}
.jacom-landing .client-topbar-actions{margin-left:auto}.jacom-landing .public-content,.jacom-landing .public-workspace,.jacom-landing .public-dashboard-body{background:transparent!important;height:auto!important;overflow:visible!important;padding:0!important;border:0!important}
.jacom-landing .public-home-stack.public-home-empty{width:min(1360px,calc(100% - 64px))!important;padding:76px 0 60px!important;margin:auto}
.jacom-landing .primary-button{background:#50b9c6;color:#071e23;border:1px solid #50b9c6;box-shadow:none;border-radius:9px;font-weight:700}.jacom-landing .secondary-button{background:#132629;border:1px solid #294447;color:#e7eeee;border-radius:9px;box-shadow:none}
.jacom-landing .product-portfolio-landing{gap:78px}.jacom-landing .product-story-hero{gap:60px;grid-template-columns:1fr 1.05fr}.jacom-landing .product-story-copy{padding:0}.jacom-landing .product-story-kicker,.jacom-landing .pf-kicker{color:#50b9c6;font:11px/1.5 ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase}.jacom-landing .product-story-kicker svg{display:none}.jacom-landing .product-story-copy h1{color:#e7eeee;font-size:clamp(38px,4.3vw,64px);letter-spacing:-.05em;line-height:1.08;margin:18px 0 20px}.jacom-landing h1 em{font-style:normal;color:#50b9c6}.jacom-landing .product-story-copy p{color:#a2b8bb;font-size:16px;line-height:1.7}.jacom-landing .product-story-actions{display:flex;gap:10px;margin-top:25px}.jl-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;border-top:1px solid #294447;margin-top:30px;padding-top:22px}.jl-facts strong{display:block;color:#e7eeee;font-size:15px}.jl-facts small{display:block;color:#a2b8bb;font-size:11px;margin-top:5px}
.jacom-landing .integration-map{background:#122629;border-color:#294447;box-shadow:0 22px 55px #0002;padding:26px 22px 18px}.jacom-landing .integration-map-tag{background:#0c191b;color:#50b9c6;font-family:monospace}.jacom-landing .integration-map-stack{background:#192f32;border-color:#294447;min-width:145px}.jacom-landing .integration-map-stack>strong,.jacom-landing .integration-map-node{color:#e7eeee}.jacom-landing .integration-map-stack>div{background:#102225;color:#d9e7e9}.jacom-landing .integration-map-stack code,.jacom-landing .integration-map-wire small,.jacom-landing .integration-map figcaption{color:#94b4b9}.jacom-landing .integration-map-node>span{background:#19383d;color:#50b9c6}.jacom-landing .integration-map figcaption{border-color:#294447;font-size:11px}.jacom-landing .integration-map-wire{animation:none}
.jacom-landing .pf-featured{padding:0;background:none;border:0;box-shadow:none;position:relative;color:#e7eeee}.jacom-landing .pf-heading{padding-right:400px;margin-bottom:22px}.jacom-landing .pf-heading h2{color:#e7eeee;font-size:29px;margin:10px 0}.jacom-landing .pf-heading p{color:#a2b8bb}.jacom-landing .pf-heading>a{display:none}.jacom-landing .pf-selector{position:absolute;right:0;top:40px;margin:0;max-width:390px}.jacom-landing .pf-project-tab{background:#122629;border:1px solid #294447;border-radius:10px;color:#e7eeee;padding:10px 14px}.jacom-landing .pf-project-tab small{color:#a2b8bb}.jacom-landing .pf-project-tab.is-selected{background:#19383d;border-color:#50b9c6;box-shadow:inset 0 0 0 1px #50b9c6}.jacom-landing .pf-icon{width:30px;height:30px;border-radius:8px}.jacom-landing .pf-project-detail{display:grid;grid-template-columns:.85fr 1.35fr;gap:0;border:1px solid #294447;border-radius:22px;overflow:hidden;background:#122629;align-items:stretch}.jacom-landing .pf-copy{padding:36px;gap:18px}.jacom-landing .pf-copy>.pf-identity{display:none}.jacom-landing .pf-copy>h2{color:#e7eeee;font-size:31px}.jacom-landing .pf-copy>p{color:#a2b8bb;font-size:14px;line-height:1.7}.jacom-landing .pf-preview{margin:0;padding:40px 28px 22px;background:radial-gradient(ellipse at 80% 0,#286c65,transparent 80%),#123b42;display:flex;flex-direction:column;justify-content:center;min-width:0}.jacom-landing .pf-preview>a{overflow:hidden;border:1px solid #ffffff20;border-radius:12px;box-shadow:0 24px 50px #0004;background:#f5f7fb}.jacom-landing .pf-preview img{aspect-ratio:1.5;object-fit:cover;object-position:top;width:100%;height:auto;max-height:none}.jacom-landing .pf-preview>a>span{background:#143b3d;color:#e7eeee}.jacom-landing .pf-preview figcaption{color:#bdd6d5;margin-top:12px;font-size:11px}.jacom-landing .pf-note{font:11px/1.6 ui-monospace,monospace;color:#a2b8bb}.jl-benefits{list-style:none;padding:0;margin:0;display:grid;gap:12px;color:#e7eeee;font-size:13px;line-height:1.6}.jl-benefits li{position:relative;padding-left:25px}.jl-benefits li:before{content:'\2713';position:absolute;left:0;top:2px;background:#1c3c40;color:#50b9c6;border-radius:5px;width:17px;height:17px;text-align:center;line-height:17px}.jacom-landing :focus-visible{outline:2px solid #50b9c6;outline-offset:4px}
@media(max-width:1100px){.jacom-landing .product-story-hero{gap:32px}.jacom-landing .integration-map{padding:24px 14px 18px}.jacom-landing .integration-map-stack{min-width:120px;padding:8px}.jacom-landing .integration-map-wire small{font-size:9px}.jacom-landing .pf-copy{padding:26px}}
@media(max-width:900px){.jacom-landing .jl-nav{gap:14px}.jacom-landing .product-story-hero{grid-template-columns:1fr}.jacom-landing .integration-map-flow{grid-template-columns:auto minmax(30px,1fr) auto minmax(30px,1fr) auto}.jacom-landing .integration-map-wire{height:2px;width:auto;background:repeating-linear-gradient(90deg,#50b9c6 0 6px,transparent 6px 11px)}.jacom-landing .integration-map-wire:after{top:-4px;bottom:auto;right:-4px;border-top-color:transparent;border-left-color:#50b9c6}.jacom-landing .integration-map-wire small{top:auto;left:50%;bottom:10px;transform:translateX(-50%)}.jacom-landing .integration-map-stack{width:auto}.jacom-landing .pf-project-detail{grid-template-columns:1fr 1.1fr}.jacom-landing .pf-heading{padding-right:0}.jacom-landing .pf-selector{position:static;margin:18px 0;max-width:100%}.jacom-landing .public-home-stack.public-home-empty{padding-top:42px!important}}
@media(max-width:600px){.jacom-landing .client-topbar{padding:12px 16px;flex-wrap:wrap;gap:12px}.jacom-landing .jl-nav{order:3;width:100%;justify-content:center;border-top:1px solid #294447;padding-top:6px}.jacom-landing .client-topbar-actions{gap:6px}.jacom-landing .public-contact-topbar{display:none}.jacom-landing .public-home-stack.public-home-empty{width:calc(100% - 32px)!important}.jacom-landing .product-story-copy h1{font-size:40px}.jacom-landing .product-story-copy p{font-size:14px}.jl-facts{gap:12px}.jl-facts strong{font-size:12px}.jl-facts small{font-size:10px}.jacom-landing .product-portfolio-landing{gap:48px}.jacom-landing .integration-map-flow{grid-template-columns:1fr}.jacom-landing .integration-map-wire{height:30px;width:2px;background:#32838c}.jacom-landing .integration-map-wire:after{top:auto;bottom:-6px;border-left-color:transparent;border-top-color:#50b9c6}.jacom-landing .integration-map-wire small{bottom:auto;left:14px;top:8px;transform:none}.jacom-landing .integration-map-stack{width:230px}.jacom-landing .integration-map figcaption{line-height:1.6}.jacom-landing .pf-project-detail{grid-template-columns:1fr}.jacom-landing .pf-copy{padding:25px}.jacom-landing .pf-preview{padding:24px 16px}.jacom-landing .pf-project-tab{padding:9px}.jacom-landing .pf-project-tab strong{font-size:12px}.jacom-landing .pf-project-tab small{font-size:10px}.jacom-landing .pf-copy>h2{font-size:27px}}
.jacom-landing .integration-map{display:block!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important}.jacom-landing .integration-map-flow{width:100%;position:static!important}.jacom-landing .integration-map figcaption{position:static!important;inset:auto!important;transform:none!important;width:auto!important;display:flex!important;margin:20px 0 0!important;padding:14px 0 0!important}.jacom-landing .pf-project-track{display:flex;gap:10px;overflow:visible;scrollbar-width:none}.jacom-landing .pf-project-tab{flex:0 0 auto;min-width:0!important;width:auto!important}.jacom-landing .pf-scroll-controls{display:none}.jacom-landing .pf-selector{max-width:none}.jacom-landing .primary-button,.jacom-landing .secondary-button{clip-path:none}
/* Public portfolio landing for dashboard.pl-jacom.pl-dev. All classes are prefixed with pl- to stay isolated from the app styles. */

/* Layout: a short personal intro with a live index of projects, then one chapter per project, each dressed in that project's own colors and showing its real interface. */
.portfolio-landing {
  --ground: #f4f6f3;
  --panel: #ffffff;
  --soft: #e9eeeb;
  --line: #d6dfdb;
  --ink: #0e1f1d;
  --muted: #586d69;
  --accent: #0e8277;
  --accent-ink: #ffffff;
  --live: #1f8a4d;
  --unapocket-bg: #e9eef6;
  /* fixed worlds (same in both themes) */
  --band: #0b2426; --band-2: #10302f; --band-line: #1f4a48; --band-ink: #eaf5f2; --band-muted: #93b8b2; --glow: #5fe0cf;
  --code-bg: #181818; --code-line: #2c2c2c; --code-ink: #e6e6e6; --code-muted: #a0a0a0; --code-accent: #4fd1b5;
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  .portfolio-landing {
    color-scheme: dark;
    --ground: #0f1716; --panel: #152120; --soft: #1b2a28; --line: #2a403d;
    --ink: #e6efed; --muted: #97ada9; --accent: #5fe0cf; --accent-ink: #062320; --live: #63d593;
    --unapocket-bg: #141c29;
  }
}


.portfolio-landing *, .portfolio-landing *::before, .portfolio-landing *::after { box-sizing: border-box; }
.portfolio-landing { min-height: 100vh; background: var(--ground); color: var(--ink); font: 400 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
.pl-wrap { max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.portfolio-landing h1, .portfolio-landing h2, .portfolio-landing h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.03em; }
.portfolio-landing p { margin: 0; }
.portfolio-landing a { color: inherit; }
.portfolio-landing :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.pl-kicker { font: 500 .74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.pl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 10px; font: 600 .92rem var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--ink); transition: transform .15s, border-color .15s; }
.pl-btn svg { width: 16px; height: 16px; flex: none; }
.pl-btn:hover { border-color: var(--accent); }
.pl-btn.pl-solid { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.pl-btn.pl-solid:hover { transform: translateY(-1px); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.pl-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pl-top .pl-wrap { display: flex; align-items: center; gap: 24px; padding-block: 13px; }
.pl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1rem var(--f-display); }
.pl-brand .pl-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--ground); display: grid; place-items: center; font-weight: 800; }
.pl-brand small { font: 400 .78rem var(--f-mono); color: var(--muted); }
.pl-nav { display: flex; gap: 22px; margin-left: auto; font-size: .9rem; color: var(--muted); }
.pl-nav a { text-decoration: none; }
.pl-nav a:hover { color: var(--ink); }

/* intro */
.pl-intro { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.pl-intro h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-weight: 800; margin-top: 18px; }
.pl-intro h1 em { font-style: normal; color: var(--accent); }
.pl-intro .pl-lede { color: var(--muted); font-size: 1.12rem; max-width: 32em; margin-top: 20px; }
.pl-intro .pl-actions { margin-top: 28px; }
.pl-index { border-top: 1px solid var(--ink); }
.pl-index-label { display: flex; justify-content: space-between; padding: 10px 0; font: 500 .72rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.pl-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--line); text-decoration: none; transition: background .15s, padding .2s; }
.pl-row:hover { background: var(--panel); padding-inline: 12px; }
.pl-row img, .pl-row .pl-glyph { width: 40px; height: 40px; border-radius: 10px; }
.pl-row .pl-glyph { display: grid; place-items: center; background: var(--band); color: var(--glow); font: 800 1.05rem var(--f-display); }
.pl-row strong { display: block; font: 700 1.1rem var(--f-display); letter-spacing: -.01em; }
.pl-row small { color: var(--muted); font-size: .86rem; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 .7rem var(--f-mono); color: var(--live); white-space: nowrap; }
.pl-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* chapters */
.pl-chapter { padding-block: clamp(56px, 8vw, 104px); }
.pl-ch-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: 36px; }
.pl-ch-name { display: flex; align-items: center; gap: 10px; font: 600 .95rem var(--f-display); }
.pl-ch-name img, .pl-ch-name .pl-glyph { width: 28px; height: 28px; border-radius: 7px; }
.pl-ch-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.02; font-weight: 800; margin-top: 16px; }
.pl-ch-head p { color: var(--muted); font-size: 1.06rem; max-width: 32em; }
.pl-ch-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.pl-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-stack span { font: 400 .74rem var(--f-mono); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }

/* Unapocket chapter */
.pl-ch-unapocket { background: var(--unapocket-bg); }
.pl-ch-unapocket .pl-kicker, .pl-ch-unapocket .pl-btn.pl-solid { --accent: #2a5a92; }
.pl-ch-unapocket .pl-btn.pl-solid { background: #213e64; border-color: #213e64; color: #fff; }
.pl-tour { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pl-tour button { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pl-tour button b { display: block; font: 700 1rem var(--f-display); }
.pl-tour button span { color: var(--muted); font-size: .88rem; }
.pl-tour button:hover { border-color: #2fbfa9; }
.pl-tour button[aria-pressed="true"] { border-color: #2fbfa9; box-shadow: 0 0 0 2px #2fbfa9; }
.pl-device { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 4px rgba(20,40,70,.06), 0 40px 80px -40px rgba(20,40,70,.45); }
.pl-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #e3e8f0; background: #fff; }
.pl-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dde3ea; }
.pl-bar span { margin-left: 10px; font: 400 .74rem var(--f-mono); color: #6b7a90; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-mock-scroll { overflow-x: auto; }
.pl-note { margin-top: 10px; font: 400 .72rem var(--f-mono); color: var(--muted); text-align: right; }

/* Unapocket screen, recreated at 1200x750 and scaled to fit */
.pl-mock { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #f5f7fb; }
.pl-screen { position: absolute; top: 0; left: 0; width: 1200px; height: 750px; transform-origin: 0 0; display: grid; grid-template-columns: 190px 1fr; font-family: "Instrument Sans", system-ui, sans-serif; color: #1b2a44; background: #f5f7fb; text-align: left; }
.pl-screen .pl-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 12px/1 system-ui, sans-serif; border: 2px solid #fff; }
.pl-m-side { background: #213e64; color: #dbe5f2; padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pl-m-brand { display: flex; align-items: center; gap: 8px; font: 800 20px "Schibsted Grotesk", sans-serif; color: #fff; padding: 0 6px 16px; }
.pl-m-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pl-m-nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; }
.pl-m-nav.pl-on { background: #3d6593; color: #fff; font-weight: 700; }
.pl-m-ic { font-style: normal; width: 16px; text-align: center; opacity: .85; }
.pl-m-lk { margin-left: auto; font-size: 10px; opacity: .6; }
.pl-m-sec { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; padding: 14px 12px 4px; font-weight: 700; }
.pl-m-vault { margin-top: auto; border: 1px solid #3d5c84; border-radius: 10px; padding: 9px 12px; display: grid; font-size: 12px; }
.pl-m-vault span { color: #6fd6c4; font-size: 11px; }
.pl-m-user { display: flex; gap: 9px; align-items: center; padding: 12px 6px 0; margin-top: 8px; border-top: 1px solid #36557c; font-size: 12px; }
.pl-m-user small { display: block; opacity: .7; font-size: 10.5px; }
.pl-m-main { padding: 26px 34px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.pl-m-head { display: flex; justify-content: space-between; align-items: flex-start; }
.pl-m-head small { font-size: 11px; color: #5b6b84; font-weight: 600; }
.pl-m-head h4 { font: 800 28px/1.2 "Schibsted Grotesk", sans-serif; margin: 2px 0 4px; letter-spacing: -.02em; }
.pl-m-head p { font-size: 12.5px; color: #5b6b84; }
.pl-m-pill { display: flex; align-items: center; gap: 10px; border: 1px solid #dfe5ee; background: #fff; border-radius: 99px; padding: 4px 4px 4px 14px; font-size: 11.5px; }
.pl-m-pill b { background: #0f7a6c; color: #fff; padding: 6px 12px; border-radius: 99px; }
.pl-m-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; }
.pl-m-settle { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 14px 18px; }
.pl-m-st-t b { font: 700 16px "Schibsted Grotesk", sans-serif; display: block; }
.pl-m-st-t small { font-size: 11px; color: #5b6b84; }
.pl-m-flow { display: grid; grid-template-columns: auto 1fr auto 210px auto; align-items: center; gap: 12px; background: #f1f9f7; border: 1px solid #d5ece6; border-radius: 12px; padding: 12px 16px; }
.pl-m-who { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: #5b6b84; }
.pl-m-who .pl-av { width: 34px; height: 34px; }
.pl-m-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, #2fa37e 0 3px, transparent 3px 7px); }
.pl-m-line::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid #2fa37e; border-right: 0; }
.pl-m-line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #0f6e5a; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.pl-m-st-d b { font-size: 12.5px; display: block; }
.pl-m-st-d small { font-size: 11px; color: #5b6b84; }
.pl-m-btn { border: 1px solid #0f7a6c; color: #0f7a6c; border-radius: 8px; padding: 7px 12px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pl-m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pl-m-stat { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px dashed #d6dde8; border-radius: 12px; padding: 14px 16px; }
.pl-m-stat i { font-style: normal; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; }
.pl-m-stat small { font-size: 11.5px; color: #5b6b84; display: block; }
.pl-m-stat b { font-size: 12px; color: #9aa6b8; letter-spacing: .1em; }
.pl-m-hint { font-size: 10.5px; color: #5b6b84; margin-top: -6px; }
.pl-m-gh { display: flex; justify-content: space-between; align-items: end; }
.pl-m-gh h5 { font: 700 18px "Schibsted Grotesk", sans-serif; margin: 0; }
.pl-m-gh small { font-size: 11px; color: #5b6b84; }
.pl-m-gh span { font-size: 11.5px; color: #0f7a6c; font-weight: 600; }
.pl-m-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pl-m-g { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; padding-bottom: 10px; font-size: 11px; }
.pl-m-g > b, .pl-m-g > small, .pl-m-g > p, .pl-m-last { margin-inline: 14px; display: block; }
.pl-m-g > b { font-size: 14px; margin-top: 4px; }
.pl-m-g > small { color: #5b6b84; }
.pl-m-g > p { font-weight: 700; font-size: 13px; margin-top: 6px; }
.pl-m-g .pl-ok { color: #1f8a5a; } .pl-m-g .pl-due { color: #b5532e; }
.pl-m-cov { height: 92px; background-size: cover; background-position: center; position: relative; }
.pl-m-cov em { position: absolute; left: 10px; top: 8px; font-style: normal; background: #fff; color: #23477a; font-weight: 700; font-size: 10px; padding: 2px 8px; border-radius: 99px; }
.pl-m-avs { display: flex; margin: -15px 0 0 12px; position: relative; }
.pl-m-avs .pl-av + .pl-av { margin-left: -8px; }
.pl-m-last { display: flex; justify-content: space-between; border-top: 1px solid #eef1f5; padding-top: 7px; margin-top: 8px; color: #5b6b84; }
.pl-m-last b { color: #1b2a44; }
.pl-zone { transition: box-shadow .25s, opacity .25s; border-radius: 14px; }
.pl-screen[data-focus] .pl-zone { opacity: .55; }
.pl-screen[data-focus="settle"] .pl-zone[data-zone="settle"],
.pl-screen[data-focus="groups"] .pl-zone[data-zone="groups"],
.pl-screen[data-focus="vault"] .pl-zone[data-zone="vault"] { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2fbfa9; }

/* Dashboard chapter */
.pl-ch-dash { background:
  radial-gradient(circle at 1px 1px, rgba(95,224,207,.12) 1px, transparent 1.4px) 0 0 / 22px 22px,
  radial-gradient(900px 420px at 80% 30%, rgba(95,224,207,.10), transparent 60%), var(--band); color: var(--band-ink); }
.pl-ch-dash .pl-kicker { color: var(--glow); }
.pl-ch-dash .pl-ch-head p { color: var(--band-muted); }
.pl-ch-dash .pl-ch-name .pl-glyph { display: grid; place-items: center; background: var(--glow); color: var(--band); font: 800 .9rem var(--f-display); }
.pl-dash-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.pl-feats { display: grid; border-top: 1px solid var(--band-line); }
.pl-feats div { padding: 15px 0; border-bottom: 1px solid var(--band-line); }
.pl-feats b { display: block; font: 700 1rem var(--f-display); }
.pl-feats span { color: var(--band-muted); font-size: .92rem; }
.pl-ch-dash .pl-btn { background: transparent; border-color: var(--band-line); color: var(--band-ink); }
.pl-ch-dash .pl-btn:hover { border-color: var(--glow); }
.pl-ch-dash .pl-btn.pl-solid { background: var(--glow); border-color: var(--glow); color: var(--band); }
.pl-ch-dash .pl-stack span { border-color: var(--band-line); color: var(--band-muted); }
/* network map */
.pl-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.pl-map .pl-node { fill: var(--band-2); stroke: var(--band-line); stroke-width: 1; }
.pl-map .pl-hub { fill: #0f3a37; stroke: var(--glow); stroke-width: 1.5; }
.pl-map .pl-row { fill: var(--band); stroke: var(--band-line); }
.pl-map text { fill: var(--band-ink); font-family: var(--f-body); font-size: 13px; }
.pl-map .pl-t-title { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.pl-map .pl-t-tag { fill: var(--band-muted); font-family: var(--f-mono); font-size: 10px; }
.pl-map .pl-t-label { fill: var(--band-muted); font-size: 11px; }
.pl-map .pl-ico { fill: none; stroke: var(--glow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-map .pl-wire { fill: none; stroke: var(--glow); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: .75; animation: pl-dash 1.1s linear infinite; }
.pl-map .pl-pulse { fill: var(--glow); }
.pl-map .pl-lockpill { fill: var(--band); stroke: var(--glow); }
@keyframes pl-dash { to { stroke-dashoffset: -20; } }

.pl-map-mobile { display: none; }

/* Codex chapter */
.pl-codex-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.pl-codex-grid .pl-ch-head { grid-template-columns: 1fr; margin: 0; gap: 18px; }
.pl-dash-grid .pl-ch-head { gap: 18px; }
.pl-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.pl-points li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.pl-points svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.pl-version { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 24px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font: 400 .8rem var(--f-mono); color: var(--muted); }
.pl-version b { font: 700 1.3rem var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.pl-editor { border-radius: 14px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--code-line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.pl-editor .pl-tabs { display: flex; align-items: center; gap: 0; background: #1f1f1f; border-bottom: 1px solid var(--code-line); font: 400 .74rem var(--f-mono); color: var(--code-muted); }
.pl-editor .pl-tabs span { padding: 9px 14px; border-right: 1px solid var(--code-line); }
.pl-editor .pl-tabs span.pl-on { color: var(--code-ink); background: var(--code-bg); box-shadow: inset 0 1px 0 var(--code-accent); }
.pl-editor img { display: block; width: 100%; height: auto; }
.pl-editor .pl-status { display: flex; justify-content: space-between; padding: 5px 12px; background: #0e6b5c; color: #e8fffa; font: 400 .7rem var(--f-mono); }

/* about + contact */
.pl-about { border-top: 1px solid var(--line); }
.pl-about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); }
.pl-about h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-top: 14px; line-height: 1.05; }
.pl-about p { color: var(--muted); margin-top: 14px; max-width: 32em; }
.pl-tools { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.pl-tools div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pl-tools dt { font: 500 .74rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
.pl-tools dd { margin: 0; font-weight: 500; }
.pl-contact { padding-block: clamp(56px, 8vw, 96px); text-align: left; border-top: 1px solid var(--line); }
.pl-contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1; }
.pl-contact h2 span { color: var(--accent); }
.pl-contact-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.pl-contact dl { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 0; font-size: .95rem; }
.pl-contact dt { color: var(--muted); }
.pl-contact dd { margin: 0; font: 500 .9rem var(--f-mono); }
footer { border-top: 1px solid var(--line); padding-block: 22px; font: 400 .76rem var(--f-mono); color: var(--muted); }
footer .pl-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .pl-intro, .pl-ch-head, .pl-dash-grid, .pl-codex-grid, .pl-about-grid { grid-template-columns: 1fr; }
  .pl-ch-head { align-items: start; }
}
@media (max-width: 700px) {
  .pl-nav { display: none; }
  .pl-brand small { display: none; }
  .pl-tour { grid-template-columns: 1fr; }
  .pl-mock { min-width: 680px; }
  .pl-map svg { display: none; }
  .pl-map-mobile { display: grid; gap: 8px; font-size: .88rem; }
  .pl-map-mobile div { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--band-line); background: var(--band-2); display: flex; justify-content: space-between; gap: 10px; }
  .pl-map-mobile div span { color: var(--band-muted); font: 400 .74rem var(--f-mono); }
  .pl-map-mobile .pl-hubm { border-color: var(--glow); }
  .pl-map-mobile .pl-arrow { border: 0; background: none; padding: 0; justify-content: center; color: var(--glow); font: 400 .74rem var(--f-mono); }
  .pl-tools div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-landing *, .portfolio-landing *::before, .portfolio-landing *::after { animation: none !important; transition: none !important; }
  .pl-map .pl-pulse { display: none; }
}

.pl-btn { min-height: 0; box-shadow: none; line-height: 1.2; }
.pl-btn:disabled { opacity: .7; cursor: progress; }
.pl-auth-error { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 16px; background: #2a1616; color: #f3caca; font-size: .9rem; }
.pl-top .pl-btn { padding: 8px 14px; }
@media (max-width: 700px) { .pl-top .pl-btn:not(.pl-solid) { display: none; } }
/* Signed-in home: featured tools, live status and recent activity. Classes are prefixed with th-. */
.tools-home {
  --th-panel: #121c1b;
  --th-panel-2: #172423;
  --th-line: #24363a;
  --th-ink: #e8f0ee;
  --th-muted: #8ea4a0;
  --th-accent: #5fe0cf;
  --th-live: #4fd08a;
  --th-down: #e5676a;
  --th-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --th-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --th-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  padding: 26px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  color: var(--th-ink);
  font: 400 .95rem/1.5 var(--th-body);
}
.tools-home *, .tools-home *::before, .tools-home *::after { box-sizing: border-box; }
.tools-home h1, .tools-home h2 { font-family: var(--th-display); margin: 0; letter-spacing: -.02em; color: var(--th-ink); }
.tools-home p { margin: 0; }
.tools-home a { color: inherit; text-decoration: none; }
.tools-home :focus-visible { outline: 2px solid var(--th-accent); outline-offset: 2px; border-radius: 8px; }

.th-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; position: relative; background: var(--th-accent); color: #0b1716; font: 800 .8rem var(--th-display); }
.th-ico img { width: 100%; height: 100%; border-radius: 7px; display: block; }
.th-dot::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--th-live); border: 2px solid #0d1413; }
.th-dot.is-off::after { background: var(--th-down); }

.th-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; }
.th-hello small { font: 500 .72rem var(--th-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--th-muted); }
.th-hello h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-top: 6px; }
.th-health { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--th-line); background: var(--th-panel); font-size: .84rem; }
.th-health i { width: 8px; height: 8px; border-radius: 50%; background: var(--th-live); }
.th-health.is-down i { background: var(--th-down); }

.th-search { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--th-line); background: var(--th-panel); color: var(--th-muted); }
.th-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--th-ink); font: inherit; font-size: 1rem; padding: 0; box-shadow: none; min-height: 0; }
.th-search input::placeholder { color: var(--th-muted); }
.th-search small { font-size: .78rem; white-space: nowrap; }

.th-sec-title { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; font: 700 1.1rem var(--th-display); }
.th-sec-title > span { display: inline-flex; align-items: center; gap: 8px; font: 400 .8rem var(--th-body); color: var(--th-muted); }
.th-refresh { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid var(--th-line); background: var(--th-panel); color: var(--th-muted); cursor: pointer; min-height: 0; box-shadow: none; }

.th-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.th-tool { display: flex; flex-direction: column; border: 1px solid var(--th-line); border-radius: 14px; background: var(--th-panel); overflow: hidden; transition: border-color .15s, transform .2s; }
.th-tool:hover { border-color: color-mix(in srgb, var(--th-accent) 55%, var(--th-line)); transform: translateY(-2px); }
.th-shot { position: relative; aspect-ratio: 16 / 7; background: var(--th-panel-2); border-bottom: 1px solid var(--th-line); overflow: hidden; }
.th-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.th-live { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(8, 14, 13, .82); color: var(--th-ink); font: 700 .68rem var(--th-body); letter-spacing: .04em; }
.th-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--th-live); }
.th-live.is-down i { background: var(--th-down); }
.th-tool-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.th-tool-name { display: flex; align-items: center; gap: 10px; font: 700 1.08rem var(--th-display); }
.th-tool-body p, .th-muted { color: var(--th-muted); font-size: .88rem; }
.th-empty { color: var(--th-muted); padding: 20px 0; }

.th-bottom { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.th-card { border: 1px solid var(--th-line); border-radius: 14px; background: var(--th-panel); padding: 18px; }
.th-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.th-card-head h2 { font-size: 1.1rem; font-weight: 700; }
.th-pill-live { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--th-muted); }
.th-pill-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--th-live); animation: th-blink 2s infinite; }
@keyframes th-blink { 50% { opacity: .35; } }
.th-table-scroll { overflow-x: auto; }
.th-table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.th-table th { text-align: left; font: 500 .68rem var(--th-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--th-muted); padding: 8px 6px; border-bottom: 1px solid var(--th-line); background: none; }
.th-table td { padding: 12px 6px; border-bottom: 1px solid color-mix(in srgb, var(--th-line) 60%, transparent); vertical-align: middle; }
.th-table tr:last-child td { border-bottom: 0; }
.th-table .th-num { text-align: right; }
.th-table td.th-num b { font: 500 .88rem var(--th-mono); }
.th-table td.th-num small { display: block; color: var(--th-muted); font-size: .7rem; }
.th-spark-cell { width: 42%; }
.th-svc { display: flex; align-items: center; gap: 10px; }
.th-svc b { display: block; font-weight: 600; font-size: .9rem; }
.th-svc small { display: flex; align-items: center; gap: 5px; color: var(--th-muted); font-size: .76rem; }
.th-svc small i { width: 6px; height: 6px; border-radius: 50%; background: var(--th-live); }
.th-svc small.is-off i { background: var(--th-down); }
.th-spark { width: 100%; height: 34px; display: block; }
.th-spark-grid { stroke: var(--th-line); stroke-width: 1; stroke-dasharray: 2 3; }
.th-spark-area { fill: color-mix(in srgb, var(--th-accent) 14%, transparent); }
.th-spark-line { fill: none; stroke: var(--th-accent); stroke-width: 1.4; }
.th-spark-end { fill: var(--th-accent); }
.th-spark text { fill: var(--th-muted); font: 400 9px var(--th-mono); }
.th-foot-note { margin-top: 10px; font-size: .74rem; color: var(--th-muted); }
.th-recent { list-style: none; margin: 0; padding: 0; }
.th-recent li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--th-line) 60%, transparent); font-size: .9rem; }
.th-recent li:last-child { border-bottom: 0; }
.th-recent li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-recent time { font: 400 .72rem var(--th-mono); color: var(--th-muted); white-space: nowrap; }
.th-recent-empty { padding: 12px 0; }

.th-service-list { display: flex; flex-wrap: wrap; gap: 8px; }
.th-service { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--th-line); background: var(--th-panel); font-size: .88rem; }
.th-service:hover { border-color: var(--th-accent); }
.th-service i { width: 7px; height: 7px; border-radius: 50%; background: var(--th-muted); }
.th-service i.is-on { background: var(--th-live); }
.th-service i.is-off { background: var(--th-down); }
.th-service b { font-weight: 600; }
.th-service small { font: 400 .72rem var(--th-mono); color: var(--th-muted); }

.th-shortcuts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 26px 10px; font-size: .78rem; color: var(--th-muted); }
.th-shortcuts kbd { font: 500 .7rem var(--th-mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--th-line); background: var(--th-panel); color: var(--th-muted); margin-right: 6px; }

@media (max-width: 900px) { .th-bottom { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .th-tools { grid-template-columns: 1fr; }
  .th-search small, .th-shortcuts { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-home *, .tools-home *::before, .tools-home *::after { animation: none !important; transition: none !important; }
}

/* Full-page home with its own top bar (same look as the mock-up). */
.th-page { min-height: 100vh; min-height: 100dvh; background: #0d1413; color: #e8f0ee; font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; }
.th-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: rgba(13, 20, 19, .92); backdrop-filter: blur(8px); border-bottom: 1px solid #24363a; }
.th-top a { color: inherit; text-decoration: none; }
.th-top .th-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: #5fe0cf; color: #0b1716; font: 800 .8rem "Schibsted Grotesk", sans-serif; }
.th-top .th-ico img { width: 100%; height: 100%; border-radius: inherit; display: block; }
.th-brand { display: flex; align-items: center; gap: 9px; font: 700 .95rem "Schibsted Grotesk", sans-serif; padding-right: 14px; margin-right: 6px; border-right: 1px solid #24363a; }
.th-pin { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: #8ea4a0 !important; font-size: .88rem; }
.th-pin:hover { background: #121c1b; color: #e8f0ee !important; }
.th-pin .th-ico { width: 20px; height: 20px; border-radius: 5px; }
.th-goto { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 230px; padding: 6px 8px 6px 12px; border-radius: 9px; border: 1px solid #24363a; background: #121c1b; color: #8ea4a0; font: inherit; font-size: .86rem; cursor: pointer; min-height: 0; box-shadow: none; }
.th-goto kbd { margin-left: auto; font: 500 .7rem "IBM Plex Mono", ui-monospace, monospace; padding: 2px 6px; border-radius: 5px; border: 1px solid #24363a; color: #8ea4a0; }
.th-admin { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; border: 1px solid #24363a; font-size: .86rem; font-weight: 600; margin-left: 6px; }
.th-admin:hover { border-color: #5fe0cf; }
.th-avatar { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 0; background: #3f6fb0; color: #fff; display: grid; place-items: center; font: 700 .8rem "Instrument Sans", sans-serif; margin-left: 6px; cursor: pointer; min-height: 0; box-shadow: none; }
.th-logout { width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid #24363a; background: transparent; color: #8ea4a0; display: grid; place-items: center; cursor: pointer; min-height: 0; box-shadow: none; }
.th-logout:hover { color: #e8f0ee; border-color: #5fe0cf; }
.th-top :focus-visible { outline: 2px solid #5fe0cf; outline-offset: 2px; }
@media (max-width: 900px) { .th-pin { display: none; } }
@media (max-width: 600px) {
  .th-goto { width: auto; }
  .th-goto span, .th-goto kbd { display: none; }
  .th-brand { border-right: 0; }
  .th-admin span, .th-admin { font-size: 0; gap: 0; padding: 7px; }
}
/* Admin visual refresh (prototype v14): typography, sidebar, headers, buttons and the overview. */
.jacom-app-shell {
  --ao-ground: #0b1211;
  --ao-side: #0e1716;
  --ao-panel: #121c1b;
  --ao-panel-2: #172423;
  --ao-raise: #1c2c2a;
  --ao-line: #22343a;
  --ao-ink: #e8f0ee;
  --ao-muted: #8ea4a0;
  --ao-faint: #5f7672;
  --ao-accent: #5fe0cf;
  --ao-accent-ink: #062320;
  --ao-live: #4fd08a;
  --ao-idle: #e3b341;
  --ao-down: #e5676a;
  --ao-violet: #b7a6ff;
  --ao-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ao-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --ao-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background: var(--ao-ground);
  font-family: var(--ao-body);
}
.jacom-app-shell .jacom-app-content { background: radial-gradient(circle at 18% -12%, rgba(95, 224, 207, .06), transparent 34%), var(--ao-ground); }
.jacom-app-shell h1, .jacom-app-shell h2, .jacom-app-shell h3 { font-family: var(--ao-display); letter-spacing: -.02em; }

/* sidebar */
.jacom-app-shell .datapulse-sidebar { background: var(--ao-side); border-right-color: var(--ao-line); }
.jacom-app-shell .brand-mark-j { display: grid; place-items: center; background: linear-gradient(140deg, #7cf0e0, #3fbfae); color: var(--ao-accent-ink); font: 800 .95rem var(--ao-display); border: 0; box-shadow: 0 6px 18px -8px rgba(95, 224, 207, .6); }
.jacom-app-shell .sidebar-brand-copy span { font-family: var(--ao-display); font-weight: 700; letter-spacing: -.01em; }
.jacom-app-shell .nav-group + .nav-group { margin-top: 8px; padding-top: 6px; border-top: 0; }
.jacom-app-shell .nav-group-label { padding: 8px 10px 5px; color: var(--ao-faint); font: 500 .62rem var(--ao-mono); letter-spacing: .14em; text-transform: uppercase; }
.jacom-app-shell .nav-list a { position: relative; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--ao-muted); font: 500 .86rem var(--ao-body); }
.jacom-app-shell .nav-list a:hover { color: var(--ao-ink); background: var(--ao-panel); border-color: transparent; }
.jacom-app-shell .nav-list a.active { color: var(--ao-ink); font-weight: 600; background: color-mix(in srgb, var(--ao-accent) 12%, var(--ao-panel)); border-color: transparent; box-shadow: none; }
.jacom-app-shell .nav-list a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ao-accent); }
.jacom-app-shell .nav-list a.active .nav-item-icon { color: var(--ao-accent); }
.jacom-app-shell .sidebar-profile-button { border-radius: 11px; background: var(--ao-panel); border: 1px solid var(--ao-line); }

/* module headers */
.jacom-app-shell .admin-page-header { border-bottom-color: var(--ao-line); }
.jacom-app-shell .admin-page-header .page-kicker { color: var(--ao-faint); font: 500 .66rem var(--ao-mono); letter-spacing: .14em; }
.jacom-app-shell .admin-module-title h1 { font-size: 1.6rem; font-weight: 800; }
.jacom-app-shell .admin-module-title > span { color: var(--ao-muted); background: var(--ao-panel-2); border-color: var(--ao-line); font-family: var(--ao-mono); }
.jacom-app-shell .admin-page-header p { color: var(--ao-muted); font-size: .82rem; }

/* buttons inside the shell */
.jacom-app-shell .primary-button { background: var(--ao-accent); border-color: var(--ao-accent); color: var(--ao-accent-ink); border-radius: 9px; font-family: var(--ao-body); font-weight: 600; }
.jacom-app-shell .secondary-button { background: var(--ao-panel); border-color: var(--ao-line); color: var(--ao-ink); border-radius: 9px; font-family: var(--ao-body); font-weight: 600; }
.jacom-app-shell .secondary-button:hover { border-color: var(--ao-accent); }

/* overview */
.jacom-app-shell .admin-workspace.is-overview { overflow-y: auto; grid-template-rows: auto minmax(0, 1fr); }
.jacom-app-shell .admin-workspace.is-overview .admin-tab-content { overflow: visible; }
.jacom-app-shell .admin-workspace.is-overview .admin-tab-content > * { height: auto; }
.ao { display: grid; gap: 12px; color: var(--ao-ink); font-family: var(--ao-body); max-width: 1320px; width: 100%; padding-bottom: 24px; }
.ao button { font: inherit; color: inherit; }
.ao-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 4px 2px 6px; }
.ao-head small { font: 500 .68rem var(--ao-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ao-faint); }
.ao-head h1 { margin: 2px 0 0; font-size: 1.85rem; font-weight: 800; }
.ao-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--ao-line); background: var(--ao-panel); font-weight: 600; font-size: .84rem; cursor: pointer; white-space: nowrap; min-height: 0; box-shadow: none; }
.ao-btn:hover { border-color: var(--ao-accent); }
.ao-btn-solid { background: var(--ao-accent); border-color: var(--ao-accent); color: var(--ao-accent-ink) !important; }
.ao-btn-sm { padding: 5px 10px; font-size: .78rem; border-radius: 8px; }
.ao-card { border: 1px solid var(--ao-line); border-radius: 14px; background: var(--ao-panel); min-width: 0; }
.ao-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ao-kpi { display: grid; gap: 7px; padding: 14px 16px; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; min-height: 0; box-shadow: none; }
.ao-kpi:hover { border-color: color-mix(in srgb, var(--ao-accent) 50%, var(--ao-line)); transform: translateY(-1px); }
.ao-kpi small { display: flex; align-items: center; gap: 7px; color: var(--ao-muted); font-size: .78rem; }
.ao-kpi small svg { color: var(--ao-accent); }
.ao-kpi b { font: 800 1.7rem/1 var(--ao-display); font-variant-numeric: tabular-nums; }
.ao-kpi b span { font-size: .9rem; color: var(--ao-faint); font-weight: 600; }
.ao-bar { height: 5px; border-radius: 3px; background: var(--ao-line); overflow: hidden; display: block; }
.ao-bar i { display: block; height: 100%; border-radius: inherit; }
.ao-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.ao-span { grid-column: 1 / -1; }
.ao-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 6px; }
.ao-panel-h h2 { margin: 0; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ao-panel-h h2 em { font: 400 .74rem var(--ao-mono); font-style: normal; color: var(--ao-faint); }
.ao-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ao-accent) !important; font-size: .8rem; cursor: pointer; min-height: 0; padding: 0; box-shadow: none; }
.ao-att { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid color-mix(in srgb, var(--ao-line) 60%, transparent); }
.ao-att b { display: block; font-weight: 600; font-size: .88rem; }
.ao-att small { display: block; color: var(--ao-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-att-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.ao-att-ico.is-down { background: color-mix(in srgb, var(--ao-down) 15%, transparent); color: var(--ao-down); }
.ao-att-ico.is-idle { background: color-mix(in srgb, var(--ao-idle) 15%, transparent); color: var(--ao-idle); }
.ao-empty, .ao-muted { color: var(--ao-muted); font-size: .86rem; }
.ao-empty { padding: 10px 16px 16px; margin: 0; }
.ao-tag { display: inline-flex; align-items: center; gap: 5px; font: 500 .68rem var(--ao-mono); padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, currentColor 12%, transparent); white-space: nowrap; }
.ao-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ao-tag.is-ok { color: var(--ao-live); } .ao-tag.is-down { color: var(--ao-down); } .ao-tag.is-off { color: var(--ao-muted); }
.ao-ring-row { display: flex; align-items: center; gap: 16px; padding: 8px 16px 16px; }
.ao-ring { width: 92px; height: 92px; flex: none; }
.ao-ring circle { fill: none; stroke-width: 10; }
.ao-ring .bg { stroke: var(--ao-line); }
.ao-ring .fg { stroke: var(--ao-live); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ao-ring text { fill: var(--ao-ink); font: 800 18px var(--ao-display); }
.ao-ring-list { display: grid; gap: 7px; font-size: .84rem; flex: 1; min-width: 0; }
.ao-ring-list div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ao-chart { padding: 6px 16px 6px; }
.ao-chart svg { width: 100%; height: 150px; display: block; }
.ao-chart .gl { stroke: var(--ao-line); stroke-width: 1; }
.ao-chart .bar { fill: color-mix(in srgb, var(--ao-accent) 55%, transparent); }
.ao-chart .bar.hi { fill: var(--ao-accent); }
.ao-chart text { fill: var(--ao-faint); font: 400 10px var(--ao-mono); }
.ao-legend { display: flex; gap: 14px; padding: 0 16px 14px; color: var(--ao-muted); font-size: .76rem; }
.ao-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--ao-accent); margin-right: 6px; }
.ao-svc { display: grid; gap: 2px; padding: 0 8px 10px; }
.ao-svc button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 60px; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; font-size: .86rem; min-height: 0; box-shadow: none; }
.ao-svc button:hover { background: var(--ao-panel-2); }
.ao-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--ao-accent) 80%, #fff); color: #0b1716; font: 800 .74rem var(--ao-display); }
.ao-svc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-ms { font: 400 .76rem var(--ao-mono); color: var(--ao-muted); text-align: right; }
.ao-feed { list-style: none; margin: 0; padding: 0 16px 10px; }
.ao-feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ao-line) 55%, transparent); font-size: .86rem; }
.ao-feed li:last-child { border-bottom: 0; }
.ao-feed li em { font-style: normal; color: var(--ao-muted); }
.ao-feed-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ao-panel-2); color: var(--ao-accent); }
.ao-feed time { font: 400 .72rem var(--ao-mono); color: var(--ao-faint); white-space: nowrap; }
@media (max-width: 1100px) { .ao-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ao-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ao * { transition: none !important; } }
