/* Delfos design tokens (react_delfos_backoffice: src/utils/DynamicStyles.ts, appShell.css). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/vendor/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/vendor/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/vendor/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --primary: #263C7A;
  --primary-50: #253b791a;
  --primary-100: #D6E2F8;
  --primary-200: #AFC5F1;
  --primary-300: #7E9AD7;
  --primary-600: #1B2D68;
  --primary-700: #132157;
  --primary-800: #194AB4;
  --primary-900: #070F3A;
  --tertiary: #07153A;
  --secondary: #66B6FF;
  --secondary-50: #66B6FF1a;
  --secondary-100: #E0F6FF;
  --secondary-300: #A3DCFF;
  --secondary-600: #4A8EDB;
  --secondary-700: #336AB7;
  --secondary-900: #13337A;
  --bg-surface-0: #FFFFFF;
  --bg-surface-1: #FDFDFD;
  --bg-surface-2: #E7E9F0;
  --bg-page: #F8FAFC;
  --border: #EAEAEA;
  --text-dark: #131519;
  --text-medium: #6C6C6C;
  --text-disabled: #B5B5B5;
  --text-white: #FAFBFC;
  --grey-50: #9e9e9e1a;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-600: #757575;
  --grey-900: #212121;
  --red-dark: #D00416; --red-medium: #FB3748; --red-light: #fb37481a;
  --green-dark: #107434; --green-medium: #1AB752; --green-light: #1AB7521a;
  --yellow-dark: #723B13; --yellow-medium: #E3A008; --yellow-light: #E3A0081a;
  --radius: .5rem;
  --radius-card: 20px;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, .063);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-page);
  position: relative;
  overflow-x: hidden;
}
/* Cowork background: flat colour plus two blurred blobs. */
body::before, body::after {
  content: ""; position: fixed; width: 26rem; height: 26rem; border-radius: 50%; pointer-events: none; z-index: -1;
}
body::before { right: -6rem; top: -5rem; background: #DCEBFF; opacity: .9; filter: blur(110px); }
body::after { left: -5rem; bottom: -5rem; background: #DFF7FF; opacity: .95; filter: blur(120px); }

h1, h2, h3, h4 { margin: 0; color: var(--grey-900); line-height: 1.25; }
h1 { font-size: 1.5rem; font-weight: 600; }
h2 { font-size: 1.125rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary-700); text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: .8125rem; }
code { background: var(--grey-100); border-radius: .25rem; padding: .05rem .35rem; color: var(--primary-600); overflow-wrap: anywhere; }
td code { white-space: nowrap; overflow-wrap: normal; }
pre { margin: 0; padding: 1rem; background: var(--tertiary); color: #e0e7ff; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; word-break: normal; }
small { font-size: .75rem; }
.muted { color: var(--text-medium); }
.icon { width: 1rem; height: 1rem; flex: none; vertical-align: -.15em; }

/* Header (appShell.css .app-header) */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 30px;
  height: 64px; padding: 0 24px;
  background: var(--bg-surface-0); border-bottom: 1px solid var(--border);
}
.app-logo { display: flex; align-items: center; }
.app-logo img { height: 40px; width: auto; display: block; }
.app-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-link {
  position: relative; padding: 6px 10px; font-size: .8125rem; font-weight: 400; letter-spacing: .01em;
  color: var(--text-dark); opacity: .65; transition: opacity .2s; text-decoration: none;
}
.nav-link::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px; background: currentColor; border-radius: 1px;
  transition: width .25s cubic-bezier(.4, 0, .2, 1), left .25s cubic-bezier(.4, 0, .2, 1);
}
.nav-link:hover { opacity: 1; color: var(--text-dark); text-decoration: none; }
.nav-link:hover::after { width: 60%; left: 20%; }
.nav-link.active { opacity: 1; font-weight: 500; }
.nav-link.active::after { width: 100%; left: 0; }
.app-header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.app-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px;
  background: var(--bg-surface-2); color: var(--text-medium); font-size: .75rem; font-weight: 500;
}

/* User menu (UserDropdown.tsx) */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--text-white); font-size: .75rem; font-weight: 500; user-select: none;
}
.user-menu > summary:hover .avatar, .user-menu > summary:focus-visible .avatar, .user-menu[open] .avatar { outline: 4px solid var(--primary-200); }
.user-menu > summary:focus-visible { outline: none; }
.menu-user {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px; padding: 1.25rem 1.25rem 1rem;
  background: var(--bg-surface-0); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 2px 2px 8px -2px #9e9e9e29;
}
.menu-user-head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
.menu-user-head strong { display: block; font-size: .875rem; font-weight: 500; }
.menu-user-head small { color: var(--text-medium); word-break: break-all; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; }
.menu-row-label { display: inline-flex; align-items: center; gap: .5rem; }
.lang-switch { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg-surface-1); border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.lang-switch button {
  height: 28px; padding: 0 12px; border: 1px solid transparent; border-radius: .375rem; background: transparent;
  font: inherit; font-size: .75rem; font-weight: 500; color: var(--text-medium); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--bg-surface-0); border-color: var(--border); color: var(--primary-600); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.menu-user form.logout { margin: .5rem 0 0; }
.menu-user form.logout .btn { width: 100%; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head p { margin: .25rem 0 0; color: var(--text-medium); max-width: 46rem; }
.page-head .brand-title { color: var(--secondary); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .8125rem; color: var(--text-medium); }
.breadcrumb a { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-medium); }
.breadcrumb a:hover { color: var(--primary); }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

/* Cards */
.card { background: var(--bg-surface-0); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { display: inline-flex; align-items: center; gap: .5rem; }
.card-head p { margin: .15rem 0 0; color: var(--text-medium); font-size: .8125rem; }
.card-body { padding: 1.25rem; }
.card-body > :last-child { margin-bottom: 0; }
.card-table { overflow-x: auto; }
.card.danger { border-color: #fb374840; }
.card.danger .card-head h3 { color: var(--red-dark); }

/* Navy banner (SharePointSetupBanner.tsx) */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius); flex-wrap: wrap;
  background: linear-gradient(90deg, var(--primary-900), var(--secondary-900)); border: 1px solid #263c7a40; color: #e0e0e0;
}
.banner-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 9999px; font-size: 11px; font-weight: 500;
  background: #263c7a26; color: var(--secondary);
}
.banner code { background: transparent; color: var(--text-white); font-size: .875rem; padding: 0; }
.banner .btn-ghost-light { color: var(--secondary); }

/* Buttons (DynamicStyles BOTONES) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.5rem; padding: .5rem 1rem;
  border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-size: .875rem; font-weight: 400; line-height: 1;
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .2s linear, color .2s linear, border-color .2s linear;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-sm { height: 2rem; padding: .5rem .75rem; }
.btn-xs { height: 1.5rem; padding: .25rem .5rem; border-radius: .25rem; font-size: .75rem; gap: .35rem; }
.btn-xs .icon { width: .75rem; height: .75rem; }
.btn-icon { width: 2rem; height: 2rem; padding: 0; }
.btn-icon.btn-xs { width: 1.75rem; height: 1.75rem; padding: 0; border-radius: .375rem; }
.btn-icon.btn-xs .icon { width: .9rem; height: .9rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--text-white); }
.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); color: var(--text-white); }
.btn-primary:active, .btn-primary:focus-visible { background: var(--primary-800); border-color: var(--primary-800); outline: 2px solid var(--primary-100); }
.btn-primary:disabled { background: var(--primary-300); border-color: var(--primary-300); color: var(--primary-100); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary-700); color: var(--primary-700); }
.btn-outline:active, .btn-outline:focus-visible { background: var(--primary-100); border-color: var(--primary-800); color: var(--primary-800); outline: none; }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: var(--text-white); }
.btn-secondary:hover { background: var(--secondary-600); border-color: var(--secondary-600); color: var(--text-white); }
.btn-secondary:active, .btn-secondary:focus-visible { background: var(--secondary-700); border-color: var(--secondary-700); outline: 2px solid var(--secondary-100); }
.btn-grey { background: var(--grey-100); border-color: var(--grey-100); color: var(--text-dark); }
.btn-grey:hover { background: var(--grey-300); border-color: var(--grey-300); color: var(--text-dark); }
.btn-grey:active, .btn-grey:focus-visible { background: var(--grey-300); outline: 2px solid var(--grey-200); }
.btn-grey-outline { background: transparent; border-color: var(--grey-400); color: var(--grey-900); }
.btn-grey-outline:hover { background: var(--grey-50); border-color: var(--grey-600); color: var(--grey-900); }
.btn-danger { background: transparent; border-color: var(--red-medium); color: var(--red-dark); }
.btn-danger:hover { background: var(--red-medium); border-color: var(--red-medium); color: #fff; }
.btn-danger:disabled { background: transparent; border-color: var(--grey-300); color: var(--text-disabled); }
.btn-transparent { background: transparent; color: var(--text-dark); }
.btn-transparent:hover { background: var(--grey-100); color: var(--text-dark); }
.btn-group { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
[aria-busy="true"] { cursor: progress; opacity: .7; }

/* Forms (DynamicStyles INPUT) */
form { margin: 0; }
.form-grid { display: grid; gap: 1rem; }
label, .label { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; font-weight: 600; color: var(--text-dark); }
label small.error { font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; height: 40px; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-surface-0); color: var(--grey-900); font: inherit; font-size: .875rem; font-weight: 400;
  transition: border-color .15s, outline-color .15s;
}
textarea { height: auto; min-height: 80px; padding: .75rem 1rem; line-height: 1.5em; resize: vertical; }
select { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236C6C6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; }
input:focus, select:focus, textarea:focus { outline: 4px solid var(--secondary-50); border-color: var(--secondary); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red-dark); outline: 4px solid var(--red-light); }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-surface-1); color: var(--text-disabled); }
::placeholder { color: var(--text-medium); font-style: italic; opacity: 1; }
fieldset { margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 1rem; }
fieldset.plain { border: 0; padding: 0; }
legend { padding: 0 .35rem; font-size: .75rem; font-weight: 600; color: var(--text-medium); text-transform: uppercase; letter-spacing: .05em; }
.hint { margin: 0; font-size: .75rem; font-weight: 400; color: var(--text-medium); }
.inline-form { display: flex; gap: .5rem; align-items: flex-start; }
.inline-form input { flex: 1; }
.form-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }

/* Switch (Switch.tsx) */
.switch { flex-direction: row; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 500; cursor: pointer; width: fit-content; }
.switch input { appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border: 2px solid var(--grey-400); border-radius: 9999px; background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s; }
.switch input::after { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--grey-400); border: 2px solid #fff; box-sizing: border-box; transition: transform .2s, background-color .2s; }
.switch input:checked { background: var(--secondary-600); border-color: var(--secondary-600); }
.switch input:checked::after { transform: translateX(16px); background: #fff; border-color: var(--secondary-600); }
.switch input:focus-visible { outline: 4px solid var(--secondary-50); }

/* Disclosure ("New connection", "Advanced options") */
details.disclosure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface-0); }
details.disclosure > summary {
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; cursor: pointer; list-style: none; font-weight: 500; color: var(--primary);
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .icon:last-child { margin-left: auto; transition: transform .2s; color: var(--text-medium); }
details.disclosure[open] > summary .icon:last-child { transform: rotate(180deg); }
details.disclosure > .disclosure-body { padding: 0 1rem 1rem; display: grid; gap: 1rem; }

/* Tables (DynamicStyles TABLA) */
table { width: 100%; border-collapse: collapse; }
th, td { font-size: .75rem; font-weight: 400; color: var(--text-dark); text-align: left; vertical-align: middle; }
thead { background: var(--bg-surface-1); border-bottom: 1px solid var(--border); }
thead th { color: var(--text-medium); padding: .5rem .75rem; height: 2rem; line-height: 1.2; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background-color .2s linear; }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--grey-50); }
tbody td { padding: .6rem .75rem; white-space: nowrap; }
tbody td.wrap { white-space: normal; min-width: 10rem; }
tbody td.date { white-space: normal; min-width: 5.5rem; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn-group { justify-content: flex-end; flex-wrap: nowrap; }
td a code { color: var(--primary); }
td .muted { font-size: .7rem; }
tr.editing:hover { background: transparent; }
tr.editing td { padding: 1rem 1.25rem; background: var(--bg-surface-1); }

/* Status chips (chip-s / StatusView.tsx) */
.status { display: inline-flex; align-items: center; gap: .35rem; height: 24px; padding: 0 .6rem; border-radius: 9999px; font-size: .7rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { background: var(--green-light); color: var(--green-dark); }
.status-pending_auth { background: var(--yellow-light); color: var(--yellow-dark); }
.status-needs_reauth { background: var(--red-light); color: var(--red-dark); }
.status-disabled { background: var(--grey-50); color: var(--grey-600); }
.state-running, .outcome-ok { background: var(--green-light); color: var(--green-dark); }
.state-starting, .state-stopping, .state-backoff { background: var(--yellow-light); color: var(--yellow-dark); }
.state-stopped { background: var(--grey-50); color: var(--grey-600); }
.state-crashed, .outcome-error { background: var(--red-light); color: var(--red-dark); }
.outcome-denied { background: var(--yellow-light); color: var(--yellow-dark); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 .55rem; border-radius: 9999px; font-size: .7rem; font-weight: 500; background: var(--primary-50); color: var(--primary); white-space: nowrap; }
.chip-grey { background: var(--grey-50); color: var(--grey-600); }
.count { display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9999px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 500; }

/* Messages (snackbar) */
.ok, .error, .warning { font-size: .8125rem; }
p.ok, p.error, p.warning, div.ok, div.error, div.warning {
  display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 1rem; padding: .6rem 1rem; border-radius: var(--radius); border: 1px solid;
}
p.ok, div.ok { background: var(--green-light); border-color: var(--green-medium); color: var(--green-dark); }
p.error, div.error { background: var(--red-light); border-color: var(--red-medium); color: var(--red-dark); }
p.warning, div.warning { background: var(--yellow-light); border-color: var(--yellow-medium); color: var(--yellow-dark); }
p.ok .icon, p.error .icon, p.warning .icon { margin-top: .15rem; }
small.error, span.error { color: var(--red-dark); }
[aria-live]:empty { display: none; }
[aria-live] > :last-child { margin-bottom: 0; }

/* Keys */
.key-cell { display: inline-flex; gap: .5rem; align-items: center; }
.key-value { user-select: all; word-break: break-all; }
.created-key { display: grid; gap: .5rem; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--green-medium); border-radius: var(--radius); background: var(--green-light); color: var(--green-dark); }
.created-key p { margin: 0; }
.created-key .key-cell code { background: var(--bg-surface-0); color: var(--text-dark); padding: .35rem .5rem; }

/* Empty state (KnowledgeEmptyState.tsx) */
.empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2.5rem 1rem; text-align: center; }
.empty img { width: 96px; height: 96px; }
.empty h3 { font-size: 1.125rem; }
.empty p { margin: 0; color: var(--text-medium); max-width: 28rem; }
td.empty-cell { padding: 0; }
td.empty-cell:hover, tr:has(td.empty-cell):hover { background: transparent; }
.empty-row { padding: 1.25rem; text-align: center; color: var(--text-medium); font-style: italic; }

/* Definition list (credential, discovery) */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--text-medium); font-size: .8125rem; }
.kv dd { margin: 0; font-size: .8125rem; word-break: break-word; }

/* Instance detail */
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-head h1 code { font-size: .875rem; vertical-align: middle; }
div.message { flex-direction: row; }
div.message > div { display: grid; gap: .5rem; min-width: 0; }
div.message pre { font-size: .75rem; }
#status .row { margin-bottom: 1rem; }
#status p.warning { margin-bottom: 1rem; }

/* Live logs */
.logs {
  max-height: 22rem; overflow: auto; padding: .75rem 1rem; border-radius: var(--radius);
  background: var(--tertiary); color: #dbe4ff; font-family: var(--mono); font-size: .72rem; line-height: 1.45;
}
.log-line { white-space: pre-wrap; word-break: break-all; }
.log-ts { color: var(--secondary-300); }
.log-stderr { color: #ffd6d9; }
.log-supervisor { color: var(--secondary); font-weight: 500; }

/* Charts */
.metrics-head { margin-bottom: 1rem; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.chart { margin: 0; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: .35rem; }
.chart figcaption { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-medium); }
.chart figcaption strong { color: var(--text-dark); }
.chart svg { width: 100%; height: 64px; display: block; }
.chart-line { fill: none; stroke: var(--secondary-600); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart-axis { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Folder tree */
.tree-box { max-height: 22rem; overflow: auto; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface-1); }
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-left: 1.25rem; border-left: 1px dashed var(--grey-300); margin-left: .5rem; }
.tree-row { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; }
.tree-node { flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; font-size: .8125rem; cursor: pointer; }
.tree-node input { margin: 0; }
.tree-empty { margin: .25rem 0 .25rem 1.25rem; font-size: .75rem; }

/* Monitoring */
.stats { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat { display: grid; gap: .25rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.stat strong { font-size: 1rem; font-weight: 600; }
progress { width: 100%; height: 6px; accent-color: var(--secondary-600); }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.login-card { width: 100%; max-width: 26rem; padding: 2.5rem 2rem 1.5rem; border-radius: 2.5rem; border: 1px solid rgb(226 232 240 / .8); background: var(--bg-surface-0); box-shadow: 0 14px 36px -18px rgba(15, 23, 42, .10); text-align: center; }
.login-card img { height: 56px; width: auto; margin: 0 auto 1.5rem; display: block; }
.login-card h1 { font-size: 1.25rem; letter-spacing: -.03em; margin-bottom: .35rem; }
.login-card h1 .brand-title { color: var(--secondary); }
.login-card > p { color: var(--text-medium); }
.login-card .btn { width: 100%; height: 3rem; margin-top: .5rem; font-weight: 500; }
.login-card .lang-switch { margin-top: 1.5rem; }
.login-card p.error { text-align: left; }

@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
  .app-header { gap: 12px; padding: 0 12px; }
  .app-logo img { height: 32px; }
  .app-pill { display: none; }
  .container { padding: 1.25rem .75rem 2rem; }
}

