﻿:root {
  color-scheme: dark;
  --bg: #030812;
  --bg-deep: #01050b;
  --panel: rgba(10, 18, 29, 0.92);
  --panel-soft: rgba(17, 27, 40, 0.88);
  --ink: #f7fafc;
  --muted: #9aabc1;
  --line: rgba(148, 169, 196, 0.18);
  --line-strong: rgba(215, 175, 84, 0.38);
  --accent: #d4a94d;
  --accent-strong: #f2ca67;
  --accent-soft: rgba(242, 202, 103, 0.14);
  --cyan: #39c7e6;
  --success: #38d27f;
  --warning: #f2ca67;
  --danger: #ff6b6b;
  --soft: rgba(214, 179, 106, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --site-header-height: 94px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(36, 198, 220, 0.16), transparent 30%),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, #111923);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 58%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(180deg, rgba(1, 5, 11, 0.1), rgba(1, 5, 11, 0.45));
}

img {
  display: block;
  max-width: 100%;
}

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

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

::focus-visible {
  outline: 2px solid rgba(240, 202, 120, 0.96);
  outline-offset: 3px;
}

.dropdown-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: block;
  border: 0;
  border-radius: 16px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
}

.dropdown-icon-shield {
  background-image: url("/static/assets/layout-v2/menu-sicom.png");
}

.dropdown-icon-balance {
  background-image: url("/static/assets/layout-v2/menu-etce.png");
}

.dropdown-icon-buildings {
  background-image: url("/static/assets/layout-v2/menu-crj.png");
}

.dropdown-icon-grid {
  background-image: url("/static/assets/layout-v2/menu-admin-control.png");
}

.dropdown-icon-cog {
  background-image: url("/static/assets/layout-v2/menu-admin-maintenance.png");
}

#home .workspace {
  align-content: center;
  min-height: calc(100dvh - var(--site-header-height));
  max-width: 1520px;
  padding-top: 18px;
  padding-bottom: 18px;
}

#remote .workspace,
#online_update .workspace {
  max-width: 1640px;
}

#home .hero-panel.home-hero {
  position: relative;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 560px;
  padding: 24px 30px 24px 34px;
  border: 1px solid rgba(212, 169, 77, 0.24);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 19, 32, 0.96), rgba(8, 13, 23, 0.97)),
    radial-gradient(circle at 76% 36%, rgba(30, 147, 198, 0.14), transparent 24%),
    rgba(8, 13, 23, 0.97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  isolation: isolate;
}

#home .home-hero .hero-copy {
  width: auto;
  max-width: 460px;
}

#home .home-hero .hero-copy > .eyebrow {
  margin-bottom: 16px;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

#home .home-hero .hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 4.5vw, 4.95rem);
  line-height: 0.96;
  margin-bottom: 18px;
}

#home .home-hero .hero-copy p:last-child {
  max-width: 430px;
  font-size: 1rem;
  line-height: 1.6;
}

#home .home-visual-card {
  display: block;
  align-self: stretch;
  min-height: 500px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 15%, rgba(40, 178, 232, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(10, 16, 27, 0.1), rgba(10, 16, 27, 0.2)),
    url("/static/assets/layout-v2/home-cube.png") center/cover no-repeat;
  box-shadow: none;
  mix-blend-mode: lighten;
}

.home-visual-orbit,
.home-visual-cube {
  display: none;
}

#home .home-access {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  border: 1px solid rgba(212, 169, 77, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(14, 21, 34, 0.95), rgba(8, 13, 22, 0.97)),
    rgba(8, 13, 22, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  isolation: isolate;
}

#home .home-copy-panel,
#home .home-auth-actions.home-access-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#home .home-copy-panel {
  padding-right: 12px;
}

#home .home-copy-panel h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

#home .home-copy-panel p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 0;
}

#home .home-auth-actions.home-access-card {
  display: grid;
  place-items: center;
  min-height: 100%;
}

#home .home-auth-actions.home-access-card .home-access-copy,
#home .home-auth-actions.home-access-card .home-access-buttons {
  display: none;
}

#home .home-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(212, 169, 77, 0.26);
  border-radius: 30px;
  background: #070d17;
}

.benefit-card {
  display: grid;
  align-content: start;
  min-height: 310px;
  isolation: isolate;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #070d17;
  padding: 28px 30px;
  text-align: center;
}

.benefit-card:last-child {
  border-right: 0;
}

.benefit-icon {
  width: min(100%, 176px);
  height: 118px;
  margin: 0 auto 18px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: lighten;
  box-shadow: none;
}

.benefit-icon-speed {
  background-image: url("/static/assets/layout-v2/benefit-speed.png");
}

.benefit-icon-shield {
  background-image: url("/static/assets/layout-v2/benefit-security.png");
}

.benefit-icon-chart {
  background-image: url("/static/assets/layout-v2/benefit-productivity.png");
}

.benefit-icon-cloud {
  background-image: url("/static/assets/layout-v2/benefit-integration.png");
}

.benefit-card h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  text-align: center;
  text-transform: uppercase;
}

.benefit-card p {
  color: #d3deef;
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: center;
}

.remote-hero {
  grid-template-columns: minmax(0, 1fr) 348px;
  min-height: 420px;
  align-items: stretch;
}

.auth-panel.auth-layout,
.register-panel.auth-layout {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.auth-layout > .eyebrow {
  display: none;
}

.auth-main-card {
  border: 1px solid rgba(212, 169, 77, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 20, 33, 0.96), rgba(8, 13, 23, 0.96)),
    rgba(8, 13, 23, 0.96);
  padding: 42px 54px;
}

.auth-main-card > .eyebrow,
.auth-inner-eyebrow {
  display: block;
  margin: 0 0 18px;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

.auth-title-art {
  width: min(100%, 430px);
  margin: 0 auto 18px;
}

.auth-form .primary-button {
  min-height: 64px;
  border-radius: 16px;
  font-size: 1.08rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-side-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 30px;
  background: rgba(8, 14, 24, 0.88);
}

.auth-side-icon {
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 50%;
  background: url("/static/assets/layout-v2/auth-lock.jpg") center/cover no-repeat;
  box-shadow: none;
}

.auth-side-icon::before,
.auth-side-icon::after,
.auth-side-icon-check::before,
.auth-side-icon-check::after {
  display: none;
}

@media (max-width: 680px) {
  .home-hero {
    padding: 24px;
  }

  .auth-main-card {
    padding: 26px 20px;
  }
}

.hero-actions {
  margin-top: 34px;
}

.hero-actions .primary-button {
  width: auto;
  min-height: 60px;
  border-radius: 18px;
  font-size: 1.03rem;
  padding: 0 28px;
}

.remote-hero {
  grid-template-columns: minmax(0, 1fr) 348px;
  min-height: 420px;
  align-items: stretch;
}

.remote-hero .hero-copy h1 {
  font-size: clamp(4rem, 5.5vw, 6rem);
  margin-bottom: 20px;
}

.remote-hero .hero-copy .hero-text {
  max-width: 820px;
  font-size: 1.08rem;
}

.remote-search-panel {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.search-box input {
  min-height: 60px;
  border-radius: 18px;
  font-size: 1.02rem;
}

.search-clear,
#clearRemoteSearch,
#clearSicomSearch {
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.remote-grid {
  gap: 18px;
}

.remote-card {
  min-height: 166px;
  border-radius: 22px;
  padding: 20px;
}

.remote-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
}

.remote-actions {
  gap: 12px;
}

.remote-actions .primary-button,
.remote-actions .secondary-button {
  width: auto;
  min-height: 48px;
  border-radius: 14px;
  flex: 1 1 0;
}

.online-dashboard-copy h1 {
  font-size: clamp(2.7rem, 4vw, 4rem);
}

.online-filter-panel,
.online-stat-card,
.online-table-card {
  border-radius: 24px;
}

.online-clear-button {
  border-radius: 16px;
}

.auth-panel.auth-layout,
.register-panel.auth-layout {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.auth-layout > .eyebrow {
  display: none;
}

.auth-main-card,
.auth-side-card {
  border-radius: 30px;
}

.auth-main-card {
  border: 1px solid rgba(212, 169, 77, 0.28);
  background:
    linear-gradient(180deg, rgba(12, 20, 33, 0.96), rgba(8, 13, 23, 0.96)),
    rgba(8, 13, 23, 0.96);
  padding: 42px 54px;
}

.auth-inner-eyebrow,
.auth-main-card > .eyebrow {
  display: block;
  margin: 0 0 18px;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

.auth-title-art {
  width: min(100%, 430px);
  margin: 0 auto 18px;
}

.field-icon {
  width: 24px;
  height: 24px;
  margin-right: 14px;
}

.password-visibility-toggle {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.auth-form .primary-button {
  min-height: 64px;
  border-radius: 16px;
  font-size: 1.08rem;
}

.auth-link {
  display: inline-block;
  color: #d8b1ff;
  font-size: 0.98rem;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-divider span {
  white-space: nowrap;
}

.auth-side-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  background: rgba(8, 14, 24, 0.88);
}

.auth-side-icon {
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 50%;
  background: url("/static/assets/layout-v2/auth-lock.jpg") center/cover no-repeat;
  box-shadow: none;
}

.auth-side-icon::before,
.auth-side-icon::after,
.auth-side-icon-check::before,
.auth-side-icon-check::after {
  display: none;
}

.auth-description {
  max-width: 520px;
  margin: 0 auto 10px;
  font-size: 1.05rem;
}

.auth-alt-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

#login .narrow-workspace,
#forgot .narrow-workspace,
#reset .narrow-workspace {
  max-width: 980px;
  min-height: calc(100dvh - var(--site-header-height));
  padding-top: 38px;
}

#forgot .auth-link {
  width: fit-content;
}

@media (max-width: 980px) {
  .header-nav {
    gap: 10px;
  }

  .home-hero,
  .home-access,
  .remote-hero {
    grid-template-columns: 1fr;
  }

  .home-auth-actions.home-access-card .home-access-copy,
  .home-auth-actions.home-access-card .home-access-buttons {
    display: grid;
  }

  .home-auth-actions.home-access-card {
    padding: 24px;
    grid-template-columns: 86px 1fr;
  }

  .home-auth-actions.home-access-card .home-access-buttons {
    grid-column: 1 / -1;
  }

  .auth-main-card {
    padding: 32px 28px;
  }

  .remote-search-panel {
    grid-template-columns: 1fr;
  }

  .remote-shell::before {
    width: 120px;
  }

  .auth-main-card {
    padding: 32px 28px;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: 210px;
  }

  .home-hero {
    min-height: auto;
    padding: 24px;
  }

  .home-hero .hero-copy h1 {
    font-size: clamp(2.9rem, 13vw, 4.4rem);
  }

  .home-copy-panel,
  .remote-shell,
  .online-filter-panel {
    padding: 22px 20px;
  }

  .auth-main-card {
    padding: 26px 20px;
  }

  .auth-side-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .auth-form .primary-button,
  .hero-actions .primary-button {
    width: 100%;
  }
}

.hero-panel,
.tool-sidebar,
.tool-panel,
.result-panel,
.remote-shell,
.auth-panel,
.online-filter-panel,
.online-stat-card,
.online-table-card {
  border-color: rgba(140, 162, 193, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 21, 35, 0.94), rgba(7, 13, 23, 0.95)),
    rgba(7, 13, 23, 0.95);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-color: rgba(212, 169, 77, 0.28);
  padding: clamp(28px, 4vw, 52px);
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.accent-text {
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.home-access-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
}

.home-access-icon {
  width: clamp(112px, 9vw, 152px);
  height: clamp(112px, 9vw, 152px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url("/static/assets/layout-v2/home-access-user.png") center/contain no-repeat;
  background-color: transparent;
  mix-blend-mode: lighten;
  box-shadow: none;
}

.auth-side-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(242, 202, 103, 0.22), rgba(242, 202, 103, 0.08));
  box-shadow: inset 0 0 0 1px rgba(242, 202, 103, 0.24), 0 14px 34px rgba(212, 169, 77, 0.12);
}

.auth-side-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.auth-side-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 36px;
  height: 20px;
  border: 3px solid #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 0;
  transform: translateX(-50%);
}

.auth-side-icon-check::before {
  width: 18px;
  height: 32px;
  border-width: 0 4px 4px 0;
  border-radius: 0;
  transform: translateX(-50%) rotate(45deg);
  top: 18px;
}

.auth-side-icon-check::after {
  display: none;
}

.home-access-copy,
.auth-side-card > div:last-child {
  display: grid;
  gap: 6px;
}

.home-access-copy strong,
.auth-side-card strong {
  font-size: 1.35rem;
}

.home-access-copy span,
.auth-side-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.home-access-buttons {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.search-icon {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(112, 179, 255, 0.92);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: rgba(112, 179, 255, 0.92);
  right: -2px;
  bottom: 2px;
  transform: rotate(45deg);
  transform-origin: center;
}

.remote-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
}

.remote-grid {
  gap: 18px;
}

.remote-card,
.sicom-card,
.session-card,
.admin-user-card {
  border-radius: 22px;
  border-color: rgba(148, 169, 196, 0.16);
}

.online-dashboard-actions {
  gap: 14px;
}

.online-head-total,
.online-last-updated,
.remote-total,
.status-pill {
  min-height: 42px;
  border-width: 1px;
  border-radius: 999px;
  padding: 0 16px;
}

.online-filter-panel {
  padding: 18px;
}

.online-stats {
  gap: 18px;
}

.online-stat-card {
  border-radius: 22px;
}

.online-table-wrap {
  overflow: hidden;
  border-radius: 28px;
}

.auth-panel {
  padding: clamp(26px, 4vw, 40px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.auth-main-card,
.auth-side-card {
  border: 1px solid rgba(148, 169, 196, 0.14);
  border-radius: 24px;
  background: rgba(7, 13, 23, 0.72);
  padding: 24px;
}

.auth-main-card {
  display: grid;
  gap: 16px;
}

.register-brand-art,
.login-brand-art {
  width: min(100%, 360px);
  margin: 0 auto 8px;
}

.auth-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 6px;
  text-align: center;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(148, 169, 196, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.98), rgba(3, 8, 15, 0.98));
  padding: 0 16px;
}

.field-shell:focus-within {
  border-color: rgba(242, 202, 103, 0.54);
  box-shadow: 0 0 0 4px rgba(242, 202, 103, 0.1);
}

.field-shell input,
.field-shell select {
  min-height: 60px;
  border: 0;
  background: transparent;
  padding: 0;
}

.field-shell select {
  width: 100%;
  background: transparent;
  color: rgba(235, 241, 252, 0.95);
  color-scheme: dark;
  outline: none;
  cursor: pointer;
}

.field-shell select:invalid {
  color: rgba(196, 208, 225, 0.74);
}

.field-shell select option {
  background: #080d16;
  color: #eef3ff;
}

.field-shell select option:disabled {
  color: #8c9bb2;
}

.field-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-right: 12px;
  opacity: 0.86;
}

.field-icon-mail::before,
.field-icon-mail::after,
.field-icon-lock::before,
.field-icon-lock::after {
  content: "";
  position: absolute;
}

.field-icon-mail::before {
  inset: 3px 1px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-radius: 5px;
}

.field-icon-mail::after {
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  background: rgba(186, 199, 219, 0.9);
  transform: skewY(-26deg);
  box-shadow: 0 0 0 0 rgba(186, 199, 219, 0.9);
}

.field-icon-lock::before {
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 12px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-radius: 4px;
}

.field-icon-lock::after {
  left: 7px;
  right: 7px;
  top: 0;
  height: 10px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-bottom: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.password-visibility-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.password-visibility-toggle::before {
  content: "";
  position: absolute;
  inset: 5px 2px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-radius: 50% 50% 44% 44%;
}

.password-visibility-toggle::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(186, 199, 219, 0.9);
}

.password-visibility-toggle[aria-pressed="true"]::before {
  box-shadow: inset 0 0 0 999px rgba(242, 202, 103, 0.08);
}

.auth-link {
  color: #d7b4ff;
  font-weight: 700;
}

.auth-side-card {
  display: grid;
  gap: 18px;
  align-content: center;
}

@media (max-width: 1180px) {
  .home-hero,
  .remote-hero,
  .auth-layout,
  .home-access {
    grid-template-columns: 1fr;
  }

  .home-benefits,
  .online-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .benefit-card:nth-child(2n) {
    border-right: 0;
  }

  .benefit-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: fixed;
    top: calc(var(--site-header-height) + 10px);
    right: 18px;
    left: 18px;
    display: none;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 10px;
    border: 1px solid rgba(212, 169, 77, 0.24);
    border-radius: 24px;
    background: rgba(4, 9, 17, 0.98);
    padding: 18px;
    max-height: calc(100vh - var(--site-header-height) - 28px);
    overflow: auto;
  }

  .header-nav.is-open {
    display: grid;
  }

  .site-header {
    justify-content: space-between;
  }

  .header-nav .nav-image-link,
  .header-nav .nav-image-button {
    width: 100%;
  }

  .passwords-dropdown,
  .admin-dropdown {
    position: static;
    min-width: 100%;
    margin-top: 10px;
  }

  .home-benefits,
  .remote-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: auto;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .benefit-card:last-child {
    border-bottom: 0;
  }

  .online-filter-primary,
  .online-filter-secondary {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .home-benefits,
  .online-stats {
    grid-template-columns: 1fr;
  }

  .benefit-icon {
    width: min(100%, 152px);
    height: 104px;
  }

  .benefit-card {
    padding: 20px 18px;
  }

  .auth-main-card,
  .auth-side-card,
  .hero-panel,
  .remote-shell,
  .online-filter-panel {
    padding: 20px;
  }

  .field-shell {
    min-height: 58px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 7, 14, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  padding: 12px clamp(18px, 3vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: clamp(150px, 13vw, 210px);
  height: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(9, 16, 27, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
}

@media (min-width: 981px) {
  .header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.header-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--accent-strong);
}

.header-nav > .nav-image-link,
.header-nav > .passwords-menu > .nav-image-button,
.header-nav > #logoutButton {
  min-width: 124px;
  height: 52px;
  padding: 0 18px;
}

.header-nav > .remote-link,
.header-nav > .online-update-link {
  min-width: 160px;
}

.header-nav > .guest-link {
  min-width: 132px;
}

.nav-image-link {
  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(108px, 7.4vw, 134px);
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 21, 32, 0.96), rgba(4, 8, 14, 0.98)),
    radial-gradient(circle at 86% 16%, rgba(214, 179, 106, 0.18), transparent 34%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  padding: 0 18px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-image-link::before,
.nav-image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-image-link::before {
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, 0.06) 58% 63%, transparent 63%),
    linear-gradient(135deg, transparent 0 72%, rgba(214, 179, 106, 0.12) 72% 75%, transparent 75%);
  opacity: 0.72;
}

.nav-image-link::after {
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -22px 32px rgba(0, 0, 0, 0.24);
}

.nav-image-link span {
  position: relative;
  z-index: 1;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  overflow: visible;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.54);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-image-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  padding: 0 18px;
}

.passwords-menu {
  position: relative;
}

.passwords-menu::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.passwords-trigger {
  min-width: clamp(108px, 7.4vw, 134px);
}

.passwords-dropdown,
.admin-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 344px;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 106, 0.26);
  border-radius: 26px;
  background: rgba(6, 10, 16, 0.98);
  box-shadow: var(--shadow);
  max-height: 0;
  opacity: 0;
  padding: 12px 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 180ms ease, opacity 160ms ease, padding 160ms ease, transform 160ms ease;
}

.passwords-menu:hover .passwords-dropdown,
.passwords-menu:focus-within .passwords-dropdown,
.passwords-menu.is-open .passwords-dropdown {
  max-height: 360px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.passwords-menu.force-closed .passwords-dropdown {
  max-height: 0;
  opacity: 0;
  padding: 12px 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.passwords-dropdown .nav-image-link {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 22px;
}

.passwords-dropdown .nav-image-link.password-vault-link {
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 14px 22px;
}

.passwords-dropdown .nav-image-link span,
.passwords-dropdown .nav-image-link small {
  text-shadow: none;
  white-space: normal;
}

.passwords-dropdown .nav-image-link + .nav-image-link {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dropdown-copy > span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.dropdown-copy small {
  max-width: 180px;
  color: #a6b6cc;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  text-transform: none;
}

.nav-image-link:hover,
.nav-image-link.active {
  border-color: rgba(214, 179, 106, 0.68);
  color: var(--accent-strong);
  box-shadow: 0 14px 34px rgba(214, 179, 106, 0.1);
  transform: translateY(-1px);
}

.nav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0;
}

.nav-button:hover {
  color: var(--accent-strong);
}

.app-shell {
  min-height: calc(100dvh - var(--site-header-height));
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

.workspace {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  width: min(100%, 1720px);
  margin: 0 auto;
  max-width: 1360px;
  padding: 34px clamp(18px, 4vw, 54px) 54px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
  gap: 28px;
  min-height: 255px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(17, 23, 32, 0.96), rgba(3, 4, 5, 0.9)),
    linear-gradient(90deg, transparent, rgba(214, 179, 106, 0.16));
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 54px);
}

.hero-panel::after {
  content: "LH7";
  position: absolute;
  right: -20px;
  bottom: -54px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 900;
  line-height: 1;
}

.remote-hero::after {
  content: "RDP";
}

.sicom-hero::after {
  content: "SICOM";
}

.etce-hero::after {
  content: "E-TCE";
}

.crj-hero::after {
  content: "CRJ";
}

.admin-hero::after {
  content: "CONTROLE";
  font-size: clamp(5rem, 14vw, 12rem);
}

.home-hero::after {
  content: none;
}

.remote-hero .hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 1;
}

.remote-helper-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
  margin-top: 30px;
  border: 1px solid rgba(214, 179, 106, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 18px 18px 20px;
}

.remote-helper-copy {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.remote-helper-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.remote-windows-logo {
  display: block;
  width: 68px;
  height: 68px;
  align-self: center;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.remote-helper-text strong {
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.remote-helper-text span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.remote-helper-download {
  flex: 0 0 auto;
  min-width: 160px;
  min-height: 40px;
}

#admin .admin-hero .hero-copy h1 {
  font-size: clamp(2.55rem, 6.2vw, 5.45rem);
}

.hero-copy,
.hero-status {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.home-tech-art {
  display: block;
  width: min(100%, 1040px);
  aspect-ratio: 5.3 / 1;
  border: 1px solid rgba(214, 179, 106, 0.32);
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
  margin: 8px auto 20px;
  object-fit: cover;
  object-position: center;
}

.hero-copy .hero-text,
.hero-copy p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-status {
  align-self: end;
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.hero-art-card {
  align-self: stretch;
  align-content: center;
  justify-items: center;
  min-height: 215px;
  border-left: 0;
  border-top: 3px solid var(--accent);
  padding: clamp(24px, 3vw, 34px);
  text-align: center;
}

.hero-status strong {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.hero-status small {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tool-sidebar,
.tool-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.86);
  box-shadow: var(--shadow);
}

.tool-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  max-height: calc(100vh - 124px);
  overflow: hidden;
  padding: 20px;
}

.tool-nav {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: rgba(214, 179, 106, 0.7) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.tool-tab {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-tab:hover {
  border-color: rgba(214, 179, 106, 0.45);
  transform: translateY(-1px);
}

.tool-tab span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-tab strong {
  font-size: 0.92rem;
}

.tool-tab.active {
  border-color: rgba(214, 179, 106, 0.75);
  background: linear-gradient(135deg, rgba(214, 179, 106, 0.18), rgba(36, 198, 220, 0.1));
}

.tool-stack {
  display: grid;
  gap: 24px;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(340px, 1.28fr);
  gap: 24px;
  padding: 24px;
}

.tool-copy p {
  color: var(--muted);
  line-height: 1.6;
}

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

.file-drop {
  display: grid;
  gap: 10px;
  min-height: 112px;
  border: 1px dashed rgba(214, 179, 106, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.file-drop.is-dragover {
  border-color: rgba(36, 198, 220, 0.75);
  background: rgba(36, 198, 220, 0.08);
}

.file-drop.wide,
.input-field {
  grid-column: 1 / -1;
}

.file-drop span,
.input-field span {
  font-weight: 800;
}

.readonly-field strong {
  display: block;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.42);
  color: var(--ink);
  font-weight: 800;
}

input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
select {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.62);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

input[type="file"] {
  color: var(--muted);
}

input::file-selector-button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #111827;
  cursor: pointer;
  font-weight: 800;
  margin-right: 10px;
  padding: 9px 12px;
}

.folder-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.folder-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #111827;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 14px;
}

.folder-picker-button:hover {
  background: var(--accent-strong);
}

.folder-picker-status {
  color: #b6c9e6;
  font-size: 0.88rem;
  font-weight: 700;
}

.folder-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.input-field {
  display: grid;
  gap: 8px;
}

.field-help {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.pdf-merge-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 800;
  padding: 12px;
}

.pdf-merge-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.pdf-merge-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  cursor: grab;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pdf-merge-card.dragging {
  opacity: 0.58;
}

.pdf-merge-card.drag-over,
.pdf-merge-card:hover {
  border-color: rgba(214, 179, 106, 0.65);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.pdf-merge-preview {
  height: 160px;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 106, 0.28);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.78);
}

.pdf-merge-preview iframe {
  width: 100%;
  height: 220px;
  border: 0;
  background: #fff;
  transform: translateY(-6px);
}

.pdf-order {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 179, 106, 0.7);
  border-radius: 999px;
  background: rgba(3, 7, 13, 0.88);
  color: var(--accent-strong);
  font-weight: 900;
}

.pdf-merge-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pdf-merge-meta strong,
.pdf-merge-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-merge-meta small {
  color: var(--muted);
  font-weight: 700;
}

.pdf-merge-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pdf-merge-actions .secondary-button {
  min-height: 38px;
  padding: 0 10px;
}

.merge-order-help {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 4px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #07111f;
  cursor: pointer;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary-button {
  border: 1px solid rgba(214, 179, 106, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
}

.status-pill {
  justify-self: start;
  border: 1px solid rgba(36, 198, 220, 0.45);
  border-radius: 999px;
  background: rgba(36, 198, 220, 0.12);
  color: #a8f4ff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 12px;
  text-align: center;
}

.hero-art-card .status-pill {
  justify-self: center;
  font-size: 0.92rem;
  padding: 10px 16px;
}

.result-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.summary-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.result-feedback {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.result-feedback strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.result-feedback span {
  color: var(--muted);
  font-size: 0.86rem;
}

.result-feedback-success {
  border-left: 5px solid var(--success);
}

.result-feedback-error {
  border-left: 5px solid var(--danger);
}

.log-output {
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(36, 198, 220, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  color: #d7e4f5;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
}

.remote-shell {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.86);
  box-shadow: var(--shadow);
  padding: 24px;
}

.remote-search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: end;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  color: var(--accent-strong);
  font-size: 1.25rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(214, 179, 106, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(3, 7, 13, 0.76);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  padding: 0 54px 0 48px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(214, 179, 106, 0.14);
}

.search-box input::-webkit-search-cancel-button {
  appearance: none;
}

.search-clear,
#clearRemoteSearch,
#clearSicomSearch {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.search-clear:hover,
#clearRemoteSearch:hover,
#clearSicomSearch:hover {
  color: var(--accent-strong);
}

.suggestion-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 6;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(214, 179, 106, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
}

.suggestion-item {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: rgba(214, 179, 106, 0.12);
}

.suggestion-item span {
  font-weight: 800;
}

.suggestion-item small {
  color: var(--muted);
  font-weight: 700;
}

.remote-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.remote-total {
  border: 1px solid rgba(36, 198, 220, 0.35);
  border-radius: 999px;
  background: rgba(36, 198, 220, 0.1);
  color: #a8f4ff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.remote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.online-workspace {
  max-width: 1580px;
  padding-top: 28px;
}

.online-dashboard {
  display: grid;
  gap: 20px;
}

.online-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.online-dashboard-copy {
  max-width: 760px;
}

.online-dashboard-head h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.online-dashboard-head p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.online-dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: 320px;
}

.online-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.online-head-total,
.online-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.online-head-total {
  border-color: rgba(36, 198, 220, 0.34);
  background: rgba(36, 198, 220, 0.1);
  color: #a8f4ff;
}

.online-last-updated b {
  color: var(--ink);
}

.online-last-updated img,
.online-clear-button img {
  width: 16px;
  height: 16px;
  opacity: 0.92;
}

.online-filter-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 23, 32, 0.88);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
  padding: 14px 16px;
}

.online-filter-primary {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(340px, 1.42fr) minmax(150px, 0.64fr) minmax(160px, 0.72fr) auto;
  gap: 12px;
  align-items: end;
}

.online-filter-secondary {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.online-filter-field {
  display: grid;
  gap: 6px;
}

.online-filter-field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.online-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.online-filter-control::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(100, 219, 255, 0.06), rgba(233, 191, 93, 0.02) 58%, rgba(8, 13, 20, 0));
  pointer-events: none;
}

.online-filter-control:focus-within {
  border-color: rgba(92, 211, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(92, 211, 255, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.online-filter-control img {
  width: 17px;
  height: 17px;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

.online-filter-control input,
.online-filter-control select {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0;
  position: relative;
  z-index: 1;
}

.online-select-control select.online-native-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.online-filter-control input::placeholder {
  color: rgba(154, 171, 193, 0.74);
}

.online-filter-control input:focus,
.online-filter-control select:focus {
  outline: none;
}

.online-select-control {
  overflow: visible;
  padding-right: 10px;
}

.online-select-control.is-open {
  z-index: 30;
}

.online-select-control::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 40px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(92, 211, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.online-custom-select {
  position: relative;
  z-index: 2;
  width: 100%;
}

.online-custom-select-trigger {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.online-custom-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-custom-select-trigger .online-custom-select-arrow {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #9aabc1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.online-select-control.is-open .online-custom-select-trigger .online-custom-select-arrow {
  transform: rotate(180deg);
  color: #e9bf5d;
}

.online-custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  right: -10px;
  border: 1px solid rgba(92, 211, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 20, 0.98);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.34);
  padding: 8px;
  max-height: 260px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 191, 93, 0.9) rgba(255, 255, 255, 0.08);
}

.online-custom-select-menu::-webkit-scrollbar {
  width: 10px;
}

.online-custom-select-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.online-custom-select-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(233, 191, 93, 0.92), rgba(92, 211, 255, 0.8));
  border-radius: 999px;
  border: 2px solid rgba(8, 13, 20, 0.95);
}

.online-custom-select-menu[hidden] {
  display: none;
}

.online-custom-select-option {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #eef3ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.online-custom-select-option:hover,
.online-custom-select-option:focus-visible {
  outline: none;
  background: rgba(92, 211, 255, 0.12);
  color: #ffffff;
}

.online-custom-select-option.is-selected {
  background: linear-gradient(90deg, rgba(233, 191, 93, 0.2), rgba(92, 211, 255, 0.08));
  color: #ffe9a6;
}

.online-custom-select-option small {
  color: rgba(154, 171, 193, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

.online-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.online-date-control input {
  min-width: 0;
}

.online-date-connector {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.online-filter-inline {
  min-width: 174px;
}

.online-clear-button {
  min-height: 56px;
}

.online-clear-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.online-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.online-stat-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(17, 23, 32, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  padding: 18px;
}

.online-stat-card > div {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.online-stat-card.online-tone-ok,
.online-stat-card.online-tone-warn,
.online-stat-card.online-tone-bad,
.online-stat-card.online-tone-muted,
.online-stat-card.online-tone-neutral {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(17, 23, 32, 0.84);
}

.online-stat-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(154, 171, 193, 0.12);
  color: var(--muted);
}

.online-stat-art {
  width: 28px;
  height: 28px;
}

.online-stat-card.online-tone-ok .online-stat-icon {
  background: rgba(66, 215, 125, 0.16);
  color: #b8ffd4;
}

.online-stat-card.online-tone-warn .online-stat-icon {
  background: rgba(240, 202, 120, 0.18);
  color: var(--accent-strong);
}

.online-stat-card.online-tone-bad .online-stat-icon {
  background: rgba(255, 107, 107, 0.16);
  color: #ffc3c3;
}

.online-stat-card span:not(.online-stat-icon),
.online-stat-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.online-stat-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.05;
  margin: 2px 0 0;
}

.online-table-wrap {
  display: grid;
  gap: 12px;
}

.online-table-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(17, 23, 32, 0.9);
  box-shadow: var(--shadow);
}

.online-table-scroll {
  overflow: auto;
}

.online-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
}

.online-table.online-module-count-1,
.online-table.online-module-count-2,
.online-table.online-module-count-3 {
  width: max-content;
}

.online-table.online-module-count-1 {
  min-width: min(100%, 760px);
}

.online-table.online-module-count-2 {
  min-width: min(100%, 980px);
}

.online-table.online-module-count-3 {
  min-width: min(100%, 1180px);
}

.online-table thead {
  position: relative;
}

.online-table thead::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.online-table th,
.online-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 14px;
  
}

.online-table th {
  color: #c8d7eb;
  font-size: 0.74rem;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.online-table tbody td {
  
  text-align: center;
}

.online-table thead tr:first-child th {
  border-bottom: 0;
  padding-top: 16px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.online-table thead tr:last-child th {
  padding-top: 12px;
  padding-bottom: 14px;
}

.online-th-label,
.online-group-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.online-sort-icon {
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

.online-group-head {
  color: var(--ink);
  text-align: center;
  position: relative;
}

.online-group-head span {
  justify-content: center;
  width: 100%;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: none;
  min-height: 28px;
  padding-bottom: 8px;
}

.online-group-head::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.online-group-icon {
  width: 18px;
  height: 18px;
}

.online-subhead {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.online-leading-head {
  width: 240px;
  min-width: 210px;
}

.online-table .online-leading-head:first-child {
  width: 300px;
  min-width: 260px;
}

.online-table td strong,
.online-table td small {
  display: block;
}

.online-table td small {
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

.online-table tbody tr:hover {
  background: rgba(214, 179, 106, 0.045);
}

.online-table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.018);
}

.online-entity-cell {
  min-width: 260px;
  text-align: left;
}

.online-entity-wrap {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.online-entity-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(91, 166, 255, 0.24);
  border-radius: 10px;
  background: rgba(91, 166, 255, 0.12);
}

.online-entity-art {
  width: 18px;
  height: 18px;
}

.online-entity-copy {
  display: grid;
  gap: 4px;
}

.online-entity-copy strong {
  font-size: 0.98rem;
}

.online-entity-copy small {
  margin-top: 0;
}

.online-entity-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.online-inline-status,
.online-inline-meta,
.online-version-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.online-inline-status {
  border-radius: 999px;
}

.online-inline-meta {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.72rem;
}

.online-inline-meta-warn {
  border-color: rgba(240, 202, 120, 0.38);
  background: rgba(240, 202, 120, 0.12);
  color: var(--accent-strong);
}

.online-date-cell {
  width: 170px;
  min-width: 150px;
  text-align: center;
}

.online-date-cell strong {
  font-size: 0.96rem;
}

.online-date-cell small {
  font-size: 0.76rem;
}

.online-version-cell {
  gap: 7px;
  width: 100%;
  min-width: 132px;
  background: rgba(3, 7, 13, 0.34);
}

.online-version-cell span {
  line-height: 1;
}

.online-version-cell i,
.online-table-footer .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.online-tone-ok {
  border-color: rgba(66, 215, 125, 0.42);
  background: rgba(66, 215, 125, 0.12);
  color: #b8ffd4;
}

.online-tone-warn {
  border-color: rgba(240, 202, 120, 0.5);
  background: rgba(240, 202, 120, 0.13);
  color: var(--accent-strong);
}

.online-tone-bad {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.12);
  color: #ffc3c3;
}

.online-tone-muted,
.online-tone-neutral {
  border-color: rgba(154, 171, 193, 0.28);
  background: rgba(154, 171, 193, 0.08);
  color: var(--muted);
}

.online-table-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 14px;
}

.online-table-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.online-table-footer .ok {
  color: #42d77d;
}

.online-table-footer .warn {
  color: var(--accent-strong);
}

.online-table-footer .bad {
  color: #ff6b6b;
}

.online-table-footer .muted {
  color: var(--muted);
}

.online-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.online-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-page-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  border: 1px solid rgba(36, 198, 220, 0.34);
  border-radius: 999px;
  background: rgba(36, 198, 220, 0.08);
  color: #a8f4ff;
  font-weight: 900;
}

.remote-card,
.sicom-card {
  display: grid;
  gap: 12px;
  align-content: start;
  align-items: start;
  min-height: 236px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  padding: 18px;
}

.sicom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.remote-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.client-kind,
.client-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.remote-card h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.sicom-card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.sicom-credentials {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sicom-credential {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.26);
  padding: 12px;
}

.sicom-credential-head {
  display: flex;
  justify-content: flex-start;
}

.sicom-env {
  border: 1px solid rgba(36, 198, 220, 0.36);
  border-radius: 999px;
  background: rgba(36, 198, 220, 0.1);
  color: #a8f4ff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.sicom-meta {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(214, 179, 106, 0.22);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.36);
  padding: 12px;
}

.sicom-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sicom-meta strong {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
}

.sicom-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.client-note {
  justify-self: start;
  color: #a8f4ff;
}

.remote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.remote-actions .primary-button,
.remote-actions .secondary-button {
  min-height: 40px;
  padding: 0 12px;
  text-align: center;
}

.sicom-actions {
  margin-top: auto;
}

.sicom-credential .sicom-actions {
  margin-top: 0;
}

.open-vault-site {
  grid-column: 1 / -1;
}

.empty-state {
  border: 1px dashed rgba(214, 179, 106, 0.4);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 18px;
  text-align: center;
}

.narrow-workspace {
  max-width: 780px;
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.auth-title-art {
  display: block;
  width: min(100%, 440px);
  margin: 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.login-heading-art {
  width: min(100%, 550px);
  margin: 4px 0 26px;
}

.login-brand-art {
  width: min(100%, 390px);
  margin: 8px auto 32px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.auth-panel h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  gap: 14px;
}

#register .register-workspace {
  align-content: center;
  max-width: 720px;
  min-height: calc(100dvh - var(--site-header-height));
  padding-top: 14px;
  padding-bottom: 14px;
}

#register .register-form {
  gap: 10px;
}

.password-policy-help {
  color: #b6c9e6;
  margin-top: -1px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.check-field input {
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  color: var(--accent-strong);
  font-weight: 800;
  margin: 16px 0 0;
}

.toast-stack {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 6px solid var(--cyan);
  border-radius: 8px;
  background: rgba(9, 13, 19, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  color: var(--ink);
  padding: 13px 13px 13px 14px;
  animation: toast-enter 180ms ease-out both;
  will-change: transform, opacity;
}

.toast.is-leaving {
  animation: toast-leave 620ms ease-in forwards;
  pointer-events: none;
}

.toast strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.toast span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.toast button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.toast button:hover {
  border-color: rgba(214, 179, 106, 0.5);
  color: var(--accent-strong);
}

.toast.success {
  border-left-color: #42d77d;
}

.toast.error {
  border-left-color: #ff6b6b;
}

.toast.warning {
  border-left-color: var(--accent-strong);
}

.toast.info {
  border-left-color: var(--cyan);
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes toast-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-28px);
  }
}

.mfa-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.mfa-panel h2 {
  margin-bottom: 0;
}

.mfa-help {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.mfa-secret {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(214, 179, 106, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  padding: 12px;
}

.mfa-qr {
  width: min(260px, 100%);
  height: auto;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.mfa-manual-secret {
  width: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--accent-strong);
  padding: 10px;
  text-align: center;
}

.hidden {
  display: none;
}

.password-meter {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.password-meter span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: #cf4f4f;
  transition: width 160ms ease, background 160ms ease;
}

.password-meter span.medium {
  background: var(--accent-strong);
}

.password-meter span.strong {
  background: #37d67a;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.admin-maintenance {
  margin-top: 22px;
}

.admin-control-shell {
  margin-top: 22px;
}

.admin-control-content {
  display: grid;
  gap: 16px;
}

.admin-control-panel {
  display: grid;
  gap: 16px;
}

.admin-control-panel.hidden {
  display: none;
}

.muted-line {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
  text-transform: uppercase;
}

.admin-tab.active {
  border-color: rgba(214, 179, 106, 0.72);
  color: var(--accent-strong);
  background: rgba(214, 179, 106, 0.1);
}

.maintenance-content {
  display: grid;
  gap: 16px;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(360px, 1.24fr);
  gap: 16px;
  align-items: start;
}

.vault-maintenance-grid {
  grid-template-columns: 1fr;
}

.maintenance-list {
  display: grid;
  gap: 10px;
}

.admin-form-card,
.admin-record-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.24);
  padding: 14px;
}

.admin-form-card h3,
.admin-record-card h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-search-panel {
  align-items: center;
}

.vault-import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.compact-search {
  min-height: 58px;
}

.inline-editor {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(36, 198, 220, 0.32);
  border-radius: 8px;
  background: rgba(36, 198, 220, 0.075);
  padding: 14px;
}

.inline-editor .eyebrow {
  margin-bottom: 0;
}

.vault-import-panel {
  display: grid;
  gap: 12px;
}

.vault-import-preview {
  border-color: rgba(214, 179, 106, 0.34);
  background:
    linear-gradient(145deg, rgba(214, 179, 106, 0.06), rgba(36, 198, 220, 0.035)),
    rgba(3, 7, 13, 0.3);
}

.vault-import-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.vault-import-counts div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.vault-import-counts strong {
  color: var(--text);
  font-size: 1.25rem;
}

.vault-import-counts span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vault-import-counts .has-error {
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.08);
}

.vault-import-rows {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(214, 179, 106, 0.78) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.vault-import-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.32);
  padding: 12px;
}

.vault-import-row.erro {
  border-color: rgba(255, 107, 107, 0.52);
  background: rgba(255, 107, 107, 0.06);
}

.vault-import-row.criar {
  border-color: rgba(36, 198, 220, 0.34);
}

.vault-import-row.atualizar {
  border-color: rgba(214, 179, 106, 0.38);
}

.online-admin-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(3, 7, 13, 0.28);
}

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

.online-reference-admin-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.online-admin-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.online-reference-chip-list {
  max-height: 260px;
  overflow: auto;
  align-content: flex-start;
}

.online-reference-meta-list {
  flex-wrap: wrap;
}

.online-reference-meta-list .remote-total {
  align-self: center;
}

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

.online-reference-rules-list {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.online-reference-rule-row {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01)),
    rgba(3, 7, 13, 0.2);
  padding: 14px;
}

.online-reference-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.online-reference-events {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.online-reference-event {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.24);
  padding: 14px;
}

.online-reference-event.success {
  border-color: rgba(52, 211, 153, 0.26);
}

.online-reference-event.error {
  border-color: rgba(248, 113, 113, 0.28);
}

.online-reference-event.skipped {
  border-color: rgba(148, 163, 184, 0.24);
}

.online-reference-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.online-module-editor {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.26);
  padding: 12px;
}

.online-module-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.online-active-check {
  align-self: end;
  min-height: 44px;
}

.token-once-card {
  border-color: rgba(36, 198, 220, 0.42);
  background: rgba(36, 198, 220, 0.08);
}

.token-once-value {
  overflow-wrap: anywhere;
  border: 1px dashed rgba(214, 179, 106, 0.45);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.44);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 12px;
}

.admin-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-record-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 9px;
}

.maintenance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.55fr) 86px auto;
  gap: 10px;
  align-items: end;
}

.maintenance-row.wide {
  grid-template-columns: minmax(0, 1fr) 92px auto;
}

.maintenance-row.url-row {
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
}

.maintenance-row .mini-check {
  justify-content: center;
  min-height: 42px;
}

.vault-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vault-switcher .admin-tab {
  width: 100%;
}

.credential-list {
  display: grid;
  gap: 8px;
}

.credential-pill {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.config-readonly {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 360px);
  gap: 16px;
  align-items: end;
}

.compact-toolbar {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.admin-users,
.audit-list,
.security-alert-list,
.sector-access-list,
.session-list {
  display: grid;
  gap: 12px;
}

.session-admin-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.session-admin-panel.hidden {
  display: none;
}

.audit-list {
  max-height: min(620px, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: rgba(214, 179, 106, 0.7) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.tool-nav::-webkit-scrollbar,
.audit-list::-webkit-scrollbar {
  width: 10px;
}

.tool-nav::-webkit-scrollbar-track,
.audit-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.tool-nav::-webkit-scrollbar-thumb,
.audit-list::-webkit-scrollbar-thumb {
  background: rgba(214, 179, 106, 0.72);
  border: 2px solid rgba(17, 23, 32, 0.88);
  border-radius: 999px;
}

.tool-nav::-webkit-scrollbar-thumb:hover,
.audit-list::-webkit-scrollbar-thumb:hover {
  background: rgba(238, 202, 126, 0.9);
}

.audit-more-actions {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.audit-more-actions .secondary-button {
  width: min(100%, 280px);
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.admin-user-card h3 {
  margin: 10px 0 6px;
}

.admin-user-card p,
.admin-user-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-permission-overview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.permission-super-note {
  border: 1px solid rgba(36, 198, 220, 0.35);
  border-radius: 8px;
  background: rgba(36, 198, 220, 0.1);
  color: #a8f4ff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  padding: 10px;
}

.permission-summary-block {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.22);
  padding: 11px;
}

.permission-summary-block strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.permission-summary-block span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.permission-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.permission-chip,
.permission-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.permission-technical {
  color: var(--muted);
  font-size: 0.82rem;
}

.permission-technical summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.permission-technical small {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.access-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.access-editor > span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-option-group {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(233, 194, 84, 0.32);
  border-radius: 8px;
  padding: 10px;
}

.tool-option-group > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-select-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sector-select-row select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.62);
  color: var(--ink);
  color-scheme: dark;
  padding: 0 12px;
}

.sector-select-row select option {
  background: #080d16;
  color: #eef3ff;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 10px;
}

.mini-check input {
  accent-color: var(--accent-strong);
}

.sector-access-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.sector-access-card strong {
  display: block;
  margin-bottom: 4px;
}

.sector-access-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.security-alert-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.security-alert-block > strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.security-alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.22);
  padding: 10px;
}

.security-alert-item b,
.security-alert-item small {
  display: block;
  overflow-wrap: anywhere;
}

.security-alert-item small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 3px;
}

.security-alert-item .compact-action {
  width: fit-content;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 14px;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: start;
}

.self-protection {
  grid-column: 1 / -1;
  justify-self: stretch;
  border: 1px solid rgba(36, 198, 220, 0.35);
  border-radius: 8px;
  background: rgba(36, 198, 220, 0.1);
  color: #a8f4ff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  max-width: 100%;
  padding: 10px;
}

.admin-actions .secondary-button {
  min-height: 42px;
  padding: 0 10px;
}

.audit-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.audit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audit-result {
  border: 1px solid rgba(36, 198, 220, 0.35);
  border-radius: 999px;
  background: rgba(36, 198, 220, 0.1);
  color: #a8f4ff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.audit-meta {
  display: grid;
  gap: 4px;
}

.audit-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.audit-meta b {
  color: #c8d7eb;
}

.panel-muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

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

.blocking-modal {
  align-items: center;
  background: rgba(2, 6, 12, 0.88);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2000;
}

.blocking-modal.hidden {
  display: none;
}

.blocking-modal-card {
  background: #111820;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 14px;
  max-width: 460px;
  padding: 24px;
  width: min(100%, 460px);
}

.blocking-modal-card h2,
.blocking-modal-card p {
  margin: 0;
}

.blocking-modal-card p:not(.eyebrow):not(.field-help) {
  color: var(--muted);
}

.session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.session-item strong {
  display: block;
  margin-bottom: 4px;
}

.session-item span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .tool-layout,
  .home-access,
  .hero-panel,
  .tool-panel,
  .remote-search-panel,
  .online-dashboard-head,
  .admin-layout,
  .admin-user-card,
  .admin-toolbar,
  .maintenance-grid,
  .online-reference-grid,
  .online-reference-admin-grid,
  .maintenance-row,
  .maintenance-row.wide,
  .maintenance-row.url-row,
  .online-filter-primary,
  .online-module-row {
    grid-template-columns: 1fr;
  }

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

  .tool-sidebar {
    position: static;
    max-height: none;
  }

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

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

  .online-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .online-dashboard-head {
    flex-direction: column;
  }

  .online-dashboard-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .online-filter-secondary {
    align-items: stretch;
    flex-direction: column;
  }

  .online-filter-inline {
    width: 100%;
  }

  .online-date-range {
    grid-template-columns: 1fr;
  }

  .online-date-connector {
    display: none;
  }

  .home-hero .hero-copy > p:last-child {
    white-space: normal;
  }

  .remote-helper-card {
    max-width: none;
  }

  .vault-import-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-nav {
    width: 100%;
    justify-content: space-between;
  }

  .brand img {
    width: 170px;
    height: auto;
  }

  .nav-image-link {
    width: calc(50% - 8px);
    min-width: 138px;
    height: 44px;
  }

  .workspace {
    padding: 22px 16px 36px;
  }

  .upload-grid,
  .summary-grid,
  .remote-grid,
  .sicom-grid,
  .online-stats,
  .remote-actions,
  .pdf-merge-list,
  .form-row,
  .admin-actions,
  .vault-switcher {
    grid-template-columns: 1fr;
  }

  .online-clear-button,
  .online-head-total,
  .online-last-updated {
    width: 100%;
    justify-content: center;
  }

  .remote-helper-card {
    align-items: stretch;
    flex-direction: column;
  }

  .remote-helper-copy {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }

  .remote-windows-logo {
    width: 60px;
    height: 60px;
  }

  .remote-helper-download {
    width: 100%;
  }

  .pdf-merge-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pdf-merge-actions {
    grid-template-columns: 1fr;
  }

  .remote-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: stretch;
  }

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

  .vault-import-actions,
  .vault-import-row {
    flex-direction: column;
    align-items: stretch;
  }

  .vault-import-counts {
    grid-template-columns: 1fr;
  }
}

#remote .hero-panel.remote-hero {
  grid-template-columns: minmax(0, 1fr) 350px;
  min-height: 420px;
  align-items: stretch;
}

#remote .remote-hero-visual {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(212, 169, 77, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 22, 35, 0.94), rgba(9, 14, 24, 0.96)),
    rgba(9, 14, 24, 0.96);
  padding: 30px 26px;
}

#remote .remote-device-art {
  position: relative;
  width: 100%;
  max-width: 248px;
  height: 180px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  box-shadow: none;
}

#remote .remote-device-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}

#remote .remote-device-screen,
#remote .remote-device-base {
  display: none;
}

#remote .remote-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
}

#remote .remote-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 210px;
  background:
    radial-gradient(circle, rgba(212, 169, 77, 0.5) 0 1px, transparent 1.5px) 24px 36px / 36px 36px;
  opacity: 0.34;
  pointer-events: none;
}

#remote .remote-shell > * {
  position: relative;
  z-index: 1;
}

#remote .remote-search-panel {
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr);
}

#remote .remote-grid {
  gap: 18px;
}

#remote .remote-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20, 28, 41, 0.96), rgba(12, 18, 29, 0.96)),
    rgba(12, 18, 29, 0.96);
  padding: 22px;
}

#remote .remote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#online_update .online-dashboard-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
}

#online_update .online-dashboard-head p {
  max-width: 760px;
}

#online_update .online-filter-panel {
  border-radius: 28px;
  padding: 22px;
}

#online_update .online-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

#online_update .online-stat-card {
  border-radius: 24px;
  padding: 22px;
}

#online_update .online-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(212, 169, 77, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(14, 21, 33, 0.94), rgba(8, 13, 22, 0.96)),
    rgba(8, 13, 22, 0.96);
}

#login .workspace,
#register .workspace,
#forgot .workspace,
#reset .workspace {
  min-height: calc(100dvh - var(--site-header-height));
  align-content: start;
  padding-top: 34px;
}

#login .auth-panel.auth-layout,
#forgot .auth-panel.auth-layout,
#reset .auth-panel.auth-layout,
#register .register-panel.auth-layout {
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 18px;
  border: 1px solid rgba(140, 162, 193, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 22, 35, 0.96), rgba(8, 13, 23, 0.96)),
    rgba(8, 13, 23, 0.96);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

#login .auth-panel.auth-layout,
#forgot .auth-panel.auth-layout,
#reset .auth-panel.auth-layout {
  max-width: 640px;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.2vw, 40px);
}

#register .register-panel.auth-layout {
  max-width: 700px;
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 42px);
}

#login .auth-layout > .eyebrow,
#forgot .auth-layout > .eyebrow,
#reset .auth-layout > .eyebrow {
  display: none;
}

#login .auth-main-card,
#forgot .auth-main-card,
#reset .auth-main-card,
#register .auth-main-card {
  display: grid;
  gap: 18px;
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#login .auth-inner-eyebrow,
#login .auth-main-card > .eyebrow,
#forgot .auth-main-card > .eyebrow,
#reset .auth-main-card > .eyebrow,
#register .auth-main-card > .eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

#login .login-brand-art,
#forgot .login-brand-art {
  width: min(100%, 350px);
  margin: 0 auto;
}

#register .register-brand-art {
  width: min(100%, 410px);
  margin: 0 auto 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

#login .auth-brand-divider,
#forgot .auth-brand-divider {
  width: min(100%, 330px);
}

#login .auth-form,
#forgot .auth-form,
#reset .auth-form,
#register .auth-form {
  display: grid;
  gap: 14px;
}

#login .input-field > span:first-child,
#forgot .input-field > span:first-child,
#reset .input-field > span:first-child,
#register .input-field > span:first-child {
  color: #eef4ff;
  font-size: 0.92rem;
  font-weight: 800;
}

#login .input-field,
#forgot .input-field,
#reset .input-field,
#register .input-field {
  display: grid;
  gap: 8px;
  width: 100%;
}

#login .field-shell,
#forgot .field-shell,
#reset .field-shell,
#register .field-shell {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(148, 169, 196, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.98), rgba(4, 8, 15, 0.98));
  padding: 0 14px;
}

#login .field-shell input,
#forgot .field-shell input,
#reset .field-shell input,
#register .field-shell input,
#register .field-shell select {
  min-height: 52px;
  font-size: 0.96rem;
}

.field-icon-user::before,
.field-icon-user::after,
.field-icon-briefcase::before,
.field-icon-briefcase::after {
  content: "";
  position: absolute;
}

.field-icon-user::before {
  left: 6px;
  top: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-radius: 50%;
}

.field-icon-user::after {
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 9px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 0;
}

.field-icon-briefcase::before {
  left: 2px;
  right: 2px;
  bottom: 3px;
  height: 12px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-radius: 4px;
}

.field-icon-briefcase::after {
  left: 7px;
  top: 1px;
  width: 8px;
  height: 6px;
  border: 2px solid rgba(186, 199, 219, 0.9);
  border-bottom: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

#login .auth-description,
#forgot .auth-description {
  max-width: 480px;
  margin: 0 auto 6px;
  text-align: center;
  color: #a9b8cc;
  font-size: 1.08rem;
  line-height: 1.65;
}

#login .auth-side-card,
#forgot .auth-side-card,
#reset .auth-side-card {
  display: grid;
  width: 100%;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(148, 169, 196, 0.16);
  border-radius: 24px;
  background: rgba(8, 14, 24, 0.82);
  padding: 22px 24px;
}

#register .auth-side-card {
  display: none;
}

#login .auth-side-icon,
#forgot .auth-side-icon,
#reset .auth-side-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(242, 202, 103, 0.16), rgba(242, 202, 103, 0.02) 68%),
    url("/static/assets/layout-v2/auth-lock.jpg") center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(242, 202, 103, 0.26), 0 16px 34px rgba(0, 0, 0, 0.2);
}

#login .auth-side-icon::before,
#login .auth-side-icon::after,
#forgot .auth-side-icon::before,
#forgot .auth-side-icon::after,
#reset .auth-side-icon::before,
#reset .auth-side-icon::after {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 0;
  color: #aeb9c9;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  color: #aeb9c9;
  font-size: 0.94rem;
}

.auth-alt-link {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

#register .password-meter {
  height: 6px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#register .check-field {
  align-items: flex-start;
  gap: 12px;
  color: #c7d3e5;
  line-height: 1.6;
}

.form-message {
  margin: 0;
}

@media (max-width: 980px) {
  .header-nav > .nav-image-link,
  .header-nav > .passwords-menu > .nav-image-button,
  .header-nav > #logoutButton {
    width: 100%;
    min-width: 0;
  }

  #remote .remote-grid,
  #home .home-benefits,
  #online_update .online-stats {
    grid-template-columns: 1fr;
  }

  #remote .remote-actions {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  #home .hero-panel.home-hero {
    padding: 22px 20px;
  }

  #home .home-visual-card {
    min-height: 360px;
  }

  #login .auth-panel.auth-layout,
  #forgot .auth-panel.auth-layout,
  #reset .auth-panel.auth-layout,
  #register .register-panel.auth-layout {
    width: 100%;
    max-width: 100%;
    padding: 22px 18px;
  }

  #login .login-brand-art,
  #register .register-brand-art {
    width: min(100%, 250px);
    margin-inline: auto;
  }

  #login .auth-side-card,
  #forgot .auth-side-card,
  #reset .auth-side-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

#register .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#register .form-row > .input-field {
  grid-column: auto;
  min-width: 0;
}

#register .password-strength-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  color: #72839a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#register .password-strength-legend span {
  opacity: 0.72;
  transition: color 160ms ease, opacity 160ms ease;
}

#register .password-meter[data-strength="weak"] + .password-strength-legend [data-strength-label="weak"] {
  color: #cf4f4f;
  opacity: 1;
}

#register .password-meter[data-strength="medium"] + .password-strength-legend [data-strength-label="medium"] {
  color: var(--accent-strong);
  opacity: 1;
}

#register .password-meter[data-strength="strong"] + .password-strength-legend [data-strength-label="strong"] {
  color: #37d67a;
  opacity: 1;
}

@media (max-width: 980px) {
  #register .form-row {
    grid-template-columns: 1fr;
  }

  #register .form-row > .input-field {
    grid-column: 1 / -1;
  }

  #register .register-panel.auth-layout {
    max-width: 620px;
  }
}

/* Public page scale fine tuning */
@media (min-width: 981px) {
  .site-header {
    min-height: 76px;
    padding: 10px clamp(16px, 2.4vw, 36px);
  }

  .brand img {
    width: clamp(138px, 11.8vw, 190px);
  }

  .header-nav {
    gap: 8px;
  }

  .header-nav > .nav-image-link,
  .header-nav > .passwords-menu > .nav-image-button,
  .header-nav > #logoutButton {
    min-width: 116px;
    height: 48px;
    padding: 0 16px;
  }

  .header-nav > .remote-link,
  .header-nav > .online-update-link {
    min-width: 148px;
  }

  .header-nav > .guest-link {
    min-width: 126px;
  }

  .header-nav > .nav-image-link > span,
  .header-nav > .passwords-menu > .nav-image-button > span,
  .header-nav > #logoutButton > span {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
  }

  #home .workspace {
    max-width: 1240px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  #home .hero-panel.home-hero {
    grid-template-columns: minmax(330px, 458px) minmax(0, 1fr);
    min-height: 516px;
    gap: 16px;
    padding: 22px 26px 22px 30px;
  }

  #home .home-hero .hero-copy > .eyebrow {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  #home .home-hero .hero-copy h1 {
    max-width: 418px;
    font-size: clamp(2.85rem, 3.9vw, 4.4rem);
    line-height: 0.97;
    margin-bottom: 16px;
  }

  #home .home-hero .hero-copy p:last-child {
    max-width: 392px;
    font-size: 0.96rem;
    line-height: 1.56;
  }

  #home .hero-actions {
    margin-top: 22px;
  }

  #home .home-visual-card {
    min-height: 454px;
  }

  #home .home-access {
    grid-template-columns: minmax(0, 1fr) 166px;
  }

  #home .home-copy-panel {
    padding: 24px 28px;
  }

  #home .home-copy-panel h2 {
    font-size: clamp(1.95rem, 2.7vw, 2.5rem);
  }

  #home .home-auth-actions.home-access-card {
    min-height: 170px;
  }

  #login .workspace,
  #register .workspace,
  #forgot .workspace,
  #reset .workspace {
    padding-top: 22px;
  }

  #login .auth-panel.auth-layout,
  #forgot .auth-panel.auth-layout,
  #reset .auth-panel.auth-layout {
    max-width: 568px;
    gap: 16px;
    border-radius: 26px;
    padding: 20px 22px 24px;
  }

  #register .register-panel.auth-layout {
    max-width: 700px;
    gap: 16px;
    border-radius: 26px;
    padding: 20px 22px 24px;
  }

  #login .login-brand-art,
  #forgot .login-brand-art {
    width: min(100%, 320px);
  }

  #register .register-brand-art {
    width: min(100%, 370px);
    margin: 0 auto 8px;
  }

  #login .auth-brand-divider,
  #forgot .auth-brand-divider {
    width: min(100%, 296px);
    margin: 0 auto 6px;
  }

  #login .auth-form,
  #forgot .auth-form,
  #reset .auth-form,
  #register .auth-form {
    gap: 12px;
  }

  #login .input-field > span:first-child,
  #forgot .input-field > span:first-child,
  #reset .input-field > span:first-child,
  #register .input-field > span:first-child {
    font-size: 0.88rem;
  }

  #login .field-shell,
  #forgot .field-shell,
  #reset .field-shell,
  #register .field-shell {
    min-height: 50px;
    padding: 0 13px;
  }

  #login .field-shell input,
  #forgot .field-shell input,
  #reset .field-shell input,
  #register .field-shell input,
  #register .field-shell select {
    min-height: 48px;
    font-size: 0.93rem;
  }

  #login .auth-side-card,
  #forgot .auth-side-card,
  #reset .auth-side-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
  }

  #login .auth-side-icon,
  #forgot .auth-side-icon,
  #reset .auth-side-icon {
    width: 72px;
    height: 72px;
  }

  #register .form-row {
    gap: 14px;
  }

  #register .password-meter {
    height: 5px;
  }

  #register .password-strength-legend {
    font-size: 0.78rem;
  }

  #register .check-field {
    font-size: 0.93rem;
  }
}

#login .auth-divider {
  margin: -4px 0 2px;
}

#login .auth-forgot-link {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 10px;
}

#home .hero-actions .guest-link,
#home .hero-actions .logged-home-link {
  min-width: 252px;
  justify-content: center;
}

#login #loginMessage:empty {
  display: none;
}

#login #loginMessage:not(:empty) {
  margin-top: 14px;
}

@media (min-width: 981px) {
  #login .auth-panel.auth-layout {
    max-width: 588px;
    gap: 18px;
    padding: 24px 26px 28px;
  }

  #register .register-panel.auth-layout {
    max-width: 760px;
    gap: 18px;
    padding: 24px 30px 30px;
  }

  #register .password-row {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  #register .password-row > .input-field {
    align-self: start;
  }

  #login .login-brand-art {
    width: min(100%, 336px);
  }

  #register .register-brand-art {
    width: min(100%, 390px);
    margin: 0 auto 10px;
  }

  #login .field-shell,
  #register .field-shell {
    min-height: 52px;
    padding: 0 14px;
  }

  #login .field-shell input,
  #register .field-shell input {
    min-height: 50px;
    font-size: 0.95rem;
  }

  #home .hero-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
  }

  #home .hero-actions .guest-link,
  #home .hero-actions .logged-home-link {
    width: auto;
    min-width: 248px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 16px;
    border-color: rgba(255, 220, 123, 0.24);
    background: linear-gradient(180deg, #f5cb62 0%, #e2b248 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 245, 212, 0.28),
      0 12px 24px rgba(0, 0, 0, 0.22);
    color: #0c111a;
    font-size: clamp(0.95rem, 1.02vw, 1.04rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    justify-content: center;
    text-transform: uppercase;
  }

}

@media (min-width: 1600px) {
  #home .workspace {
    max-width: 1200px;
  }

  #login .auth-panel.auth-layout,
  #forgot .auth-panel.auth-layout,
  #reset .auth-panel.auth-layout {
    max-width: 560px;
  }
}

.password-vault-link .dropdown-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  position: relative;
  overflow: hidden;
  background-color: rgba(10, 16, 27, 0.92);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 170%;
}

.app-shell {
  overflow-x: clip;
}

.is-firefox body.common-user-page-is-active {
  background: linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, #111923);
}

.is-firefox body.common-user-page-is-active::before,
.is-firefox body.common-user-page-is-active::after {
  display: none;
}

.is-firefox body.common-user-page-is-active .site-header {
  backdrop-filter: none;
  background: rgba(2, 7, 14, 0.98);
}

.is-firefox body.common-user-page-is-active .tool-sidebar {
  position: static;
  max-height: none;
}

.is-firefox body.common-user-page-is-active .tool-nav {
  overflow-y: visible;
  padding-right: 0;
}

.is-firefox body.common-user-page-is-active .hero-panel,
.is-firefox body.common-user-page-is-active .tool-sidebar,
.is-firefox body.common-user-page-is-active .tool-panel,
.is-firefox body.common-user-page-is-active .result-panel,
.is-firefox body.common-user-page-is-active .remote-shell,
.is-firefox body.common-user-page-is-active .auth-panel,
.is-firefox body.common-user-page-is-active .auth-main-card,
.is-firefox body.common-user-page-is-active .auth-side-card,
.is-firefox body.common-user-page-is-active .online-filter-panel,
.is-firefox body.common-user-page-is-active .online-stat-card,
.is-firefox body.common-user-page-is-active .online-table-card,
.is-firefox body.common-user-page-is-active .sicom-card {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.is-firefox body.common-user-page-is-active .tool-tab {
  transition: border-color 120ms ease, background 120ms ease;
}

.is-firefox body.common-user-page-is-active .tool-tab:hover {
  transform: none;
}

.hero-panel,
.tool-sidebar,
.tool-panel,
.result-panel,
.remote-shell,
.auth-main-card,
.auth-side-card,
.session-item {
  border-radius: 26px;
}

.toast-stack {
  width: min(390px, calc(100vw - 28px));
}

@media (hover: hover) and (pointer: fine) {
  .nav-image-link:hover,
  .nav-image-button:hover,
  .primary-button:hover,
  .secondary-button:hover {
    transform: translateY(-1px);
  }
}

@media (min-width: 1800px) {
  .workspace {
    max-width: 1720px;
  }

  #home .workspace {
    max-width: 1660px;
  }

  #home .hero-panel.home-hero {
    min-height: 660px;
  }
}

@media (max-width: 1600px) {
  .workspace {
    max-width: 1500px;
    padding-inline: 28px;
  }

  #home .workspace,
  #remote .workspace,
  #online_update .workspace {
    max-width: 1460px;
  }
}

@media (max-width: 1440px) {
  .site-header {
    padding-inline: 22px;
  }

  .workspace {
    max-width: 1380px;
    padding-inline: 24px;
  }

  #home .workspace {
    max-width: 1340px;
  }
}

@media (max-width: 1366px) {
  .header-nav {
    gap: 8px;
  }

  .header-nav > .nav-image-link,
  .header-nav > .passwords-menu > .nav-image-button,
  .header-nav > #logoutButton {
    min-width: 112px;
    padding-inline: 14px;
  }

  .header-nav > .remote-link,
  .header-nav > .online-update-link {
    min-width: 138px;
  }

  .workspace {
    padding-top: 24px;
    padding-bottom: 38px;
  }
}

@media (max-width: 1280px) {
  .tool-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .tool-panel,
  .remote-shell {
    grid-template-columns: 1fr;
  }

  #home .workspace {
    gap: 20px;
  }

  #login .auth-panel.auth-layout,
  #forgot .auth-panel.auth-layout,
  #reset .auth-panel.auth-layout {
    max-width: 620px;
  }

  #register .register-panel.auth-layout {
    max-width: 760px;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 12px 18px;
  }

  .tool-layout,
  .tool-panel,
  .remote-hero,
  .remote-shell,
  .online-reference-admin-grid,
  .session-item {
    grid-template-columns: 1fr;
  }

  .tool-sidebar {
    position: static;
    top: auto;
    max-height: none;
  }

  .workspace {
    gap: 20px;
    padding: 22px 18px 34px;
  }

  #home .hero-panel.home-hero {
    border-radius: 28px;
  }

  #home .hero-actions .guest-link,
  #home .hero-actions .logged-home-link {
    min-width: 228px;
  }
}

@media (max-width: 768px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand img {
    width: 156px;
  }

  .workspace {
    gap: 18px;
    padding: 18px 14px 30px;
  }

  .hero-panel,
  .tool-sidebar,
  .tool-panel,
  .result-panel,
  .remote-shell,
  .auth-main-card,
  .auth-side-card,
  .session-item {
    border-radius: 22px;
  }

  .hero-panel {
    padding: 20px 16px;
  }

  .passwords-dropdown,
  .admin-dropdown {
    min-width: 100%;
    border-radius: 22px;
  }

  .passwords-dropdown .nav-image-link {
    min-height: 82px;
    padding: 16px 18px;
  }

  .auth-main-card {
    padding: 24px 18px;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 12px;
  }

  .workspace {
    padding-inline: 12px;
  }

  .hero-panel {
    padding: 18px 14px;
  }

  #home .hero-actions .guest-link,
  #home .hero-actions .logged-home-link,
  .auth-form .primary-button,
  .primary-button,
  .secondary-button {
    min-height: 52px;
  }

  #login .login-brand-art,
  #forgot .login-brand-art,
  #register .register-brand-art {
    width: min(100%, 280px);
  }
}

@media (max-width: 390px) {
  .brand img {
    width: 148px;
  }

  .workspace {
    padding-inline: 10px;
  }

  .hero-panel,
  .auth-main-card {
    padding: 16px 12px;
  }

  .dropdown-copy > span {
    font-size: 0.92rem;
  }

  .dropdown-copy small {
    font-size: 0.78rem;
  }
}

@media (max-width: 375px) {
  .site-header {
    padding-inline: 10px;
  }

  .brand img {
    width: 142px;
  }

  .workspace {
    padding-inline: 9px;
    padding-bottom: 24px;
  }

  .hero-panel,
  .tool-sidebar,
  .tool-panel,
  .result-panel,
  .remote-shell,
  .auth-main-card,
  .auth-side-card {
    border-radius: 20px;
  }

  #home .hero-actions .guest-link,
  #home .hero-actions .logged-home-link {
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  #home .hero-panel.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: auto;
    min-height: auto;
    gap: 18px;
    padding: clamp(22px, 3vw, 28px);
    border: 1px solid rgba(212, 169, 77, 0.24);
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(12, 19, 32, 0.96), rgba(8, 13, 23, 0.97)),
      rgba(8, 13, 23, 0.97);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    overflow: hidden;
  }

  #home .home-hero .hero-copy > .eyebrow,
  #home .home-hero .hero-copy > h1,
  #home .home-hero .hero-copy > p:not(.eyebrow),
  #home .home-visual-card,
  #home .home-copy-panel,
  #home .home-auth-actions.home-access-card {
    display: block;
  }

  #home .home-hero .hero-copy {
    max-width: 100%;
  }

  #home .home-hero .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 6vw, 4.35rem);
    line-height: 0.98;
  }

  #home .home-hero .hero-copy p:last-child {
    max-width: 34rem;
  }

  #home .hero-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
  }

  #home .hero-actions .guest-link,
  #home .hero-actions .logged-home-link {
    width: auto;
    min-width: min(100%, 244px);
    min-height: 56px;
    padding-inline: 24px;
  }

  #home .home-visual-card {
    min-height: clamp(340px, 46vw, 520px);
    border: 1px solid rgba(212, 169, 77, 0.2);
    border-radius: 28px;
    background:
      radial-gradient(circle at 28% 18%, rgba(55, 202, 255, 0.16), transparent 24%),
      linear-gradient(180deg, rgba(10, 16, 27, 0.12), rgba(10, 16, 27, 0.24)),
      url("/static/assets/layout-v2/home-cube.png") center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 42px rgba(0, 0, 0, 0.2);
  }

  #home .home-access {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    aspect-ratio: auto;
    min-height: auto;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid rgba(212, 169, 77, 0.22);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(14, 21, 34, 0.95), rgba(8, 13, 22, 0.97)),
      rgba(8, 13, 22, 0.97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    align-items: center;
  }

  #home .home-copy-panel,
  #home .home-auth-actions.home-access-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  #home .home-auth-actions.home-access-card {
    display: grid;
    place-items: center;
    min-height: 100%;
  }

  #home .home-auth-actions.home-access-card .home-access-copy,
  #home .home-auth-actions.home-access-card .home-access-buttons {
    display: none;
  }
}

@media (max-width: 1024px) {
  #home .hero-panel.home-hero {
    padding: 24px 22px;
  }

  #home .home-visual-card {
    min-height: 420px;
  }

  #home .home-access {
    grid-template-columns: 1fr;
    padding: 22px 22px 24px;
  }

  #home .home-auth-actions.home-access-card {
    justify-items: start;
  }
}

@media (max-width: 430px) {
  #home .hero-actions .guest-link,
  #home .hero-actions .logged-home-link {
    width: 100%;
    min-width: 0;
  }

  #home .home-visual-card {
    min-height: 264px;
  }

  #home .home-copy-panel h2 {
    font-size: clamp(1.9rem, 8.2vw, 2.4rem);
  }
}


