.performance-lite *,
.performance-ultra *,
html[data-performance-profile="lite"] *,
html[data-performance-profile="ultra"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.performance-lite .shell-sidebar,
html.performance-ultra .shell-sidebar,
html.performance-lite .shell-topbar,
html.performance-ultra .shell-topbar,
html.performance-lite .header,
html.performance-ultra .header,
html.performance-lite .panel,
html.performance-ultra .panel,
html.performance-lite .card,
html.performance-ultra .card,
html.performance-lite .kpi,
html.performance-ultra .kpi,
html.performance-lite .feedback-toast,
html.performance-ultra .feedback-toast,
html.performance-lite .modal-card,
html.performance-ultra .modal-card,
html.performance-lite .sheet,
html.performance-ultra .sheet,
html.performance-lite .legacy-list-row,
html.performance-ultra .legacy-list-row,
html.performance-lite .legacy-bar-row,
html.performance-ultra .legacy-bar-row,
html.performance-lite .astrip,
html.performance-ultra .astrip,
html.performance-lite .sidebar-toggle,
html.performance-ultra .sidebar-toggle,
html.performance-lite .sidebar-link,
html.performance-ultra .sidebar-link,
html.performance-lite .btn,
html.performance-ultra .btn,
html.performance-lite .fi,
html.performance-ultra .fi,
html.performance-lite .table-wrap,
html.performance-ultra .table-wrap,
html.performance-lite .chart-c,
html.performance-ultra .chart-c {
  backdrop-filter: none !important;
  box-shadow: none !important;
}

html.performance-lite .chart-tooltip,
html.performance-ultra .chart-tooltip {
  display: none !important;
}

html.performance-lite .shell-sidebar,
html.performance-lite .shell-topbar,
html.performance-lite .header,
html.performance-ultra .shell-sidebar,
html.performance-ultra .shell-topbar,
html.performance-ultra .header {
  background: var(--panel) !important;
}

html.performance-lite canvas,
html.performance-ultra canvas {
  image-rendering: auto;
}

html.performance-ultra .page-live {
  padding: 8px !important;
}

html.performance-ultra .panel-pad,
html.performance-ultra .card,
html.performance-ultra .stat-card {
  padding: 8px !important;
}

html.performance-ultra .fbar,
html.performance-ultra .action-group,
html.performance-ultra .summary-strip,
html.performance-ultra .chips {
  gap: 6px !important;
}

html.performance-ultra .page-subtitle,
html.performance-ultra .cell-sub,
html.performance-ultra .cell-note,
html.performance-ultra .stat-card .meta {
  font-size: 9px !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--bg);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.shell-sidebar {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  overscroll-behavior: contain;
}

.shell-sidebar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shell-sidebar-brand {
  min-width: 0;
  flex: 1;
}

.shell-sidebar-brand .logo {
  min-width: 0;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-toggle:hover {
  background: var(--panel-3);
}

.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-gutter: stable;
  overscroll-behavior-y: contain;
}

.feedback-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.feedback-toast {
  min-width: min(360px, calc(100vw - 36px));
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  pointer-events: auto;
  animation: feedback-pop-in 0.18s ease-out;
}

.feedback-toast.success {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line-strong));
}

.feedback-toast.error {
  border-color: color-mix(in srgb, var(--red) 38%, var(--line-strong));
}

.feedback-toast.yellow {
  border-color: color-mix(in srgb, var(--yellow) 42%, var(--line-strong));
}

.feedback-toast.blue {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong));
}

.feedback-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feedback-toast-copy {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-toast-close {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@keyframes feedback-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shell-sidebar-foot {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
}

.shell-session {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shell-content {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-topbar {
  position: sticky;
  top: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border-bottom: 1px solid var(--line);
}

.shell-topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shell-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  margin-left: auto;
}

.shell-page {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.shell-page-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-page-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
}

.shell-page-subtitle {
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.shell-overlay {
  display: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo meta"
    "nav nav";
  gap: 8px 14px;
  padding: clamp(8px, 1vw, 12px) clamp(10px, 1.15vw, 18px);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: fit-content;
  white-space: nowrap;
  color: var(--accent);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.logo-image {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  box-shadow: none;
}

.logo-text {
  display: block;
  font-weight: 800;
  line-height: 1;
}

.logo-subtitle {
  display: block;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.header-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-hdr {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-size: clamp(10px, 0.72vw, 11px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-hdr:hover {
  background: var(--panel-3);
}

.clock {
  min-width: 100px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: clamp(10px, 0.68vw, 11px);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  padding: 8px 0 3px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.sidebar-nav,
.header-nav,
.table-wrap,
.calendar-grid-shell,
.detail-modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(146, 164, 198, 0.6) rgba(255, 255, 255, 0.03);
}

.sidebar-nav::-webkit-scrollbar,
.header-nav::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.calendar-grid-shell::-webkit-scrollbar,
.detail-modal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sidebar-nav::-webkit-scrollbar-track,
.header-nav::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.calendar-grid-shell::-webkit-scrollbar-track,
.detail-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.header-nav::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.calendar-grid-shell::-webkit-scrollbar-thumb,
.detail-modal-body::-webkit-scrollbar-thumb {
  background: rgba(146, 164, 198, 0.55);
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.header-nav::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
.calendar-grid-shell::-webkit-scrollbar-thumb:hover,
.detail-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 164, 198, 0.8);
}

.sidebar-nav::-webkit-scrollbar-corner,
.header-nav::-webkit-scrollbar-corner,
.table-wrap::-webkit-scrollbar-corner,
.calendar-grid-shell::-webkit-scrollbar-corner,
.detail-modal-body::-webkit-scrollbar-corner {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-button,
.header-nav::-webkit-scrollbar-button,
.table-wrap::-webkit-scrollbar-button,
.calendar-grid-shell::-webkit-scrollbar-button,
.detail-modal-body::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.header-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.15s;
}

.sidebar-nav .nav-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  text-align: left;
}

.nav-btn-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  transition: all 0.15s ease;
}

.nav-btn-mark svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-btn.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(61, 126, 255, 0.94), rgba(20, 184, 166, 0.92));
  box-shadow: 0 14px 28px rgba(61, 126, 255, 0.22);
}

.nav-btn.active .nav-btn-mark {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.main {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.page-live {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(10px, 1.2vw, 16px);
}

.app-shell.sidebar-collapsed .shell-sidebar {
  padding-inline: 10px;
}

.app-shell.sidebar-collapsed .shell-sidebar-top {
  flex-direction: column;
  align-items: center;
}

.app-shell.sidebar-collapsed .shell-sidebar-brand {
  width: 100%;
}

.app-shell.sidebar-collapsed .shell-sidebar-brand .logo {
  justify-content: center;
}

.app-shell.sidebar-collapsed .shell-sidebar-brand .logo-stack,
.app-shell.sidebar-collapsed .nav-btn-label,
.app-shell.sidebar-collapsed .shell-session {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-nav .nav-btn {
  justify-content: center;
  padding-inline: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(61, 126, 255, 0.26), rgba(61, 126, 255, 0.08)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(61, 126, 255, 0.24);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark.is-logo {
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-mark.is-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  display: block;
}

.brand-mark span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.sh-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sh-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-subtitle {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.btn {
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: all 0.18s;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-secondary {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--panel-3);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  border-color: var(--line);
  color: var(--text-soft);
}

.btn-danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 48%, var(--line) 52%);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--red) 10%, transparent 90%);
  border-color: color-mix(in srgb, var(--red) 72%, var(--line) 28%);
}

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

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 8px;
  align-items: start;
}

.g23 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 12px;
}

.horimetros-top-grid {
  grid-template-columns: 1.5fr 2.5fr;
}

.horimetros-launch-wrap {
  max-height: 720px;
}

.g32 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
}

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

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

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

.panel,
.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border-radius: 14px;
}

.panel::before,
.stat-card::before {
  content: none;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.card-title {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-pad {
  padding: 12px;
}

.panel-title {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card {
  padding: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel-2);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card .value {
  margin-top: 5px;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.stat-card .meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
}

.stat-card.accent::before,
.stat-card.blue::before { background: var(--accent); }
.stat-card.green::before { background: var(--green); }
.stat-card.yellow::before { background: var(--yellow); }
.stat-card.red::before { background: var(--red); }
.stat-card.orange::before { background: var(--orange); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.teal::before { background: var(--teal); }

.stat-card.accent .value,
.stat-card.blue .value { color: var(--accent); }
.stat-card.green .value { color: var(--green); }
.stat-card.yellow .value { color: var(--yellow); }
.stat-card.red .value { color: var(--red); }

.kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel-2);
  box-shadow: var(--shadow-soft);
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
}

.kpi.blue::before { background: var(--accent); }
.kpi.green::before { background: var(--green); }
.kpi.yellow::before { background: var(--yellow); }
.kpi.red::before { background: var(--red); }
.kpi.purple::before { background: var(--purple); }
.kpi.teal::before { background: var(--teal); }
.kpi.orange::before { background: var(--orange); }

.kpi-label {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.kpi.blue .kpi-value { color: var(--accent); }
.kpi.green .kpi-value { color: var(--green); }
.kpi.yellow .kpi-value { color: var(--yellow); }
.kpi.red .kpi-value { color: var(--red); }
.kpi.purple .kpi-value { color: var(--purple); }
.kpi.teal .kpi-value { color: var(--teal); }
.kpi.orange .kpi-value { color: var(--orange); }

.kpi-sub {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.35;
}

.stack {
  display: grid;
  gap: 8px;
}

.list-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(210px, 1fr) minmax(180px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: 0.18s ease;
}

.list-row:hover {
  border-color: var(--accent);
  background: var(--panel-3);
}

.identity {
  min-width: 0;
}

.identity-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.identity-subtitle {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.identity-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  white-space: nowrap;
  line-height: 1.15;
}

.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge.green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge.yellow {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge.gray {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.badge.blue {
  background: rgba(61, 126, 255, 0.15);
  color: #93bbff;
}

[data-drilldown-id] {
  cursor: pointer;
}

.card[data-drilldown-id],
.kpi[data-drilldown-id],
.astrip[data-drilldown-id],
.legacy-list-row[data-drilldown-id] {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.card[data-drilldown-id]:hover,
.kpi[data-drilldown-id]:hover,
.astrip[data-drilldown-id]:hover,
.legacy-list-row[data-drilldown-id]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

[data-drilldown-id]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent 45%);
  outline-offset: 2px;
}

.table-wrap {
  overflow: auto;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(7, 11, 18, 0.18);
  scrollbar-gutter: stable;
}

.table-pagination {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.table-pagination-summary {
  color: var(--text-soft);
  font-size: 12px;
}

.table-pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.table-page-size select {
  min-width: 78px;
}

.table-page-indicator {
  min-width: 104px;
  text-align: center;
  color: var(--text-soft);
  font-size: 12px;
}

.os-table-wrap {
  overflow-x: auto;
}

.os-compact-table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

.os-compact-table th,
.os-compact-table td {
  padding: 7px 8px;
  vertical-align: top;
}

.os-compact-table th:nth-child(1),
.os-compact-table td:nth-child(1) {
  width: 7%;
}

.os-compact-table th:nth-child(2),
.os-compact-table td:nth-child(2) {
  width: 15%;
}

.os-compact-table th:nth-child(3),
.os-compact-table td:nth-child(3) {
  width: 23%;
}

.os-compact-table th:nth-child(4),
.os-compact-table td:nth-child(4) {
  width: 11%;
}

.os-compact-table th:nth-child(5),
.os-compact-table td:nth-child(5) {
  width: 10%;
}

.os-compact-table th:nth-child(6),
.os-compact-table td:nth-child(6) {
  width: 14%;
}

.os-compact-table th:nth-child(7),
.os-compact-table td:nth-child(7) {
  width: 8%;
}

.os-compact-table th:nth-child(8),
.os-compact-table td:nth-child(8) {
  width: 5%;
}

.os-compact-table th:nth-child(9),
.os-compact-table td:nth-child(9) {
  width: 7%;
}

.os-compact-table .cell-main,
.os-compact-table .cell-sub,
.os-compact-table td,
.os-compact-table th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-compact-table .cell-main {
  font-size: 11px;
}

.os-compact-table .cell-sub {
  font-size: 9px;
  line-height: 1.3;
}

.os-problem-cell .cell-main {
  line-height: 1.2;
}

.os-problem-cell .cell-sub {
  max-width: 100%;
}

.os-row-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.os-row-actions .btn {
  width: 100%;
  justify-content: center;
  min-width: 0;
  padding-inline: 8px;
}

.os-actions-cell {
  min-width: 0;
  white-space: normal;
}

table {
  width: max-content;
  border-collapse: collapse;
  min-width: 100%;
  font-size: 11.5px;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--panel);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  white-space: nowrap;
  line-height: 1.2;
}

td {
  font-size: 11.5px;
  color: var(--text);
  vertical-align: middle;
  line-height: 1.38;
}

tbody tr:hover td {
  background: var(--panel-2);
}

tbody tr[data-drilldown-id]:hover td {
  background: color-mix(in srgb, var(--accent) 8%, var(--panel-2));
}

tbody tr:last-child td {
  border-bottom: none;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  outline: none;
  transition: 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 126, 255, 0.12);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--teal) 14%, transparent), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    var(--bg);
}

.auth-card {
  width: min(1180px, 100%);
  min-height: min(780px, calc(100dvh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow:
    0 40px 80px rgba(3, 6, 11, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-copy {
  position: relative;
  padding: 52px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 16%, transparent), transparent 38%),
    radial-gradient(circle at bottom left, color-mix(in srgb, var(--green) 10%, transparent), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border-right: 1px solid var(--line);
}

.auth-copy-panel {
  width: min(100%, 560px);
  margin-inline: auto;
}

.auth-copy-kicker {
  margin-top: 28px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-copy h1 {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 44px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.auth-copy p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.62;
  max-width: 470px;
}

.auth-preview-card {
  margin-top: 28px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--teal) 10%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    color-mix(in srgb, var(--panel-2) 94%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.auth-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.auth-preview-kicker {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-preview-title {
  margin-top: 8px;
  max-width: 420px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.auth-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-preview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-preview-tile {
  min-height: 132px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  display: grid;
  align-content: start;
  gap: 10px;
}

.auth-preview-tile.is-accent {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    color-mix(in srgb, var(--panel) 88%, transparent);
  border-color: color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.05));
}

.auth-preview-tile-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-preview-tile strong {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.auth-preview-tile span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.auth-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    color-mix(in srgb, var(--panel-2) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-metric-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-metric-value {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-metric-note {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.auth-points {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  max-width: 500px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.auth-point::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}

.auth-module-cloud {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-module-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-module-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
}

.auth-form {
  padding: 42px 46px;
  display: grid;
  gap: 18px;
  align-items: center;
  align-content: center;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--teal) 10%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
    var(--panel-2);
}

.auth-form-panel {
  width: min(520px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-form-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-form-head p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 360px;
}

.auth-form-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.auth-form-strip-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 16%, transparent);
  flex-shrink: 0;
}

.auth-form .stack {
  gap: 12px;
}

.auth-form .field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-form .field input {
  min-height: 52px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
}

.auth-form .action-group {
  margin-top: 6px;
  gap: 10px;
}

.auth-form .btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-helper-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 22, 0.16);
}

.auth-helper-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 12px;
}

.auth-helper-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.auth-form-foot {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.status-inline {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.45;
  border: 1px solid rgba(234, 179, 8, 0.25);
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow);
}

.status-inline.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--red);
}

.status-inline.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--green);
}

.astrip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(234, 179, 8, 0.16);
  background: rgba(234, 179, 8, 0.06);
  color: var(--yellow);
  font-size: 9px;
  line-height: 1.45;
}

.astrip.red {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.16);
  color: var(--red);
}

.astrip.green {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.16);
  color: var(--green);
}

.astrip.blue {
  background: rgba(61, 126, 255, 0.06);
  border-color: rgba(61, 126, 255, 0.16);
  color: var(--accent);
}

.empty-state {
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 8px;
}

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

.toolbar-panel {
  display: grid;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.frota-toolbar-shell {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(22, 69, 56, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(34, 54, 46, 0.05);
}

.frota-toolbar-shell .toolbar-fields {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(180px, 0.7fr) minmax(220px, 0.9fr);
  gap: 10px;
  align-items: center;
}

.frota-toolbar-shell .field.compact {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: none;
}

.frota-toolbar-shell .field.compact label {
  display: block;
  color: #6a7c74;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.frota-toolbar-shell .field.compact input,
.frota-toolbar-shell .field.compact select {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f5faf7;
  border: 1px solid rgba(22, 69, 56, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}

.frota-toolbar-shell .field.compact select {
  appearance: auto;
  padding-right: 14px;
}

.frota-toolbar-shell .field.compact input::placeholder {
  color: #6f837b;
  opacity: 1;
}

.frota-toolbar-shell .field.compact input:focus,
.frota-toolbar-shell .field.compact select:focus {
  border-color: rgba(12, 123, 96, 0.42);
  box-shadow: 0 0 0 4px rgba(12, 123, 96, 0.12);
}

.toolbar-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar-panel .field.compact {
  min-width: 180px;
  flex: 1 1 180px;
}

.toolbar-panel .field.compact label {
  display: none;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.toolbar-panel .field.compact input,
.toolbar-panel .field.compact select {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.field--grow {
  grid-column: span 4;
}

.field--wide {
  grid-column: span 5;
  flex: 2 1 340px;
}

.field--medium {
  grid-column: span 3;
  flex: 1 1 220px;
}

.field--small {
  grid-column: span 2;
}

.summary-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.summary-chip strong {
  color: var(--text);
  font-weight: 800;
}

.summary-chip.warn {
  color: var(--yellow);
}

.summary-chip.danger {
  color: var(--red);
}

.summary-chip.success {
  color: var(--green);
}

.cell-main {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
}

.cell-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.cell-note {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.legacy-bars,
.legacy-stack-list,
.legacy-day-series,
.legacy-mini-stack,
.legacy-compare-list {
  display: grid;
  gap: 6px;
}

.legacy-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.legacy-bar-row:last-child,
.legacy-list-row:last-child,
.legacy-mini-row:last-child,
.legacy-day-row:last-child,
.legacy-compare-row:last-child {
  border-bottom: none;
}

.legacy-bar-copy {
  min-width: 170px;
}

.legacy-bar-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.legacy-bar-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.legacy-bar-area {
  flex: 1;
  min-width: 0;
}

.legacy-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.legacy-bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.legacy-bar-fill {
  height: 100%;
  min-width: 3%;
  border-radius: inherit;
}

.legacy-bar-value {
  min-width: 84px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.legacy-list-row,
.legacy-mini-row,
.legacy-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.legacy-list-main {
  flex: 1;
  min-width: 0;
}

.legacy-list-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.legacy-list-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

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

.dfu-chart-shell {
  display: grid;
  gap: 8px;
}

.dfu-chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dfu-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dfu-chart-swatch {
  width: 18px;
  height: 8px;
  border-radius: 999px;
}

.dfu-chart-swatch.is-df {
  background: rgba(61, 126, 255, 0.78);
}

.dfu-chart-swatch.is-uf {
  background: rgba(34, 197, 94, 0.78);
}

.dfu-chart-body {
  position: relative;
  min-height: 250px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(9, 14, 22, 0.28);
  overflow: hidden;
}

.dfu-chart-canvas {
  display: block;
  width: 100%;
  height: 250px;
}

.dfu-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
  pointer-events: none;
}

.fi-grow {
  flex: 1 1 260px;
  min-width: 260px;
}

.wide-scroll table {
  min-width: 1120px;
}

.toolbar-line-wrap {
  flex-wrap: wrap;
  align-items: center;
}

.panel-prev-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.panel-prev-table th,
.panel-prev-table td {
  padding: 18px 22px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel-prev-table th:nth-child(1),
.panel-prev-table td:nth-child(1) {
  width: 14%;
}

.panel-prev-table th:nth-child(2),
.panel-prev-table td:nth-child(2) {
  width: 12%;
}

.panel-prev-table th:nth-child(3),
.panel-prev-table td:nth-child(3) {
  width: 8%;
}

.panel-prev-table th:nth-child(4),
.panel-prev-table td:nth-child(4) {
  width: 8%;
}

.panel-prev-table th:nth-child(5),
.panel-prev-table td:nth-child(5) {
  width: 8%;
}

.panel-prev-table th:nth-child(6),
.panel-prev-table td:nth-child(6) {
  width: 8%;
}

.panel-prev-table th:nth-child(7),
.panel-prev-table td:nth-child(7) {
  width: 8%;
}

.panel-prev-table th:nth-child(8),
.panel-prev-table td:nth-child(8) {
  width: 8%;
}

.panel-prev-table th:nth-child(9),
.panel-prev-table td:nth-child(9) {
  width: 8%;
}

.panel-prev-table th:nth-child(10),
.panel-prev-table td:nth-child(10) {
  width: 10%;
}

.panel-prev-table th:nth-child(11),
.panel-prev-table td:nth-child(11) {
  width: 8%;
}

.panel-prev-table .cell-main {
  font-size: 10.5px;
  line-height: 1.15;
}

.equipment-cell-button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.equipment-cell-button:hover .cell-main,
.equipment-cell-button:focus-visible .cell-main {
  color: var(--accent);
}

.equipment-cell-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent 45%);
  outline-offset: 3px;
  border-radius: 8px;
}

.row-action-popover {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
}

.row-action-popover-card {
  position: fixed;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
}

.row-action-popover-title {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-action-popover-list {
  display: grid;
  gap: 6px;
}

.row-action-popover-list .btn {
  width: 100%;
  justify-content: flex-start;
}

.panel-prev-table .cell-sub {
  margin-top: 0;
  font-size: 8.5px;
  line-height: 1.12;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.panel-prev-table .chips {
  gap: 4px;
}

.panel-prev-table .badge {
  padding: 2px 6px;
  font-size: 9px;
}

.panel-prev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: start;
  justify-content: start;
  max-width: none;
}

.panel-prev-actions .btn {
  padding: 3px 7px;
  min-height: 22px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.panel-prev-actions .btn-sm {
  padding: 3px 7px;
}

.panel-prev-table td:nth-child(1),
.panel-prev-table td:nth-child(2) {
  min-width: 0;
}

.panel-prev-table td:nth-child(1) .cell-sub,
.panel-prev-table td:nth-child(2) .cell-sub,
.panel-prev-table td:nth-child(6) .cell-sub,
.panel-prev-table td:nth-child(7) .cell-sub,
.panel-prev-table td:nth-child(8) .cell-sub {
  white-space: nowrap;
}

.panel-prev-table tbody tr {
  height: auto;
}

.panel-prev-table .chips {
  align-items: flex-start;
}

.lub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.lub-card {
  padding: 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012)),
    rgba(9, 14, 22, 0.46);
}

.lub-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.lub-card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.lub-card-sub,
.lub-card-meta {
  font-size: 9px;
  color: var(--text-muted);
}

.lub-card-product {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

.lub-card-meta {
  margin-top: 2px;
}

.lub-card-kv {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.lub-kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.lub-kv-row span {
  color: var(--text-muted);
}

.lub-kv-row strong {
  color: var(--text-soft);
  font-size: 10px;
  text-align: right;
}

.lub-progress-copy {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--text-muted);
}

.lub-progress-track {
  margin-top: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lub-progress-fill {
  height: 100%;
  border-radius: inherit;
}

.cloud-grid,
.access-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.cloud-status-box,
.cloud-auth-box,
.access-box {
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 22, 0.36);
  display: grid;
  gap: 9px;
}

.cloud-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cloud-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cloud-online {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.cfg-kv-list {
  display: grid;
  gap: 7px;
}

.cfg-kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
}

.cfg-kv-row span {
  color: var(--text-muted);
}

.cfg-kv-row strong {
  color: var(--text-soft);
  text-align: right;
}

.cfg-break {
  word-break: break-all;
}

.cloud-note {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.5;
}

.access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 9px;
  color: var(--text-soft);
}

.access-chip.is-live {
  color: var(--accent);
  border-color: rgba(61, 126, 255, 0.16);
  background: rgba(61, 126, 255, 0.08);
}

.csv-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: start;
}

.config-fill-grid {
  align-items: stretch;
}

.config-fill-grid > .config-card {
  height: 100%;
}

.config-stacked-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  grid-auto-flow: dense;
  grid-auto-rows: min-content;
  align-items: start;
}

.config-card {
  display: grid;
  gap: 8px;
  align-self: start;
  align-content: start;
  min-height: 0;
}

.config-card-wide {
  width: 100%;
}

.config-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.config-card-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
}

.config-card-subtitle {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.config-card-list {
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(9, 14, 22, 0.3);
}

.config-nested-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.cfg-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(9, 14, 22, 0.3);
}

.cfg-kv-grid .cfg-kv-row {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-prefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.config-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.theme-preset-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-preset {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 18, 28, 0.38);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}

.theme-preset.is-active {
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.2), rgba(34, 197, 94, 0.1));
  border-color: rgba(61, 126, 255, 0.34);
  color: var(--text);
}

.fi-color {
  min-height: 42px;
  padding: 4px 6px;
  min-width: 0;
  width: 72px;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.config-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.config-color-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    rgba(9, 14, 22, 0.26);
}

.config-color-card label {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.config-color-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  overflow: hidden;
}

.config-color-row > * {
  min-width: 0;
}

.config-color-row .fi {
  min-width: 0;
  width: 100%;
}

.config-color-row .fi[type="text"] {
  text-transform: none;
  letter-spacing: 0.02em;
}

.fi-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.fi-color::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.config-accent-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.config-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: var(--swatch);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.config-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.config-swatch.is-active {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.14);
}

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

.config-logo-row .cloud-note {
  flex: 1 1 320px;
}

.config-brand-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 22, 0.36);
}

.config-preview-shell {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
      linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.008)),
      var(--preview-bg);
}

.config-preview-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: stretch;
  gap: 10px;
  background: var(--preview-panel);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.config-preview-top.is-compact {
  grid-template-columns: 1fr;
}

.config-preview-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.config-preview-panel {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: var(--preview-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--preview-text);
}

.config-preview-panel.is-alt {
  background: var(--preview-panel-2);
}

.config-preview-panel strong {
  font-size: 11px;
  line-height: 1.1;
}

.config-preview-panel span {
  color: var(--preview-text-2);
  font-size: 10px;
  line-height: 1.4;
}

.config-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-strong));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.config-brand-mark img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  display: block;
}

.config-brand-copy {
  min-width: 0;
}

.config-logo-preview {
  min-width: 0;
  min-height: 76px;
  width: 100%;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
}

.config-logo-preview img {
  width: 100%;
  height: 100%;
  max-height: 54px;
  object-fit: contain;
  display: block;
}

.config-brand-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.config-brand-title {
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.config-brand-sub {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.config-import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.config-import-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    rgba(9, 14, 22, 0.3);
}

.config-import-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

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

.config-import-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 10px;
  align-items: end;
}

.config-import-field {
  margin: 0;
}

.chart-c {
  position: relative;
  width: 100%;
  min-height: 160px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dashboard-kpi {
  min-height: 84px;
}

.dashboard-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.dashboard-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.dashboard-card {
  min-width: 0;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    rgba(12, 18, 28, 0.84);
}

.dashboard-card-chart {
  min-height: 272px;
}

.dashboard-card-table,
.dashboard-card-list {
  min-height: 164px;
}

.dashboard-card .chart-c,
.dashboard-card .table-wrap,
.dashboard-card .legacy-mini-stack,
.dashboard-card .legacy-stack-list,
.dashboard-card .empty {
  flex: 1;
  min-height: 0;
}

.dashboard-card .empty {
  display: grid;
  place-items: center;
  align-content: center;
}

.dashboard-card .card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-status-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.dashboard-status-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-status-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.dashboard-status-note {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.dashboard-card .table-wrap table {
  min-width: 0;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 132px;
  max-width: 190px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 14, 0.94);
  color: var(--text);
  font-size: 10px;
  line-height: 1.4;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip-title {
  margin-bottom: 5px;
  font-weight: 800;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.chart-tooltip-dot.is-line {
  background: var(--accent);
}

.chart-tooltip-dot.is-bar {
  background: var(--teal);
}

.batch-equip-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.batch-equip-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.016);
}

.batch-equip-row input {
  margin: 0;
}

.batch-equip-meta {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.legacy-mini-card {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
}

.legacy-mini-title {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legacy-day-label {
  min-width: 78px;
  font-size: 10px;
  color: var(--text-muted);
}

.legacy-day-bars {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.legacy-day-bar {
  display: grid;
  grid-template-columns: 34px 1fr 56px;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: var(--text-muted);
}

.legacy-day-bar-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legacy-day-bar-value {
  text-align: right;
  font-weight: 700;
}

.legacy-compare-row {
  display: grid;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.legacy-compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.legacy-compare-bars {
  display: grid;
  gap: 5px;
}

.legacy-compare-bar {
  display: grid;
  grid-template-columns: 28px 1fr 48px;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: var(--text-muted);
}

.legacy-note {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.detail-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.detail-summary-shell {
  display: grid;
  gap: 12px;
}

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

.detail-summary-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-summary-block {
  padding-bottom: 14px;
}

.equipment-history-page {
  display: grid;
  gap: 14px;
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
}

.detail-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.detail-subtitle {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0.02em;
}

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

.detail-meta-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-stat {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
}

.mini-stat .label {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-stat .value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

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

.detail-block {
  padding: 11px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01)),
    var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.detail-head > .detail-block:first-child {
  background:
    radial-gradient(circle at top right, rgba(61, 126, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01)),
    var(--panel);
}

.detail-block h3 {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-block .table-wrap {
  max-height: 260px;
}

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

.kv-item {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
}

.kv-item .k {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kv-item .v {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fi {
  min-width: 160px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 11px;
  outline: none;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fi:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    var(--panel-3);
}

.fi:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 126, 255, 0.12);
}

.fbar-minimal {
  gap: 7px;
  margin-bottom: 10px;
}

.frota-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.frota-filterbar > .fi:first-child {
  flex: 1.4 1 360px;
}

.frota-filterbar > .fi:not(:first-child):not(.fi-grow) {
  flex: 0 0 180px;
}

.frota-filterbar > .fi-grow {
  flex: 1 1 300px;
  min-width: 240px;
}

.suite-page {
  min-width: 0;
}

.suite-page-ops > :where(section, article, div) {
  margin-bottom: 0 !important;
}

.suite-page-ops > :where(section, article, div) + :where(section, article, div) {
  margin-top: 10px;
}

.suite-page-ops .sh {
  gap: 10px 14px;
  margin-bottom: 0;
}

.suite-page-ops .sh-title {
  font-size: 14px;
  letter-spacing: 0.06em;
}

.suite-page-ops .sh-sub {
  max-width: 760px;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.35;
}

.suite-page-ops .row-actions {
  gap: 7px;
}

.suite-page-ops .session-badge {
  min-height: 32px;
  padding-inline: 10px;
}

.suite-page-ops .fbar,
.suite-page-ops .fbar-minimal {
  gap: 8px;
  margin-bottom: 0;
}

.suite-page-ops .fi {
  min-height: 36px;
  padding-inline: 10px;
}

.suite-page-ops .fi-minimal {
  min-height: 36px;
}

.suite-page-ops .grid-4,
.suite-page-ops .dashboard-kpi-grid,
.suite-page-ops .dashboard-duo-grid {
  gap: 8px;
}

.suite-page-ops .card {
  padding: 12px;
  border-radius: 14px;
}

.suite-page-ops .card-title {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.suite-page-ops .kpi {
  min-height: 86px;
  padding: 10px 12px;
  border-radius: 12px;
}

.suite-page-ops .kpi-label {
  margin-bottom: 5px;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.suite-page-ops .kpi-value {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.suite-page-ops .kpi-value-currency {
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.suite-page-ops .kpi-sub {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.38;
}

.suite-page-ops .dashboard-card {
  min-height: 164px;
}

.suite-page-ops .dashboard-card-table,
.suite-page-ops .dashboard-card-list {
  min-height: 152px;
}

.suite-page-ops .table-wrap {
  border-radius: 11px;
}

.suite-page-ops table {
  font-size: 11px;
}

.suite-page-ops th,
.suite-page-ops td {
  padding: 7px 9px;
}

.suite-page-ops th {
  font-size: 9px;
  letter-spacing: 0.055em;
}

.suite-page-ops td {
  font-size: 11px;
  line-height: 1.34;
}

.suite-page-ops .cell-main {
  font-size: 11px;
  line-height: 1.22;
}

.suite-page-ops .cell-sub,
.suite-page-ops .cell-note {
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.32;
}

.suite-page-ops .table-pagination {
  margin-top: 10px;
  padding-top: 10px;
}

.suite-page-ops .table-pagination-summary,
.suite-page-ops .table-page-size,
.suite-page-ops .table-page-indicator {
  font-size: 11px;
}

.suite-page-ops .astrip {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 9px;
}

.suite-page-ops .legacy-bars,
.suite-page-ops .legacy-stack-list,
.suite-page-ops .legacy-mini-stack {
  gap: 5px;
}

.suite-page-ops .legacy-bar-row {
  padding: 5px 0;
}

.fi-minimal {
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-page-head {
  margin-bottom: 8px;
}

.calendar-summary-grid {
  gap: 6px;
}

.calendar-summary-grid .calendar-stat-card {
  min-height: 62px;
  padding: 7px 9px;
}

.calendar-summary-grid .calendar-stat-card .label {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.calendar-summary-grid .calendar-stat-card .value {
  margin-top: 3px;
  font-size: 16px;
}

.calendar-summary-grid .calendar-stat-card .meta {
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.3;
}

.calendar-main-panel {
  padding: 6px 6px 4px;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-view-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.calendar-view-label {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cal-nav-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.cal-month-label {
  min-width: 150px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.calendar-multi-filter {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 90%, var(--soft) 10%);
}

.calendar-multi-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-multi-filter-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.calendar-multi-filter-note {
  font-size: 11px;
  color: var(--text2);
}

.calendar-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-check-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.calendar-check-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line) 62%);
}

.calendar-check-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.calendar-check-chip span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-check-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel) 86%);
  color: var(--text);
}

.cal-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 9px;
}

.cal-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cal-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.cal-leg-dot.is-plan {
  background: #3b82f6;
}

.cal-leg-dot.is-real {
  background: #22c55e;
}

.cal-leg-dot.is-equipment {
  background: linear-gradient(135deg, #e7c84e, #62c9c5);
}

.cal-leg-dot.is-late {
  background: #ef4444;
}

.cal-focus-note {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-layout {
  display: block;
}

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

.calendar-pane {
  min-width: 0;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.calendar-pane-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
  text-align: center;
}

.calendar-pane-kicker {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calendar-pane-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.calendar-pane-sub,
.calendar-pane-note {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}

.calendar-grid-shell {
  overflow: auto;
  background: transparent;
}

.calendar-grid-shell.is-week .calendar-weekdays,
.calendar-grid-shell.is-week .calendar-days {
  min-width: 0;
}

.calendar-grid-shell.is-week .calendar-day {
  min-height: 106px;
}

.calendar-weekdays,
.calendar-days {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.calendar-weekday {
  padding: 2px 0;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-day {
  min-height: 94px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s;
}

.calendar-day:hover {
  border-color: var(--line-strong);
}

.calendar-day.is-outside {
  opacity: 0.35;
}

.calendar-day.is-selected {
  box-shadow: 0 0 0 1px rgba(61, 126, 255, 0.2);
}

.calendar-day.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 126, 255, 0.2);
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-number {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.calendar-day-count {
  display: none;
}

.calendar-day-body {
  display: grid;
  gap: 2px;
  align-content: start;
}

/* Ajuste aqui o visual base dos cards do calendario. */
.calendar-preview {
  --calendar-preview-solid-bg: var(--teal);
  display: grid;
  gap: 2px;
  padding: 4px 6px;
  min-height: 34px;
  border-radius: 6px;
  border: none;
  background: var(--calendar-preview-solid-bg);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  overflow: hidden;
  align-content: start;
  box-shadow: none;
}

.calendar-preview-title {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.calendar-preview-meta {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-preview.is-programado {
  --calendar-preview-solid-bg: var(--teal);
}

.calendar-preview.is-realizado {
  --calendar-preview-solid-bg: var(--green);
}

.calendar-preview.is-forecast {
  --calendar-preview-solid-bg: #3d7eff;
}

.calendar-preview.is-late {
  --calendar-preview-solid-bg: var(--red);
  outline: none;
}

.calendar-preview.is-today {
  transform: translateY(-1px);
}

.calendar-preview.is-more {
  color: #ffffff;
  text-align: center;
  background: var(--panel-3);
}

[data-theme-preset="traterra"] .calendar-pane {
  background: #ffffff;
  border-color: rgba(71, 88, 79, 0.14);
  box-shadow: 0 14px 30px rgba(72, 88, 79, 0.08);
}

[data-theme-preset="traterra"] .calendar-pane-head {
  gap: 3px;
  margin-bottom: 8px;
}

[data-theme-preset="traterra"] .calendar-pane-kicker {
  color: #6f7f77;
  font-size: 9px;
  letter-spacing: 0.14em;
}

[data-theme-preset="traterra"] .calendar-pane-title {
  color: #2d3a34;
  font-size: 18px;
  letter-spacing: 0.03em;
}

[data-theme-preset="traterra"] .calendar-pane-note,
[data-theme-preset="traterra"] .calendar-weekday,
[data-theme-preset="traterra"] .calendar-day-number,
[data-theme-preset="traterra"] .cal-focus-note,
[data-theme-preset="traterra"] .cal-legend {
  color: #8f9a95;
}

[data-theme-preset="traterra"] .calendar-day {
  background: #ffffff;
  border-color: rgba(90, 104, 96, 0.12);
  border-radius: 6px;
}

[data-theme-preset="traterra"] .calendar-day:hover {
  border-color: rgba(12, 123, 96, 0.24);
}

[data-theme-preset="traterra"] .calendar-day.is-outside {
  opacity: 1;
  background: #f3f4f1;
}

[data-theme-preset="traterra"] .calendar-day.is-selected,
[data-theme-preset="traterra"] .calendar-day.is-today {
  box-shadow: 0 0 0 1px rgba(12, 123, 96, 0.22);
}

[data-theme-preset="traterra"] .calendar-day-body {
  gap: 3px;
}

[data-theme-preset="traterra"] .calendar-preview {
  --calendar-preview-solid-bg: #0c7b60;
  min-height: 34px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--calendar-preview-solid-bg);
  color: #ffffff;
  box-shadow: none;
}

[data-theme-preset="traterra"] .calendar-preview-title {
  font-size: 12px;
  text-align: left;
  color: #ffffff;
}

[data-theme-preset="traterra"] .calendar-preview-meta {
  font-size: 9px;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
}

[data-theme-preset="traterra"] .calendar-preview.is-programado {
  --calendar-preview-solid-bg: #0c7b60;
}

[data-theme-preset="traterra"] .calendar-preview.is-realizado {
  --calendar-preview-solid-bg: #159a78;
}

[data-theme-preset="traterra"] .calendar-preview.is-forecast {
  --calendar-preview-solid-bg: #3d7eff;
}

[data-theme-preset="traterra"] .calendar-preview.is-late {
  --calendar-preview-solid-bg: #c86840;
}

[data-theme-preset="traterra"] .calendar-preview.is-late {
  outline: 2px solid rgba(200, 104, 64, 0.72);
  outline-offset: -2px;
}

.agenda-test-page {
  display: grid;
  gap: 14px;
}

.agenda-test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.agenda-test-calendar-panel,
.agenda-test-side-panel {
  min-width: 0;
}

.agenda-test-side-panel {
  position: sticky;
  top: 84px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  max-height: calc(100vh - 118px);
  overflow: hidden;
}

.agenda-test-side-search {
  margin-bottom: 0;
}

.agenda-test-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.agenda-test-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agenda-test-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.agenda-test-grid-head,
.agenda-test-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.agenda-test-grid-head {
  margin-bottom: 6px;
}

.agenda-test-grid-head span {
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.agenda-test-grid {
  align-items: stretch;
}

.agenda-test-day {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 128px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(90, 104, 96, 0.12);
  background: #ffffff;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.agenda-test-day:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 123, 96, 0.24);
}

.agenda-test-day.is-drop-target {
  border-color: rgba(200, 104, 64, 0.72);
  box-shadow: 0 0 0 2px rgba(200, 104, 64, 0.18);
}

.agenda-test-day.is-selected,
.agenda-test-day.is-today {
  box-shadow: 0 0 0 1px rgba(12, 123, 96, 0.22);
}

.agenda-test-day.is-outside {
  background: #f3f4f1;
  opacity: 0.5;
}

.agenda-test-day.is-light {
  background: linear-gradient(180deg, rgba(12, 123, 96, 0.03), #ffffff 42%);
}

.agenda-test-day.is-medium {
  background: linear-gradient(180deg, rgba(61, 126, 255, 0.06), #ffffff 42%);
}

.agenda-test-day.is-heavy {
  background: linear-gradient(180deg, rgba(200, 104, 64, 0.08), #ffffff 42%);
}

.agenda-test-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agenda-test-day-number {
  color: #53645d;
  font-size: 13px;
  font-weight: 900;
}

.agenda-test-day-count {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(12, 123, 96, 0.1);
  color: #0c7b60;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.agenda-test-day-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}

.agenda-test-day-body {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

.agenda-test-calendar-preview {
  width: 100%;
}

.agenda-test-day-chip,
.agenda-test-day-more,
.agenda-test-day-empty {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.agenda-test-day-chip {
  background: rgba(12, 123, 96, 0.11);
  color: #0c7b60;
}

.agenda-test-day-chip.is-forecast {
  background: rgba(61, 126, 255, 0.12);
  color: #3d7eff;
}

.agenda-test-day-chip.is-staged {
  background: rgba(200, 104, 64, 0.14);
  color: #c86840;
}

.agenda-test-day-more {
  background: rgba(61, 126, 255, 0.1);
  color: #3d7eff;
}

.agenda-test-day-empty {
  color: var(--text-muted);
  background: rgba(223, 232, 226, 0.6);
}

.agenda-test-selected-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(12, 123, 96, 0.12);
  background: rgba(12, 123, 96, 0.04);
}

.agenda-test-selected-strip strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.agenda-test-selected-strip span {
  color: var(--text2);
  font-size: 10px;
}

.agenda-test-selected-note {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.agenda-test-queue {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  align-content: start;
}

.agenda-test-queue::-webkit-scrollbar {
  width: 8px;
}

.agenda-test-queue::-webkit-scrollbar-thumb {
  background: rgba(90, 104, 96, 0.22);
  border-radius: 999px;
}

.agenda-test-queue::-webkit-scrollbar-track {
  background: transparent;
}

.agenda-test-card {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(90, 104, 96, 0.12);
  background: #ffffff;
  cursor: grab;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.agenda-test-card:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 123, 96, 0.24);
}

.agenda-test-card.is-dragging {
  opacity: 0.72;
  cursor: grabbing;
}

.agenda-test-card.is-staged {
  border-color: rgba(200, 104, 64, 0.48);
  background: linear-gradient(180deg, rgba(200, 104, 64, 0.06), #ffffff 42%);
}

.agenda-test-card-head,
.agenda-test-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agenda-test-card-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agenda-test-card-sub {
  margin-top: 2px;
  color: var(--text2);
  font-size: 10px;
  font-weight: 700;
}

.agenda-test-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.agenda-test-card-metric {
  display: grid;
  gap: 2px;
  padding: 5px 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(90, 104, 96, 0.1);
}

.agenda-test-card-metric span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agenda-test-card-metric strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.agenda-test-card-note {
  color: var(--text2);
  font-size: 10px;
  font-weight: 700;
}

.agenda-test-empty {
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(90, 104, 96, 0.24);
  background: rgba(223, 232, 226, 0.22);
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

[data-theme-preset="traterra"] .agenda-test-day {
  background: #ffffff;
}

@media (max-width: 1180px) {
  .agenda-test-layout {
    grid-template-columns: 1fr;
  }

  .agenda-test-side-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .agenda-test-day {
    min-height: 112px;
  }

  .agenda-test-selected-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .agenda-test-selected-note {
    margin-left: 0;
    text-align: left;
  }

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

  .agenda-test-card-head,
  .agenda-test-card-foot {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .agenda-test-panel-head {
    flex-direction: column;
  }

  .agenda-test-grid-head,
  .agenda-test-grid {
    gap: 4px;
  }

  .agenda-test-day {
    min-height: 96px;
    padding: 8px;
  }
}

.calendar-item-card {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    var(--panel-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.detail-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 24px 24px;
  background: rgba(4, 8, 14, 0.46);
  backdrop-filter: blur(5px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.detail-modal {
  width: min(1240px, 100%);
  max-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012)),
    #19212e;
  box-shadow: 0 28px 72px rgba(2, 6, 14, 0.4);
}

.detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
}

.detail-modal-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.detail-modal-subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
  overscroll-behavior: contain;
}

body.detail-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.detail-modal .detail-shell {
  gap: 18px;
}

.detail-modal .detail-title {
  font-size: 26px;
}

.detail-modal .detail-block {
  border-radius: 14px;
  padding: 14px;
}

.detail-modal .detail-head > .detail-block:first-child {
  background:
      linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
      #232b38;
}

.equipment-history-page .detail-block .table-wrap {
  max-height: 320px;
}

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

.detail-modal .detail-head .row-actions [data-action="fechar-ficha"] {
  display: none;
}

.detail-modal [data-action="fechar-ficha"] {
  white-space: nowrap;
}

.record-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px 18px;
  background: rgba(4, 8, 14, 0.48);
  backdrop-filter: blur(4px);
}

.record-editor-card {
  width: min(1060px, 100%);
  max-height: calc(100vh - 46px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    #18202b;
  box-shadow: 0 28px 72px rgba(2, 6, 14, 0.42);
}

.record-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.record-editor-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.record-editor-subtitle {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.record-editor-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  overflow: auto;
}

.record-editor-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.record-editor-tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(19, 27, 42, 0.72);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}

.record-editor-tab.is-active {
  border-color: rgba(61, 126, 255, 0.42);
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.22), rgba(34, 197, 94, 0.12));
  color: var(--text);
}

.record-editor-groups {
  display: grid;
  gap: 12px;
}

.record-editor-group {
  display: none;
}

.record-editor-group.is-active {
  display: block;
}

.record-editor-note {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

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

.record-editor-section {
  grid-column: 1 / -1;
  padding-top: 4px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-editor-grid .field.is-wide {
  grid-column: 1 / -1;
}

.record-editor-grid .field textarea {
  min-height: 104px;
}

.record-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.record-editor-meta {
  color: var(--text-muted);
  font-size: 10px;
}

.request-builder-card {
  width: min(1180px, 100%);
}

.request-builder-shell {
  display: grid;
  gap: 14px;
}

.request-builder-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(10, 15, 24, 0.24);
}

.request-builder-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.request-builder-section-title {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-builder-section-caption {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.request-builder-items {
  display: grid;
  gap: 10px;
}

.request-builder-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.018);
}

.request-builder-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.request-builder-item-title {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.request-builder-item-meta {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.request-builder-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr 1fr;
  gap: 10px;
}

.shell-boot-card {
  background:
    radial-gradient(circle at top left, rgba(61, 126, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.014)),
    var(--panel);
}

html[data-theme-preset="traterra"] body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 241, 0.98)),
    #f3f6f1;
  color: #1d342d;
}

html[data-theme-preset="traterra"] body::before {
  background:
    radial-gradient(circle at top left, rgba(0, 107, 84, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

html[data-theme-preset="traterra"] .header {
  padding: 18px 24px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(22, 69, 56, 0.08);
  box-shadow: 0 16px 36px rgba(34, 54, 46, 0.08);
  backdrop-filter: blur(18px);
}

html[data-theme-preset="traterra"] .shell-sidebar {
  background: linear-gradient(180deg, #ffffff, #f7faf7);
  border-right: 1px solid rgba(22, 69, 56, 0.08);
  box-shadow: 12px 0 30px rgba(34, 54, 46, 0.05);
}

html[data-theme-preset="traterra"] .shell-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(22, 69, 56, 0.08);
  box-shadow: 0 10px 24px rgba(34, 54, 46, 0.04);
}

html[data-theme-preset="traterra"] .logo {
  color: #006b54;
}

html[data-theme-preset="traterra"] .logo-image {
  background: transparent;
  box-shadow: none;
}

html[data-theme-preset="traterra"] .logo-text {
  color: #0f4d3d;
}

html[data-theme-preset="traterra"] .logo-subtitle {
  color: #60736c;
}

html[data-theme-preset="traterra"] .clock {
  color: #6a7c74;
}

html[data-theme-preset="traterra"] .btn-hdr {
  background: #ffffff;
  border-color: rgba(22, 69, 56, 0.12);
  color: #23473b;
  box-shadow: none;
}

html[data-theme-preset="traterra"] .btn-hdr:hover {
  background: #f4f8f5;
  border-color: rgba(0, 107, 84, 0.18);
}

html[data-theme-preset="traterra"] .sidebar-toggle {
  background: #ffffff;
  border-color: rgba(22, 69, 56, 0.12);
  color: #23473b;
  box-shadow: 0 4px 10px rgba(34, 54, 46, 0.04);
}

html[data-theme-preset="traterra"] .sidebar-toggle:hover {
  background: #eef6f2;
}

html[data-theme-preset="traterra"] .shell-page-kicker {
  color: #0b6e56;
}

html[data-theme-preset="traterra"] .shell-page-title {
  color: #17372f;
}

html[data-theme-preset="traterra"] .shell-page-subtitle,
html[data-theme-preset="traterra"] .shell-session {
  color: #6a7c74;
}

html[data-theme-preset="traterra"] .header-nav {
  padding-top: 12px;
  border-top: 1px solid rgba(22, 69, 56, 0.08);
  scrollbar-color: rgba(22, 69, 56, 0.3) rgba(0, 0, 0, 0);
}

html[data-theme-preset="traterra"] body,
html[data-theme-preset="traterra"] .app-shell,
html[data-theme-preset="traterra"] .main {
  background: #f4f6f1;
  color: #21382f;
}

html[data-theme-preset="traterra"] .header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom-color: rgba(22, 69, 56, 0.08);
  box-shadow: 0 8px 28px rgba(34, 54, 46, 0.06);
}

html[data-theme-preset="traterra"] .logo {
  color: #0b6e56;
}

html[data-theme-preset="traterra"] .logo-image {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme-preset="traterra"] .logo-text {
  color: #0b6e56;
  font-size: 15px;
  letter-spacing: -0.02em;
}

html[data-theme-preset="traterra"] .logo-subtitle {
  color: #506861;
}

html[data-theme-preset="traterra"] .sidebar-nav::-webkit-scrollbar-track,
html[data-theme-preset="traterra"] .header-nav::-webkit-scrollbar-track,
html[data-theme-preset="traterra"] .table-wrap::-webkit-scrollbar-track,
html[data-theme-preset="traterra"] .calendar-grid-shell::-webkit-scrollbar-track,
html[data-theme-preset="traterra"] .detail-modal-body::-webkit-scrollbar-track {
  background: rgba(22, 69, 56, 0.05);
}

html[data-theme-preset="traterra"] .sidebar-nav::-webkit-scrollbar-thumb,
html[data-theme-preset="traterra"] .header-nav::-webkit-scrollbar-thumb,
html[data-theme-preset="traterra"] .table-wrap::-webkit-scrollbar-thumb,
html[data-theme-preset="traterra"] .calendar-grid-shell::-webkit-scrollbar-thumb,
html[data-theme-preset="traterra"] .detail-modal-body::-webkit-scrollbar-thumb {
  background: rgba(22, 69, 56, 0.22);
}

html[data-theme-preset="traterra"] .nav-btn {
  padding: 10px 12px;
  border-radius: 12px;
  color: #587069;
  font-size: 10px;
  letter-spacing: 0.02em;
  background: transparent;
  border-color: transparent;
}

html[data-theme-preset="traterra"] .nav-btn-mark {
  background: #edf4f0;
  color: #0c7459;
  border: 1px solid rgba(22, 69, 56, 0.06);
}

html[data-theme-preset="traterra"] .nav-btn:hover {
  background: #f5f9f6;
  border-color: rgba(22, 69, 56, 0.12);
  color: #214638;
  transform: none;
}

html[data-theme-preset="traterra"] .nav-btn.active {
  background: #006b54;
  border-color: #006b54;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 107, 84, 0.18);
}

html[data-theme-preset="traterra"] .nav-btn.active .nav-btn-mark {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme-preset="traterra"] .page-live {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 22px 24px 40px;
}

html[data-theme-preset="traterra"] .sh-title,
html[data-theme-preset="traterra"] .page-title,
html[data-theme-preset="traterra"] .panel-title,
html[data-theme-preset="traterra"] .card-title,
html[data-theme-preset="traterra"] .config-card-title {
  color: #21392f;
  text-transform: none;
  letter-spacing: -0.02em;
}

html[data-theme-preset="traterra"] .page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

html[data-theme-preset="traterra"] .sh-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[data-theme-preset="traterra"] .sh-sub,
html[data-theme-preset="traterra"] .page-subtitle,
html[data-theme-preset="traterra"] .config-card-subtitle,
html[data-theme-preset="traterra"] .panel-subtitle,
html[data-theme-preset="traterra"] .status-inline,
html[data-theme-preset="traterra"] .cell-sub,
html[data-theme-preset="traterra"] .cell-note,
html[data-theme-preset="traterra"] .kpi-sub,
html[data-theme-preset="traterra"] .meta,
html[data-theme-preset="traterra"] .legacy-list-meta,
html[data-theme-preset="traterra"] .legacy-bar-meta,
html[data-theme-preset="traterra"] .identity-subtitle,
html[data-theme-preset="traterra"] .identity-meta {
  color: #73837d;
  text-transform: none;
  letter-spacing: 0;
}

html[data-theme-preset="traterra"] .page-subtitle,
html[data-theme-preset="traterra"] .sh-sub {
  font-size: 13px;
  line-height: 1.45;
}

html[data-theme-preset="traterra"] .panel,
html[data-theme-preset="traterra"] .card,
html[data-theme-preset="traterra"] .stat-card,
html[data-theme-preset="traterra"] .kpi,
html[data-theme-preset="traterra"] .list-row,
html[data-theme-preset="traterra"] .dashboard-card,
html[data-theme-preset="traterra"] .config-card-list,
html[data-theme-preset="traterra"] .cfg-kv-grid,
html[data-theme-preset="traterra"] .config-color-card,
html[data-theme-preset="traterra"] .request-builder-section,
html[data-theme-preset="traterra"] .request-builder-item,
html[data-theme-preset="traterra"] .legacy-mini-card,
html[data-theme-preset="traterra"] .detail-modal,
html[data-theme-preset="traterra"] .record-editor-card {
  background: #ffffff;
  border-color: rgba(22, 69, 56, 0.08);
  box-shadow: 0 16px 32px rgba(34, 54, 46, 0.07);
  border-radius: 18px;
}

html[data-theme-preset="traterra"] .card,
html[data-theme-preset="traterra"] .dashboard-card,
html[data-theme-preset="traterra"] .config-card-list,
html[data-theme-preset="traterra"] .cfg-kv-grid,
html[data-theme-preset="traterra"] .config-color-card,
html[data-theme-preset="traterra"] .request-builder-section,
html[data-theme-preset="traterra"] .request-builder-item,
html[data-theme-preset="traterra"] .legacy-mini-card {
  box-shadow: 0 8px 20px rgba(34, 54, 46, 0.06);
}

html[data-theme-preset="traterra"] .panel {
  background: #ffffff;
}

html[data-theme-preset="traterra"] .panel-pad,
html[data-theme-preset="traterra"] .dashboard-card {
  padding: 16px;
}

html[data-theme-preset="traterra"] .toolbar-panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme-preset="traterra"] .frota-toolbar-shell {
  background: #ffffff;
  border: 1px solid rgba(22, 69, 56, 0.08);
  box-shadow: 0 10px 26px rgba(34, 54, 46, 0.05);
}

html[data-theme-preset="traterra"] .frota-toolbar-shell .field.compact input,
html[data-theme-preset="traterra"] .frota-toolbar-shell .field.compact select {
  background: #f5faf7;
  border: 1px solid rgba(22, 69, 56, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme-preset="traterra"] .panel-grid {
  gap: 14px;
}

html[data-theme-preset="traterra"] .table-wrap {
  border-color: rgba(22, 69, 56, 0.08);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 18px;
}

html[data-theme-preset="traterra"] th {
  background: #f8fbf8;
  color: #73837d;
  border-bottom-color: rgba(22, 69, 56, 0.08);
  font-size: 10px;
  letter-spacing: 0.02em;
}

html[data-theme-preset="traterra"] td {
  color: #1f382f;
  border-bottom-color: rgba(22, 69, 56, 0.06);
  background: #ffffff;
}

html[data-theme-preset="traterra"] tbody tr:hover td {
  background: #f7faf7;
}

html[data-theme-preset="traterra"] .fi,
html[data-theme-preset="traterra"] .field input,
html[data-theme-preset="traterra"] .field select,
html[data-theme-preset="traterra"] .field textarea,
html[data-theme-preset="traterra"] .theme-preset,
html[data-theme-preset="traterra"] .session-badge,
html[data-theme-preset="traterra"] .calendar-view-box,
html[data-theme-preset="traterra"] .config-color-row .fi[type="text"] {
  background: #ffffff;
  border-color: rgba(22, 69, 56, 0.12);
  color: #23473b;
  box-shadow: none;
  text-transform: none;
}

html[data-theme-preset="traterra"] .fi:hover,
html[data-theme-preset="traterra"] .field input:hover,
html[data-theme-preset="traterra"] .field select:hover,
html[data-theme-preset="traterra"] .field textarea:hover {
  background: #f7faf7;
}

html[data-theme-preset="traterra"] .fi:focus,
html[data-theme-preset="traterra"] .field input:focus,
html[data-theme-preset="traterra"] .field select:focus,
html[data-theme-preset="traterra"] .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 107, 84, 0.12);
}

html[data-theme-preset="traterra"] .field input,
html[data-theme-preset="traterra"] .field select,
html[data-theme-preset="traterra"] .field textarea {
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 14px;
  text-transform: none;
  letter-spacing: 0;
}

html[data-theme-preset="traterra"] .field label,
html[data-theme-preset="traterra"] .kpi-label,
html[data-theme-preset="traterra"] .stat-card .label,
html[data-theme-preset="traterra"] .config-color-card label {
  color: #70837a;
}

html[data-theme-preset="traterra"] .btn-primary {
  background: #006b54;
  box-shadow: 0 12px 24px rgba(0, 107, 84, 0.14);
}

html[data-theme-preset="traterra"] .btn-primary:hover {
  background: #00513f;
}

html[data-theme-preset="traterra"] .btn-secondary,
html[data-theme-preset="traterra"] .btn-ghost {
  background: #f7faf7;
  border-color: rgba(22, 69, 56, 0.12);
  color: #23473b;
}

html[data-theme-preset="traterra"] .btn-secondary:hover,
html[data-theme-preset="traterra"] .btn-ghost:hover {
  background: #eef6f2;
}

html[data-theme-preset="traterra"] .btn-hdr,
html[data-theme-preset="traterra"] .session-badge,
html[data-theme-preset="traterra"] .summary-chip {
  background: #ffffff;
  border-color: rgba(22, 69, 56, 0.10);
  color: #436159;
  box-shadow: 0 4px 10px rgba(34, 54, 46, 0.04);
}

html[data-theme-preset="traterra"] .kpi {
  background: #ffffff;
  border-color: rgba(22, 69, 56, 0.09);
  box-shadow: 0 8px 20px rgba(34, 54, 46, 0.06);
}

html[data-theme-preset="traterra"] .kpi-label {
  color: #70837a;
}

html[data-theme-preset="traterra"] .kpi-value {
  color: #14392f;
}

html[data-theme-preset="traterra"] .kpi-sub {
  color: #70837a;
}

html[data-theme-preset="traterra"] .summary-chip strong,
html[data-theme-preset="traterra"] .session-badge strong {
  color: #14392f;
}

html[data-theme-preset="traterra"] .config-card-title,
html[data-theme-preset="traterra"] .card-title {
  color: #173b30;
}

html[data-theme-preset="traterra"] .config-card-subtitle,
html[data-theme-preset="traterra"] .cloud-note,
html[data-theme-preset="traterra"] .cfg-kv-row span,
html[data-theme-preset="traterra"] .cell-sub,
html[data-theme-preset="traterra"] .cell-note,
html[data-theme-preset="traterra"] .meta {
  color: #62756d;
}

html[data-theme-preset="traterra"] .cfg-kv-row strong,
html[data-theme-preset="traterra"] .cell-main {
  color: #14392f;
}

html[data-theme-preset="traterra"] .cloud-status-box,
html[data-theme-preset="traterra"] .cloud-auth-box {
  background: #f8fbf8;
  border-color: rgba(22, 69, 56, 0.10);
}

html[data-theme-preset="traterra"] .cloud-badge {
  background: #eef8f3;
  border-color: rgba(17, 137, 93, 0.16);
  color: #11895d;
}

html[data-theme-preset="traterra"] .record-editor-tab {
  background: #edf2ee;
  border-color: rgba(22, 69, 56, 0.10);
  color: #5c7068;
}

html[data-theme-preset="traterra"] .record-editor-tab.is-active {
  background: #ffffff;
  border-color: rgba(0, 107, 84, 0.22);
  color: #14392f;
  box-shadow: 0 8px 16px rgba(34, 54, 46, 0.08);
}

html[data-theme-preset="traterra"] .dfu-chart-body {
  background: #fbfcfa;
  border-color: rgba(22, 69, 56, 0.10);
}

html[data-theme-preset="traterra"] .dfu-chart-empty {
  color: #5e7269;
  font-size: 12px;
  font-weight: 600;
}

html[data-theme-preset="traterra"] .status-inline {
  font-size: 11px;
  line-height: 1.5;
  background: #fff9e9;
  border-color: rgba(189, 146, 37, 0.16);
  color: #8c6a17;
}

html[data-theme-preset="traterra"] .status-inline.success {
  background: #eef9f2;
  border-color: rgba(17, 137, 93, 0.18);
  color: #11895d;
}

html[data-theme-preset="traterra"] .status-inline.error {
  background: #fbf1ef;
  border-color: rgba(207, 100, 83, 0.18);
  color: #b65042;
}

html[data-theme-preset="traterra"] .stat-card {
  min-height: 118px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 18px;
}

html[data-theme-preset="traterra"] .stat-card::before {
  height: 3px;
}

html[data-theme-preset="traterra"] .stat-card .label {
  font-size: 10px;
}

html[data-theme-preset="traterra"] .stat-card .value {
  margin-top: 10px;
  font-size: 30px;
}

html[data-theme-preset="traterra"] .stat-card .meta {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
}

html[data-theme-preset="traterra"] .badge.blue {
  background: rgba(50, 110, 255, 0.14);
  color: #2f6dff;
}

html[data-theme-preset="traterra"] .badge.green {
  background: rgba(17, 137, 93, 0.12);
  color: #11895d;
}

html[data-theme-preset="traterra"] .badge.yellow {
  background: rgba(189, 146, 37, 0.14);
  color: #a47d1f;
}

html[data-theme-preset="traterra"] .badge.red {
  background: rgba(207, 100, 83, 0.12);
  color: #b65042;
}

html[data-theme-preset="traterra"] .badge.gray {
  background: #edf2ee;
  color: #60736c;
}

html[data-theme-preset="traterra"] .astrip {
  background: #f7faf7;
  border-color: rgba(189, 146, 37, 0.16);
  color: #9d7b23;
}

html[data-theme-preset="traterra"] .astrip.green {
  background: #eff8f3;
  border-color: rgba(17, 137, 93, 0.18);
  color: #11895d;
}

html[data-theme-preset="traterra"] .astrip.red {
  background: #fbf1ef;
  border-color: rgba(207, 100, 83, 0.18);
  color: #c75e4e;
}

html[data-theme-preset="traterra"] .astrip.blue {
  background: #eef5f3;
  border-color: rgba(0, 107, 84, 0.16);
  color: #0c7459;
}

html[data-theme-preset="traterra"] .legacy-bar-track {
  background: #edf2ee;
}

html[data-theme-preset="traterra"] .legacy-list-row,
html[data-theme-preset="traterra"] .legacy-bar-row {
  border-bottom-color: rgba(22, 69, 56, 0.08);
}

html[data-theme-preset="traterra"] .dashboard-card .empty,
html[data-theme-preset="traterra"] .empty,
html[data-theme-preset="traterra"] .empty-state {
  color: #7b8c85;
}

html[data-theme-preset="traterra"] .chart-tooltip {
  border-color: rgba(22, 69, 56, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: #1f382f;
  box-shadow: 0 14px 30px rgba(34, 54, 46, 0.12);
}

html[data-theme-preset="traterra"] .auth-shell {
  background:
    radial-gradient(circle at top left, rgba(0, 107, 84, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 241, 0.98)),
    #f3f6f1;
}

html[data-theme-preset="traterra"] .auth-card {
  border-color: rgba(22, 69, 56, 0.08);
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(34, 54, 46, 0.10);
}

html[data-theme-preset="traterra"] .auth-copy {
  background:
    linear-gradient(180deg, rgba(239, 247, 243, 0.96), rgba(247, 250, 247, 0.98)),
    #f4f8f5;
  border-right-color: rgba(22, 69, 56, 0.08);
}

html[data-theme-preset="traterra"] .auth-copy-kicker,
html[data-theme-preset="traterra"] .brand-kicker {
  color: #0b7f62;
}

html[data-theme-preset="traterra"] .auth-copy h1,
html[data-theme-preset="traterra"] .auth-form-head h2,
html[data-theme-preset="traterra"] .auth-helper-title {
  color: #1c342c;
}

html[data-theme-preset="traterra"] .auth-copy p,
html[data-theme-preset="traterra"] .auth-form-head p,
html[data-theme-preset="traterra"] .auth-point,
html[data-theme-preset="traterra"] .auth-form-foot,
html[data-theme-preset="traterra"] .auth-helper-row span {
  color: #62736c;
}

html[data-theme-preset="traterra"] .auth-form-strip,
html[data-theme-preset="traterra"] .auth-helper-card,
html[data-theme-preset="traterra"] .auth-point {
  background: #f7faf7;
  border-color: rgba(22, 69, 56, 0.08);
  box-shadow: none;
}

html[data-theme-preset="traterra"] .auth-form-strip-dot,
html[data-theme-preset="traterra"] .session-dot {
  background: #11895d;
}

html[data-theme-preset="traterra"] .config-swatch {
  border-color: rgba(22, 69, 56, 0.14);
}

html[data-theme-preset="traterra"] .theme-preset {
  background: #f5f8f5;
  border-color: rgba(22, 69, 56, 0.10);
  color: #62736c;
}

html[data-theme-preset="traterra"] .theme-preset.is-active {
  background: rgba(0, 107, 84, 0.10);
  border-color: rgba(0, 107, 84, 0.18);
  color: #0b7458;
}

html[data-theme-preset="traterra"] .record-editor-card {
  background: #ffffff;
}

html[data-theme-preset="traterra"] .record-editor-head {
  border-bottom-color: rgba(22, 69, 56, 0.08);
}

html[data-theme-preset="traterra"] .record-editor-title,
html[data-theme-preset="traterra"] .record-editor-subtitle,
html[data-theme-preset="traterra"] .record-editor-note,
html[data-theme-preset="traterra"] .record-editor-meta {
  color: #63736d;
}

html[data-theme-preset="traterra"] .record-editor-title {
  color: #1f382f;
}

.schedule-mini-shell {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, var(--soft) 12%);
}

.schedule-mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.schedule-mini-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.schedule-mini-note {
  font-size: 11px;
  color: var(--text2);
}

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

.schedule-mini-month {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.schedule-mini-month-head {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.schedule-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.schedule-mini-weekdays span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text2);
  text-align: center;
}

.schedule-mini-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.schedule-mini-day {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.schedule-mini-day:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  transform: translateY(-1px);
}

.schedule-mini-day.is-free {
  background: color-mix(in srgb, var(--green) 8%, var(--panel) 92%);
}

.schedule-mini-day.is-busy {
  background: color-mix(in srgb, var(--yellow) 10%, var(--panel) 90%);
}

.schedule-mini-day.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent 65%);
}

.schedule-mini-day.is-today {
  border-style: dashed;
}

.schedule-mini-day.is-past {
  opacity: 0.72;
}

.schedule-mini-number {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.schedule-mini-meta {
  font-size: 9px;
  font-weight: 700;
  color: var(--text2);
}

.schedule-mini-day.is-outside {
  opacity: 0.32;
}

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

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

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

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

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

@media (max-width: 1180px) {
  .config-import-toolbar {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 1080px) {
  .calendar-layout,
  .calendar-split,
  .config-stacked-grid,
  .config-grid,
  .cloud-grid,
  .dashboard-duo-grid,
  .access-grid,
  .detail-head,
  .detail-columns,
  .g23,
  .g32,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .config-preview-panels,
  .config-color-grid {
    grid-template-columns: 1fr;
  }

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

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

  .toolbar-fields {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .field--grow,
  .field--wide {
    grid-column: span 6;
  }

  .field--medium,
  .field--small {
    grid-column: span 3;
  }

  .dashboard-status-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .auth-metrics {
    grid-template-columns: 1fr;
  }

  .auth-preview-grid {
    grid-template-columns: 1fr;
  }

  .auth-preview-head {
    flex-direction: column;
  }

  .auth-form .action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "meta"
      "nav";
  }

  .header-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .field-grid,
  .cfg-kv-grid,
  .config-prefs-grid,
  .config-brand-grid,
  .record-editor-grid,
  .kv-grid,
  .detail-summary-grid,
  .toolbar-fields {
    grid-template-columns: 1fr;
  }

  .field--grow,
  .field--wide,
  .field--medium,
  .field--small {
    grid-column: auto;
  }

  .legacy-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .shell-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, calc(100vw - 24px));
    transform: translateX(calc(-100% - 18px));
    transition: transform 0.22s ease;
    box-shadow: 18px 0 44px rgba(15, 23, 42, 0.18);
  }

  .app-shell.sidebar-mobile-open .shell-sidebar {
    transform: translateX(0);
  }

  .app-shell.sidebar-collapsed .shell-sidebar-brand .logo-stack,
  .app-shell.sidebar-collapsed .nav-btn-label,
  .app-shell.sidebar-collapsed .shell-session {
    display: block;
  }

  .app-shell.sidebar-collapsed .shell-sidebar-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .app-shell.sidebar-collapsed .shell-sidebar-brand .logo,
  .app-shell.sidebar-collapsed .sidebar-nav .nav-btn {
    justify-content: flex-start;
  }

  .shell-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.38);
    transition: opacity 0.2s ease;
    border: none;
  }

  .app-shell.sidebar-mobile-open .shell-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .shell-topbar {
    padding: 14px 16px 12px;
    flex-wrap: wrap;
  }

  .shell-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .schedule-mini-grid {
    grid-template-columns: 1fr;
  }

  .schedule-mini-day {
    min-height: 50px;
  }

  .header {
    padding: 12px;
  }

  .grid-4,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .request-builder-grid {
    grid-template-columns: 1fr;
  }

  .nav-btn {
    font-size: 9px;
    padding: 5px 7px;
  }

  .detail-title {
    font-size: 34px;
  }

  .logo-text {
    font-size: 13px;
  }

  .config-brand-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .config-preview-top {
    grid-template-columns: 1fr;
  }

  .clock {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .shell-page-title {
    font-size: 16px;
  }

  .shell-page-subtitle {
    font-size: 10px;
  }

  .detail-modal-overlay {
    padding: 12px;
  }

  .record-editor-overlay {
    padding: 12px;
  }

  .detail-modal-head {
    padding: 16px;
  }

  .detail-modal-body {
    padding: 16px;
    max-height: calc(100vh - 122px);
  }
}

@media (max-width: 760px) {
  .page-head,
  .sh {
    align-items: flex-start;
  }

  .page-head > div:first-child,
  .sh > div:first-child,
  .page-head .action-group,
  .sh .row-actions,
  .action-group,
  .row-actions {
    width: 100%;
  }

  .fbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .frota-filterbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fbar .fi,
  .fbar .btn,
  .fbar .session-badge {
    width: 100%;
    min-width: 0;
  }

  .fi-grow {
    min-width: 0;
  }

  .frota-filterbar > .fi:first-child,
  .frota-filterbar > .fi:not(:first-child):not(.fi-grow),
  .frota-filterbar > .fi-grow {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .row-action-popover-card {
    width: min(320px, calc(100vw - 24px));
  }

  .panel-prev-table th,
  .panel-prev-table td,
  .os-compact-table th,
  .os-compact-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .page-title,
  .sh-title {
    font-size: 12px;
  }

  .page-subtitle,
  .sh-sub {
    font-size: 9px;
  }

  .panel-pad,
  .stat-card,
  .card {
    padding: 10px;
  }

  .session-badge {
    justify-content: center;
  }
}
